Is it good practice to clear the cache files generated by AdMob in Android?

☆樱花仙子☆ 提交于 2019-12-13 02:46:39

问题


I have integrated AdMob in my Android app. I noticed the app taking up more and more storage space in a folder called app_webview generated by AdMob inside the app data folder. Should I clear the contents of this folder on each app exit ?


回答1:


Should I clear the contents of this folder on each app exit ?

Why would you want to do that? Admob does this to provide better and speedy ad serving. And I'm sure the amount it is caching is within tolerable limits. Clearing that much space on the user's storage will not make him much happy. But you'll lose on revenue because of Admob trying to re-download all the stuff again. It will lower your fill rate and thereby your revenue.

There is no harm in doing it but you'll lose more (revenue) than you gain (user satisfaction). The user might not even notice it.




回答2:


Admob is just caching its ads so they load quicker. The Android OS will clear the /cache directory if the filesystem gets too full, and Admob should be managing its own cache size. You shouldn't have to worry about it.



来源:https://stackoverflow.com/questions/34566994/is-it-good-practice-to-clear-the-cache-files-generated-by-admob-in-android

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!