Verizon Ads SDK Integration
The Verizon Ads SDK is available for both Android and iOS platforms.
|Android Prerequisites||iOS Prerequisites|
|Android version 4.4 and up (API level 19+)||iOS 10+|
|Android Build Tools 29||Xcode 12.0+|
|Gradle-based build system||CocoaPods 1.8.4+|
|Build environment with Java 8|
Before you can display ads within your app, you’ll need to login to your account on Verizon Media’s SSP and retrieve your Site ID, which is referenced in the integration guide below.
Configure Your Project
The Verizon Ads SDK is available via this Maven repository for Android and CocoaPods for iOS. Note that starting from Standard Edition 1.8.0, the iOS SDK will be delivered only as a collection of static frameworks via Cocoapods. This will enable apps being built via Unity to use the SDK.
Add the SDK to your project by adding the following lines to your app’s build.gradle or Podfile:
[iOS Only] Enable SKAdNetwork
Verizon Ads SDK supports attribution tracking via Apple’s SKAdNetwork framework. This allows Verizon Media as well as participating third-party ad buyers to attribute app installs in the absence of the mobile device ID such as IDFA, which was removed due to the App Tracking Transparency introduced in iOS version 14.5.
Update your app’s Info.plist file and add a SKAdNetworkItems key with an additional dictionary that includes Verizon Media’s SKAdnetwork ID, as well as our third-party buyers’ SKAdnetwork IDs. An up to date list of our 3rd party buyers is available here. In addition, you will also need to add your app’s App Store ID in VerizonAdsSourceAppId key. See example below.
[Android Only] Android Permissions
The Verizon Ads SDK requires the INTERNET permission and includes it in the SDK’s AndroidManifest.xml. As such, you do not need to explicitly add the INTERNET permission to your AndroidManifest.xml file.
In order to report on ad requests, impressions, and clicks, the SDK also requires ACCESS_NETWORK_STATE permission. As of Standard Edition 1.5.0, this permission is included in the SDK’s AndroidManifest.xml.
It is recommended, but not required, that the ACCESS_FINE_LOCATION permission is also added to your AndroidManifest.xml so that Verizon Media’s SSP can match your ad and bid requests to the most relevant demand.
Initializing the SDK
For Android ProGuard Users
If using ProGuard to minify your app, include the following in your ProGuard config file: