Google Shopping Merchant Conversions API client library for managing conversion sources and tracking.
82
{
"context": "This evaluation assesses how effectively the engineer uses the google-shopping-merchant-conversions package to implement robust error handling and retry logic for conversion source creation. The focus is on proper use of the API client, exception handling for Google Cloud API errors, and implementing retry patterns that work with the package's error types.",
"type": "weighted_checklist",
"checklist": [
{
"name": "Client Initialization",
"description": "Correctly initializes ConversionSourcesServiceClient or ConversionSourcesServiceAsyncClient from google.shopping.merchant_conversions_v1beta package",
"max_score": 15
},
{
"name": "API Method Usage",
"description": "Uses the create_conversion_source() method with proper request construction including merchant account ID and conversion source configuration",
"max_score": 20
},
{
"name": "Exception Handling",
"description": "Catches and handles Google API exceptions (google.api_core.exceptions or grpc exceptions) to classify errors as transient or permanent",
"max_score": 25
},
{
"name": "Retry Logic",
"description": "Implements retry loop that attempts the API call multiple times based on max_retries parameter and only retries on transient errors",
"max_score": 20
},
{
"name": "Exponential Backoff",
"description": "Implements exponential backoff between retry attempts using time.sleep() with delays that double each iteration (1s, 2s, 4s, etc.) based on initial_delay parameter",
"max_score": 15
},
{
"name": "Return Value",
"description": "Returns the ConversionSource object from the successful API response",
"max_score": 5
}
]
}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