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 service to initialize conversion tracking for an e-commerce merchant. The service should create conversion tracking sources to measure advertising effectiveness across different channels.
Your service must support creating two types of conversion sources:
For both types:
For direct tracking sources, also support:
def create_analytics_source(merchant_id: str, display_name: str, property_id: str) -> dict:
"""
Create a conversion source linked to an analytics property.
Args:
merchant_id: The merchant account identifier
display_name: Human-readable name for the source
property_id: The analytics property identifier
Returns:
dict with keys: 'source_id', 'state', 'display_name'
"""
pass
def create_direct_source(
merchant_id: str,
display_name: str,
currency_code: str,
attribution_model: str = "last_click"
) -> dict:
"""
Create a direct conversion tracking source.
Args:
merchant_id: The merchant account identifier
display_name: Human-readable name for the source
currency_code: 3-letter ISO currency code (e.g., 'USD', 'EUR')
attribution_model: Attribution model ('last_click', 'data_driven', or 'first_click')
Returns:
dict with keys: 'source_id', 'state', 'display_name', 'currency_code'
"""
pass@generates
Provides the API client for managing conversion sources in Google Merchant Center.
@satisfied-by