Hello everyone,
I’m James from the Google Ads script support team. Thank you for reaching out to our forum channel.
@Peter - Thank you for sharing your insights with this issue. We greatly appreciate your efforts.
@Hannah - Please let us know if you will still encounter the same issue after trying the given suggestion by Peter, so that we can validate and proceed with further investigation. If the error persists, kindly provide us with the following items below.
Regards,
|
||||||
Hello Hannah,
I checked your script and I observed that you’re executing / running it using the new script experience version. Having said that, the usage of the ApprovalStatus field within your condition is expected to fail. I said this because the said field is still in AWQL format which is no longer supported in the new script experience environment. Please be reminded that the new script experience version is now based on Google Ads API infrastructure.
Going back to the error, you may try to implement the code below and let me know how it goes on your end.
var ad_iter = AdsApp.ads().withCondition("ad_group_ad.policy_summary.approval_status = DISAPPROVED").get();