Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to prevent others from removing my admob Ads?

Tags:

android

admob

I've published an application to Google appmarket.

And I am using admob to gain some profit. Now I find that someone downloaded my app and removed the ads, and published it to some other market, which is not what i want at all.

Here is some code I put in my layout.xml

<com.admob.android.ads.AdView
    android:id="@+id/admob_view"
    android:visibility="visible"
    android:layout_width="fill_parent"
    android:layout_height="wrap_content"
    app:backgroundColor="#000000"
    app:primaryTextColor="#FFFFFF"
    app:secondaryTextColor="#CCCCCC"
    app:keywords=""/>

How can I prevent this?

like image 842
user731960 Avatar asked Feb 24 '23 09:02

user731960


2 Answers

To make it harder you could add the view in Java instead of XML and obfuscate your code.

like image 140
Ed Burnette Avatar answered Mar 03 '23 08:03

Ed Burnette


It is too late now, but for future versions and apps you can set the Copy Protection to "On" in the Android Market upload page. It's near the bottom. I doubt it is fool-proof but it can help keep some of the people likely to do this from being able to.

like image 36
Haphazard Avatar answered Mar 03 '23 08:03

Haphazard