how to get the actual criterion status from API

55 views
Skip to first unread message

Tom Nahum

unread,
Jan 30, 2021, 3:53:17 PM1/30/21
to AdWords API and Google Ads API Forum
hello,
i am querying my account's ad_group_criterions and i wish to understand if my criterion is actually active or not.
for example:
if for gender criterions 'male, female undetermined' the 'female' is excluded in the campaign level, so it is actually not running\ not active\ not eligible - how can i understand it using the gender_view API?
if i query on gender_view - i get that all 3 criterias are in status 'REMOVED' and the 'criterion_negative' is false. that is correct - since nobody specifically diabled it, but - it is ACTUALLY DISABLED.
what should i put in my query in order to get it properly?
and also, in more general - when do i look in criterion status? and when in criterion_negative?
thank you!

Google Ads API Forum Advisor Prod

unread,
Feb 1, 2021, 2:08:20 PM2/1/21
to tom....@kendago.com, adwor...@googlegroups.com

Hi Tom,

Thank you for reaching out. To check if the criterion was whether excluded from an entity or not, you could put the ad_group_criterion.negative field in the SELECT clause when you query from the gender_view resource. The criterion status is set by the user, it basically shows the eligibility for use.

Thanks and regards,
Xiaoming, Google Ads API Team
 

Google Logo
Xiaoming
Google Ads API Team
 


ref:_00D1U1174p._5004Q2BcQZf:ref

Tom Nahum

unread,
Feb 2, 2021, 3:12:23 AM2/2/21
to AdWords API and Google Ads API Forum
thank you Xiaoming.
i am using the criterion.negative and it does show me if the user manually excluded the criterion.

though, there are other cases where a criterion is not-active: like campaign policies - if the criterion was excluded in the campaign level.
so - a criterion can be not-active in the following cases - user excluded it (criterion.negative), the adgroup excluded it or if the campaign excluded it. am i correct?
are there any other scenarios where a criterion can be deactivated? what are they?
how should i get the cases where it was excluded by adgroup or campaign policies?
how should i infer a final conclusion if some criterion is active or not, combining all possibilities?

thanks

Google Ads API Forum Advisor Prod

unread,
Feb 2, 2021, 3:37:28 PM2/2/21
to tom....@kendago.com, adwor...@googlegroups.com

Hi Tom,

Thank you for reaching out. I would assume you refer the term “not-active” to “negative” as the criterion could be applied either positively or negatively. If the same criterion exists on customer, campaign and adgroup levels, the adgroup level criterion would be decisive. You could query campaign_criterion.negative or ad_group_criterion.negative to check the negativity of the criterion. All the criteria fetched from customer_negative_criterion resource are negative.



Thanks and regards,
Xiaoming, Google Ads API Team
 

Tom Nahum

unread,
Feb 3, 2021, 8:49:35 AM2/3/21
to AdWords API and Google Ads API Forum
thank you very much!
i will try to combine them all in order to get the criterion state

Reply all
Reply to author
Forward
0 new messages