fbsamples / audience-network

Open source projects to demonstrate SDK and sample code usages and integration, and to collaborate and support peers in this community.
https://developers.facebook.com/docs/audience-network
Other
318 stars 370 forks source link

Advanced Bidding With MoPub #146

Closed billyking991 closed 3 years ago

billyking991 commented 3 years ago

I cannot proper documentation on how to initialize Facebook Audience Network with MoPub for Advanced Bidding. I know you have to initialize FAN prior to initializing MoPub, but I can't find a code sample showing how to do it with either:

  1. initializeWithSettings (How do I set up FBAdInitSettings?) or
  2. initWithPlacementIDs (What is the correct String for mediationService using MoPub?)

Can you please supply some Swift code detailing the proper way to do this?

Thank you for your assistance with this matter.

onur-simsek commented 3 years ago

Hi,

Both of the methods (and more) are called by the 'adapter'. List of MoPub adapters for various Ad networks can be seen at the https://developers.mopub.com/publishers/mediation/integrate/ page.

Following instructions on https://developers.mopub.com/publishers/mediation/networks/facebook/ should be sufficient for successful initialization.

SodaSurfer commented 3 years ago

@onur-simsek I'm sorry but your answer isn't satisfying. in the page you mentioned: https://developers.mopub.com/publishers/mediation/integrate/ there is no mentioning of the string that we need to pass when initializing the FBAdInitSettings object (what is the exact string we need to pass as "mediationService" when working with Mopub?)

and the instructions in https://developers.mopub.com/publishers/mediation/networks/facebook/ are very unclear, therefore we indeed really need an example for a correct implementation, because currently it just doesn't work (well, at least for me, I can't get the integration for Mopub and Facebook bidding to work unfortunately...)

thanks!