InMobi

In this article, you will learn how to use Nimbus to request and render ads using the InMobi Ads SDK.

How it works

The SDK provides a helper method that will inject an InMobi bidding token into the outbound request to Nimbus when using the NimbusAdManager. Adding an InMobi placement ID to the Nimbus request will signal to InMobi it can bid on the upcoming ad opportunity and render the bid using the InMobi Ad SDK if it wins.

Prerequisites

  • Nimbus SDK 2.31.0 or higher

  • iOS Build Configuration meets the following requirements

    • Use Xcode 16 or higher

    • Supports iOS 13 and up

  • Completed the InMobi app setup and obtained a unique InMobi Account ID.

  • InMobi Demand setup completed in Nimbus with newly created InMobi Placement IDs. A unique placement ID must be provided each of the following ad types

    • Banner

    • Interstitial

    • Rewarded

    • InMobi Native ads are currently not supported

Setup

Add the NimbusInMobiKit to your build; the InMobiSDK will be automatically included.

chevron-rightCocoaPodshashtag
circle-info

The minimum required InMobi SDK version for Cocoapods is 10.8

chevron-rightSwift Package Managerhashtag

Check out our sample apparrow-up-right integrating InMobi using UIKit & Swift Package Manager.

circle-info

The minimum required InMobi SDK version for Swift Package Manager is 10.8.6

Add the NimbusInMobiAdRenderer

Initialize the InMobi SDK

Initialize the InMobi SDK by setting the Account ID obtained from the InMobi Dashboard on the IMSdk class.

circle-info

If the InMobi SDK is initialized elsewhere in code this step can be skipped.

Requesting InMobi Bids

To include InMobi in the NimbusRequest, call the withInMobi helper method and pass in the corresponding ad unit ID for the type of ad being requested.

circle-exclamation

For NimbusRequests that are rendered inline with NimbusAdManager.showAd or via manual rendering, call NimbusRequest.withInMobi(placementId:)

Interstitial

For interstitial NimbusRequests loaded with NimbusAdManager.showBlockingAd, call NimbusRequest.withInMobi(placementId:)

circle-info

Changing the value of closeButtonDelay when calling showBlockingAd has no effect on InMobi interstitial ads as they're rendered by InMobi SDK.

Rewarded

circle-info

InMobi Rewarded ads will play to completion before they can be dismissed; changing the value of closeButtonDelay when calling showRewardedAd will have no effect.

Native

circle-exclamation

Troubleshooting

A successful integration with InMobi will render any number of creatives that do not look like Nimbus test ads. If you do not see InMobi ads rendering, verify the following before proceeding further.

  • The NimbusRequest has a matching withInMobi call with the correct Placement IDs used for Nimbus

  • InMobi renderer is installed as shown abovearrow-up-right.

  • Nimbus test mode is enabled in the SDK

  • Other SDK demand partners are temporarily disabled

  • Confirm with your Nimbus Account Manager InMobi demand has been enabled

Last updated

Was this helpful?