flutter_wannads 0.0.3 flutter_wannads: ^0.0.3 copied to clipboard
SDK for Wannads ad network (Android only at the moment)
Flutter Wannads #
SDK for Wannads ad network (Android only at the moment)
Getting Started #
0. Android Configuration: #
Unfortunately the Wannads SDK is not in MavenCentral, Therefore the sdk deployment must be done manually.
-
You must first download the SDK version 2.5.0 using this link https://wannads-bucket.s3-eu-west-1.amazonaws.com/integration/android/wannads-android-sdk-2.5.0.zip
-
You must extract the file "android-sdk-2.5.0.aar" that is inside the downloaded .zip
-
In your flutter project in the android/app path create a folder called libs
-
Inside the libs folder you must paste the .aar file that was extracted, then rename it as "wannads.aar"
And that's it, it should look something like this "/[flutter_project]/android/app/libs/wannads.aar"
1. Initialization: #
FlutterWannads.instance.init(apiKey: "[ApiKey]",
apiSecret: "[ApiSecret]",
user: WanUser(id: "[Unique_User_Id]"));
2. Show Offerwall #
FlutterWannads.instance.showOfferwall();
3. Show SurveyOfferwall #
FlutterWannads.instance.showSurveysOfferwall();
Important #
This plugin is still under development, use it at your own risk