I tried using the following script to pull campaign and TROAS targets from a spreadsheet and then have it uploaded to a bulk sheet, which I could then apply to the account. When I try to apply the bulksheet it doesn't give me any errors, but doesn't make the change. If i upload the sheet manually to bulk uploads it updates the TROAS target appropriately. I'm confused why it works when I manually upload the bulksheet vs when I create the bulksheet via script and then apply it manually.
function main() {
var columns = ["Campaign", "Target ROAS"];
var upload = AdWordsApp.bulkUploads() .newCsvUpload(columns);
var workbook_url = "spreadsheet url";
var workbook = SpreadsheetApp.openByUrl(workbook_url);
var sheet = workbook.getSheetByName("Upload");
var values = sheet.getDataRange() .getValues();
for(i=1; i < values.length; i++){
var campaign = values[i][0];
var TARGET_ROAS = values[i][2];
upload.append({
'Campaign' : campaign,
'Target ROAS': TARGET_ROAS,
});
};
upload.forCampaignManagement();
upload.preview();