简体   繁体   English

将与AdMob集成的应用推送到公共github

[英]Pushing app with AdMob integration to public github

Hi I've got an open source app that is on Github. 嗨,我在Github上有一个开源应用程序。 I have just integrated Admob, thus i needed to put my Admob ad id into the code. 我刚刚集成了Admob,因此需要将Admob广告ID放入代码中。 I still want to keep the app open source, but im aware that the ad id must be kept private. 我仍然想让应用程序保持开源状态,但是我知道广告ID必须保持私有。 How could i push the app to github without others being able to see the ad unit id? 我如何在其他人无法看到广告单元ID的情况下将应用程序推送到github?

Would it be enough to simply remove the id from the following line prior to pushing the code?: 在推送代码之前简单地从以下行中删除ID是否足够?

ads:adUnitId="MY_AD_UNIT_ID"

Or is there a better way to do this? 还是有更好的方法来做到这一点?

Thanks in advance. 提前致谢。

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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