is there any way to exclude placement using the adwords scripts?
I tried to use the placement builder and it manages to set some sort of flag that indicates
of the excluded placement modification but it doesn't actually save it !
the following example shows piece of my code which mark the placement '
http://www.rcb.co.il' as negative but as you'll see it doesn't included within the excludedPlacements list:
var adGroup = AdWordsApp.adGroups().withIds([10365971711]).get().next();
var result = adGroup.display().newPlacementBuilder().withUrl('
http://www.rcb.co.il').exclude().getResult();
var excluded_placements = adGroup.display().excludedPlacements().get();
while (excluded_placements.hasNext()) {
var placement = excluded_placements.next();
Logger.log(placement.getUrl());
}
can anyone tell me what am I doing wrong ?!
thanks