Hi Garry,

>From AdWords API perspective, you may use this sample code 
<https://github.com/googleads/googleads-java-lib/blob/master/examples/adwords_axis/src/main/java/adwords/axis/v201802/campaignmanagement/GetAllDisapprovedAds.java#L149-L151>
 in 
Java, to get Disapproved Ads. You would need to give AdGroupId of an active 
AdGroup. To include Approved_Limited ads you would need to use the code 
snippet below :





















*List<String> status = new 
ArrayList<String>();status.add(PolicyApprovalStatus.DISAPPROVED.toString());status.add(PolicyApprovalStatus.APPROVED_LIMITED.toString());//
 
Create predicate Predicate predicate = new 
Predicate();predicate.setField(AdGroupAdField.CombinedApprovalStatus.toString());predicate.setOperator(PredicateOperator.IN);predicate.setValues(status.toArray(new
 
String[0]));// Create selector.SelectorBuilder builder = new 
SelectorBuilder();Selector selector =builder.fields(AdGroupAdField.Id, 
AdGroupAdField.PolicySummary).orderAscBy(AdGroupAdField.Id).equals(AdGroupAdField.AdGroupId,
 
adGroupId.toString()).offset(offset).limit(PAGE_SIZE).build();selector.setPredicates(new
 
Predicate[] {predicate});*

Please let me know if you have further questions. Also, you may want to 
post in the Scripts Community Forum 
<https://groups.google.com/forum/#!forum/adwords-scripts> to check with 
Scripts team if this indeed is possible via scripts.

Regards,
Dhanya, AdWords API Team

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/b88342a6-7e72-4c5c-b56d-de665797a927%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
  • Approved (Li... Rocket Agency
    • Re: App... 'Dhanya Sundararaju (AdWords API Team)' via AdWords API Forum

Reply via email to