[Error] The project number associated with the request is not allowed when the 'internal-client' HTTP header is set

24 views
Skip to first unread message

Chris Shin

unread,
Jun 12, 2025, 2:54:29 PM6/12/25
to Google Ads Scripts Forum
Hello,

I am trying to fix Change History Alert script I have for Google Ads Script that suddenly stopped working. 

I query change_event informations and print the results into Google Spreadsheet. The script runs daily and used to run fine but stopped working on May 13, 2025.

I have below the query and the snippets of error messages I get in the log.

I am not sure what these errors mean. Especially the one with 'internal-client' HTTP header.

Please Help!

Thanks,
Chris

This is the query I am trying to run:
  const query = "SELECT " +
                "campaign.name, " +
                "ad_group.name, " +
                "change_event.change_date_time, " +
                "change_event.change_resource_type, " +
                "change_event.changed_fields, " +
                "change_event.client_type, " +
                "change_event.new_resource, " +
                "change_event.old_resource, " +
                "change_event.resource_change_operation, " +
                "change_event.resource_name, " +
                "change_event.user_email " +
                "FROM change_event " +
                "WHERE change_event.change_date_time DURING "+ CONFIG.PERIOD +" " +
                "AND change_event.user_email NOT IN ('"+ CONFIG.IGNORE_USERS.join("', '")+"') "+
                "ORDER BY change_event.change_date_time DESC "+
                "LIMIT 9999 ";

result = AdsApp.search(query);

Snippets of error log:
SystemError: Could not read from Google Ads at processAccount (Code:34:29)

UserError: MutateError.UNSPECIFIED: Call to GoogleAdsService.Search failed: The project number associated with the request is not allowed when the 'internal-client' HTTP header is set. at getChangeAlerts (Code:86:17) at processAccount (Code:41:3)

SyntaxError: Unexpected end of JSON input at JSON.parse (<anonymous>) at allFinished (Code:158:27) at Object.<anonymous> (adsapp_compiled:20579:54)

Google Ads Scripts Forum Advisor

unread,
Jun 12, 2025, 7:15:00 PM6/12/25
to adwords...@googlegroups.com

Hi Chris,

Thank you for reaching out to the Google Ads Scripts support team.

In order to investigate the issue further, kindly provide us with the following details.

  • Google Ads account ID/CID
  • Name of the affected script
  • Shareable spreadsheet link if you are using any in the script. You may follow this article to share a file publicly

You can share the requested details via Reply privately to the author option or a direct private reply to this email.

Thanks,
 
Google Logo Google Ads Scripts Team

Feedback
How was our support today?

rating1    rating2    rating3    rating4    rating5
[2025-06-12 23:14:29Z GMT] This message is in relation to case "ref:!00D1U01174p.!500Ht01rf8jz:ref" (ADR-00314082)



Reply all
Reply to author
Forward
0 new messages