Skip to main content
All CollectionsEnhanced Scripts for Google Ads
Enhanced Scripts - Troubleshooting
Enhanced Scripts - Troubleshooting
Geetanjali Tyagi avatar
Written by Geetanjali Tyagi
Updated over a week ago

On this page:


Preliminary Checks to Detect the Reason for Errors in Scripts

  1. Check if the Script has been Copied Correctly into Google Ads:

    • Ensure that the entire contents of the file you downloaded from Optmyzr are placed in the Google Ads Script. Your Google Ads Script should be identical to the code you downloaded from us.

  2. Verify Script Values (For Non-Enhanced Scripts™):

    • Check if all values that needed replacement in the script (such as campaign name, date ranges, etc.) have been replaced correctly.

Error When Creating Labels

  • Preview Mode Limitation:

    • If the script creates labels, you might encounter an error in preview mode. This occurs because Google Ads doesn't allow label creation in preview mode. When you run the script, it should work fine.

If Everything Looks Right but You're Still Seeing an Error

Collect and Send Details to Support:

  • Send an email to support@optmyzr.com with the following details:

    • Name of the script.

    • The exact error message you see (you can attach a screenshot of the error message).

    • A copy of the script code you are using in your Google Ads account.

    • A copy of the most recent script logs, which you can obtain by following these instructions:

      1. Click on the "log statements" for the relevant script under the Results column.

      2. Copy the entire log content located under "History."

      3. Paste the log content into a text (.txt) file or a Google Doc and share it with us.

    • If there are no logs, please run a Preview of the script and send us a copy of the preview logs.

Some Enhanced Scripts™ have a setting in the Optmyzr interface to include additional logging details. It's helpful to turn on this option, then run the script, and include the full logs generated by Google Ads in your message to us.

Logs Truncated: Length Exceeded Limit of 100,000

  • Understanding the Warning Message:

    • This warning appears on the Google Ads interface and indicates a restriction or issue originating in Google Ads for any script. It signifies that the console is not showing logs after the specified length limit (100,000 characters).

    • This error does not affect the script or its execution.

Did this answer your question?