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)