Samples from Audience Network SDK
Explore our code samples bundled with the Audience Network SDK release, which demonstrate how to use various ad formats. The samples you will find in the samples folder in the SDK release are:
- NativeAdSample shows how to integrate ads for the native ad format
- AdUnits sample shows how to integrate ads for banner, interstitial, and rewarded video formats
Samples from Github
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.