Alex
Alex

Reputation: 1659

Check if ads:testdevice is working properly?

I put this in my LinearLayout

 <com.google.ads.AdView
        android:id="@+id/adView"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_alignParentBottom="true"
        ads:adSize="BANNER"
        ads:adUnitId="d7fd8f9ghf042k4"
        ads:loadAdOnCreate="true"
        ads:testDevices="34HF70000000G501" />

I'm still testing my application, but when I checked my AdMob account, I found out this:

enter image description here

I don't understand, what's happening? Am I getting revenue for clicking my own Ads? If Yes, how could this happen when I have mentioned this line ads:testDevices="34HF70000000G501" in my XML layout?

Upvotes: 0

Views: 543

Answers (1)

Eric Leichtenschlag
Eric Leichtenschlag

Reputation: 8931

The ID you put inside of ads:testDevices needs to be the hashed device ID which is output in LogCat when you load an ad request on the device. It does not work if you use your actual device id.

Upvotes: 1

Related Questions