Google Ads API - Device type query is returning confusing results

38 views
Skip to first unread message

Dylan McBurnett

unread,
Oct 2, 2019, 6:48:08 PM10/2/19
to AdWords API and Google Ads API Forum
Hello,

I have a query to get Device type for 4 campaigns in a single Account:

query_device = ( 'SELECT campaign.id, campaign.name, '
'segments.device '
'FROM campaign WHERE campaign.id =%s ') % account_campaign


When searching in UI for Device I can see all 4 Campaigns have devices 'Computers', 'Mobile phones', 'Tablets'. 

However my 'query_device' return MOBILE, DESKTOP, and TABLET for three of the Campaigns and returns nothing and no rows of data for the fourth campaign.

The exact same list of campaign Ids are returning the correct data for other values and the devices are all set at the Campaign Level.

Is there another way to query the Devices used in a Campaign?

I'm missing something but I don't know what..

Best,
Dylan

Google Ads API Forum Advisor Prod

unread,
Oct 3, 2019, 1:28:21 PM10/3/19
to dylan.m...@mightyhive.com, adwor...@googlegroups.com
Hello Dylan, 

A device criteria for each device implicitly exists in each campaign, so you won't be able to ADD or REMOVE those criteria. Could you please share the request and response logs, so I can take a closer look? You can share the details privately via Reply privately to author option. 

Regards,
Bharani, Google Ads API Team

ref:_00D1U1174p._5001UKLysf:ref

Dylan McBurnett

unread,
Oct 4, 2019, 4:58:17 PM10/4/19
to AdWords API and Google Ads API Forum
Thanks for the response (private)!

If there are no Impressions for a campaign(as in this case) then there will be no impressions across the devices - So a query of Devices will return empty for that campaign.

Google Ads API Forum Advisor Prod

unread,
Oct 7, 2019, 9:22:28 AM10/7/19
to dylan.m...@mightyhive.com, adwor...@googlegroups.com

Hi Dylan,

Yes that's correct.

Thanks!
Ben, Google Ads API Team



ref:_00D1U1174p._5001UKLysf:ref
Reply all
Reply to author
Forward
0 new messages