function main() {
var adSelector = AdsApp.ads().withCondition('campaign.status = ENABLED')
.withCondition('ad_group.status = ENABLED')
.withCondition('ad_group_ad.status = ENABLED')
.withCondition('ad_group_ad.policy_summary.approval_status = DISAPPROVED')
var adIterator = adSelector.get();
while (adIterator.hasNext()) {
var ad = adIterator.next();
Logger.log(ad);
}
}
![]() |
Google Ads Scripts Team |
[2025-10-28 05:35:13Z GMT] This message is in relation to case "ref:!00D1U01174p.!500Ht01vRxhb:ref" (ADR-00336709)
Please be informed that it is not possible for the scripts team to send you an email notification when the active advertisements are rejected. I would like to clarify that Google Ads scripts team does not provide hands-on support for any requests related to the implementation of scripts based on the use case, and we do not support creating scripts on behalf of a user. Instead, we can only provide guidance on how users can troubleshoot specific issues within their scripts. So, kindly follow the earlier given suggestions and get back to us if you face any issues.
![]() |
Google Ads Scripts Team |
[2025-10-28 12:46:12Z GMT] This message is in relation to case "ref:!00D1U01174p.!500Ht01vRxhb:ref" (ADR-00336709)