After looking at these pages: http://code.google.com/apis/adwords/docs/#soap http://code.google.com/apis/adwords/docs/developer/AccountService.html
and this video: http://www.youtube.com/watch?annotation_id=annotation_389875&feature=iv&v=cqVtUdB975M I created an XML file with the following code: <?xml version="1.0" encoding="UTF-8"?> <soapenv:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns="https://adwords.google.com/api/adwords/v13"> <soapenv:Header> <email>MY EMAIL</email> <password>MY PASSWORD</password> <developerToken>MY EMAIL++USD</developerToken> <useragent>MY COMPANY</useragent> </soapenv:Header> <soapenv:Body> <getClientAccounts/> </soapenv:Body> </soapenv:Envelope> ======================= I got the code from the Youtube video above. Then I created a PHP file with the following code: <?php #INITIALISE ADWORDS API URL $adwords_api_url = 'curl --header "Content-Type: application/soap+xml" --data @adwords-sandbox.xml \ https://adwords.google.com/api/adwords/v13/AccountService'; #OPEN CURL SESSION $curl_session = curl_init($adwords_api_url); #INITIALIZE ADWORDS API CONTENTS $adwords_api_contents = curl_exec($curl_session); #CLOSE CURL SESSION curl_close($curl_session); echo $adwords_api_contents; ?> ======================= My PHP code does not work. Can anyone tell me what is wrong? Is it my XML file that is wrong or is my PHP file? I just want to initialise my Adwords API sandbox account. -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Also find us on our blog and discussion group: http://adwordsapi.blogspot.com http://groups.google.com/group/adwords-api =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ You received this message because you are subscribed to the Google Groups "AdWords API Forum" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/adwords-api?hl=en
