Installation
Install using the npm package manager:Android Prerequisites
Requirements
- Minimum SDK version of
24or higher - Compile SDK version of
36or higher
iOS Prerequisites
Requirements
- Use Xcode 16.0 or higher.
- Target iOS 17.2 or higher.
Updating your Info.plist
-
Before installing, update the application
Info.plistto add a GADApplicationIdentifier key with a string value of your Ad Manager app ID found in the Ad Manager UI and of the formca-app-pub-################~##########. If you do not have this ID, please contact the Content Ignite team. -
Next add a
SKAdNetworkItemskey to yourInfo.plistwith SKAdNetworkIdentifier values for Google (cstr6suwn9.skadnetwork) and select third-party buyers who have provided these values to Google.
Initialisation
Initialise the SDK once, early in your app’s lifecycle (for example in a top-leveluseEffect) and before rendering any ads. ContentIgniteSDK.initialise takes a configuration object and returns a promise that resolves to true once the SDK is ready.
Required
publisherId: string: A unique identifier for the publisher in the Fusion platform, provided by Content Ignite.googleId: string: Your Google Ad Manager app ID, of the formca-app-pub-################~##########.debugFeature: boolean: Enables the in-app debug menu — see Using the Debug features.
Optional
testAds: boolean: Serve test creatives instead of live ads during development. Defaults tofalse.appOpenPlacementId: string: Enables App Open ads via theCIAppOpenAdAPI — see App Open.
Select an ad format
Content Ignite Mobile SDK is now imported and you’re ready to implement an ad. We offer a number of different formats:App Open
Ads that appear when a user opens or switches back to your app.
Banner
Flexibly sized format for placing ads anywhere in your app.
Interstitial
Full-screen ads that are designed to appear between content transitions.