gpt4 book ai didi

android - 亚马逊设备的 Admob 问题

转载 作者:行者123 更新时间:2023-12-05 00:10:32 30 4
gpt4 key购买 nike

我有一个带有 admob 广告的 android 应用程序提交给 google play,并且运行良好。我还向亚马逊应用商店提交了相同的应用程序。在亚马逊方面,该应用程序不显示任何广告!
我应该在我的应用程序上寻找问题,还是让谷歌 admob 停止在亚马逊设备上显示广告?!

最佳答案

问题似乎出在设备上,因为它可能没有安装 google playservices,
您可以使用以下代码进行检查。

private boolean checkPlayServices() {
GoogleApiAvailability apiAvailability = GoogleApiAvailability.getInstance();
int resultCode = apiAvailability.isGooglePlayServicesAvailable(this);
if (resultCode != ConnectionResult.SUCCESS) {
if (apiAvailability.isUserResolvableError(resultCode)) {
apiAvailability.getErrorDialog(this, resultCode, PLAY_SERVICES_RESOLUTION_REQUEST)
.show();
} else {
Log.i(TAG, "This device is not supported.");
finish();
}
return false;
}
return true;
}

关于android - 亚马逊设备的 Admob 问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60038650/

30 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com