admob icon indicating copy to clipboard operation
admob copied to clipboard

iOS: Mediation with Meta Audience Network (Facebook)

Open Mobiletainment opened this issue 2 years ago • 0 comments

I did set up mediation in my Admob settings and added Meta as a bidding source. This is fairly straightforward if you follow this article on Admob: Integrate Meta Audience Network with bidding.

I also added the GoogleMobileAdsMediationFacebook Facebook adapter for iOS and it appears fine in the Ad inspector when I run my app.

Reading further in the article, under Additional Code Required: Advertising tracking enabled it says the following:

If you are building for iOS 14 or later, Meta Audience Network requires that you explicitly set their Advertising Tracking Enabled flag using the following code:

// Set the flag as true
FBAdSettings.setAdvertiserTrackingEnabled(true)```

Key Point: You need to set this flag prior to initializing the Mobile Ads SDK.

Can anyone guide me on how I can enable this exactly? I don't even know where to put it.

Thanks for the help and most of all, thanks for the great plugin! 👏

Mobiletainment avatar Dec 10 '22 21:12 Mobiletainment