Hello,
It's my first time using google ads api and I'm a little lost with what we can and can't do.
I want to use the google ads API in order to exclude automatically from the category "Where ads showed" some placements that met certain criteria.
But in your documentation I can't see anything that can help me doing that.
I tried this little script as a test :
function main() {
removePlacement();
function removePlacement() {
var placementSelector = AdsApp.display().placements();
var placementIterator = placementSelector.get();
while (placementIterator.hasNext()) {
var placement = placementIterator.next();
var placementUrl = placement.getUrl();
var campaign = placement.getCampaign();
var regex = /[\u0600-\u06FF]/;
var regexC = /[\u3040-\u30ff\u3400-\u4dbf\u4e00-\u9fff\uf900-\ufaff\uff66-\uff9f]/;
if (placement.match(regex)) {
Logger.log ("La campagne contient des emplacements avec des termes arabes")
}
}
}
}
Can you provide some more insights ? I thought it was because initially I was planning to use the google ads script and with Google Ads API I will have more possibilities.
Thank you in advance !