Hello,
I’m James from the Google Ads Scripts support team. Thank you for reaching out to us. Allow me to assist you.
Could you please shared with us with the following information below so that we can take a closer look at your issue?
Kindly send the requested details above via ‘Reply privately to author’ option, if the private option is not available on your end, then please send it over through this email <googleadsscr...@google.com> instead.
Regards,
|
||||||
Hello Zachary,
I agree with Sigurd that you may use this Google Ads Query Builder tool to properly set up your queries on your end.
I tried to replicate the given query on my end, and it appears that you’re lacking a closing single quote(‘) within double quote(“ ") in the end of your query. You may also try the my test query below if it works on your end.
"SELECT metrics.clicks, metrics.search_absolute_top_impression_share, metrics.impressions, segments.product_type_l3, segments.date, metrics.cost_micros, metrics.average_cpc FROM shopping_performance_view WHERE metrics.impressions > 0 AND segments.date BETWEEN '" + Utilities.formatDate(from, timeZone, 'yyyy-MM-dd') + "' AND '" + Utilities.formatDate(to, timeZone, 'yyyy-MM-dd') + "'";
Hope this helps. Let me know if you have any further questions.