Google Shopping Merchant Conversions API client library for managing conversion sources and tracking.
82
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
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