简体   繁体   中英

Pushing app with AdMob integration to public github

Hi I've got an open source app that is on Github. I have just integrated Admob, thus i needed to put my Admob ad id into the code. I still want to keep the app open source, but im aware that the ad id must be kept private. How could i push the app to github without others being able to see the ad unit id?

Would it be enough to simply remove the id from the following line prior to pushing the code?:

ads:adUnitId="MY_AD_UNIT_ID"

Or is there a better way to do this?

Thanks in advance.

如果您想将adUnitId设为私有,则可以从发布的代码中删除ID。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM