bidmad_flutter_plugin 0.0.3-dev1

Flutter Android iOS web

Flutter Plugin for using BidmadSDK

Introduce #

Flutter Plugin for using Bidmad SDK

BidmadSDK is an Ad Develop kit for maximizing advertising revenue in mobile apps.

Support #

PlatformAD Type
AndroidBanner / Native / Interstitial / Reward
iOSBanner / Native / Interstitial / Reward
UnityBanner / Interstitial / Reward
FlutterBanner / Reward

*Banner, Interstital Ad Type will be supported in the future in Flutter Plugin

For platforms other than flutter, click here.

Programming Guide #

1. Dart #

1) Init AD Object

initialize the FlutterBaseReward object.

FlutterBaseReward reward = new FlutterBaseReward(
                                 listener: (RewardEvent event, String zoneId) {
                                   if(event == RewardEvent.onLoadAd){ //Return Event Type
                                     print("OK");
                                   }  
                                 }
                             );

2) Ad Load & Show

Below is an example of a load & show using a plugin. Call the defined function from the UI.

*Set the native setting before calling the function. Please Check the setting guides Android and iOS.

....
    reward.setAdInfo("Your Zone ID");
    reward.load();
    //Call the show function after receiving onLoadAd from the listener.
    reward.show();
....

2. Android #

Set the Bidmad Channel in MainActivity *MainActivity file is automatically created when the project is created.

class MainActivity: FlutterActivity() {
    private var binaryMessenger: BinaryMessenger? = null
    private var reward : FlutterReward? = null

    override fun configureFlutterEngine(@NonNull flutterEngine: FlutterEngine) {
        GeneratedPluginRegistrant.registerWith(flutterEngine);

        binaryMessenger = flutterEngine.dartExecutor.binaryMessenger
        reward = FlutterReward(this)
        reward!!.initChannel(binaryMessenger, reward!!.defualtChannelNm);
    }
}
0
likes
70
pub points
0%
popularity

Flutter Plugin for using BidmadSDK

Homepage
Repository (GitHub)
View/report issues

Documentation

API reference

Uploader

adsense@adop.cc

License

BSD (LICENSE)

Dependencies

flutter

More

Packages that depend on bidmad_flutter_plugin