The website become no response after showing an interstitial app

Hi all, my apps got a website inside, and before the website been shown, I want to show a interstitial advertisement first, however, after the ad being shown and I closed it, the website behind become no response, any idea how come this happen? thanks a lot.

The code of the interstitial ad is as below:

local ads = require( “ads” )

local function adListener( event )

    if ( event.isError ) then

        --Failed to receive an ad

    end

end

ads.init( “admob”, “myAppId”, adListener )

ads.show( “interstitial”, { x=0, y=0, appId=“ca-app-pub-1440176583116xxx/5493266xxx” } )

Are you getting any errors in your console log?

Have you tried creating the webview after dismissing the interstitial ad?

Rob

Thanks a lot Rob Miracle!!! You make my day, it’s fixed by putting the code of the ad prior than the webview, and than all fixed!

Are you getting any errors in your console log?

Have you tried creating the webview after dismissing the interstitial ad?

Rob

Thanks a lot Rob Miracle!!! You make my day, it’s fixed by putting the code of the ad prior than the webview, and than all fixed!