Hi, can we get the ad ids of both existing and removed ads using AdGroupAdService? I tried this but unable to get Ids of removed ads. Predicate idsPredicate = new Predicate(); idsPredicate.setField("AdGroupId"); idsPredicate.setOperator(PredicateOperator.IN); idsPredicate.setValues(new String[]{String.valueOf(gleAdGrpId)}); Predicate idsPredicate1 = new Predicate(); idsPredicate1.setField("Status"); idsPredicate1.setOperator(PredicateOperator.IN); idsPredicate1.setValues(new String[]{"ENABLED", "PAUSED", "REMOVED"}); selector.setFields(new String[]{"Id", "Status"}); selector.setPredicates(new Predicate[]{idsPredicate, idsPredicate1}); selector.setFields(selectedFields);
thanks, Eshwar. -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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/954fa2a9-79d0-493b-b57e-baf527522e97%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.