PHP5 + Google AdWords API?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Philipp Lenssen

    #1

    PHP5 + Google AdWords API?

    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):


  • Janwillem Borleffs

    #2
    Re: PHP5 + Google AdWords API?

    Philipp Lenssen wrote:[color=blue]
    > 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/s...teDemo.php.txt
    >[/color]

    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:



    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 ReflectionObjec t::export() method.


    HTH;
    JW



    Comment

    Working...