• Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!

Android AdMob testing : fraudulent click prevent..

PinkySwear

Member
Hello ,
We use the test ads while testing, and while in-game, we can see it says TEST ad from google, but we didnt add codes to ''tell AdMob its a test ad'' .. do we need to add the code to tell AdMbo its a test ad if its already working jsut by activating the test ads ?


In the tuto for using AdMob:

Use AdRequest.Builder.addTestDevice("E3DAE5ACB5072BA36197B94E287927C9") to get test ads on this device.

If you copy this string you can then use it after initialising the ads extension to tell AdMob that the ads being shown are TEST ads only. This prevents any issues, like Google suspending your account for fraudulent click-through while testing. To set the ads as test ads you would use the following, after the code shown above (be sure to change the example string for the one from the console):
 

PinkySwear

Member
bump..
..if when testing, the ad banner have the label ''test ad'' on it, it's safe even if we didnt add our device id..right?
 
Top