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 robust service that manages conversion sources with comprehensive error handling and automatic retry capabilities to ensure reliable operations even when the API experiences transient failures.
Your service must handle conversion source creation with the following error resilience features:
Implement a function create_conversion_source_with_retry that attempts to create a conversion source and automatically retries on failures:
The function must differentiate between error types and handle them appropriately:
@generates
from typing import Dict, Any, Optional
from google.shopping.merchant_conversions_v1beta import ConversionSource
def create_conversion_source_with_retry(
merchant_id: str,
conversion_source_data: Dict[str, Any],
max_retries: int = 3,
initial_delay: float = 1.0
) -> ConversionSource:
"""
Create a conversion source with automatic retry on transient failures.
Args:
merchant_id: The merchant account ID
conversion_source_data: Configuration for the conversion source
max_retries: Maximum number of retry attempts (default: 3)
initial_delay: Initial delay in seconds before first retry (default: 1.0)
Returns:
The created ConversionSource object
Raises:
Exception: After all retries are exhausted or on permanent errors
"""
passProvides the API client for managing conversion sources in Google Merchant Center.
@satisfied-by