0

官方文档解释了如何迭代所有子账户。

但是我如何检查非儿童本身是否是 MCC?

// Keep track of the manager account for future reference.
var managerAccount = AdsApp.currentAccount();

// Select your accounts
...

// Iterate through the list of accounts
while (accountIterator.hasNext()) {
  var account = accountIterator.next();

  // Select the client account.
  AdsManagerApp.select(account);

  // Select campaigns under the client account
  var campaignIterator = AdsApp.campaigns().get();

  // Operate on client account
  ...
}

// Switch back to manager account
AdsManagerApp.select(managerAccount);

我找不到返回的 beoolean 方法isMCCaccount()

4

0 回答 0