Android的Admob的:有没有违规从谷歌播放服务SDK移除资源 [英] Android Admob : Is there any violation to remove resources from google play services SDK

查看:413
本文介绍了Android的Admob的:有没有违规从谷歌播放服务SDK移除资源的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

通过Admob的SDK我apk文件大小是 680KB 。当与谷歌播放服务SDK替代Admob的SDK 1.3MB (是 Proguard的

所建议的 @daniel Android应用程序的大小使用谷歌播放的,services_lib加入AdMob的广告后增加(有没有第二个步骤)

  

2,从资源文件夹中删除未使用的资源,如果你只使用广告。

     

在谷歌播放,services_lib \ res文件夹多的资源是没有用的   你,你可以将其删除。如价值观-AF,价值观时许,......你   需要保持为颜色,绘制,绘制,华电国际   文件夹。

我删除了资源的谷歌播放services_lib 值-AF,价值观时,... 并保持<强>颜色,绘制,绘制,华电国际和 folder.Then我的apk的大小是 890KB

我还没有在生产中使用这个着呢,我不知道这可能是对的谷歌播放服务条款。但是,这是我发现,以减少加入谷歌游戏服务后,应用程序的大小的唯一途径。

我想只用 Admob的广告服务,所以是否确定修改谷歌播放服务SDK 以这种方式来减少APK大小并将我的解决方案违反了谷歌播放服务条款

随着恐怕从这个 Admob的帐户已禁用执行后:发布者指南

  

9请勿修改的AdUnit

     

您只有有限的修改过的广告,所以要确保你   没有改变的AdMob机功能(谷歌Play商店服务)   SDK。出版商不能共享的谷歌SDK code或库的源。

解决方案

这是你的应用程序。你可以选择和选择什么样的,包括与否。

据我所知,没有要求出货,整个谷歌播放服务库。既然你可以使用Proguard的以削减下来,真的不能。

With Admob SDK my apk size was 680KB. When replaced Admob SDK with google play services SDK it is 1.3MB.(with Proguard)

As Suggested by @daniel in Android app size increased after adding admob ads using google-play-services_lib (Did second step)

2, remove unused resource from res folder if you only use ads.

many resource in google-play-services_lib\res folder is no use for you, you can remove it. such as values-af, values-am, .... what you need to keep is color, drawable, drawable-hdpi and values folder.

I removed resources from google-play-services_lib such as values-af, values-am, .... and keep color, drawable, drawable-hdpi and values folder.Then my apk size is 890KB

I haven't use this on production yet, and I don't know if this could be against Google Play Services TOS. But it's the only way I've found to reduce the size of the app after adding Google Play Services.

I want to use only Admob Ads service,So Is it Ok to edit google play services SDK in this way to reduce apk size and would my solution violate Google Play Services TOS?

As I am afraid from this Admob Account Disabled After Implementation : Publisher Guide

9 Do not modify Adunit

You have only limited modification over ads so make sure that you haven’t altered native features of Admob (Google Play Store Services) SDK. Publishers cannot be shared source of Google SDK code or library.

解决方案

It's your app. You can pick and choose what to include or not.

As far as I am aware there is no requirement to ship the entire Google Play Services library. Since you can use Proguard to whittle it down there really couldn't be.

这篇关于Android的Admob的:有没有违规从谷歌播放服务SDK移除资源的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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