tessl install tessl/pypi-google-shopping-merchant-conversions@1.0.0Google Shopping Merchant Conversions API client library for managing conversion sources and tracking.
Agent Success
Agent success rate when using this tile
82%
Improvement
Agent success rate improvement when using this tile compared to baseline
1.17x
Baseline
Agent success rate without this tile
70%
Build a configuration manager that updates specific properties of Merchant Center conversion sources without affecting other fields.
Your task is to implement a system that can selectively update conversion source properties. The system should:
@generates
def update_display_name(client, conversion_source_name: str, new_display_name: str):
"""
Update only the display name of a conversion source.
Args:
client: The ConversionSourcesServiceClient instance
conversion_source_name: Full resource name of the conversion source
new_display_name: The new display name to set
Returns:
The updated ConversionSource object
"""
pass
def update_currency_code(client, conversion_source_name: str, new_currency_code: str):
"""
Update only the currency code of a conversion source.
Args:
client: The ConversionSourcesServiceClient instance
conversion_source_name: Full resource name of the conversion source
new_currency_code: The new currency code to set
Returns:
The updated ConversionSource object
"""
pass
def update_display_name_and_currency(client, conversion_source_name: str,
new_display_name: str, new_currency_code: str):
"""
Update both display name and currency code of a conversion source.
Args:
client: The ConversionSourcesServiceClient instance
conversion_source_name: Full resource name of the conversion source
new_display_name: The new display name to set
new_currency_code: The new currency code to set
Returns:
The updated ConversionSource object
"""
passProvides the API client for managing conversion sources in Google Merchant Center.