Can't get Campaign Audience bids through API.

59 views
Skip to first unread message

Dariusz Ciemięga

unread,
Sep 17, 2019, 7:06:47 PM9/17/19
to AdWords API and Google Ads API Forum
On a test account my campaign has two audiences with set bids

Screenshot 2019-09-17 at 14.41.51.png


but I can't get them with GoogleAdsService and query SELECT campaign_criterion.type, campaign_criterion.bid_modifier FROM campaign_criterion .
I receive only types: LANGUAGE, LOCATION, DEVICE and AD_SCHEDULE.
Can You help me?

Google Ads API Forum Advisor Prod

unread,
Sep 18, 2019, 11:02:38 AM9/18/19
to dariusz....@netguru.com, adwor...@googlegroups.com
Hello Dariusz,

Could you please use campaign_audience_view instead to fetch audiences targeting to your campaign? Please give it a try and let me know if you have any further questions.

Regards,
Sai Teja, Google Ads API Team

ref:_00D1U1174p._5001UHH8G4:ref

Dariusz Ciemięga

unread,
Sep 18, 2019, 12:33:18 PM9/18/19
to AdWords API and Google Ads API Forum
Thanks for the quick replay. I tried 
 SELECT campaign_criterion.type, campaign_criterion.bid_modifier, campaign_criterion.campaign, campaign_criterion.status FROM campaign_audience_view
but I got no results.

Google Ads API Forum Advisor Prod

unread,
Sep 18, 2019, 2:11:04 PM9/18/19
to dariusz....@netguru.com, adwor...@googlegroups.com
Hello Dariusz,

Could you please add the field campaign_audience_view.resource_name in your GAQL query and try? 

Dariusz Ciemięga

unread,
Sep 18, 2019, 6:29:57 PM9/18/19
to AdWords API and Google Ads API Forum
SELECT campaign_criterion.type, campaign_criterion.bid_modifier, campaign_criterion.campaign, campaign_criterion.status, campaign_audience_view.resource_name FROM campaign_audience_view

also empty :/

Google Ads API Forum Advisor Prod

unread,
Sep 19, 2019, 9:39:20 AM9/19/19
to dariusz....@netguru.com, adwor...@googlegroups.com
Hello Dariusz,

I have used the same search query on my test account and I was able to pull all the details. If you are not seeing any data it might be that the account you are using might not have data. To check this you could share the customer id of the account using reply privately to the author option.
Reply all
Reply to author
Forward
0 new messages