Labels Not Being Applied To Accounts

60 views
Skip to first unread message

ni...@bambrickmedia.com.au

unread,
Jul 25, 2023, 2:51:53 AM7/25/23
to Google Ads Scripts Forum
I've attempted to implement the sample code for the Link Checker - Manager Account. Once the account has been checked it's meant to apply a Label to the account at MCC level, but this isn't happening, so it's continually and forever checking the same accounts over and over without end.

MccApp.accounts().withIds([executionResults[i].getCustomerId()]).get().next().applyLabel(CONFIG.LABEL);

This line of code appears to be executing as no error occurs.  I added Logger.log lines both before and after and they executed without issue.  I'm not in Debug mode, but running the script properly.

Please advise.

Nils Rooijmans

unread,
Jul 25, 2023, 3:08:02 AM7/25/23
to Google Ads Scripts Forum
Looks like you are running the legacy version of the script (the one for the old Adwords script environment).

Try running the latest version for the new script environment:

Hope this helps,

Nils Rooijmans
https://nilsrooijmans.com
See my Google Ads Scripts FAQ to avoid the same mistakes I made: https://nilsrooijmans.com/google-ads-scripts-faq/

Google Ads Scripts Forum Advisor

unread,
Jul 25, 2023, 7:44:44 AM7/25/23
to adwords...@googlegroups.com

Hi All,

 

Thank you for reaching out to the Google Ads Scripts Support Team.

 

@Nils - Thank you for providing your insights here.

 

I would agree with Nils. Please try implementing the version <https://developers.google.com/google-ads/scripts/docs/solutions/manager-link-checker?hl=en> of the link checker solution for MCC accounts as this is tailored for the new script experience environment and let us know how it goes on your end.

 

If you encounter any issues, kindly provide the following information so we can further investigate:

 

You may send these privately via the Reply to author option. Note that you may need to join the Google Group for you to use this option. If this option is not available on your end still, you may send it through our email (googleadsscr...@google.com) instead.

 

This message is in relation to case "ref:_00D1U1174p._5004Q2nSH1f:ref"

Thanks,
 
Google Logo Google Ads Scripts Team


ni...@bambrickmedia.com.au

unread,
Jul 25, 2023, 7:56:44 PM7/25/23
to Google Ads Scripts Forum
Hi

Thanks for your quick responses.  I have indeed also tried the new version with the same result - no Labels get applied and the script continues to check the same accounts over and over.
Apologies that I copied the code line from the old script.
        AdsManagerApp.accounts()
            .withIds([result.getCustomerId()])
            .get()
            .next()
            .applyLabel(LABEL);

MCC AccountID: 855-989-4704
Script Name: Account Broken Link Checker

It's a bit hard to get a screenshot of something that doesn't happen, however the script should make changes and it isn't.  Please see attached though - no changes made.Screen Shot 2023-07-26 at 9.54.19 am.png


Regards
Nigel

ni...@bambrickmedia.com.au

unread,
Aug 1, 2023, 10:39:35 PM8/1/23
to Google Ads Scripts Forum
Hi

Is there any update on this please?

Regards
Nigel

Reply all
Reply to author
Forward
0 new messages