Hi Nesha, The value in the "Authorization" header after "auth=" should be the authToken retrieved from the ClientLogin API. Please ensure you are not using a developer token or application token here.
Also, you should specify either the clientCustomerId OR the clientEmail header, but not both. Best, - Eric Koleda, AdWords API Team On Jun 1, 4:58 pm, Nesha <lazare...@gmail.com> wrote: > 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/ReportDefini... > > 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