“SDK not initialized” Error
Problem: CallingloadNativeAd before initSDK, or loading ads before initialization has completed.
Solution 1 — Use InitCallback
Initialize at startup and only load ads after initialization succeeds. This avoids callingloadNativeAd before the SDK is ready.
Solution 2 - Check before loading
Before ad loading, ensure the SDK is initialized and init if needed.Ads Not Loading
Checklist:- ✅ SDK initialized at app startup (AppDelegate or App init)
- ✅ Network connectivity available
- ✅ Debug mode enabled to see logs
Enable Debug Mode
Memory / Lifecycle
Problem: Using a callback that is deallocated before the callback runs (e.g. a cell that is reused). Solution: Retain the callback (e.g. in a dedicated object or via the view controller) untilonSuccess or onError is called. Avoid using self from a short-lived object (e.g. table view cell) as the callback without retaining it.
No Ads Returned
Possible causes:- No ads available for the given context
- Network issues
- Ad unit not configured
onError gracefully (e.g. hide ad space or show fallback). The SDK continues to function even when no ads are available.
