AdWordsUserListService ExpressionRuleUserList Rule item mismatch

2017-08-21 Thread Edward Grave
Hi,

I'm looking through the documentation and comparing it to the code produced 
by the WSDL for the AdWordsUserListService.

I've noticed a discrepancy that is causing errors in my code when calling 
the get function. I'm consuming the endpoint from a C# client.

>From what I can tell the ExpressionRuleUserList contains a Rule object, 
this in turn has an array of RuleItem objects.

Currently the WSDL is creating this as a multi-dimensional array which is 
causing the bug:

private RuleItem[][] groupsField;

The documentation states that the relationship of these objects is actually 
as follows: Rule > RuleGroups[] > Rule Items[]

However there is no RuleGroups object defined in the WSDL. Not sure if this 
is a bug in the Adwords API wsdl.

Has anyone else had issues with this? Is there a proper solution to this?

My workaround is to change the Reference.cs automatically produced to make 
the RuleItem object an array.

Cheers.

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/b88d4116-6fa5-4a36-92f5-99841a84afd1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: AdWordsUserListService ExpressionRuleUserList Rule item mismatch

2017-08-21 Thread 'Sreelakshmi Sasidharan (AdWords API Team)' via AdWords API Forum
Hi 

The relationship between Rule and RuleItem is as follows : Rule 

 -> groups(RuleItemGroup[]) 

 -> items(RuleItem[]) 
.
 
In the WSDL 

, you should be able to find the definitions for Rule, RuleItemGroup and 
RuleItems as the complexType "Rule", "RuleItemGroup" and "RuleItem" 
respectively. I am also attaching a sample snippet from the SOAP logs which 
shows the relationship.  
  
   
  




ecomm_pagetype

EQUALS
checkout





cartsize

GREATER_THAN
1.0



  

The documentation and the WSDL seems to be consistent here. Could you 
please confirm what error you were getting? If you are able to share the 
logs it will be helpful to troubleshoot. 

Thanks,
Sreelakshmi, AdWords API Team

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/3798105b-1b10-4b54-a557-d6dd0e16f413%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: AdWordsUserListService ExpressionRuleUserList Rule item mismatch

2017-08-22 Thread Edward Grave
Hi Sreelakshmi,

I can confirm the WSDL matches what you state, however, when pulling this 
in Visual Studio as a service reference I see no mention in the 
Reference.cs file of an RuleItemGroup object.

public partial class Rule : object, 
System.ComponentModel.INotifyPropertyChanged {

private RuleItem[][] groupsField;

This is a code snippet from the auto compiled Reference.cs and as you can 
see the groupsfield property is a multi-dimensional array of RuleItem 
objects. There is no mention of the RuleGroup object i would expect.

public partial class Rule : object, 
System.ComponentModel.INotifyPropertyChanged {

private RuleItem[] groupsField;

My work around is to remove the second set of brackets from the 
groupsfield. This fixes the issue with serialising the incoming 
response from Adwords.

The only issue with this work around is everytime I update the service 
reference it adds the second set of brackets into the groups field property.

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/582722b0-920b-43b9-843e-1c13fd852076%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: AdWordsUserListService ExpressionRuleUserList Rule item mismatch

2017-08-22 Thread Edward Grave
Sorry, i didn't mean a multi-dimensional array. It's an array of arrays 
that the reference.cs has for the groups property.

On Tuesday, 22 August 2017 16:40:40 UTC+1, Edward Grave wrote:
>
> Hi Sreelakshmi,
>
> I can confirm the WSDL matches what you state, however, when pulling this 
> in Visual Studio as a service reference I see no mention in the 
> Reference.cs file of an RuleItemGroup object.
>
> public partial class Rule : object, 
> System.ComponentModel.INotifyPropertyChanged {
> 
> private RuleItem[][] groupsField;
>
> This is a code snippet from the auto compiled Reference.cs and as you can 
> see the groupsfield property is a multi-dimensional array of RuleItem 
> objects. There is no mention of the RuleGroup object i would expect.
>
> public partial class Rule : object, 
> System.ComponentModel.INotifyPropertyChanged {
> 
> private RuleItem[] groupsField;
>
> My work around is to remove the second set of brackets from the 
> groupsfield. This fixes the issue with serialising the incoming 
> response from Adwords.
>
> The only issue with this work around is everytime I update the service 
> reference it adds the second set of brackets into the groups field property.
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/8c232975-0693-4e58-9a09-72ff2e90c3e1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: AdWordsUserListService ExpressionRuleUserList Rule item mismatch

2017-08-22 Thread 'Sreelakshmi Sasidharan (AdWords API Team)' via AdWords API Forum
Hi Edward, 

Since this is specific to .Net library, could you please post this on the 
issues 
tracker  so that 
the library owner can take a look at this?

Thanks,
Sreelakshmi, AdWords API Team

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/66316212-9e59-4fb0-824c-2e8ca0183d16%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: AdWordsUserListService ExpressionRuleUserList Rule item mismatch

2017-08-23 Thread Edward Grave
Ok thanks, i have done that now.

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/51a3dd19-421f-4309-82e3-4240ad21cab8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.