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 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.
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/5e13435d-75ba-4690-8158-8a7b3d051eb9%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