Integration
In this article, you will learn how to integrate and initialize the Nimbus SDK into your mobile application. It will also explain how to turn test mode ON, which will allow you to test the integration
Build Setup
Swift Package Manager
In Xcode, install the
Nimbus iOS SDK
Swift Package by navigating to File > Add Packages...In the top right of the Package Search dialog enter
https://github.com/adsbynimbus/nimbus-ios-sdk.git
and select thenimbus-ios-sdk
in the search results.Add the
NimbusKit
package and any additional packages required for your integration.NimbusRenderStaticKit
is required for rendering static/html ads.NimbusRenderVideoKit
is required for rendering video/VAST ads.
(Optional)
NimbusFANKit
,NimbusRequestAPSKit
,NimbusUnityKit, and NimbusVungleKit
require frameworks that do not yet support Swift Package Manager; thenimbus-ios-sdk
provides targets for including these dependencies if not imported elsewhere in the application. If the dependencies are included via cocoapods, the librariesNimbusFANKit-WithoutFBAudienceNetwork,
NimbusRequestAPSKit-WithoutDTBiOSSDk,
NimbusUnityKit-WithoutUnityAds
, andNimbusVungleKit-WithoutVungleSDK
can be used instead.
Cocoapods
NimbusSDK
requires Cocoapods >= 1.10.0.
Add
NimbusSDK
pod to your Podfile.Include
NimbusRenderStaticKit
(required if displaying static interstitial/banner (HTML) ads) and/orNimbusRenderVideoKit
(required if displaying video (VAST) ads) as necessary.pod 'NimbusSDK', subspecs: [`NimbusKit`, `NimbusRenderStaticKit`, `NimbusRenderVideoKit`]
Run
pod install
Manual
Drag the following packages into your project:
NimbusCoreKit.xcframework
NimbusRequestKit.xcframework
NimbusRenderKit.xcframework
NimbusRenderStaticKit.xcframework
(required if displaying static interstitial/banner (HTML) ads)NimbusRenderVideoKit.xcframework
(required if displaying video (VAST) ads)NimbusKit.xcframework
OMSDK_Adsbynimbus.xcframework
You can add these frameworks to your main app target by including it in “Frameworks, Libraries, and Embedded Content”. Please make sure to select “Embed & Sign” for these frameworks.
Additional setup if displaying video ads
Download and include IMA SDK if your app is going to display video ads.
Currently supported IMA SDK version is 3.13.0 but other versions may work.
Initializing Nimbus SDK
After completing the steps above, you will be able to start requesting and rendering ads into your app.
Test Mode
Enable test mode to start seeing ads right away. This is required for a first time integration.
Test mode can be turned off when you are ready to test in your production environment.
How to Show an Ad
For examples of how to show ads please check out the rendering section of our documentation.
Last updated