iOS

Including the X3M XMediator adapter for iOS into your app

Setup

Using Cocoapods, add the X3M MobileFuse adapter pod to your podfile as follows:

pod 'XMediatorMobileFuse'

The MobileFuse SDK will be automatically installed as a dependency when using CocoaPods or Swift Package Manager.

Initializing the MobileFuse extension

The MobileFuse adapter is initialized automatically as part of the X3M XMediator initialization process and does not require any additional configuration.

Testing the integration

Your MobileFuse integration with X3M XMediator can be tested by enabling test mode in the X3M XMediator SDK.

import XMediator

// Initialize
let initSettings = InitSettings(test: shouldRequestTestAds)
XMediatorAds.startWith(appKey: "APP_KEY_HERE",
                       initSettings: initSettings) { result in
    // ...
}
@import XMediatorObjC;

X3MInitSettings *initSettings = [X3MInitSettings new];
initSettings.test = shouldRequestTestAds;

[X3MXMediatorAds startWithAppKey:@"APP_KEY_HERE"
                    initSettings:initSettings
                        callback:^(NSError * _Nullable error) {
    // ...
}];

X3M should always respond with a MobileFuse ad if the X3M test mode has been enabled and MobileFuse placements are requested. If you do not see a MobileFuse test ad, please contact your X3M account manager or MobileFuse account representative to verify that MobileFuse has been set up correctly.