Upon checking your scripts I found that you are getting the error ‘Please specify a valid Spreadsheet URL’ while previewing the script. In order to resolve this error you need to replace the line number 53 in your code.js file with the below code snippet.
'spreadsheet_url': 'YOUR_SPREADSHEET_URL' to 'spreadsheet_url': '
https://docs.google.com/spreadsheets/d/18x2nPMsvpyqRXUc6y6xfj-K9Zid219r823tHFYg4E9A/edit?pli=1#gid=12'
Also it is observed that you are getting the error ‘TypeError: segments is not iterable’ to resolve this error you need to add below code snippet in your code.js file.
if(segments === Array) {
for (const segment of segments) {
if (!segmentMap[segment]) {
segmentMap[segment] =
{numAds: 0, totalImpressions: 0, totalClicks: 0, totalCost: 0.0};
}
I hope it helps, kindly get back to us if you have any further questions.
This message is in relation to case "ref:!00D1U01174p.!5004Q02rzuIJ:ref" (ADR-00227079)
Thanks,
 |
Google Ads Scripts Team |
