The Ads SDK is available for both Android and iOS platforms.
Android version 4.4 and up (API level 19+)
Android Build Tools 29
Gradle-based build system
Build environment with Java 8
Before you can display ads within your app, you’ll need to login to your account on Yahoo’s SSP and retrieve your Site ID, which is referenced in the integration guide below.
Configure Your Project
The 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:
The Ads SDK supports attribution tracking via Apple’s SKAdNetwork framework. This allows Yahoo 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 Yahoo’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.
The 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 Yahoo’s SSP can match your ad and bid requests to the most relevant demand.