Hello!
I am trying to write a script to delete all labels from campaigns with a specific label... can someone explain why the below isn't working?
function main() {
var campaignIterator = AdWordsApp.campaigns()
.withCondition("LabelNames CONTAINS 'Brand Event Label'")
.get();
if (campaignIterator.hasNext()) {
var campaign = campaignIterator.next();
campaign.removeLabel('Brand Event Label');
}
}
I keep getting the error, even though I have pasted this from the example 'remove label from a campaign':
Invalid or inapplicable operator is used for field Labels. Please check the supported operators. (line 5)
Thanks!