Integrating with Google Play Services

Please begin by setting up Google Play Services as described on the Android Developers page. Note that the ads functionality of Google Play Services requires Android 2.3 or higher.

Verify changes to your application’s manifest file

Ensure that you updated your application’s manifest file to include the following tags as children of the <application> tag:

<meta-data android:name="" android:value="@integer/google_play_services_version" />

<activity android:name=""

Copy over the Custom Event files

Copy the GooglePlayServicesBanner and GooglePlayServicesInterstitial classes into the com.mopub.mobileads package of your application’s src/ directory. You can find these classes in the MoPub extras directory (extras/src/com/mopub/mobileads).


Do I need to keep the AdMob custom event and SDK installed in the application? Google has deprecated the AdMob SDK. We recommend moving to Google Play Services, which is compatible with code written for the last version of the AdMob SDK. If you integrate Google Play Services and our Google Play Custom events, you no longer need to have the AdMob SDK and custom events installed in your app.

Last updated June 14, 2018

TWITTER, MOPUB, and the Bird logo are trademarks of Twitter, Inc. or its affiliates. All third party logos and trademarks included are the property of their respective owners.

© 2018 MoPub Inc.