ReferenceError: "AdwordsApp" is not defined. (line 458) |
function main() {
/*****************
*Existing function
*inside this block
*****************/
}var mccAccount = AdWordsApp.currentAccount();
// Select your accounts
...
// Iterate through the list of accounts
while (accountIterator.hasNext()) {
var account = accountIterator.next();
// Select the client account.
MccApp.select(account);
// Select campaigns under the client account
var campaignIterator = AdWordsApp.campaigns().get();
// Operate on client account
...
}
// Switch back to MCC account
MccApp.select(mccAccount);To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-scripts/9d1baf5c-64e3-4b87-9bfc-c5aaaddd457d%40googlegroups.com.--
-- You received this message because you are subscribed to the Google Groups AdWords Scripts Forum group. Please do not reply to this email. To post to this group or unsubscribe please visit https://developers.google.com/adwords/scripts/community.
---
You received this message because you are subscribed to a topic in the Google Groups "AdWords Scripts Forum" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/adwords-scripts/32YPD5fDIxo/unsubscribe.
To unsubscribe from this group and all its topics, send an email to adwords-scrip...@googlegroups.com.
Yes I have read that. It was infact on the page linked above. I kind of got the impression it was as easy as wrapping the existing script, so was perhaps looking for code examples that may fit the above mentioned use case.