Verizon Ads SDK Integration

Integration Prerequisites

The Verizon Ads SDK is available for both Android and iOS platforms. The following outlines the prerequisites for the development environment required to support each platform.

Android Prerequisites iOS Prerequisites
Android version 4.1 and up (API level 16+) iOS 8+
Android Build Tools 27.0.x must be installed Xcode 10.1+
Gradle based build system  
Build environment with Java 8  
Google Play Services 11.4+  

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 jCenter on Android and CocoaPods on iOS. Add the SDK to your project by adding the following lines to your app’s build.gradle or Podfile:

dependencies {
  implementation 'com.verizon.ads:android-vas-standard-edition:1.1.1'
  implementation 'com.google.android.gms:play-services-ads:11.4.0'
  implementation 'com.google.android.gms:play-services-base:11.4.0'
}
pod 'Verizon-Ads-StandardEdition', '1.1.2'

Initializing the SDK

// Initialization should occur within the onCreate method of your Application subclass. Calling this method anywhere else is not supported.

// Import the edition into your project
import com.verizon.ads.edition.StandardEdition;

// Initialize the SDK with your Site ID
StandardEdition.initialize(myApp, <YOUR_SITE_ID>);
// A best practice for initializing is in the app delegate’s application:didFinishLaunchingWithOptions: method

// Import the edition into your project
#import <VerizonAdsStandardEdition/VASStandardEdition.h>

// Initialize the edition with your Site ID
[VASStandardEdition initializeWithSiteId: <YOUR_SITE_ID>];
// A best practice for initializing is in the app delegate’s application(_:didFinishLaunchingWithOptions:) method

// Import the edition to be embedded in your app.
import VerizonAdsStandardEdition

// Initialize the edition with your site ID
VASStandardEdition.initialize(withSiteId:<YOUR_SITE_ID>)