android - interstitial ad show black (->) AFMA_ReceiveMessage is not defined (:1) -


i followed official guide of android add interstitial ads.

if use test mode:

 adrequest adrequest = new adrequest.builder()                   .addtestdevice("my code here")                   .build();  minterstitialad.loadad(adrequest); 

works ok , can see demo interstitial add.

if use release mode:

adrequest adrequest = new adrequest.builder().build(); minterstitialad.loadad(adrequest); 

i see black interstitial add , in log in red:

js: uncaught referenceerror: afma_receivemessage not defined (:1)

+ info:

  • i use last updated google play services lib.
  • i try 2 devices , 2 wifi networks.
  • in same device can see other apps interstitial ads
  • the ad created in admob in last 24 hours.
  • i try load add fron thread app crash
  • my admob account ok, have other ads working.

manifest:

<uses-permission android:name="android.permission.internet" /> <uses-permission android:name="android.permission.access_network_state" /> 

(...)

  <activity android:name="com.google.android.gms.ads.adactivity"             android:configchanges="keyboard|keyboardhidden|orientation|screenlayout|uimode|screensize|smallestscreensize"             android:theme="@android:style/theme.translucent" /> 

activity oncreate:

 minterstitialad = new interstitialad(this);     minterstitialad.setadunitid("here add id");     minterstitialad.setadlistener(new adlistener() {         @override         public void onadclosed() {              requestnewinterstitial();          }     });      requestnewinterstitial(); 

in app natural break:

 if (minterstitialad.isloaded()) {            minterstitialad.show();     } 

does webview in activity? please comment code:

//webview.pause(); 

and works.


Comments

Popular posts from this blog

how to insert data php javascript mysql with multiple array session 2 -

multithreading - Exception in Application constructor -

windows - CertCreateCertificateContext returns CRYPT_E_ASN1_BADTAG / 8009310b -