Google Shopping Merchant Conversions API client library for managing conversion sources and tracking.
82
Build a tool that updates configuration settings for existing Merchant Center conversion tracking destinations. The tool must support selective field updates using field masks to modify only specified properties while leaving others unchanged.
@generates
def update_conversion_source(
merchant_id: str,
conversion_source_id: str,
display_name: str = None,
currency_code: str = None,
attribution_model: str = None
):
"""
Update specific fields of a Merchant Center destination conversion source.
Args:
merchant_id: The merchant account ID (e.g., "12345")
conversion_source_id: The conversion source identifier (e.g., "conv_001")
display_name: Optional new display name for the conversion source
currency_code: Optional new currency code (e.g., "USD", "EUR")
attribution_model: Optional new attribution model type (e.g., "LINEAR", "LAST_CLICK")
Returns:
Dictionary containing the updated conversion source with keys:
- 'name': Full resource name
- 'display_name': Updated display name
- 'currency_code': Updated currency code
- 'attribution_model': Updated attribution model
Raises:
ValueError: If no fields are specified for update
"""
passProvides conversion source management functionality for Google Merchant Center.
@satisfied-by
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