Skip to content

Commit 66afc6b

Browse files
committed
Address comments
1 parent 3bcc832 commit 66afc6b

1 file changed

Lines changed: 7 additions & 5 deletions

File tree

examples/advanced_operations/add_responsive_search_ad_full.py

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ def create_ad_text_asset(client, text, pinned_field=None):
183183
pinned_field: to pin a text asset so it always shows in the ad.
184184
185185
Returns:
186-
An ad text asset.
186+
An AdTextAsset.
187187
"""
188188
ad_text_asset = client.get_type("AdTextAsset")
189189
ad_text_asset.text = text
@@ -192,14 +192,14 @@ def create_ad_text_asset(client, text, pinned_field=None):
192192
return ad_text_asset
193193

194194

195-
def create_ad_text_asset_with_customizer(client, customizer_attribute_rname):
195+
def create_ad_text_asset_with_customizer(client, customizer_attribute_resource_name):
196196
"""Create an AdTextAsset.
197197
Args:
198198
client: an initialized GoogleAdsClient instance.
199-
customizer_attribute_rname: The resource name of the customizer attribute.
199+
customizer_attribute_resource_name: The resource name of the customizer attribute.
200200
201201
Returns:
202-
An ad text asset.
202+
An AdTextAsset.
203203
"""
204204
ad_text_asset = client.get_type("AdTextAsset")
205205

@@ -208,7 +208,9 @@ def create_ad_text_asset_with_customizer(client, customizer_attribute_rname):
208208
# for details about the placeholder format. The ad customizer replaces the
209209
# placeholder with the value we previously created and linked to the
210210
# customer using CustomerCustomizer.
211-
ad_text_asset.text = f"Just {{CUSTOMIZER.{customizer_attribute_rname}:10USD}}"
211+
ad_text_asset.text = (
212+
f"Just {{CUSTOMIZER.{customizer_attribute_resource_name}:10USD}}"
213+
)
212214

213215
return ad_text_asset
214216

0 commit comments

Comments
 (0)