How to use Platformview to view Applovin_max MREC and banner ads

65 Views Asked by At

Is there anyone here who has used platformview to view applovin_max MREC and banner ads in flutter?

I was trying to make Android and Native views then implement it on Dart side by creating a MRECWidget for example then use it somewhere in my code.

1

There are 1 best solutions below

3
AudioBubble On

I'd be glad to help you with integrating AppLovin MAX MREC and banner ads in Flutter, but using platform views for this purpose isn't the recommended approach.

you can use applovin_max package.

Here's how to use AppLovinMAX.preloadAd(adUnitId) to pre-load an ad for a specific unit ID in your Flutter app:

String adUnitId = "YOUR_AD_UNIT_ID"; // Replace with your actual ID

void preLoadAd() async {
  await AppLovinMAX.preloadAd(adUnitId);
  print("Ad pre-loaded for unit ID: $adUnitId");
}