Skip to content

Unity Plugin - Initialization modes

The SDK has three init methods. Use exactly one.

Info

Contact Aurion11 to receive your host URLs and, if you use static or hybrid initialization, your configuration JSON.

Remote

The standard setup: the SDK fetches its config from your host URLs. See Installation.

A11MediationSDK.Initialize("YOUR_APP_KEY", new[] { "https://your-host-url.com" });

Static

Use when your app has no backend config endpoint, or you don't expect config changes from the backend. The SDK uses only the JSON config you pass and never fetches a remote config.

A11MediationSDK.InitializeWithStaticConfig("YOUR_APP_KEY", "STATIC_JSON_CONFIG");

Hybrid

Use when you want ads available immediately, without waiting for a config fetch. The SDK starts from the seed config you pass, or from a previously cached remote config if there is one, and switches to the remote config from hostUrls once it's fetched.

A11MediationSDK.InitializeWithSeedConfig("YOUR_APP_KEY", "STATIC_JSON_CONFIG", new[] { "https://your-host-url.com" });

Caution

InitializeWithSeedConfig works on Android only. On iOS the plugin ignores the seed config and initializes from hostUrls alone, like Initialize.

Host URLs

The SDK uses only the host of each URL and ignores any path. If you pass several host URLs, the SDK tries them in order and uses the first one that responds.

Caution

Host URLs must use the HTTPS scheme, for example https://your-host-url.com.