Location targeting: how to change to -> Presence: People in or regularly in your targeted locations

237 views
Skip to first unread message

Monty808

unread,
Feb 26, 2021, 11:19:27 PM2/26/21
to AdWords API and Google Ads API Forum
Hi,

When I create a campaign I use the below to set my target to the US and language to English.  But I also want to use what in the UI is called Presence: People in or regularly in your targeted locations in the Location options in settings.  How do I do with the python API?

Thanks

united_states = {

              'xsi_type': 'Location',

              'id': '2840'

          }

        

        english = {

              'xsi_type': 'Language',

              'id': '1000'

          }

        

        criteria = [united_states, english]

    

        operations = []

        for criterion in criteria:

            operations.append({

            'operator': 'ADD',

            'operand': {

                'campaignId': campaign_id,

                'criterion': criterion

            }

        })



Google Ads API Forum Advisor Prod

unread,
Mar 1, 2021, 10:19:27 PM3/1/21
to davidmo...@gmail.com, adwor...@googlegroups.com
Hi,

Thank you for reaching out to our API support team.

To better assist you, could you share the complete Google Ads UI view screenshot you are referring to? You may send the requested details using the Reply privately to author option.

As for additional settings in a campaign, what is available via the CampaignService is the option to specify a geo_target_type_setting, where you can indicate a PositiveGeoTargetType or a NegativeGeoTargetType

Best regards,

Google Logo
Peter Laurence Napa Oliquino
Google Ads API Team
 


ref:_00D1U1174p._5004Q2DJWxu:ref

Monty808

unread,
Mar 2, 2021, 2:57:24 AM3/2/21
to AdWords API and Google Ads API Forum
Hi

Thanks... attached is the radio control that I want to change to using the api

Adwords.png

Google Ads API Forum Advisor Prod

unread,
Mar 2, 2021, 2:32:17 PM3/2/21
to davidmo...@gmail.com, adwor...@googlegroups.com
Hello,

You will need to set the GeoTargetTypeSetting which is found in campaign objects.

Cheers,
Anthony

Google Logo
Anthony
Google Ads API Team
 


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