05. Flutter-Plugin Guide

๊ฐœ๋ฐœ ๋ฒ„์ „

Flutter

3.22.3

Java SDK (JAva 11)

ONEAdMax : v1.2.1

APP key ๋ฐœ๊ธ‰ ๋ฐ ์ ์šฉํ•˜๊ธฐ

์•ฑํ‚ค๋ฅผ ๋ฐœ๊ธ‰ ํ›„ Flutter Android Module์˜ AndroidManifest.xml์— <meta-data/>๋ฅผ ์„ค์ •ํ•ฉ๋‹ˆ๋‹ค.

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

SDK Initialize

๊ด‘๊ณ ๋ฅผ ๋กœ๋“œํ•˜๊ธฐ ์ „์— ์•ฑ์ด ONEAdMax๋ฅผ ์ดˆ๊ธฐํ™”ํ•ด์•ผ ํ•ฉ๋‹ˆ๋‹ค. ONEAdMax.initialize() ์ดˆ๊ธฐํ™”๋Š” ์ตœ์ดˆ ํ•œ ๋ฒˆ๋งŒ ์ˆ˜ํ–‰ํ•ด์•ผ ํ•ฉ๋‹ˆ๋‹ค.

class _OneAdDemo extends ConsumerState<HomeDetailScreen> {

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

์–ดํ”Œ๋ฆฌ์ผ€์ด์…˜ ์ข…๋ฃŒ

์• ํ”Œ๋ฆฌ์ผ€์ด์…˜์ด ์ข…๋ฃŒ๋  ๋•Œ ๋ฉ”๋ชจ๋ฆฌ์— ํ• ๋‹น๋œ ๋ฆฌ์†Œ์Šค( View, Memory )๋ฅผ ํ•ด์ œํ•ฉ๋‹ˆ๋‹ค.

ONEAdMax.dispose();

๋กœ๊ทธ ์„ค์ •

๊ฐœ๋ฐœ์„ ์œ„ํ•ด ONEAdMax์˜ ์ž์„ธํ•œ ๋กœ๊ทธ๋ฅผ ๋…ธ์ถœํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค. (๊ธฐ๋ณธ๊ฐ’: false)

ONEAdMax.setLogEnable(true);

GDPR ์„ค์ •

EU์˜ GDPR (General Data protection Regulation) ๋ฒ•์•ˆ์— ๋Œ€์‘ํ•˜๊ธฐ ์œ„ํ•ด ์•„๋ž˜ API๋ฅผ ์ถ”๊ฐ€ํ•ฉ๋‹ˆ๋‹ค. GDPR ๋™์˜๊ฐ€ ํ•„์š”ํ•œ ์œ ์ €์— ํ•œํ•ด ์•„๋ž˜ API๋ฅผ ํ˜ธ์ถœํ•˜์‹œ๊ธฐ๋ฅผ ๋ฐ”๋ž๋‹ˆ๋‹ค. (๊ธฐ๋ณธ๊ฐ’: true)

ONEAdMax.gdprConsentAvailable(true);

COPPA ์„ค์ •

COPPA(Children's Online Privacy Protection Rule)๋ฒ•์•ˆ์— ๋Œ€์‘ํ•˜๊ธฐ ์œ„ํ•ด ์•„๋ž˜ API๋ฅผ ์ถ”๊ฐ€ํ•ฉ๋‹ˆ๋‹ค. ํ•ด๋‹น ๋””๋ฐ”์ด์Šค์—์„œ๋Š” ๋ชจ๋“  ๊ด‘๊ณ  ํƒ€์ž…์˜ ๊ด‘๊ณ  ์š”์ฒญ์— ๋Œ€ํ•ด No ad ์ฒ˜๋ฆฌ๋ฉ๋‹ˆ๋‹ค. (๊ธฐ๋ณธ๊ฐ’: false)

ONEAdMax.tagForChildDirectedTreatment(true)

๊ด‘๊ณ  ํ˜•์‹ ์„ ํƒํ•˜๊ธฐ

Reward Video ADs

๋ณด์ƒ์„ ์ œ๊ณตํ•˜๋Š” ๋น„๋””์˜ค ๊ด‘๊ณ ์ž…๋‹ˆ๋‹ค. ๋น„๋””์˜ค ๊ด‘๊ณ  ์ข…๋ฃŒ ์‹œ Complete event callback์œผ๋กœ ๊ด‘๊ณ  ์ฐธ์—ฌ ์™„๋ฃŒ ์ •๋ณด๋ฅผ ์ „๋‹ฌํ•ฉ๋‹ˆ๋‹ค.

5-1. ๋ณด์ƒํ˜• ๋น„๋””์˜ค ๊ด‘๊ณ  for Flutter

Interstitial ADs

์•ฑ์˜ ํ™”๋ฉด ์ „์ฒด๋ฅผ ๋ฎ๋Š” ๊ด‘๊ณ ์ž…๋‹ˆ๋‹ค. ์™„๋ฃŒ๋˜์—ˆ๊ฑฐ๋‚˜ ์œ ์ €์— ์˜ํ•ด ์ค‘๋‹จ ๋˜์—ˆ์„ ๊ฒฝ์šฐ ์•ฑ์˜ ํ™”๋ฉด์œผ๋กœ ์ „ํ™˜๋ฉ๋‹ˆ๋‹ค.

5-2. ์ „๋ฉด ๊ด‘๊ณ  for Flutter

์•ฑ์˜ ์ผ๋ถ€๋ฅผ ์ฐจ์ง€ํ•˜๋Š” ์ง์‚ฌ๊ฐํ˜• ๊ด‘๊ณ ๋ฅผ ํ‘œ์‹œํ•ฉ๋‹ˆ๋‹ค. ์œ„์น˜๋ฅผ ์„ค์ •ํ•˜๊ณ  ์‹œ๊ฐ„์„ ์„ค์ •ํ•˜์—ฌ ์ž๋™์œผ๋กœ ์ƒˆ๋กœ๊ณ ์นจํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.

5-3. ๋ฐฐ๋„ˆ ๊ด‘๊ณ  ๊ตฌํ˜„ํ•˜๊ธฐ

Interstitial Video ADs (Non Reward)

๋น„๋””์˜ค ๊ด‘๊ณ ์™€ ํ˜•ํƒœ๋Š” ๋™์ผํ•˜์ง€๋งŒ ๋ฆฌ์›Œ๋“œ๊ฐ€ ์ œ๊ณต๋˜์ง€ ์•Š๋Š” ๊ด‘๊ณ  ํƒ€์ž…์ž…๋‹ˆ๋‹ค.

5-4. ์ „๋ฉด ๋น„๋””์˜ค ๊ด‘๊ณ  for Flutter (๋น„๋ณด์ƒํ˜•)

Last updated