In the process of making an hourly impression share report to make into a graph.
function main() {
var campaignNameContains = "";
var MILLIS_PER_DAY = 1000 * 60 * 60 * 24;
var now = new Date();
var from = new Date(now.getTime() - 16 * MILLIS_PER_DAY);
var to = new Date(now.getTime() - 2 * MILLIS_PER_DAY);
var timeZone = AdWordsApp.currentAccount().getTimeZone();
var url = '';
var ss = SpreadsheetApp.openByUrl(url);
var sheet = ss.getActiveSheet();
var report = AdWordsApp.report(
"SELECT Date, CampaignName, HourOfDay, Impressions, SearchImpressionShare " +
"FROM CAMPAIGN_PERFORMANCE_REPORT " +
"WHERE CampaignName CONTAINS_IGNORE_CASE '" + campaignNameContains + "' " +
'DURING ' + Utilities.formatDate(from, timeZone, 'yyyyMMdd') + ','
+ Utilities.formatDate(to, timeZone, 'yyyyMMdd'));
report.exportToSheet(sheet);
}