Tips on how to debug a script finishing with errors

62 views
Skip to first unread message

Justin Neubrander

unread,
Apr 5, 2023, 7:41:56 AM4/5/23
to Google Ads Scripts Forum
Hi all. I recently started receiving errors on some keywords in my campaign (with the script looking at the history for the past 30 days). I don't know how to trouble shoot it though. It used to finish without errors, so I assume something has changed with the quality score or something over time. The error provides no further explanation. See the screen shot below if it helps. Thanks for any help you can give!
4.png

Google Ads Scripts Forum

unread,
Apr 12, 2023, 2:58:19 AM4/12/23
to Google Ads Scripts Forum
Reposting the last inquiry (https://groups.google.com/g/adwords-scripts/c/3GItZ56hsmI) from the forum as it wasn't routed to our support queue.

Regards,
Google Ads Scripts Team

Google Ads Scripts Forum Advisor

unread,
Apr 12, 2023, 7:48:49 AM4/12/23
to adwords...@googlegroups.com

Hello,

 

Thank you for reaching out to the Google Ads Scripts Team. Please excuse us for only getting back now as your message failed to be routed to our support queue.

 

Would you be so kind as to provide the following information so our team can further investigate your concern and guide you accordingly?:

  • Google Ads account ID or CID
  • Name of the script

 

Best regards,

 

Google Logo Google Ads Scripts Team


ref:_00D1U1174p._5004Q2kUXNq:ref

Justin Neubrander

unread,
Apr 12, 2023, 4:19:11 PM4/12/23
to Google Ads Scripts Forum on behalf of adsscripts
Account ID:  261-785-0169
Script name: If Acct CTR >5.3%, enable Sunn Mat keywords, ads, AdG & Camp


--
-- 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/3GItZ56hsmI/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/kIowE000000000000000000000000000000000000000000000RT03GX00Q-9Xzu9sQkWDq1FlVLS1vQ%40sfdc.net.

Google Ads Scripts Forum

unread,
Apr 17, 2023, 6:10:38 AM4/17/23
to Google Ads Scripts Forum
Reposting the last inquiry (https://groups.google.com/g/adwords-scripts/c/3GItZ56hsmI) from the forum as it wasn't routed to our support queue.

Regards,
Google Ads Scripts Team

Google Ads Scripts Forum Advisor

unread,
Apr 17, 2023, 9:40:22 AM4/17/23
to adwords...@googlegroups.com

Hi,

 

Thank you for providing the requested information.

 

I was able to check the script on my end and had found that the error is due to the script making changes to a removed resource. Upon checking, it's the campaign that was removed. Kindly make sure that the campaign is not deleted or removed in order for the error to not be encountered. You can make use of a CampaignSelector, and check if the campaign's status is REMOVED using the withCondition() method.

 

Let us know if you have any clarifications.

 

Relevant links:

Reply all
Reply to author
Forward
0 new messages