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%
A utility module for managing API client connections with configurable transport mechanisms and endpoint settings.
Create a function that initializes and returns a properly configured API client instance with appropriate transport settings.
Implement support for creating asynchronous client instances for concurrent operations.
Enable configuration of regional API endpoints for client connections.
@generates
from typing import Optional, Literal
TransportType = Literal["grpc", "grpc_asyncio", "rest"]
def create_client(
merchant_id: str,
transport: TransportType = "grpc",
endpoint: Optional[str] = None
):
"""
Creates and returns a synchronous API client.
Args:
merchant_id: The merchant account identifier
transport: Transport mechanism to use (grpc, grpc_asyncio, or rest)
endpoint: Optional custom API endpoint URL
Returns:
Configured client instance
"""
pass
def create_async_client(
merchant_id: str,
transport: TransportType = "grpc_asyncio",
endpoint: Optional[str] = None
):
"""
Creates and returns an asynchronous API client.
Args:
merchant_id: The merchant account identifier
transport: Transport mechanism to use (grpc_asyncio recommended)
endpoint: Optional custom API endpoint URL
Returns:
Configured async client instance
"""
passProvides the Google Shopping Merchant Conversions API client library for managing conversion sources.
@satisfied-by