while (accountIterator.hasNext()) {
var account = accountIterator.next();
AdsManagerApp.select(account); //Change account context
account.applyLabel(labelName);
}
--
-- 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 the Google Groups "Google Ads Scripts Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to adwords-scripts+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-scripts/253dbb61-c13b-4ae4-a6c0-16395a26e81f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Hi James,Can you please try changing contexts to the client account using select before applying the label? For example,
while (accountIterator.hasNext()) {
var account = accountIterator.next();
AdsManagerApp.select(account); //Change account context
account.applyLabel(labelName);
}Regards,MattGoogle Ads Scripts Team
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://googleadsdeveloper.blogspot.com/search/label/adwords_scripts
https://developers.google.com/google-ads/scripts/community/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-scripts/33d2a7c5-afd6-4f84-b734-1a715f41e087%40googlegroups.com.
Hi James,This may be related to an ongoing issue with account labels -- can you please provide your CID and script name so I can investigate the issue directly in your account?Thanks,
MattGoogle Ads Scripts Team
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://googleadsdeveloper.blogspot.com/search/label/adwords_scripts
https://developers.google.com/google-ads/scripts/community/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-scripts/b8e15862-f747-4a92-92f9-ffe9c6d0c938%40googlegroups.com.
Hi William,Can you please privately provide me with your script name and CID so I can see if the issue is related to ongoing work with account labels?Thanks,MattGoogle Ads Scripts Team
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
https://ads-developers.googleblog.com/search/label/google_ads_scripts
https://developers.google.com/google-ads/scripts/community/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-scripts/80ee3758-bc84-4aac-8bd5-99c0aa075730%40googlegroups.com.
Hi William,
We have changed the way account labels work. When adding or filtering on account labels, everything is stored at the "Creator Customer ID" level now. That means that whatever manager account the authenticating user logged in as, that's the account whose labels will apply. If you drill down into another level of manager account, you will still be using labels from the parent manager account level. If you need to filter on labels, then you must set up the script to run in the same account that you first log into upon accessing Google Ads.For your link checker script, can you please try copying your current script into a new script project, deleting the current link checker label, and then running the new copy?Please let me know if the issue continues.Thanks,MattGoogle Ads Scripts Team=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
https://ads-developers.googleblog.com/search/label/google_ads_scripts
https://developers.google.com/google-ads/scripts/community/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-scripts/cd3a33f3-037f-4dfc-94aa-b18909bff805%40googlegroups.com.