A supporting library for the Google IMA SDK for use with FireworkVideo Ad Interface along with sample code.
Proceed with FireworkVideo and Google IMA integration steps before integrating the supporting library. Then contact the business team / engineering team you are co-ordinating with and ensure your Firework account has ads functionality enabled.
This supporting library assumes basic familiarity with Google IMA. If needed, read over the IMA Get Started before diving in. Ensure compliance with user consent policies by reviewing the Google User Messaging Platform (UMP) Quick Start Guide.
The supporting library only supports IMA SDK 3.16.3 or higher. Using the supporting library alongside a version of IMA SDK below 3.16.3 may result in undefined behavior.
This supporting library is intended to be used alongside FireworkVideo SDK. Read over the FireworkVideo SDK documentation and sample code to ensure smooth integration with IMA SDK.
Configure your Firework content is configured and apply correct styling and/or layout before integrating the IMA supporting library. This will ensure your testing conditions will match your production environment.
FireworkVideoGIMASupportSample is a sample project demonstrating the use of the supporting library alongside IMA SDK. The sample project allows supported ad types to be enabled and tested when placed inside FireworkVideo feeds of various configurations. The supporting library does not embed either IMA SDK or FireworkVideo and must be included alongside them in your app. Using the supporting library alongside incompatible FireworkVideo or IMA SDK versions may result in undefined behavior.
- Add FireworkVideoSDK to your project; follow the Firework Video installation instructions.
- Add Google IMA SDK to your project; follow the Google IMA installation instructions.
- Add FireworkVideoGIMASupporting library to your project; follow the instructions below.
Swift Package Manager is the recommended way to install the FireworkVideo Google IMA Supporting Library.
Note: alternatively you can download the binary directly and install it manually.
Set up the SDK alongside FireworkVideo as soon as possible after app launch. See below code snippet.
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
FireworkVideoSDK.initializeSDK()
FireworkVideoSDK.enableIMAAds()
// OR
FireworkVideoGIMASupportSDK.initializeSDK()
return true
}
FireworkVideo after both SDKs are initialized, FireworkVideo will make internal requests to the supporting library as determined by the Firework configuration for your App ID.