Closed GoogleCodeExporter closed 8 years ago
I'm not able to replicate this in my environment on the same version of PHP.
Can you attach the output of calling php -i in your environment? You may want
to scan through the output to make sure it doesn't include any sensitive
information.
Original comment by api.ekol...@gmail.com
on 9 Jul 2010 at 7:38
I'm not sure what you mean, so if attached file is not what you need, please
instruct me what exactly I should give you.
Original comment by naviga...@navigator-bc.pl
on 15 Jul 2010 at 10:03
Attachments:
The problem with your request is that the xsi:type attribute is not being set
correctly on the searchParameters element:
<ns2:searchParameters>
<ns2:keywords>
<ns1:text>mars cruise</ns1:text>
<ns1:matchType>BROAD</ns1:matchType>
</ns2:keywords>
</ns2:searchParameters>
This should be done automatically by the SoapClient library, but isn't in your
case. When I run GetRelatedKeywords.php in PHP 5.2.13 my xsi:types are set
correctly.
The information I am asking for is a print out of the PHP environment
configuration. You can get it by running "php -i" from the command line:
$ php -i
phpinfo()
PHP Version => 5.3.2
...
Please make sure you remove any sensitive information from the output.
Original comment by api.ekol...@gmail.com
on 15 Jul 2010 at 7:13
Ok, it's done, I hope it will help.
Original comment by naviga...@navigator-bc.pl
on 16 Jul 2010 at 7:08
Attachments:
I don't see anything wrong or even that different in your configuration, so I'm
not sure why it isn't working in your environment. Try editing line 367 of
AdsSoapClient.
http://code.google.com/p/google-api-adwords-php/source/browse/trunk/src/Google/Api/Ads/Common/Lib/AdsSoapClient.php#367
Change it from:
$addXsiTypes = version_compare(PHP_VERSION, '5.2.7', '<');
to:
$addXsiTypes = TRUE;
Let me know if that fixes the problem.
Original comment by api.ekol...@gmail.com
on 16 Jul 2010 at 3:26
Thanks a lot, your tip helped, now it's correct.
Original comment by naviga...@navigator-bc.pl
on 16 Jul 2010 at 8:10
Original comment by ekoleda+devrel@googlers.com
on 9 Sep 2011 at 2:45
Original issue reported on code.google.com by
naviga...@navigator-bc.pl
on 9 Jul 2010 at 12:02Attachments: