simbor / 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 #109

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 and adwords_api_php_4.5.0

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

What steps will reproduce the problem?
/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:
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.

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

GoogleCodeExporter commented 8 years ago
The resolution to this issue in the past has been to force the library not to 
add the XsiTypes to the outgoing requests.

To test this, please edit your AdsSoapClient.php:
https://code.google.com/p/google-api-adwords-php/source/browse/src/Google/Api/Ad
s/Common/Lib/AdsSoapClient.php#396

Adding the following line, on line number 420:
$addXsiTypes = TRUE;

I'm working on a more permanent solution to this issue. I'll update this bug 
when I have more information.

Cheers,

- Paul, AdWords API Team.

Original comment by api.pmat...@gmail.com on 7 Aug 2013 at 11:11

GoogleCodeExporter commented 8 years ago
Hi Paul,
Unfortunately this doesn't work.
I have added this to link 420 and it made no difference.
I believe it was already being set to true anyway by the previous if
statement.

I have checked and it is creating the fixer object correctly, but it is
still producing the error.

Original comment by nickbloo...@gmail.com on 7 Aug 2013 at 2:07

GoogleCodeExporter commented 8 years ago
Apologies, it meant to say:
$addXsiTypes = FALSE;

Regards,

- Paul, AdWords API Team.

Original comment by api.pmat...@gmail.com on 7 Aug 2013 at 2:38

GoogleCodeExporter commented 8 years ago
Hmmmm, interesting.
Now I get the following error:
An error has occurred: Unmarshalling Error: cvc-type.2: The type definition
cannot be abstract for element ns1:searchParameters.

Original comment by nickbloo...@gmail.com on 7 Aug 2013 at 2:54

GoogleCodeExporter commented 8 years ago
Are you seeing this issue with any other services?

Original comment by api.pmat...@gmail.com on 12 Aug 2013 at 3:15

GoogleCodeExporter commented 8 years ago
Yes,
I have tried it with the other SEO services.
I am experiencing the same issue.

Original comment by nickbloo...@gmail.com on 13 Aug 2013 at 2:04

GoogleCodeExporter commented 8 years ago
Hi,

We have resolved this issue by moving our site to a difference server with
a more recent version of php

Original comment by nickbloo...@gmail.com on 21 Aug 2013 at 10:39

GoogleCodeExporter commented 8 years ago

Original comment by api.pmat...@gmail.com on 17 Sep 2013 at 3:47