Yes, I was indeed using Google Ads Editor. I had a look at the resources that you sent.
After some research, I learnt that I need to set a GeoTargetingType as per this page: https://developers.google.com/google-ads/api/reference/rpc/v6/GeoTargetingTypeEnum.GeoTargetingType There is a function that targets locations in this script: https://github.com/googleads/google-ads-python/blob/master/examples/targeting/add_campaign_targeting_criteria.py called ` create_location_op ` I was wondering how I could add a GeoTargetingType Enum by adding : geo_targeting_enum = client.get_type('GeoTargetingTypeEnum') into the function And then changing the targeting type to: geo_targeting_enum. LOCATION_OF_PRESENCE How do we change the GeoTargetingType? Because my understanding is that all we can change with the current function is the campaign_criterion.location.geo_target_constant which we then set equal to geo_target_constant_service.geo_target_constant_path(location_id) On Tue, Nov 10, 2020 at 6:58 AM Google Ads API Forum Advisor Prod < [email protected]> wrote: > Hi Casper, > > Thank you for reaching out. > > Could you confirm if you are indeed referring to the Google Ads Editor > <https://ads.google.com/home/tools/ads-editor/>? > > If yes, then unfortunately, our team is unfamiliar with the features from > the said Editor as it is already outside of our scope, and would not be > able to provide further comment as to its equivalent in the Google Ads API. > For the available location targeting features using the API, you may refer > to this guide > <https://developers.google.com/google-ads/api/docs/targeting/location-targeting?hl=en> > . > > You may also refer to this guide > <https://developers.google.com/google-ads/api/docs/targeting/criteria?hl=en> > for the different criteria you can use to either target or exclude. > > Best regards, > > [image: Google Logo] > Peter Laurence Napa Oliquino > Google Ads API Team > > > ref:_00D1U1174p._5004Q278Ebv:ref > -- *Casper Crause* *Cell: 072 475 8969* *Email: [email protected] <[email protected]>* -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Also find us on our blog: https://googleadsdeveloper.blogspot.com/ =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ You received this message because you are subscribed to the Google Groups "AdWords API and Google Ads API Forum" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/adwords-api?hl=en --- You received this message because you are subscribed to the Google Groups "AdWords API and Google Ads API Forum" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-api/CANM72%3Dz-TSehV521%2B9FxjkqoJxms0f33deCcmN-%2BN5nF99tpig%40mail.gmail.com.
