Hi Itay,
Thank you for reaching out to us. This is Yasmin from the Google Ads Scripts team.
Can you please provide the following information as it would help us further investigate?:
Regards,
|
||||||
Hello Itay,
This is Maia from the Google Ads Team as well.
I can confirm that the resource name of the label is correct and has a valid Customer ID as we were able to retrieve data based on this simple script: (you may also refer to the attached screenshot)
function main() {
var accountSelector = AdsManagerApp.accounts().withIds(['2650864364']);
var accountIterator = accountSelector.get();
while(accountIterator.hasNext()){
var account = accountIterator.next();
AdsManagerApp.select(account);
console.log("Test: "+account.getName());
var campaignIterator1 = AdsApp.campaigns().withCondition("campaign.status = ENABLED")
.withCondition("campaign.labels CONTAINS ANY ('customers/2650864364/labels/9912922484')").get();
console.log(campaignIterator1.totalNumEntities());
}
}
With this, would you be able to re-execute/run on your end and provide us the latest logs?
Best Regards,
|
||||||
Hello Itay,
I am glad that I was able to help you with your concern. Should you need further assistance or should you encounter errors in your scripts, let us know the issue and rest assured that our team will do their best to assist you.