adBreak method
Requests an ad placement to the Ad Placement API.
The placementConfig
defines the configuration of the ad.
Implementation
void adBreak(
AdBreakPlacement placementConfig,
) {
// Delay the call to `adBreak` so tap users don't trigger a click on the ad
// on pointerup. This should leaves enough time for Flutter to settle its
// tap events, before triggering the H5 ad.
Timer(const Duration(milliseconds: 100), () {
adsbygoogle.adBreak(placementConfig);
});
}