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 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