How, hope all is doing well!
So I can't return the currency, how come?
Script:
function main() {
// Select the accounts to be processed.
var accountIterator = MccApp.accounts()
.withIds(['XXX'])
.get();
// First we take the accountIterator variable from before
while (accountIterator.hasNext()) {
// And, for each account, we save the data into another variable
var account = accountIterator.next();
// Switch to the account you want to process.
MccApp.select(account);
// Now we can do something with the selected account
var nameAccount = account.getName(); // THIS WORKS FINE var account_currency = account.getCurrencyCode(); // DOESN't WORK. if (account_currency = 'USD' | 'EUR' ) {
var max_cpc = 149;
}
else {
var max_cpc = 1499;
}
...
Thanks in advance :-)