Hi,
I had a script that exclude placements with bad ctr and email me the list so I can add them to the shared list.
I want the script to add it by itself,
but it doesn't do that.
here is the relevant part of the script:
var EXCLUDED_PLACEMENT_LIST_NAME = 'test_list';
.
.
.
var domain = matchedDomains[i];
Logger.log(" " + campaignExcludedPlacementCounter + ") excluding the domain: " + domain + " CTR = " + ctr);
DOMAIN_LIST = DOMAIN_LIST + " \n " + domain;
var excludedPlacement = campaign.display().newPlacementBuilder().withUrl(domain).exclude().getResult();
var excludedPlacementListIterator = AdWordsApp.excludedPlacementLists()
.withCondition('Name = "' + EXCLUDED_PLACEMENT_LIST_NAME + '"')
.get();
var excludePlacementList = excludedPlacementListIterator.next();
excludePlacementList.addExcludedPlacement(domain);
Please advise