Wait for SDK config (Init sync)
SDK 4.2.0 or laterIf you are using Taboola iOS SDK 4.2.0 or later, you must enable Init Sync for your integration to operate correctly.
Overview
Init Sync ensures the Taboola SDK fetches its remote configuration before making the first content request. This guarantees that server-side settings — including placement tuning, kill switches, and feature flags — are active from the very first impression.
First steps
Complete the First Steps, then continue below.
Enable Init Sync
Add your Publisher ID to your app's Info.plist:
Init Sync is enabled automatically when a Publisher ID is present in your Info.plist.
<key>TaboolaSdkPublisherName</key>
<string>publisher-id</string>Replace publisher-id with the Publisher ID provided by Taboola.
Publisher ID
publisher-id- a unique, machine-readable string (without spaces), as provided by Taboola.E.g.
"USER.PUBLISHERID"
Opting outIf you need to disable Init Sync while still providing a Publisher ID, add the following entry to your
Info.plist:<key>TaboolaSdkWaitForConfig</key> <false/>
Log Level
You can set the initial log level via Info.plist so that SDK log messages use the desired print level from the very start — before [Taboola setLogLevel:] is called. This is helpful for debugging the Init Sync flow itself.
<key>TaboolaSdkLogLevel</key>
<integer>1</integer>| Value | Level |
|---|---|
0 | Verbose |
1 | Debug |
2 | Info |
3 | Warning |
4 | Error |
This is optional. If omitted, the SDK defaults toVerbose. You can still change the log level at any time using[Taboola setLogLevel:].
Reference
| Info.plist Key | Required | Default | Description |
|---|---|---|---|
TaboolaSdkPublisherName | Yes | nil (empty) | Your Taboola Publisher ID. Setting this enables Init Sync. |
TaboolaSdkWaitForConfig | No | true | Set to false to disable Init Sync. |
TaboolaSdkLogLevel | No | 0 (Verbose) | Initial log level applied before [Taboola setLogLevel:] is called. |
Extra propertiesIf you set extra properties at the global, page, or unit level, they are queued automatically and applied in the correct order once the configuration is ready. No changes to your existing extra properties calls are needed.
Updated 1 day ago
