Hi Dhiraj,

Just wondering, shouldn't this be Authorization => 'Bearer xxx'? You can 
see how the headers should look like 
at https://developers.google.com/adwords/api/docs/guides/reporting

Cheers,
Anash P. Oommen,
AdWords API Advisor.

On Tuesday, July 15, 2014 11:43:42 AM UTC-4, Dhiraj Shinde wrote:
>
> Hi All,
>          I am working on project which need some Google ad-word API usage, 
> actually i need to download campaign_performance_report for my client for 
> particular date, using the following script
>  
>   my $mech = WWW::Mechanize->new();
>   $mech->add_header({
> clientCustomerId => "xxx-xxx-xxxx",#valid client customer id
> 'Authorization: Bearer' =>'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx',#my 
> access token with scope manage adword campaign
> developerToken => 'xxxxxxxxxxxxxxxxxxx'});
> $response = $mech->post("
> https://adwords.google.com/api/adwords/reportdownload/v201406";,
> { __rdquery => 
> 'SELECT+CampaignName+CampaignId+Cost+FROM+CAMPAIGN_PERFORMANCE_REPORT+DURING+20140619,20140619',__fmt
>  
> => 'CSV'
> }
> );
>
> when i see the response of above request i got 
> <?xml version="1.0" encoding="UTF-8" 
> standalone="yes"?><reportDownloadError><ApiError><type>ReportDownloadError.INVALID_PARAMETER</type><trigger>Missing
>  
> client 
> information</trigger><fieldPath></fieldPath></ApiError></reportDownloadError>
>
> i am following approach mentioned in the link
> https://developers.google.com/adwords/api/docs/guides/awql
>
> i don't understand what exactly is missing ?
> need help from expert 
>
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

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
--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to