i am setting client object like follows
my $client = Google::Ads::AdWords::Client->new(
{
version         => 'v201406',
properties_file =>
"/home/dhiraj/perl/GOOGLE-ADWORDS-PERL-CLIENT-2.16.0/adwords.properties",
}
);

adword.properties file contain all info as i told you in my prev post and 
when i tried running the script and for 

download_criteria_report.pl it is showing error as follows

{
  "error" : "invalid_client",
  "error_description" : "The OAuth client was not found."
} at ../../../lib/Google/Ads/Common/OAuth2ApplicationsHandler.pm line 127.
Can't call method "isa" on an undefined value at 
../../../lib/Google/Ads/Common/ReportUtils.pm line 74.


On Tuesday, July 15, 2014 9:13:42 PM UTC+5:30, 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