Integrating the SDK
The easiest way to integrate the SDK to your iOS project is to use CocoaPods.
Step 1: Simply open your project's
Podfile and add a new source to the top:
Step 2: Add the following line to your app's target block:
pod 'EmpowerMobileAds', '~> 4.2.0'
Step 3: Run the following command from the command line to install the dependencies:
pod install --repo-update
If you're new to CocoaPods, please refer to their official documentation for more information on getting started with it.
Update your Info.plist
Declare that your app is an AdManager app by adding a key named
GADIsAdManagerApp with the boolean value
YES to your app's
You may also make this change manually by adding the following lines to
Go to your project target's Build Settings and set Enable Bitcode value to
Please also follow the following steps below as well, if your project is written in Objective-C:
- Set Defines Module value to
- Set Always Embed Swift Standard Libraries value to
- Set Install Objective-C Compatibility Header value to
Importing the SDK
In order to be able to use the Empower Mobile Ads SDK, you must import it where necessary.
Projects using Swift
Please add the following line to the files where you refer to the classes provided by the Empower Mobile Ads SDK:
Projects using Objective-C
Since Empower Mobile Ads SDK is written in Swift, you need to create a
You may do so by creating an empty Swift file and allowing the Xcode to create one for you, by simply accepting the prompt.
After the bridging header is created, you may use the line below to import the SDK in your
Integrating Mediation Networks
Download Empower Mobile Ads Mediation Bundle for supported mediation frameworks and their corresponding mediation adapters. Then, add these frameworks to Frameworks, Libraries and Embedded Content under your app's target.