Hi,

Have you considered using AdWords Scripts 
<https://developers.google.com/adwords/scripts/> instead? That would give 
you a more robust interface for running reports (e.g., see the Create a 
text report example 
<https://developers.google.com/adwords/scripts/docs/examples/reports#Create 
a text report>).

Thanks,
Josh, AdWords API Team

On Thursday, September 8, 2016 at 9:40:39 AM UTC-4, Pierre Rudolfsson wrote:
>
>
> This is an old question, but I'm having the same issue.
>
> I am trying to access the Adword API from google apps script and I get the 
> same missing report definition error as above. I believe that the error is 
> in the structure of the request. This is the code I use:
>
>   var request = {
>     method: "POST",
>     muteHttpExceptions: true,
>     headers : {
>       Authorization: 'Bearer ' + ACCESS_TOKEN,
>       developerToken: DEVELOPER_TOKEN,
>       clientCustomerId: CLIENT_CUSTOMER_ID},
>     payload : {'__fmt': 'CSV', '__rdquery': 'SELECT CampaignName FROM 
> CAMPAIGN_PERFORMANCE_REPORT DURING LAST_7_DAYS'},
>     contentType: 'multipart/form-data; 
> boundary=------------------------12d01fae60c7b559'
>     }
>   
>     var txtReq = UrlFetchApp.getRequest(urlEndPoint, request) 
>   Logger.log(txtReq)
>   var response = UrlFetchApp.fetch(urlEndPoint, request)
>   Logger.log(response)
>
>
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 [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
--- 
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 [email protected].
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/a4538da1-947e-4212-a2bf-be222ff34275%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
  • Re: Error: Missin... Pierre Rudolfsson
    • Re: Error: M... 'Josh Radcliff (AdWords API Team)' via AdWords API Forum
      • Re: Erro... Pierre Rudolfsson
        • Re: ... 'Josh Radcliff (AdWords API Team)' via AdWords API Forum
          • ... Pierre Rudolfsson

Reply via email to