Skip to content

Commit b2dec6e

Browse files
thinkjrsBenRKarl
authored andcommitted
update _LOCALE and _COUNTRY_CODE parameters to locale and country_code
1 parent b4321e8 commit b2dec6e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

examples/advanced_operations/add_responsive_search_ad_full.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -380,8 +380,8 @@ def add_geo_targeting(client, customer_id, campaign_resource_name):
380380
# GeoTargetConstantService.suggest_geo_target_constants() and directly
381381
# apply GeoTargetConstant.resource_name.
382382
gtc_request = client.get_type("SuggestGeoTargetConstantsRequest")
383-
gtc_request._LOCALE = _LOCALE
384-
gtc_request._COUNTRY_CODE = _COUNTRY_CODE
383+
gtc_request.locale = _LOCALE
384+
gtc_request.country_code = _COUNTRY_CODE
385385

386386
# The location names to get suggested geo target constants.
387387
gtc_request.location_names.names.extend(
@@ -396,10 +396,10 @@ def add_geo_targeting(client, customer_id, campaign_resource_name):
396396
print(
397397
f"{geo_target_constant.resource_name} "
398398
f"({geo_target_constant.name}, "
399-
f"{geo_target_constant._COUNTRY_CODE}, "
399+
f"{geo_target_constant.country_code}, "
400400
f"{geo_target_constant.target_type}, "
401401
f"{geo_target_constant.status.name}) "
402-
f"is found in _LOCALE ({suggestion._LOCALE}) "
402+
f"is found in _LOCALE ({suggestion.locale}) "
403403
f"with reach ({suggestion.reach}) "
404404
f"from search term ({suggestion.search_term})."
405405
)

0 commit comments

Comments
 (0)