Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to protect the AdMob App ID in Android manifest?

Tags:

android

admob

To add AdMob to an Android application, the following is required in the manifest:

android:name="com.google.android.gms.ads.APPLICATION_ID" android:value="YOUR_ADMOB_APP_ID"

Is there any way to protect YOUR_ADMOB_APP_ID from being visible as plain text here? It is exposed in the release apk-file with just a use of an archiver

like image 562
Interkot Avatar asked Nov 06 '22 19:11

Interkot


1 Answers

Good question. Yes AdMob app id can be easily visible to people with basic computer knowledge.

But why concern? It is only a key and not a password to steal your information in AdMob. Do you expect a hacker to use this key in his app, just for the purpose of increasing your AdMob income?

like image 165
AIMIN PAN Avatar answered Nov 14 '22 23:11

AIMIN PAN