MoPub iOS SDK Monetization+Cross Mediation

Introduction


Our SDK has embedded all needed classes to be called from MoPub. To use our SDK from MoPub, you need to attach our SDK to your project.

iOS 9 Considerations


App Transport Security

So that our application is not affected by this new measure that Apple has taken we have to add in our file "Info.plist" the following lines:

IOS_9_ios_ats.png

If you want to see more documentation, App Transport Security (ATS).

Bitcode in Xcode 7

The Google Mobile Ads SDK does not yet support enabling bitcode. You will need to disable this setting in your app by navigating to the target or project Build Settings. Under the Build Options section, set Enable Bitcode to No.

IOS_9_ios_bitcode.png

If you want to see more documentation, Bitcode.

Tappx SDK integration


Drag the "TappxFramework.framework" and "OMSDK_Tappx.xcframework" files inside the Xcode Project.
Tappx_sdk_integration_1.png

Once done you will see the option screen where you must check the same options as in the following screen:
Tappx_sdk_integration_2.png

When you have the SDK in your project, you must change in "Frameworks, Libraries, and Embedded Content" the "embed" from the OMSDK SDK:
Tappx_sdk_integration_1.png

Add the -ObjC linker flag to Other Linker Flags in your project's build settings:

Tappx_sdk_integration_1.png

Within the "AdNetworkSupport" folder, you must create a new folder named "Tappx" and in there you must save the classes from the SDK. The end result should look like:

Google Admob integration


We are using a Google Adserver and for that reason the integration of their SDK is a must. If you have it integrated yet in your project, just skip this step.

CocoaPods

1. Download the example from GoogleServices-Info.plist.

2. Modify the BUNDLE_ID property with the bundle or your app and delete the two Admob test keys.

3. Save the file with the same name and in the same path where is located your project.

4. Create a file with name Podfile in the same directory where is the .xcworkspace file (usually in the root of your project) with the following lines:

source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '7.0'
pod 'Firebase/Core'
pod 'Firebase/AdMob'

5. And finally from the terminal console, access the directory where is the Podfile and execute the instruction: pod install.

pod install

Note: If you need more details about how to integrate it, you can check this link : https://firebase.google.com/docs/admob/ios/quick-start

Manual

1. Download the SDK from this link: Google Ads.
2. Drag the framework asa you did it previously with Tappx framework.
google_admob_integration_1.png
3. In the next screen you need to set the options as in this image:
Tappx_sdk_integration_2.png

SDK Mediation


To add tappx as your new Ad Network in your MoPub dashboard, you need to access to Networks section and click over “Add a Network” button:

Then you have to select “Custom Native Network”

And finally, you only have to complete request information (you must to fill “Custom Event Class” and “Custom Event Class Data”):

  • Custom Event Class:
    • For Banner: TappxMediationMoPubBannerAd
    • For Interstitial: TappxMediationMoPubInterstitialAd
  • Custom Event Class Data:
    • For Banner: {"tappx_key":"Your tappx key", "adWidth":"Your ad width","adHeight":" Your ad height"}
    • For Interstitial: {"tappx_key":" Your tappx key"}

** tappx_key format for iOS: Pub-xxxx-iOS-xxxx


Tappx © 2020