AdWords
1.9K members online now
1.9K members online now
Dive into advanced features like Remarketing, Flexible Bid Strategies, AdWords Editor, and AdWords Scripts
Guide Me
star_border
Reply

How to pause the ads if the URLs are broken using scripts?

Follower ✭ ☆ ☆
# 1
Follower ✭ ☆ ☆

Hi Friends,

 

Please help on this

 

 

Regards,

Bharath. U

1 Expert replyverified_user

Re: How to pause the ads if the URLs are broken using scripts?

Top Contributor
# 2
Top Contributor

Re: How to pause the ads if the URLs are broken using scripts?

Follower ✭ ☆ ☆
# 3
Follower ✭ ☆ ☆
Hi Jon,

Yes i tried this already, but this script only email the broken URLs. It won't pause the ads.

Do you have any idea how to pause the ads for this condition?


Regards,
Bharath. U

Re: How to pause the ads if the URLs are broken using scripts?

Explorer ✭ ✭ ✭
# 4
Explorer ✭ ✭ ✭
Hi Bharath,

Are you able to find out Campaign/Ad group associated with those ads with broken URLs?

If yes, then copy those campaigns/ad groups/ads in Excel sheet and simply put 'Paused' in Status column and upload it through Adwords Editor.

Regards,
Ashish

Re: How to pause the ads if the URLs are broken using scripts?

Follower ✭ ☆ ☆
# 5
Follower ✭ ☆ ☆
Hi Ashish,

Thanks for your reply.

I want to pause the broken url ads using AdWords scripts automatically, not manual uploads.


Regards,
Bharath. U

Re: How to pause the ads if the URLs are broken using scripts?

Explorer ✭ ✭ ✭
# 6
Explorer ✭ ✭ ✭

Hi Bharath,

 

Check this link -

http://goo.gl/WeOtuE

 

I hope this is what you are looking for. You may need to sign up here before you get the script access.

 

Regards,

Ashish

Re: How to pause the ads if the URLs are broken using scripts?

Follower ✭ ☆ ☆
# 7
Follower ✭ ☆ ☆
Hi Ashish,

Thanks, this is the script which i am exactly looking for, but is there any free version for this which is very urgent for me now to find this out.


Regards,
Bharath. U

How to pause the ads if the URLs are broken using scripts?

Visitor ✭ ✭ ✭
# 8
Visitor ✭ ✭ ✭

Did you ever find such a script? I am having the exact same issue now! 

How to pause the ads if the URLs are broken using scripts?

Follower ✭ ✭ ☆
# 9
Follower ✭ ✭ ☆

Hi,

 

With the base of the excellent script from Russel Savage (link above), you just have to modify the script to call the function to pause ads that you can find in the adwords script help : https://developers.google.com/adwords/scripts/docs/examples/ads#pause-ads-in-an-ad-group

 

In the Russel's script, there is a line var entity = iter.next(); and entity corresponds to the ads. Where there is 

 

if(BAD_CODES.indexOf(response_code) >= 0) {
        //This entity has an issue.  Save it for later.
        bad_entities.push({e : entity, code : response_code});
      }
 
you just have to add something like entity.pause(); where entity is the current ad.
 
I don't use the Russel's script, I did my own but logic is the same. Note that an url will only be tested one time.
 
Hope it can help.