Skip to Content
Getting StartedAuthentication

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
PlatformSuggested Variable
Web / React / TypeScriptPRODUCT_ADS_API_KEY
React NativePRODUCT_ADS_API_KEY
SwiftPRODUCT_ADS_API_KEY in app configuration or secrets management
KotlinPRODUCT_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