Is there a way to set the location to get only the DMA regions through API?

265 views
Skip to first unread message

Jonathan Moura

unread,
Apr 1, 2024, 3:20:48 PM4/1/24
to Google Ads API and AdWords API Forum
Hello,

Im using the python library to create the campaign in google ads, we are currently setting the location like this:

geo_target_constant_service.geo_target_constant_path(country_location_id)
# add the radius location rule
campaign_criterion.proximity.address.country_code = self.country_code
campaign_criterion.proximity.address.city_name = self.city
campaign_criterion.proximity.radius = RADIUS

Is there a way or an  field to use only the DMA regions? 

Thanks, 
Jonathan

Google Ads API Forum Advisor

unread,
Apr 2, 2024, 1:15:52 PM4/2/24
to jonatha...@getitllc.com, adwor...@googlegroups.com
Hi Jonathan,

Thank you for reaching out to the Google Ads API support team. 

By reviewing your concern, I understand that you are creating the campaign in Google Ads using the python library. Kindly note that the Google Ads API doesn't provide a dedicated field to directly target DMA regions, you can achieve this functionality using the geo_target_constant field within the CampaignCriterion resource. For more information, refer to the Geo targets documentation and follow this sample code for Geo Targets. Additionally, I would recommend you to refer to the help center article for more information about target ads to geographic locations.

I hope this helps. Kindly get back to us if you have any further queries.
 
This message is in relation to case "ref:!00D1U01174p.!5004Q02s0OTU:ref" (ADR-00229483)

Thanks,
 
Google Logo Google Ads API Team


Reply all
Reply to author
Forward
0 new messages