Why geographic_view returns strange ad_group id?

46 views
Skip to first unread message

Dong Chen

unread,
Apr 22, 2020, 11:26:38 AM4/22/20
to AdWords API and Google Ads API Forum
Hi team,

I am querying geographic_view with ad_group. But the ad_group id and names in the response are not the exact one in AWFE. Could you help me investigate?

query SQL
String geoViewSql = "SELECT campaign.id, campaign.name, ad_group.id, ad_group.name, geographic_view.country_criterion_id, "+
"metrics.cost_micros, metrics.clicks, metrics.impressions "+
"FROM geographic_view where segments.date = '2020-04-20' "+
"ORDER BY campaign.id"

System.out.printf(

"----------------- \n"
+ "campaign id '%d'\n"
+ "campaign name '%s'\n"
+ "ad group id '%d'\n"
+ "ad group name '%s'\n"
+ "country code '%s'\n"
+ "cost '%d'\n"
+ "clicks '%s'\n"
+ "impressions '%s'\n"
,
campaign.getId().getValue(),
campaign.getName().getValue(),
adGroup.getId().getValue(),
adGroup.getName().getValue(),
geoMap.get(googleAdsRow.getGeographicView().getCountryCriterionId().getValue()),
googleAdsRow.getMetrics().getCostMicros().getValue(),
googleAdsRow.getMetrics().getClicks().getValue(),
googleAdsRow.getMetrics().getImpressions().getValue());

Response: 
Take an example
ad group id '77484492406'
ad group name 'feed_walnut_broads_cadmus:0:broad:76677779697'

In fact, the 76677779697 part in the ad group name is what I can find in AWFE, not 77484492406.

Best,
Dong





Google Ads API Forum Advisor Prod

unread,
Apr 22, 2020, 1:39:33 PM4/22/20
to adwor...@googlegroups.com
Hi Dong,

Thank you for reaching out to us. I'll take a look at this internally with my team and get back to you as soon as possible.

Thank you,
Bryan, Google Ads API Team

ref:_00D1U1174p._5001UaRurZ:ref

Google Ads API Forum Advisor Prod

unread,
Apr 22, 2020, 5:37:13 PM4/22/20
to adwor...@googlegroups.com
Greetings Dong,

With App Campaigns, I believe there are hidden ad group in our system to do some campaign management behind the scenes. I don't believe you should be seeing those. 

In your case, I believe the ad group you are seeing 76677779697 is the same as 77484492406 that you can see in the UI. I've file an issue on this so we can get it fixed. Thank you so much for brining this to light!

Best,
Nadine Wang, Google Ads API Team 

ref:_00D1U1174p._5001UaRurZ:ref
Reply all
Reply to author
Forward
Message has been deleted
0 new messages