Hello Everyone!
Moreover when i try to use bulk update without label it works successfully but if i add label column it not works WITHOUT ERROR. So i'm stuck. I can't debug and there is conflict between documentation.
I'm putting example code to replicate the issue. Hope someone knows what going on :)
// *******************
// THIS SCRIPT FAILS
// *******************
function main() {
var columns = [
"Action", "Campaign", "Ad group", "Keyword", "Keyword status", "Label"
];
var upload = AdsApp.bulkUploads().newCsvUpload(columns,{useLegacyUploads: false});
upload.append({
"Action": "Add",
"Campaign": "Brand_exact_",
"Ad group": "Ad group 2",
"Keyword": "mert_keyword4",
"Keyword status": "Enabled",
"Label": "test_label1"
});
upload.forCampaignManagement();
upload.apply();
}
// *******************
// THIS SCRIPT WORKS
// *******************
function main() {
var columns = [
"Action", "Campaign", "Ad group", "Keyword", "Keyword status"
];
var upload = AdsApp.bulkUploads().newCsvUpload(columns,{useLegacyUploads: false});
upload.append({
"Action": "Add",
"Campaign": "Brand_exact_",
"Ad group": "Ad group 2",
"Keyword": "mert_keyword4",
"Keyword status": "Enabled"
});
upload.forCampaignManagement();
upload.apply();
}
As Screenshot attached, both functions seems to worked and not changed anything BUT one of them failed and other one created new keyword to ad group. Something is very wrong here :)
Best!
Mert