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
<meta-data android:name="com.google.android.gms.version" android:value="@integer/google_play_services_version" /> <activity android:name="com.google.android.gms.ads.AdActivity" android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize"/>
Copy over the Custom Event files
GooglePlayServicesInterstitial classes into the
com.mopub.mobileads package of your application’s
src/ directory. You can find these classes in the MoPub extras directory (
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 February 19, 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.