Skip to content

InterstitialAd.offError ​

Remove the listener for interstitial ad load or display failure events.

When leaving the corresponding game scene, remove the registered listeners and destroy the instance.

Parameters ​

function listener ​

The ad load or display failure event listener to remove.

Example ​

javascript
const onError = (err) => {
    console.error('Interstitial ad load or display failed', err.errMsg, err.errCode);
};

interstitialAd.onError(onError);
interstitialAd.offError(onError);