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:
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.
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.
Python Reporting API Sample
Demonstrates how to use key Reporting API features in Python to send requests (sync or async) to fetch performance data and save them as .csv file.