Re: Unmarshalling Error with Selector in v201302 (aw_api_php_lib_4.1.1)

2013-08-02 Thread Nick Bloor
Hi,
I am also experiencing this issue.
I applied Paul Matthew's update (to adwords_api_php_4.5.1) but when I run 
/adwords_api_php_4.5.1/examples/AdWords/v201306/Optimization/GetKeywordIdeas.php
 
I get the following error:

Warning: Error parsing 
/adwords_api_php_4.5.1/src/Google/Api/Ads/AdWords/Lib/api.properties on 
line 15 in 
/adwords_api_php_4.5.1/src/Google/Api/Ads/Common/Util/ApiPropertiesUtils.php 
on line 34
Notice: Undefined index: api.versions in 
/adwords_api_php_4.5.1/src/Google/Api/Ads/AdWords/Lib/AdWordsUser.php on 
line 120
Notice: Undefined index: api.server in 
/adwords_api_php_4.5.1/src/Google/Api/Ads/AdWords/Lib/AdWordsUser.php on 
line 122
An error has occurred: Unmarshalling Error: cvc-elt.4.2: Cannot resolve 
'Paging' to a type definition for element 'ns1:paging'.

Upon investigation I can see that the ApiPropertiesUtils class is trying to 
parse_ini_file the api.properties file, but doesn't like the JSON lines.
I have tried putting quotes around, and this does get rid of all the errors 
except the last one.
An error has occurred: Unmarshalling Error: cvc-elt.4.2: Cannot resolve 
'Paging' to a type definition for element 'ns1:paging'.

So I am at a bit of a loss on how to resolve this.
Any help will be greatly appreciated.

I am running PHP Version 5.2.4-2ubuntu5.26

Regards
Nick Bloor.
Worthers.



On Tuesday, 2 April 2013 07:46:38 UTC+1, Paul Matthews (AdWords API Team) 
wrote:
>
> This issue has now been fixed, at:
>
>- change 
> set
>- 
> downloads
>
> Regards,
>
> - Paul, AdWords API Team.
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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.




Re: Error with selector

2013-07-31 Thread Danial Klimkin
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.




Error with selector

2013-07-29 Thread dearaujoj
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.




Re: Unmarshalling Error with Selector in v201302 (aw_api_php_lib_4.1.1)

2013-04-01 Thread Paul Matthews (AdWords API Team)
This issue has now been fixed, at:

   - change 
set
   - downloads

Regards,

- Paul, AdWords API Team.

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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.




Re: Unmarshalling Error with Selector in v201302 (aw_api_php_lib_4.1.1)

2013-03-19 Thread moleary
Issue Filed #89
https://code.google.com/p/google-api-adwords-php/issues/detail?id=89

On Wednesday, March 13, 2013 12:21:14 PM UTC-5, mol...@knowme.net wrote:
>
> I just updated to the latest version of the PHP API v201302.
> When running the example GetCampaigns.php I get the following error:
>
> An error has occurred: Unmarshalling Error: cvc-elt.4.2: Cannot resolve 
> 'Selector' to a type definition for element 'ns1:serviceSelector'. 
>
> fyi ... I also needed to update init.php to get the examples to run as the 
> src path was incorrect. Needed to change
>
> define('SRC_PATH', dirname(__FILE__) . '/../../../src/');
>
> to
>
> define('SRC_PATH', dirname(__FILE__) . '/../../src/');
>
> Any help would be most appreciated.
> Thanks in advance
> Mark
>
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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.




Re: Unmarshalling Error with Selector in v201302 (aw_api_php_lib_4.1.1)

2013-03-19 Thread moleary
Hi Anash ... thank you, I'll file the issue

On Wednesday, March 13, 2013 12:21:14 PM UTC-5, mol...@knowme.net wrote:
>
> I just updated to the latest version of the PHP API v201302.
> When running the example GetCampaigns.php I get the following error:
>
> An error has occurred: Unmarshalling Error: cvc-elt.4.2: Cannot resolve 
> 'Selector' to a type definition for element 'ns1:serviceSelector'. 
>
> fyi ... I also needed to update init.php to get the examples to run as the 
> src path was incorrect. Needed to change
>
> define('SRC_PATH', dirname(__FILE__) . '/../../../src/');
>
> to
>
> define('SRC_PATH', dirname(__FILE__) . '/../../src/');
>
> Any help would be most appreciated.
> Thanks in advance
> Mark
>
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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.




Re: Unmarshalling Error with Selector in v201302 (aw_api_php_lib_4.1.1)

2013-03-19 Thread Anash P. Oommen (AdWords API Team)
Hi Mark, Marcin,

Could you file an issue at 
https://code.google.com/p/google-api-adwords-php/issues/list? I'll ask the 
PHP library maintainers to investigate the issue.

Cheers,
Anash P. Oommen,
AdWords API Advisor.

On Saturday, March 16, 2013 4:09:25 PM UTC+5:30, Marcin Rosinski wrote:
>
> Same here, looks like there is a bug with a Selector service, I have 
> checked and even examples - GetKeywords.php is affected, looks like we 
> can't migrate until resolved, Google Please updated us on it.
>
> cheers,
> /Marcin
>
> On Wednesday, 13 March 2013 17:21:14 UTC, mol...@knowme.net wrote:
>>
>> I just updated to the latest version of the PHP API v201302.
>> When running the example GetCampaigns.php I get the following error:
>>
>> An error has occurred: Unmarshalling Error: cvc-elt.4.2: Cannot resolve 
>> 'Selector' to a type definition for element 'ns1:serviceSelector'. 
>>
>> fyi ... I also needed to update init.php to get the examples to run as 
>> the src path was incorrect. Needed to change
>>
>> define('SRC_PATH', dirname(__FILE__) . '/../../../src/');
>>
>> to
>>
>> define('SRC_PATH', dirname(__FILE__) . '/../../src/');
>>
>> Any help would be most appreciated.
>> Thanks in advance
>> Mark
>>
>>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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.




Re: Unmarshalling Error with Selector in v201302 (aw_api_php_lib_4.1.1)

2013-03-19 Thread Marcin Rosinski
Same here, looks like there is a bug with a Selector service, I have 
checked and even examples - GetKeywords.php is affected, looks like we 
can't migrate until resolved, Google Please updated us on it.

cheers,
/Marcin

On Wednesday, 13 March 2013 17:21:14 UTC, mol...@knowme.net wrote:
>
> I just updated to the latest version of the PHP API v201302.
> When running the example GetCampaigns.php I get the following error:
>
> An error has occurred: Unmarshalling Error: cvc-elt.4.2: Cannot resolve 
> 'Selector' to a type definition for element 'ns1:serviceSelector'. 
>
> fyi ... I also needed to update init.php to get the examples to run as the 
> src path was incorrect. Needed to change
>
> define('SRC_PATH', dirname(__FILE__) . '/../../../src/');
>
> to
>
> define('SRC_PATH', dirname(__FILE__) . '/../../src/');
>
> Any help would be most appreciated.
> Thanks in advance
> Mark
>
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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.




Re: Unmarshalling Error with Selector in v201302 (aw_api_php_lib_4.1.1)

2013-03-15 Thread moleary
Does anybody have an update on this? Im blocked from upgrading from v201209 
to v201302. Im using a MAMP stack on OSX Mountain Lion with PHP version 
5.4.4. The issue also exists with API version 4.1.0

On Wednesday, March 13, 2013 12:21:14 PM UTC-5, mol...@knowme.net wrote:
>
> I just updated to the latest version of the PHP API v201302.
> When running the example GetCampaigns.php I get the following error:
>
> An error has occurred: Unmarshalling Error: cvc-elt.4.2: Cannot resolve 
> 'Selector' to a type definition for element 'ns1:serviceSelector'. 
>
> fyi ... I also needed to update init.php to get the examples to run as the 
> src path was incorrect. Needed to change
>
> define('SRC_PATH', dirname(__FILE__) . '/../../../src/');
>
> to
>
> define('SRC_PATH', dirname(__FILE__) . '/../../src/');
>
> Any help would be most appreciated.
> Thanks in advance
> Mark
>
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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.




Unmarshalling Error with Selector in v201302 (aw_api_php_lib_4.1.1)

2013-03-14 Thread moleary
I just updated to the latest version of the PHP API v201302.
When running the example GetCampaigns.php I get the following error:

An error has occurred: Unmarshalling Error: cvc-elt.4.2: Cannot resolve 
'Selector' to a type definition for element 'ns1:serviceSelector'. 

fyi ... I also needed to update init.php to get the examples to run as the 
src path was incorrect. Needed to change

define('SRC_PATH', dirname(__FILE__) . '/../../../src/');

to

define('SRC_PATH', dirname(__FILE__) . '/../../src/');

Any help would be most appreciated.
Thanks in advance
Mark

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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.