function main() {
var report = AdWordsApp.report(
'SELECT MerchantId, AverageCpc, Ctr, Clicks ' + //you can add or remove metrics, segments, and attributes to your liking
'FROM SHOPPING_PERFORMANCE_REPORT ' +
'WHERE Impressions < 10 ' +
'DURING LAST_30_DAYS');
var rows = report.rows();
while (rows.hasNext()) {
var row = rows.next();
var merchantId = row['MerchantId'];
var aveCpc = row['AverageCpc'];
var ctr = row['Ctr'];
var clicks = row['Clicks'];
Logger.log("merchant id: %s | average cpc: %s | ctr: %s | clicks: %s ",merchantId,aveCpc,ctr,clicks);
}
}