« first day (550 days earlier)      last day (832 days later) » 

1:00 AM
@OlegValter Yea, I understand that now. So instead, I want to use the OAuth library for authentication, something like this stackoverflow.com/questions/58527909/…
But not sure what the apiURL, payload, and options should be
So the getService() function is
function getService() {
// Create a new service with the given name. The name will be used when
// persisting the authorized token, so ensure it is unique within the
// scope of the property store.
return OAuth2.createService('Google Ads')
//remaining codes
I'm not too sure if this is right
I set the scope as "https://www.googleapis.com/auth/adwords"
set apiURL to "`https://script.googleapis.com/v1/scripts/' + SCRIPT_ID + ':run`"
 
 
6 hours later…
6:54 AM
@WingHangKhoo don't worry about the payload - it is a standard JSON string for most Google APIs, there isn't anything specific about it other than what is specified in the docs
The endpoints of the API are specified in the docs for each of the methods you want to invoke
Although Google Ads is one of the APIs where you need to do some mental gymnastics to figure out what payload it expects for your use case
The endpoints of the API are specified in the docs for each of the methods you want to invoke
Not sure why you request the Apps Script API, though (judging from the URL you provided in the last message)
It is for manipulating script projects rsther than connecting to other APIs
Eric's library's repository has a nice tutorial and samples on what you need to configure it:
 

« first day (550 days earlier)      last day (832 days later) »