@@ -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