This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function getAccounts() { | |
var accountList = TagManager.Accounts.list(); | |
for (var i = 0;i < accountList.account.length;i++) { | |
//if (accountList.account[i].accountId > 123456) { //if you reach a timeout, resume by manually updating this and re-running | |
getContainers(accountList.account[i].accountId,accountList.account[i].name); | |
Utilities.sleep(5000); //GTM only allows 25 queries per 100 seconds, so we have to slow it down | |
//} | |
} | |
} |