Skip to content

Instantly share code, notes, and snippets.

@oltarasenko
Created July 30, 2021 07:06
Show Gist options
  • Save oltarasenko/cfc34c171ecd5611fb9be095a55ae468 to your computer and use it in GitHub Desktop.
Save oltarasenko/cfc34c171ecd5611fb9be095a55ae468 to your computer and use it in GitHub Desktop.
function main(){
// Gathering the report
//Report Builder - WHERE and DURING can be easily changed as needed to different values or metrics.
//For example you could filter on Clicks by changing line 13 to ' WHERE Clicks > 10 '
//For more help see, https://developers.google.com/adwords/scripts/docs/features/reports
var report = AdWordsApp.report(
'SELECT ' +
'Criteria, CampaignName, AdGroupName, Clicks, Impressions, Cost, ' +
'Conversions, QualityScore, SearchPredictedCtr, CreativeQualityScore, PostClickQualityScore ' +
'FROM KEYWORDS_PERFORMANCE_REPORT ' +
'WHERE Impressions > 25 ' +
'DURING LAST_30_DAYS');
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment