Accounts

Get details on the current account

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');
}

Send feedback about...

AdWords Scripts
AdWords Scripts
Need help? Visit our support page.