AdBlock Detected!

Site not loading correctly? Ad is in our name, because it's what we do. This may cause issues if you're using ad blockers, and we don't serve any ads on our site.
Please pause or disable your ad blocker for our domain.



Optimize SDK 4 Blog Header (1) copy

How to Optimize Your SDK 4 Integration

Posted Oct 9, 2019

Committed to improving mobile advertising for developers and advertisers alike, we have recently released SDK 4, a significantly upgraded version of our mobile monetization platform. We’ve unified the SDK to include display and programmatic offerings for increased monetization options for publishers. Here’s a guide to streamline the integration processes for both iOS and Android:

Android Integration

  1. Install Using Gradle. We are now available as a dependence via Gradle. Read the installation instructions to add the correct configuration to your build.gradle file.
  2. Integrate Google Play Services. For Android apps, this is required for advertising ID collection to allow for proper attribution.
  3. Keep ProGuard in check. Make sure ProGuard hasn’t stripped out the WebView’s Javascript Interface by following the project setup instructions on Github.
  4. Remove the Shared Object (.so) libraries. That’s right – you no longer need them! We removed all code references to these libraries in our previous update.

iOS Integration

  1. Integrate through CocoaPods. To get the latest version of our SDK, all you need to do is add the following to your project’s Podfile:

  2. pod ‘AdColony’

  3. Configure your orientation. AdColony ads may be shown in any orientation, and our view controller needs your app to support that behavior. For optimal integration, follow our documentation around configuring supported orientations.
  4. Check ad expiration settings. Interstitial ads can expire, so in order to maximize revenue, implement the block-based handler for this event and request a new ad when it fires.
  5. Check your alert views.  If the application is triggering an ad from a UIAlertView, the alert must be fully dismissed before the ad is displayed.
  6. Include linker flags. Don’t forget the -ObjC linker flag!
  7. Verify your ATS settings. While App Transport Security (ATS) is not required by Apple, it’s important to verify your ATS settings to maximize ad fill and revenue. Read our documentation on your options to configure ATS.

Don’t forget to implement app-ads.txt!
For both iOS and Android integrations, we encourage our partners to adopt this file and help us combat ad fraud. Read our blog post for detailed instructions on how to create and upload your app-ads.txt file. If you’re not sure of your publisher ID, email [email protected] and we’ll help out!

Get the SDK

About SDK 4
The latest version of the AdColony SDK offers numerous improvements, including various display options, IAB’s Open Measurement, and more. Learn more about the SDK and visit the AdColony Github to integrate today.

Reach out to your account manager or our support team if you have any questions!

Latest at AdColony

AdColony is now part of Digital Turbine. We're powering the mobile economy.Join Us