Authentication
The SDK requires an API key for all service calls. You may provide the key in one of two ways:
- As an environment variable managed by the host application
- During SDK initialization
Recommended Environment Variable Names
| Platform | Suggested Variable |
|---|---|
| Web / React / TypeScript | PRODUCT_ADS_API_KEY |
| React Native | PRODUCT_ADS_API_KEY |
| Swift | PRODUCT_ADS_API_KEY in app configuration or secrets management |
| Kotlin | PRODUCT_ADS_API_KEY in build config or secure config store |
Security Guidance
Do not hardcode production keys directly in source files.
- Use platform-appropriate secret injection mechanisms.
- Rotate API keys periodically.
- Restrict keys by environment, application, and allowed origins when supported.
- Separate API keys by environment and application surface.
Last updated on