Hello, I have a problem with what title says. I want to change Target CPA values for specific ad groups in specific campaigns via bulk upload script. I have the script ready, the problem is I can't really format the google sheet CSV properly.
Here's the script:
function main() {
bulkUploadFromGoogleSpreadsheet();
}
function bulkUploadFromGoogleSpreadsheet() {
// The format of this spreadsheet should match a valid bulk upload template.
// for the list of supported bulk upload templates.
var SPREADSHEET_URL = 'shreadsheetUrl';
var spreadSheet = SpreadsheetApp.openByUrl(SPREADSHEET_URL);
//Logger.log(spreadSheet.getName());
var sheet = spreadSheet.getSheetByName('name');
var upload = AdsApp.bulkUploads().newFileUpload(sheet);
upload.forCampaignManagement();
// Use upload.apply() to make changes without previewing.
upload.apply();
}
Now when it comes to spreadsheet, I'm including Campaign, Ad group and Target CPA as columns, but it does not recognize them as proper entities. I have no idea how to format it properly. Any ideas on this?
Cheers