admob-openfl icon indicating copy to clipboard operation
admob-openfl copied to clipboard

Warning : testMode in initAd or intersticial has no effect.

Open Tomobodo opened this issue 10 years ago • 1 comments

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.

Tomobodo avatar Oct 09 '14 15:10 Tomobodo

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

The1andONLYdave avatar Oct 11 '14 01:10 The1andONLYdave