ScriptApp is not defined

613 views
Skip to first unread message

Genrihs Olehno

unread,
Jun 21, 2017, 4:56:00 AM6/21/17
to AdWords Scripts Forum
Hi

 var oAuthToken = ScriptApp.getOAuthToken();

Why
ReferenceError: "ScriptApp" is not defined.?

Vincent Racaza (AdWords Scripts Team)

unread,
Jun 21, 2017, 6:13:51 AM6/21/17
to AdWords Scripts Forum
Hi Genrihs,

ScriptApp object/entity is not supported in AdWords Scripts. If you are using this entity for the purpose of accessing the script services like Spreadsheet and Mail, then, these services have their own object/entity to use. For Mail, you can use MailApp. For Spreadsheet, you can use SpreadsheetApp. You can check the examples here for the script services/utilities.

Let me know if this helps.

Thanks,
Vincent Racaza
AdWords Scripts Team
Reply all
Reply to author
Forward
0 new messages