MCC Level Broken link script - show/scan active campaigns only

105 views
Skip to first unread message

ashe...@switch.je

unread,
Feb 5, 2019, 11:12:54 AM2/5/19
to Google Ads Scripts Forum
Hi there, i've added the following script to our agency MCC to check for broken URLs and it's excellent. However we only want to analyse the links within active campaigns, is there a way to refine this in the script please?

googleadsscrip...@google.com

unread,
Feb 5, 2019, 4:10:56 PM2/5/19
to adwords-scripts+apn2wqefy376jgg3...@googlegroups.com, Google Ads Scripts Forum
Hello,

The spreadsheet setup contains options for handling paused entities. If you select 'no' for 'Include paused ads/keywords/sitelinks' in cells C8 - C10, then paused campaigns will also be ignored. 

Regards,
Matt
Google 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/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

Hi there, i've added the following script to our agency MCC to check for broken URLs and it's excellent. However we only want to analyse the links within active campaigns, is there a way to refine this in the script please?

--
-- 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/6da55617-b7b3-4bf8-a419-98d3669313ba%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

ashe...@switch.je

unread,
Feb 6, 2019, 6:01:32 AM2/6/19
to Google Ads Scripts Forum
Thanks for your reply. Yes I see those options in the spreadsheet setup, however that only works if I pause every ad, keyword and sitelink within a paused campaign, which I don't want to do incase I need to reactivate a campaign as it was running prior to pausing. Is there a way to simply skip over paused campaigns?

Many thanks
Asheline

On Tuesday, February 5, 2019 at 9:10:56 PM UTC, googleadsscripts-forumadvisor wrote:
Hello,

The spreadsheet setup contains options for handling paused entities. If you select 'no' for 'Include paused ads/keywords/sitelinks' in cells C8 - C10, then paused campaigns will also be ignored. 

Regards,
Matt
Google 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/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

Asheline McCloskey

unread,
Feb 6, 2019, 6:01:33 AM2/6/19
to Google Ads Scripts Forum on behalf of googleadsscripts-forumadvisor
Thanks for your reply. Yes I see those options in the spreadsheet setup, however that only works if I pause every ad, keyword and sitelink within a paused campaign, which I don't want to do incase I need to reactivate a campaign as it was running prior to pausing. Is there a way to simply skip over paused campaigns?

Many thanks
Asheline

On Tue, Feb 5, 2019 at 9:10 PM Google Ads Scripts Forum on behalf of googleadsscripts-forumadvisor <adwords...@googlegroups.com> wrote:
Hello,

The spreadsheet setup contains options for handling paused entities. If you select 'no' for 'Include paused ads/keywords/sitelinks' in cells C8 - C10, then paused campaigns will also be ignored. 

Regards,
Matt
Google 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/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

Hi there, i've added the following script to our agency MCC to check for broken URLs and it's excellent. However we only want to analyse the links within active campaigns, is there a way to refine this in the script please?

--
-- 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-scrip...@googlegroups.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 the Google Groups "Google Ads Scripts Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to adwords-scrip...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-scripts/00d12gdp5o0000010o7si4006a029iz74mjed1o6co30c1g68qj4e9g%40mail.gmail.com.

For more options, visit https://groups.google.com/d/optout.


--

Kind regards,

Asheline McCloskey
Paid Media Executive

Switch Digital

telephone: 01534 866638
email: ashe...@switch.je
website: www.switch.je

Aslı

unread,
Feb 6, 2019, 6:37:25 AM2/6/19
to Google Ads Scripts Forum
Hi Asheline,

I'm not an expert though, but I think changing this statement as .withCondition('CampaignStatus = ENABLED') might fix your problem.

Best Regards.

Ekran Alıntısı6.PNG



5 Şubat 2019 Salı 19:12:54 UTC+3 tarihinde (bilinmiyor) yazdı:

googleadsscrip...@google.com

unread,
Feb 6, 2019, 3:21:26 PM2/6/19
to Aslı via Google Ads Scripts Forum, Google Ads Scripts Forum
Hello,

The method Asli mentioned above would successfully exclude paused campaigns from being checked.

However, by default, only enabled campaigns are checked, and only if the 'includePaused' option is on, then 'PAUSED' is pushed to the array, 'statuses'.

Regards,
Matt
Google 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/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

This message (and any associated files) may contain confidential and/or privileged information. If you are not the intended recipient or authorized to receive this for the intended recipient, you must not use, copy, disclose or take any action based on this message or any information herein. If you have received this message in error, please advise the sender immediately by sending a reply e-mail and delete this message. Thank you for your cooperation.

--
-- 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/2e9f4e2c-aa51-478f-aded-cde12a777c49%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages