How to write the predicate for ads which are approved and eligible ?

26 views
Skip to first unread message

Shobhan Babu

unread,
Feb 5, 2015, 1:24:09 AM2/5/15
to adwor...@googlegroups.com
Hi


I able to display only approved ads only .How can we display ads which are eligible ?

And I want to display the image ads also .How to write the predicate for displaying image ads and flash ads ? 

Please let me know the procedure to do things?


And my code is :


 $selector->predicates[] = new Predicate('AdType', 'IN', array('TEXT_AD'));
$selector->predicates[] =new Predicate('Status', 'IN', array('ENABLED', 'PAUSED', 'DISABLED'));


Thank you !

Anash P. Oommen (AdWords API Team)

unread,
Feb 5, 2015, 6:52:49 AM2/5/15
to adwor...@googlegroups.com
Hi Shobhan,

Try using AdGroupCreativeApprovalStatus IN APPROVED. See https://developers.google.com/adwords/api/docs/reference/v201409/AdGroupAdService.AdGroupAd#approvalStatus for details.

Cheers,
Anash P. Oommen,
AdWords API Advisor.

Shobhan Babu

unread,
Feb 5, 2015, 6:54:57 AM2/5/15
to adwor...@googlegroups.com
Can please help me in writing the predicate ?

Josh Radcliff (AdWords API Team)

unread,
Feb 5, 2015, 4:19:20 PM2/5/15
to adwor...@googlegroups.com
Hi,

Setting up predicates for those fields will follow the same process that's shown in the DownloadCriteriaReport.php example, e.g.,

$selector->predicates[] = new Predicate('AdGroupCreativeApprovalStatus', 'IN', array('APPROVED'));

Cheers,
Josh, AdWords API Team
Reply all
Reply to author
Forward
0 new messages