notix_ads

Creator: coderz1093

Last updated:

0 purchases

notix_ads Image
notix_ads Images
Add to Cart

Description:

notix ads

Notix_Ads #
This native plugin allows you to display Banner and AppOpen Ads provided by Notix. This is a custom-made script because Notix has not officially released Banner and AppOpen ads for Flutter.
Installation #
Add the following line to your pubspec.yaml file:
dependencies:
notix_ads: ^x.y.z
copied to clipboard
import 'package:notix_ads/notix_ads.dart';
copied to clipboard
Replace x.y.z with the latest version of notix_ads from pub.dev.
Getting Started #
1. Initialize Banner Ads #
First we need to load banner ads before display it.
There are 3 Banner Ads sizes are available for use.
enum BannerAdSize {
standard, // 320/50
landscape, // 320/90
rectangle, // 320/250
}
copied to clipboard
You can load banner ads by simply call 'NotixAds.loadBanner'

late Widget banner;
void initState() {
banner = await NotixAds().loadBanner( /*You Zone ID*/ , BannerAdSize.landscape);
}

// then use `banner` to anywhere in your code to load it.
copied to clipboard
2. Show AppOpen Ads #
You can use didChangeAppLifecycleState to check app satet and call AppOpen Ads
@override
void didChangeAppLifecycleState(AppLifecycleState state) {
if (state == AppLifecycleState.paused) {
NotixAds().appOpen(/*You Zone ID*/);
}
}

copied to clipboard
3. Show Notification Ads #
Call NotixAds().NotificationInit using your notixAppId and notixToken. These credentials can be found on the page of your In-App Android source
void main() {
WidgetsFlutterBinding.ensureInitialized();
NotixAds().NotificationInit(/* notixAppId */, /* notixToken */ );
runApp(const MyApp());
}

copied to clipboard
4. Show Interstitial Ads #
You can use NotixAds().interstitial to show interstitial. It will load and show Ad in single line
NotixAds().interstitial(/*You Zone ID*/);

copied to clipboard

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.