Use com.google.android.gms:play-services-ads:9.0.2 or com.google.firebase:firebase-ads:9.0.2

199 views
Skip to first unread message

Yan Cheng Cheok

unread,
Jun 21, 2016, 3:59:10 PM6/21/16
to Google Mobile Ads SDK Developers
We plan to migrate Google Play Services, from 8 to 9.

Since Google is promoting firebase heavily, we thought it will be a de-facto sooner later. We want to give it a try.

Currently, we are serving AdMob, by using

    compile 'com.google.android.gms:play-services-ads:8.4.0'

I was wondering, once we migrate to Google Play Services 9, should we use

    compile 'com.google.android.gms:play-services-ads:9.0.2'

( https://developers.google.com/android/guides/setup#add_google_play_services_to_your_project )

OR

    compile 'com.google.firebase:firebase-ads:9.0.2'

(https://firebase.google.com/docs/admob/android/quick-start#project-level_buildgradle_excerpt)

Vu Chau (Mobile Ads SDK Team)

unread,
Jun 21, 2016, 4:56:10 PM6/21/16
to Google Mobile Ads SDK Developers
Hi Yan,

Let me clear that up for you!

compile 'com.google.android.gms:play-services-ads:9.0.2' makes use of the standalone (without Firebase) Mobile Ads SDK.  That, in effect, provides the same experience as you have been getting with compile 'com.google.android.gms:play-services-ads:8.4.0'.

On the other hand, compile 'com.google.firebase:firebase-ads:9.0.2' makes use of the ads portion of Firebase.  This, of course, means the Mobile Ads SDK.  The benefit of using this dependency is that you can enjoy the other Firebase components, too, should you choose to compile them additionally.

Let us know if you have any questions,

Vu Chau
Mobile Ads SDK Team
Reply all
Reply to author
Forward
0 new messages