Martialdelastic / google-api-adwords-php

Automatically exported from code.google.com/p/google-api-adwords-php
Apache License 2.0
0 stars 0 forks source link

Short description of the bug #108

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Which version of the library are you using? adwords_api_php_4.5.1

Which version of PHP are you using? 5.2.4-2ubuntu5.26

What steps will reproduce the problem?
Go to 
/adwords_api_php_4.5.1/examples/AdWords/v201306/Optimization/GetKeywordIdeas.php

What is the expected output? What do you see instead?
I expect to see an example of keywords ideas (from demo).

Instead I see
Warning: Error parsing 
{path}/adwords_api_php_4.5.1/src/Google/Api/Ads/AdWords/Lib/api.properties on 
line 15 in 
{path}/adwords_api_php_4.5.1/src/Google/Api/Ads/Common/Util/ApiPropertiesUtils.p
hp on line 34

Notice: Undefined index: api.versions in 
{path}/adwords_api_php_4.5.1/src/Google/Api/Ads/AdWords/Lib/AdWordsUser.php on 
line 120

Notice: Undefined index: api.server in 
{path}/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'.

Please provide any additional information below.

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'.

Original issue reported on code.google.com by nickbloo...@gmail.com on 5 Aug 2013 at 9:41

GoogleCodeExporter commented 8 years ago
Cheers for reporting this nick.

I'll look into adding a permanent solution.

As for the cvc-elt issue, I believe that's unrelated, can you file this as 
another bug?

Regards,

- Paul, AdWords API Team.

Original comment by api.pmat...@gmail.com on 5 Aug 2013 at 12:26

GoogleCodeExporter commented 8 years ago
Issue 116 has been merged into this issue.

Original comment by api.pmat...@gmail.com on 21 Nov 2013 at 2:38

GoogleCodeExporter commented 8 years ago
We have moved to GitHub, please continue discussion here:
https://github.com/googleads/googleads-php-lib/issues/6

Original comment by vt...@google.com on 14 Jan 2014 at 5:22