Posted by Janwillem Borleffs on 10/09/05 18:01
Philipp Lenssen wrote:
> Does anyone have working samples of the Google AdWords API in use with
> the native SOAP functionality of PHP5?
> Here is Google's sample script for usage with nuSoap, which works (but
> I'd like to switch to PHP5/native functionality):
> http://www.google.com/apis/adwords/samples/php/keywordEstimateDemo.php.txt
>
I've had a go at it and the most challenging part seems to be the creation
of a valid envelope. The code I have written for this can be viewed here:
http://playground.jwscripts.com/php5-google-adwords-api.phps
I'm unable to test it further, because I don't have an account for this
service (and am reluctant to subscribe for one), but the parsing of the
$response object should be pretty straightforward after examination with the
print_r() function or the ReflectionObject::export() method.
HTH;
JW
Navigation:
[Reply to this message]
|