function testeDcm() {
var profileId = xxxxxxxx;
var reportId = xxxxxxxx;
var fileId = xxxxxxxxxxx;
var reportUrl = DoubleClickCampaigns.Files.get(reportId, fileId).urls.apiUrl;
var token = ScriptApp.getOAuthToken();
var headersOptions = {
Authorization : 'bearer ' + token
};
var options = {
headers : headersOptions,
muteHttpExceptions : false
};
var csvDoc = UrlFetchApp.fetch(reportUrl, options);
Logger.log(csvDoc);
}Request failed for https://www.googleapis.com/dfareporting/v2.4/reports/43204373/files/241592264?alt=media returned code 401. Truncated server response: Invalid Credentials (use muteHttpExceptions option to examine full response) (line 19, file "Code")var token = ScriptApp.getOAuthToken();Ciro Shia
RainMaker - Media Innovation

(11) 3033-2286
(11) 98442-4012
Rua Bandeira Paulista, 530, 13º andar
Itaim Bibi - CEP 04532-001 - São Paulo, SP
--
You received this message because you are subscribed to a topic in the Google Groups "Google's DoubleClick Campaign Manager API Forum" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-doubleclick-for-advertisers-api/CkwTDybvOJg/unsubscribe.
To unsubscribe from this group and all its topics, send an email to google-doubleclick-for-ad...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.