SystemError: Could not read from Google Ads

351 views
Skip to first unread message

James Johnson

unread,
Apr 3, 2023, 9:07:54 AM4/3/23
to Google Ads Scripts Forum
Hi I have a script that adapts certain parts of the account's locations.

It is running over an MCC and is completing 14 accounts fine. I then get this error which car vary on which account it is working on when it generates. Is there anything I can do to resolve it?     // Get the current date and the date 365 days ag

   
    while (locationIterator.hasNext()) {
      var location = locationIterator.next();
      var locationStats = location.getStatsFor(lastYearFormatted, todayFormatted);

     
     
      if (locationStats) {
       
        if( location && locationStatsMap  ) {
       
       // Issue appears to be a connection loss to Googel Ads around here - needs running on live to see if its a preview issue  
          locationStatsMap[location.getId()] = {
            locationName: location.getName(), // This is line 68 of the main function
            clicks: locationStats.getClicks(),
            cost: locationStats.getCost(),
            conversions: locationStats.getConversions(),
            campaignId: location.getCampaign().getId(),
            campaignName: location.getCampaign().getName(),

          };
         
        }
      }
    } SystemError: Could not read from Google Ads (Internal details: Expected key geoTargetConstants/20340 to be present in cache after loading) at g (adsapp_compiled:294:50) at ek (adsapp_compiled:2747:40) at Ck (adsapp_compiled:2965:10) at Mw (adsapp_compiled:10838:7) at Yw.getName (adsapp_compiled:10981:12) at main (Code:68:36) at Object.<anonymous> (adsapp_compiled:19716:54)

Google Ads Scripts Forum

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

Regards,
Google Ads Scripts Team

Google Ads Scripts Forum

unread,
Apr 5, 2023, 5:54:34 AM4/5/23
to Google Ads Scripts Forum
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.

It would be much appreciated if you could provide the following for us to further investigate your concern as well as take a better look at your script:
  • Google Ads account ID or CID
  • Name of the script
Best regards,
Google Ads Scripts Team
Reply all
Reply to author
Forward
0 new messages