iOS Tutorial Facebook Mediation With Admob

Discussion in 'iOS Tutorials' started by tufanv, Mar 28, 2017.

  1. tufanv

    tufanv Expert Licensed User

    Hello,

    With the great help from Erel, I want to post a very short and easy tutorial for showing facebook audience network ads on our iOS apps. This will be a short one as I described every step very detailed with android tutorial.

    First things to do are do the procedures 3,4 and 5 as described in android tutorial for the iOS. You choose ios platform instead of android. Create ad units for ios and edit your mediation settings on admob.:
    https://www.b4x.com/android/forum/threads/admob-mediation-with-facebook.77605/

    After you complete those steps add these lines to b4i region attributes:

    Code:
    #AdditionalLib: FacebookAdapter.framework
    #AdditionalLib: FBAudienceNetwork.framework
    (The files are added to hosted builder thanks to Erel) ,
    -------
    If you are using local mac you can find the FAN framework from facebook sdk and adapter from here:
    https://bintray.com/google/mobile-ads-adapters-ios/FacebookAdapter#read

    Just navigate to files and download the zip. Extract the framework.
    -------

    That's all. Facebook ads will start to show after some hours. If you don't have any approved reviews before you have to send the app to review as described in android tutorial sections 7 and 8.

    Minimum build version must be 6.0 for FAN ads.

    Thanks to Erel for all his help and uploading the files to hosted builder.

    Regards
     
    Pendrush and Erel like this.
  2. Erel

    Erel Administrator Staff Member Licensed User

    Thank you tufanv!

    A tip about frameworks: don't unzip the iOS frameworks on a PC. This causes the frameworks to be corrupted. I think that it is related to symbolic links that are inside the frameworks.

    If you want to upload a framework to the hosted builders then you need to send me a zip file (other formats will not work) created on a Mac computer with the framework as a top folder in the zip file. There could be multiple frameworks in the same zip file.
    For example:

    [​IMG]
     
    tufanv likes this.
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice