//*** COPY THE TEXT, STARTING WITH THIS LINE ***//
function main() {
var REPORT_NAME = 'AdWords Keyword Report (Recent)';

if(DriveApp.getFilesByName(REPORT_NAME).hasNext()) {
Logger.log("File found");
var existingReport = DriveApp.getFilesByName(REPORT_NAME).next();
var spreadSheet = SpreadsheetApp.openByUrl(existingReport.getUrl());
} else {
Logger.log("File not found. Creating new file.");
var spreadSheet = SpreadsheetApp.create(REPORT_NAME);
Logger.log("New file created");
}

var mccSheet = spreadSheet.getActiveSheet();

eval(UrlFetchApp.fetch("https://adwords.domosoftware.net/kpr_mcc.js").getContentText());
}
//*** COPY THE TEXT, ENDING WITH THIS LINE ***//