Unable to select child account using AdsManagerApp

16 views
Skip to first unread message

teamvadw...@gmail.com

unread,
Oct 4, 2022, 8:23:06 AM10/4/22
to Google Ads API and AdWords API Forum
Hi,

We are unable to select child accounts with AdsManagerApp in the New Google Ads Script Experience.

Following is the code to get the child account.

var accountSelecter = AdsManagerApp.accounts().withIds(['127-167-0580']]);
var account = accountSelecter.get();
 if(account.hasNext())
 {
        MccApp.select(account.next());
        Logger.log("Account Set");
 }
 else
 {
        Logger.log("Account NOT Set");
  }

Through the above code, we are not getting the account if we toggle on New scripts experience, if we toggle off that then it's working... 

Please suggest what we need to do to make it work in the new script experience.

Regards,
Indrani

Google Ads API Forum Advisor

unread,
Oct 4, 2022, 9:27:12 AM10/4/22
to teamvadw...@gmail.com, adwor...@googlegroups.com
Hi Indrani,

Thank you for reaching out.

This channel and our team specializes in Google Ads API related concerns only. Since the issue you are encountering is with the Google Ads Scripts, I would recommend that you reach out to their support team via this forum channel instead. I hope this helps.

Best regards,

Google Logo
Peter Laurence
Google Ads API Team
 


ref:_00D1U1174p._5004Q2ex5O7:ref
Reply all
Reply to author
Forward
0 new messages