I have created a Adwords Script and able to run in adwords UI.
function getCurrentAccountDetails() {
var currentAccount = AdWordsApp.currentAccount();
Logger.log('Customer ID: ' + currentAccount.getCustomerId() +
', Currency Code: ' + currentAccount.getCurrencyCode() +
', Timezone: ' + currentAccount.getTimeZone());
var stats = currentAccount.getStatsFor('LAST_MONTH');
Logger.log(stats.getClicks() + ' clicks, ' +
stats.getImpressions() + ' impressions last month');
}
Can I run Adwords scripts in Google App Scripts, since GAS can be published as webapps so that I can give some values on demand to the Adwords Script.
I am getting below error because in GAS no access to AdwordsApp. So is there a way to communicate to Adwords Scripts using App scripts.
ReferenceError: "AdWordsApp" is not defined.
My Requirement is to create video ads by taking inputs from the user. So for this I didn't found any Adwords API details, so I want to use AdwordsScript to create video ads by taking some parameters( name, video_url etc) from the outside.