🗂️
ONE AdMax Developer Guides
EN
EN
  • 00. about ONE AdMax
  • 01. How to Issue a Media Key
  • 02. How to Issue a Placement Key
  • 03. SDK for Java
    • 3-1. Rewarded Video Ads
    • 3-2. Interstitial Ads
    • 3-3. Banner Ads
    • 3-4. Interstitial Video Ads (Non Reward)
  • 04. Unity-Plugin Guide
    • 4-1. Rewarded Video Ads for Unity
    • 4-2. Interstitial Ads for Unity
    • 4-3. Banner Ads for Unity
    • 4-4. Interstitial Video Ads for Unity (Non Reward)
  • 05. Flutter-Plugin Guide
    • 5-1. 보상형 비디오 광고 for Flutter
    • 5-2. 전면 광고 for Flutter
    • 5-3. 배너 광고 구현하기
    • 5-4. 전면 비디오 광고 for Flutter (비보상형)
  • 📌Starting Mediation
  • ONE AdMax SDK Error Codes
  • SDK Version 안내 사항
    • SDK 1.2.0
    • SDK 1.0.2
Powered by GitBook
On this page
  • Development environment
  • Issue and apply the APP key.
  • SDK Initialize
  • Handle the process when the application is closed.
  • Set up logging.
  • Set up GDPR (General Data Protection Regulation)
  • Set up COPPA
  • Choose ad format
  • Rewarded Video ADs
  • Interstitial ADs
  • Banner ADs
  • Interstitial Video ADs (Non Reward)

05. Flutter-Plugin Guide

Previous4-4. Interstitial Video Ads for Unity (Non Reward)Next5-1. 보상형 비디오 광고 for Flutter

Last updated 16 days ago

Development environment

Issue and apply the APP key.

After issuing the app key, configure the <meta-data/> in the AndroidManifest.xml of the Flutter Android Module.

<manifest>
    ...
    <application>
        ...
        
        <meta-data android:name="com.oneadmax.global.appkey" android:value="your app key"/>
    </application>
</manifest>

SDK Initialize

The app must initialize ONEAdMax before loading ads. ONEAdMax.initialize() should be executed only once during the initial setup.

class _OneAdDemo extends ConsumerState<HomeDetailScreen> {

  @override
  Widget build(BuildContext context) {
    ONEAdMax.initialize((bool isSuccess) {});
  }
}

Handle the process when the application is closed.

Release the resources (View, Memory) allocated in memory when the application is closed.

ONEAdMax.dispose();

Set up logging.

You can expose detailed logs for ONEAdMax during development. (Default: false)

ONEAdMax.setLogEnable(true);

Set up GDPR (General Data Protection Regulation)

To comply with the EU's GDPR (General Data Protection Regulation), add the following API. Please call this API only for users who require GDPR consent. (Default: true)

ONEAdMax.gdprConsentAvailable(true);

Set up COPPA

To comply with the COPPA (Children's Online Privacy Protection Act), add the following API. For the devices where this is set, all ad requests for any ad type will be treated as "No ad." (Default: false)

ONEAdMax.tagForChildDirectedTreatment(false)

Choose ad format

Rewarded Video ADs

This is a reward-based video ad. When the video ad finishes, the completion information is sent via the Complete event callback.

Interstitial ADs

This is an ad that covers the entire screen of the app. Once completed or interrupted by the user, the app's screen will be displayed.

Banner ADs

This displays a rectangular ad that occupies part of the app's screen. You can set the position and time to automatically refresh the ad.

Interstitial Video ADs (Non Reward)

This is an ad type similar to video ads, but without offering rewards.

Flutter

3.22.3

Java SDK (JAva 11)

ONEAdMax : v1.2.1

5-1. 보상형 비디오 광고 for Flutter
5-2. 전면 광고 for Flutter
5-3. 배너 광고 구현하기
5-4. 전면 비디오 광고 for Flutter (비보상형)