Hi Pierre,

I'm not sure if this will work, but maybe try setting *contentType* 
application/x-www-form-urlencoded?

Thanks,
Josh, AdWords API Team

On Friday, September 9, 2016 at 5:05:04 AM UTC-4, Pierre Rudolfsson wrote:
>
> Hi Josh,
>
> Thank you for your quick feedback. Sorry, I was not providing the scope of 
> the question. 
>
> I wish to get access to the full API (i.e., not only reporting, and 
> specifically features like the DataService that are not accessible through 
> AdWords scripts) from GAS, in the same way I access it through the client 
> libraries (Python in this case).
>
> I merely thought that starting with the simplest use case of fetching a 
> report would tell me how to get general access.
>
> Thank you
>
> Pierre
>
> On Thursday, September 8, 2016 at 7:58:35 PM UTC+2, Josh Radcliff (AdWords 
> API Team) wrote:
>>
>> 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 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/20b35f49-dc86-4bb6-98c4-0dd06a832e4f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to