Google Shopping Merchant Conversions API client library for managing conversion sources and tracking.
82
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.
Install with Tessl CLI
npx tessl i tessl/pypi-google-shopping-merchant-conversionsevals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10