L’initialisation explicite du SDK Audience Network pour iOS est requise.
Après avoir configuré le SDK, vous devez l’initialiser.
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
FBAudienceNetworkAds.initialize(with: nil, completionHandler: nil)
// Pass user's consent after acquiring it. For sample app purposes, this is set to YES.
FBAdSettings.setAdvertiserTrackingEnabled(true)
// Your app initialization logic goes here...
return true
}