admob-openfl
admob-openfl copied to clipboard
Warning : testMode in initAd or intersticial has no effect.
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.
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