Accessing Mobile App Category Exclusions for specific campaigns - Google Ads API - PHP Lib

47 views
Skip to first unread message

Dan GTD

unread,
Feb 6, 2020, 4:57:13 AM2/6/20
to AdWords API and Google Ads API Forum
Hi Guys,

I can access Mobile App Exclusions using:


SELECT mobile_app_category_constant.name
FROM mobile_app_category_constant


But how would I access the mobile app category exclusions by campaign? If I try and as it to the statement above, it says its not compatible combining Campaign and mobile_app_category_constant data.

Thanks

Dan.

Google Ads API Forum Advisor Prod

unread,
Feb 6, 2020, 2:29:25 PM2/6/20
to d...@greatthings.agency, adwor...@googlegroups.com

Hi Dan,

Thank you for reaching out to us. You can use the “Campaign Criterion” type report to see mobile_app_cateogry_constant on the campaign level. Let me know if you have further questions.

Thank you,
Bryan, Google Ads API Team



ref:_00D1U1174p._5001UV05Tf:ref

Dan GTD

unread,
Feb 7, 2020, 4:32:16 AM2/7/20
to AdWords API and Google Ads API Forum
Thanks Bryan thats great.

So how would I get to know what criterion id to use? Does each campaign have a criterion id? Because it would let me do this:

SELECT campaign_criterion.mobile_app_category.mobile_app_category_constant"
. "FROM campaign "
. "WHERE campaign.id = 'XXX'

or

SELECT campaign_criterion.mobile_app_category.mobile_app_category_constant"
. "FROM campaign_criterion "
. "WHERE campaign.id = '1011080063'


So do I have to find the criterion id first and then use that in the above? How do I get that? Is there only one criterion_id per campaign?

Thanks

Dan,

Google Ads API Forum Advisor Prod

unread,
Feb 7, 2020, 12:15:56 PM2/7/20
to d...@greatthings.agency, adwor...@googlegroups.com

Hi Dan,

Thank you for the update. You will receive the mobile_app_category_constants that are associated with each campaign (if there are any criterion ids associated with that campaign) using the second query. I also suggest adding “campaign_criterion.campaign” which will tell you which campaign the campaign criterion belongs to. Let me know if you have further questions.

Reply all
Reply to author
Forward
0 new messages