Location_view and campaign_criterion don't show GEO TARGETS

67 views
Skip to first unread message

Data Team

unread,
Feb 9, 2023, 11:13:30 PM2/9/23
to Google Ads API and AdWords API Forum
Dear team,

I can't retrieve geo targets, particularly:
  • campaign_criterion.proximity.geo_point.latitude_in_micro_degrees
  • campaign_criterion.proximity.geo_point.longitude_in_micro_degrees
  • campaign_criterion.proximity.radius,campaign_criterion.proximity.radius_units


I targeted a campaign for proximity to location and I can see the results in the GoogleAds platform. However, the queries are not returning values.

QUERY 1: LOCATION_VIEW

SELECT 
campaign_criterion.proximity.geo_point.latitude_in_micro_degrees,
campaign_criterion.proximity.geo_point.longitude_in_micro_degrees,
campaign_criterion.proximity.radius,campaign_criterion.proximity.radius_units,
campaign_criterion.resource_name,
campaign_criterion.status,
FROM 
location_view WHERE customer.id = <customer_id>

Result:
criterion_location: 0

QUERY 2:  campaign_criterion

It doesn't return all requested fields.

SELECT
campaign_criterion.campaign,
campaign_criterion.location.geo_target_constant,
campaign_criterion.proximity.geo_point.longitude_in_micro_degrees,
campaign_criterion.proximity.geo_point.latitude_in_micro_degrees,
campaign_criterion.proximity.radius,
campaign_criterion.negative 
FROM 
campaign_criterion 
WHERE campaign_criterion.campaign = 'customers/<customer_id>/campaigns/<campaign_id>'  AND 
campaign_criterion.type IN (LOCATION, PROXIMITY)

Result:

Request made: ClientCustomerId: <login_customer_id>, Host: googleads.googleapis.com, Method: /google.ads.googleads.v12.services.GoogleAdsService/SearchStream, RequestId: 2f18imiTy5ddprSPpJuXRA, IsFault: True, FaultMessage: Invalid customer ID <customer_id>

Could you please help me to solve this?

Thanks,
Claudia.

Google Ads API and AdWords API Forum

unread,
Feb 10, 2023, 1:20:39 PM2/10/23
to Google Ads API and AdWords API Forum
Re-posting the last inquiry (https://groups.google.com/g/adwords-api/c/ZJPeynGQ-xM) from the forum as it wasn't routed to our support queue.

Regards,
Carmela
Google Ads API Team

Google Ads API Forum Advisor

unread,
Feb 13, 2023, 1:52:12 AM2/13/23
to adwor...@googlegroups.com
Hi Claudia,

Thank you for reaching out to us.

Kindly note that the Google Ads API mirrors the Google Ads UI. Whatever data shows on Ads UI report, API should pull it the same. With this, could you please provide us with the following information below so that we can further check this and provide appropriate recommendations to you?:
  • Complete API logs (request and response with request-id) generated on your end
  • Entire UI screenshot without cropping where you can see the data you want to retrieve in the API
You may then send the requested information via the Reply privately to author option. If this option is not available, you may send the details directly to our googleadsa...@google.com alias instead.

Best regards,
Google Logo
Heidi
Google Ads API Team
 


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