Adwords Pause Campaigns Over Budget Scripts Not Working On All Campigns

46 views
Skip to first unread message

DP

unread,
Jan 10, 2019, 11:10:48 AM1/10/19
to Google Ads Scripts Forum
I'm running 2 scripts, one is to pause campaigns that run over budget and the other to re-enable campaigns that were paused. I'm seeing inconsistent results with my pause campaign over budget script, some campaigns are being paused while others aren't. 

Attached is a screenshot of the most recent results. Although there were several campaigns that were over budget when the script ran, only 2 were paused.

Looking to resolve this issue.

Thanks!
Screen Shot 2019-01-10 at 11.05.56 AM.png

Anthony Madrigal

unread,
Jan 10, 2019, 1:57:29 PM1/10/19
to Google Ads Scripts Forum
Hello,

Do you have a withCondition to check whether the campaigns are ENABLED before you pause them? 

If so, I'll need to see your script to see why this behavior is occurring. Can you please reply privately to author your CID and script name if that is the case?

Thanks,
Anthony
Google Ads Scripts Team

Dora Palmieri

unread,
Jan 10, 2019, 2:06:11 PM1/10/19
to Google Ads Scripts Forum on behalf of Anthony Madrigal
Hi Anthony,

Thank you for your prompt response. I'm pretty sure that I do, but even if I don't, it doesn't explain why this script has not been working as it did before. For context, I've noticed this issue has been happening repeatedly for a few months now and previously the script worked properly. 

Please take a look and see what you recommend: 


Best regards,


Dora Palmieri, J.D., L.L.M.
Founder
Digital Agency For Law


--
-- 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 a topic in the Google Groups "Google Ads Scripts Forum" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/adwords-scripts/hjIApT22Eio/unsubscribe.
To unsubscribe from this group and all its topics, send an email to adwords-scrip...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-scripts/23508aa1-79b8-45c6-8f89-d14e5a38073d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Anthony Madrigal (Google Ads Scripts Team)

unread,
Jan 10, 2019, 4:35:48 PM1/10/19
to Google Ads Scripts Forum
Hello,

I don't see anything wrong with your script. I do have a few suggestions though to help prevent this in the future:
  • Change campaigns.get() to campaigns.withCondition('Status = ENABLED')
  • Add the campaign name in the logger where you are logging the budget and cost
Was the screenshot you provided the only instance you noticed this behavior happening? If not, can you please reply privately to author some of the other timestamps?

Thanks,
Anthony
Google Ads Scripts Team

On Thursday, January 10, 2019 at 2:06:11 PM UTC-5, DP wrote:
Hi Anthony,

Thank you for your prompt response. I'm pretty sure that I do, but even if I don't, it doesn't explain why this script has not been working as it did before. For context, I've noticed this issue has been happening repeatedly for a few months now and previously the script worked properly. 

Please take a look and see what you recommend: 


Best regards,


Dora Palmieri, J.D., L.L.M.
Founder
Digital Agency For Law


Reply all
Reply to author
Forward
0 new messages