setInterstitialExtraParameter static method
void
setInterstitialExtraParameter({})
Attaches an extra parameter to every future interstitial load for adUnitId.
The native ad keeps the value until the same key is set again or
cleared, so it applies to later loads and auto-refresh auctions too, not
only the next one. Pass a null value to clear the key. Values are read
when a load runs, so set them before the load. A value may be null, a
bool, an int, a double, a String, or a list or map of those.
Implementation
static void setInterstitialExtraParameter({
required String adUnitId,
required String key,
required Object? value,
}) {
_methodChannel.invokeMethod('setInterstitialExtraParameter', {
'adUnitId': adUnitId,
'key': key,
'value': value,
});
}