Hi,

I have problem with communication with ReportDefinitionService

I want to read and parse report using this:
http://code.google.com/apis/adwords/v2009/docs/reference/ReportDefinitionService.html

I've tried to use this php code:

header("Authorization: GoogleLogin auth=VALID_TOKEN");
header("clientCustomerId: ID");
header("clientEmail: em...@gmail.com");
echo file_get_contents("https://adwords.google.com/api/adwords/
reportdownload?__rd=748887");

and I get this:
!!!AuthenticationError.GOOGLE_ACCOUNT_COOKIE_INVALID|||748887


I've also tried this one with CURL:

$ch = curl_init();
curl_setopt_array($ch, array(
  CURLOPT_URL => 'https://adwords.google.com/api/adwords/
reportdownload?__rd=748887',
));

curl_setopt($ch, CURLOPT_HTTPHEADER, array(
  'Authorization: auth=VALID_TOKEN',
  'clientCustomerId: ID',
  'clientEmail: em...@gmail.com'
));

and receive the same error.

What is the problem with this requests? Do I need to use SOAP? Can you
give me some example how to make request from php and read report from
adwords api?

I'm desperate.
Thanks a lot.

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en

Reply via email to