Select platform: [Android (beta)
![New](https://developers.google.com/static/admob/images/new.svg)](https://developers.google.com/admob/android/next-gen/mediation/vpon "View this page for the Android (beta) platform docs.") [Android](https://developers.google.com/admob/android/mediation/vpon "View this page for the Android platform docs.") [iOS](https://developers.google.com/admob/ios/mediation/vpon "View this page for the iOS platform docs.") [Unity](https://developers.google.com/admob/unity/mediation/vpon "View this page for the Unity platform docs.") [Flutter](https://developers.google.com/admob/flutter/mediation/vpon "View this page for the Flutter platform docs.")

<br />

This guide is intended for publishers who are interested in using Google
Mobile Ads mediation with **Vpon**. It walks
through the setup of a mediation adapter to work with your current Android app
and the configuration of additional settings.

| Vpon Resources |
|---|
| [Documentation](http://vpon-sdk.github.io/android/mediation/admob/) |
| [SDK](http://vpon-sdk.github.io/android/download/index.html) |
| [Adapter](https://vpon-sdk.github.io/android/download/#admob) |
| [Customer support](mailto:fae@vpon.com) |

## Prerequisites

- An Android app with Google Mobile Ads SDK integrated. (If you don't
  have one, see [Get Started](https://developers.google.com/admob/android/quick-start).)

- An AdMob account and [an ad unit configured with mediation line
  items](https://support.google.com/admob/answer/3124703).

## Helpful primers

The following Help Center articles provide background information on mediation:

- [About AdMob Mediation](https://support.google.com/admob/answer/3063564)
- [Set up AdMob Mediation](https://support.google.com/admob/answer/3124703)
- [Optimize AdMob Network](https://support.google.com/admob/answer/3534471)

## Add Vpon to your project

### Include network adapter and SDK

Download the Vpon SDK and adapter from the
[previous links](https://developers.google.com/admob/android/mediation/vpon#resources).

In Android Studio, include the adapter and SDK files in your project's `libs`
folder. Make sure that your app-level Gradle file includes the following:  

### Kotlin

    dependencies {
        implementation(fileTree(mapOf("dir" to "libs", "include" to listOf("\*.aar", "\*.jar"))))
        // ...
    }

### Groovy

    dependencies {
        implementation fileTree(dir: 'libs', include: \['\*.aar', '\*.jar'\])
        // ...
    }

### Configure the AndroidManifest.xml file

Modify your `AndroidManifest.xml` file as instructed in the
Vpon documentation.

Your app doesn't need to call Vpon
directly---Google Mobile Ads SDK calls the
Vpon adapter to fetch ads on your behalf. If necessary, you can
specify any additional request parameters.
The rest of this page details how to provide more information to
Vpon.

### Initialize your ad object with an Activity instance

In the constructor for a new ad object (for example,

[`AdView`](https://developers.google.com/admob/android/reference/com/google/android/gms/ads/AdView)),

you must pass in an object of type
[`Context`](https://developer.android.com/reference/android/content/Context).
This `Context` is passed on to other ad networks when using mediation. Some
ad networks require a more restrictive `Context` that is of type
[`Activity`](https://developer.android.com/reference/android/app/Activity)
and may not be able to serve ads without an `Activity` instance. Therefore,
we recommend passing in an `Activity` instance when initializing ad objects
to ensure a consistent experience with your mediated ad networks.