Audience Network Code Samples
Here is a collection of code samples designed to show you how to use the features of Audience Network in different scenarios. You can also see these samples on the Audience Network Samples github project.
Ad Mob Wrapper
When using mediation, we recommend implementing two placements for the same ad unit. The first optimized for CPM and the second optimized for fill. This sample shows you how to do this using AdMob mediation.
A combined sample showing usages of banner, interstitial and native format.
Demonstrates implementation of a banner ad.
Demonstrates implementation of an interstitial ad.
Demonstrates implementation of a native ad.
Native Ad in feed
Demonstrates how to display Audience Network native ad unit inside a RecyclerView.
Native Ad Transitions
Shows a native ad in full screen, then uses the Android transition animation to shrink the full screen ad into an element on the main screen of your app. This may result in better ad performance.