谷歌播放服务与AdMob的。检查可用性? [英] Google Play Services with AdMob. Check availability?

查看:214
本文介绍了谷歌播放服务与AdMob的。检查可用性?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在AdMob提供的SDK迁移到谷歌播放服务的过程。我已经做了大部分工作,事情似乎是罚款的工作,但我不知道我理解后面的一些交互的逻辑。

I'm in the process of migrating from AdMob SDK to Google Play Services. I've done most of the job and things seem to be working fine, but I'm not sure I understand the logic behind some of the interaction.

我做了可以在这里找到的变化:谷歌播放服务迁移

The changes I've made can be found here: Google Play Services Migration.

当我在使用谷歌播放服务与我的新code?该网站设置谷歌播放服务SDK指出,您的应用程序试图执行API交易前应核实可用的版本。但是,运行我在不具备谷歌播放服务的模拟器应用程序的时候,我仍然能够获取使用AD浏览报和AdRequest.Builder()的广告。然而,我注意到LogCat中警告谷歌Play业务丢失。。如何在广告仍然在展示?

When am I utilizing Google Play Services with my new code? The site "Set up Google Play Services SDK" states that your app should verify the version available before attempting to perform API transactions. However, when running my app on an emulator that does not have Google Play Services, I am still able to fetch an ad using an AdView and AdRequest.Builder(). I do however note the LogCat warning Google Play services is missing.. How can the ad still be showing?

此外,将在谷歌播放引用的库包含在APK出口,或者是这只是为开发环境?

Also, will the Google Play Services referenced library be included in the APK export, or is this just for the development environment?

推荐答案

谷歌播放服务由两部分组成。一个是链接到应用程序的jar,另一个是系统(Android操作系统)的一部分。在AdMob的广告显示组件是在罐子里,而其他播放业务在系统中。

Google Play Services consists of two components. One is the jar linked to the app and the other is part of the system (Android OS). The AdMob ad display component is in the jar while other play services are in the system.

如果一个应用程序是建立与谷歌播放服务,你将不得不显示的AdMob广告的能力,但你不会得到其他一些谷歌播放服务功能。

If a app is built with Google Play Services you will have the ability to display AdMob ads, but you won't get some of the other Google Play Services features.

所以,是的,当你的应用程序链接到库中的一些谷歌播放服务类将包括在你的APK。

So yes, when your app is linked to the library some Google Play Service classes will be included in your APK.

另外,也可以通过使用较旧的(现代precated)来显示的AdMob广告的AdMob SDK

It is also possible to display AdMob ads by using the older (now deprecated) AdMob SDK.

这篇关于谷歌播放服务与AdMob的。检查可用性?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆