mkorman9 / admob-openfl

Google AdMob extension for OpenFL
MIT License
48 stars 12 forks source link

Warning : testMode in initAd or intersticial has no effect. #20

Open Tomobodo opened 10 years ago

Tomobodo commented 10 years ago

Almost got banned from admob because i was playing my own add believing they were test ads. "testMode" parameter in init functions has no effect.

The1andONLYdave commented 10 years ago

Add in your GameActivity.java (in Admob Library, don't use your export folder) your device testid like this //////////////////////////////////////////////////////////////////////// static public void loadAd() { //AdRequest adRequest = new AdRequest.Builder().build(); AdRequest adRequest = new AdRequest.Builder() .addTestDevice(AdRequest.DEVICE_ID_EMULATOR) // Emulator .addTestDevice("89CADD0B4B609A30ABDCxxxxxxxxxxxx") //nexus4 .addTestDevice("76B9806B21BD1DDC9CC1xxxxxxxxxxxx") //huawei .build(); adView.loadAd(adRequest); } //////////////////////////////////////////////////////////////////////// around ~ line 170 for ad(banner) and ~ line 250 for interstitial