Hi Thom,
Thank you for reaching out to us. This is Yasmin from the Google Ads Scripts team.
What you may do is to create a shopping performance view report for this which can be done by creating a spreadsheet report. You may use the Google Ads Query Builder in order to build your query and the resource mapping document to map AdWords API reports to the corresponding Google Ads API resources. With this, you may base from the example below given the metrics and segments you provided:
function main() {
const spreadsheet = SpreadsheetApp.create('INSERT_REPORT_NAME_HERE');
const report = AdsApp.report(
'SELECT segments.product_item_id, metrics.clicks, metrics.impressions, metrics.ctr, metrics.conversions, metrics.all_conversions_from_interactions_rate, metrics.conversions_value, metrics.cost_micros ' +
'FROM shopping_performance_view ' +
'WHERE metrics.impressions < 10 ' +
' AND segments.date DURING LAST_30_DAYS');
report.exportToSheet(spreadsheet.getActiveSheet());
}
Let us know if you have any questions.
Best regards,
|
||||||
Hi Thom,
Adding to my previous response, you can segment by country by using segments.product_country.
Hope this helps. Again, let us know if you have any questions.
Thanks,