showInterAd method
void
showInterAd(
{ - AdModuleWithCallBacks? adModuleCallBacks,
})
override
Implementation
@override
void showInterAd({AdModuleWithCallBacks? adModuleCallBacks}) {
UnityAds.showVideoAd(
placementId: GlobalAdVariables.adNetworkIds?['unity']?.interId ?? "",
onStart: (placementId) {
if (adModuleCallBacks != null) {
if (adModuleCallBacks.onAdStarted != null) {
adModuleCallBacks.onAdStarted!();
}
}
},
onClick: (placementId) {},
onSkipped: (placementId) {
if (adModuleCallBacks != null) {
if (adModuleCallBacks.onCloseEvent != null) {
adModuleCallBacks.onCloseEvent!();
}
}
},
onComplete: (placementId) {
if (adModuleCallBacks != null) {
if (adModuleCallBacks.onCloseEvent != null) {
adModuleCallBacks.onCloseEvent!();
}
}
},
onFailed: (placementId, error, message) {
print(error.name);
print(message);
if (adModuleCallBacks != null) {
if (adModuleCallBacks.onFailed != null) {
adModuleCallBacks.onFailed!();
}
}
},
);
}