From 66afc6ba0a88f4a16a69688a80c20ab4e617d8e5 Mon Sep 17 00:00:00 2001 From: Daniel Rodriguez Date: Mon, 18 Dec 2023 10:57:32 -0600 Subject: [PATCH] Address comments --- .../add_responsive_search_ad_full.py | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/examples/advanced_operations/add_responsive_search_ad_full.py b/examples/advanced_operations/add_responsive_search_ad_full.py index 9bb415b25..90cf5a668 100644 --- a/examples/advanced_operations/add_responsive_search_ad_full.py +++ b/examples/advanced_operations/add_responsive_search_ad_full.py @@ -183,7 +183,7 @@ def create_ad_text_asset(client, text, pinned_field=None): pinned_field: to pin a text asset so it always shows in the ad. Returns: - An ad text asset. + An AdTextAsset. """ ad_text_asset = client.get_type("AdTextAsset") ad_text_asset.text = text @@ -192,14 +192,14 @@ def create_ad_text_asset(client, text, pinned_field=None): return ad_text_asset -def create_ad_text_asset_with_customizer(client, customizer_attribute_rname): +def create_ad_text_asset_with_customizer(client, customizer_attribute_resource_name): """Create an AdTextAsset. Args: client: an initialized GoogleAdsClient instance. - customizer_attribute_rname: The resource name of the customizer attribute. + customizer_attribute_resource_name: The resource name of the customizer attribute. Returns: - An ad text asset. + An AdTextAsset. """ ad_text_asset = client.get_type("AdTextAsset") @@ -208,7 +208,9 @@ def create_ad_text_asset_with_customizer(client, customizer_attribute_rname): # for details about the placeholder format. The ad customizer replaces the # placeholder with the value we previously created and linked to the # customer using CustomerCustomizer. - ad_text_asset.text = f"Just {{CUSTOMIZER.{customizer_attribute_rname}:10USD}}" + ad_text_asset.text = ( + f"Just {{CUSTOMIZER.{customizer_attribute_resource_name}:10USD}}" + ) return ad_text_asset