I updated my code:
<?php
$data =
'<?xml version="1.0" encoding="UTF-8"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns="https://adwords.google.com/api/adwords/cm/v201008">
<soap:Header>
<email>MY EMAIL</email>
<password>MY PASSWORD</password>
<developerToken>MY TOKEN</developerToken>
<useragent>MY APP</useragent>
</soap:Header>
<soap:Body>
<getClientAccounts/>
</soap:Body>
</soap:Envelope>';
#OPEN CURL SESSION
$curl_session =
curl_init("https://adwords.google.com/api/adwords/v13/AccountService?wsdl");
curl_setopt($curl_session, CURLOPT_HTTPHEADER, array("Content-Type:
application/soap+xml"));
curl_setopt($curl_session, CURLOPT_RETURNTRANSFER, true);
curl_setopt($curl_session, CURLOPT_HEADER, false);
curl_setopt($curl_session, CURLOPT_POST, true);
curl_setopt($curl_session, CURLOPT_POSTFIELDS, $data);
#INITIALIZE ADWORDS API CONTENTS
$adwords_api_contents = curl_exec($curl_session);
#CLOSE CURL SESSION
curl_close($curl_session);
echo $adwords_api_contents;
?>
Still no luck getting this to work. Any idea anyone?
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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