Hello José,
Thank you for heads up. This looks like an issue specific to your SOAP library rather than something that can be handled by the API. I recommend checking the request XML code in this case, it is very likely you would see an extra field you didn't plan requesting. -Danial, AdWords API Team. On Monday, July 29, 2013 8:12:22 PM UTC+4, dearaujoj wrote: > > Hi, > > We came across a strange issue with our code and it gave us quite a > headache. So I thought I had to share it maybe it will help someone. > First of all we are working with PHP, so it may be linked with what we > found. > > So in some part of our application, we are filtering the fields that we > need for a specific object, let's say a campaign, and we are returning the > requested ones as an indexed array in the selector Adwords object. In the > filtering process it happens that the indexes of the return array are not > following each other and in that case we have the following error: > > *[SelectorError.INVALID_FIELD_NAME @ serviceSelector; trigger:'Array']* > * > * > This error did puzzle us because we thought we were requesting a field > with name "Array" which not the case in fact. it was only an arrray index > issue. > > So to reproduce the issue, you just need to use the GetCampaign.php script > in the PHP library and replace at line 45: > > *$selector->fields = array('Id', 'Name');* > > by > > *$selector->fields = array(0 => 'Id', 3 => 'Name');* > * > * > So the only request I will have is to have a more explicit message in such > case ;-) > > Regards > > José > -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Also find us on our blog and discussion group: http://adwordsapi.blogspot.com http://groups.google.com/group/adwords-api =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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. For more options, visit https://groups.google.com/groups/opt_out.