Launch Flutter Ads Console → Open Dashboard
Flutter Ads

Flutter Ads SDK

Documentation

SDK Platform

Choose documentation target

Ad Formats

Flutter Ads SDK Docs

Initialize Flutter Ads SDK for Native, Rewarded & Video Monetization

Learn how to install Flutter Ads SDK, initialize the infrastructure, and start loading ads across Android, iOS, Web, Windows, macOS, and Linux.

Flutter Ads SDK Initialization Example

Learn how to initialize the Flutter Ads SDK in your app. This guide covers setup, authentication, routing, and traffic validation across Android, iOS, Web, Windows, macOS, and Linux.

View on Pub.dev

SDK Initialization Flow

Authentication, routing & validation

Before loading ads, Flutter Ads SDK initializes secure authentication, delivery infrastructure, targeting systems, and traffic validation layers for your application.

1

Import Flutter Ads SDK

Import Flutter Ads SDK before initialization and ad loading.

main.dart

import 'package:flutter_ads_sdk/flutter_ads_sdk.dart';
2

Initialize Flutter Ads SDK

Initialize the SDK once during app startup before rendering ads.

main.dart

void main() async {
  WidgetsFlutterBinding.ensureInitialized();

  await FlutterAds.instance.ensureInitialized(
    accountId: 'YOUR_ACCOUNT_ID',
    appId: 'YOUR_APP_ID',
    apiKey: 'YOUR_API_KEY',
    sdkSecret: 'YOUR_SDK_SECRET',
  );

  runApp(const MyApp());
}
3

Enable Auto Fetch (Optional)

Let the SDK automatically manage ad inventory and background fetching.

main.dart

FlutterAds.instance.enableAutoFetch(context);

When auto fetch is enabled

  • • Stores device and layout context automatically.
  • • Requests new ads automatically when inventory is running low.
  • • Future fetch operations do not require BuildContext.

Ready to Load Ads

After initialization is completed, you can safely fetch and render ads anywhere in your Flutter application.

Make sure initialization completes before requesting ads to avoid runtime issues and invalid requests.

Contact & Community

Connect with the Voyant Networks team

Get support, ask technical questions, explore integrations, or stay updated with SDK releases, tutorials, and infrastructure updates.

SDK

Integration & technical queries

[email protected]

Support

Help with troubleshooting

[email protected]

General

Partnerships & inquiries

[email protected]

Community & Updates

Follow product updates, demos & tutorials

Stay updated with SDK releases, API walkthroughs, infrastructure updates, and developer tutorials from the Voyant Networks team.