기본 설정
1. SDK 설치
2. 초기화
import 'dart:io' show Platform;
import 'package:adpopcornssp_flutter/adpopcornssp_flutter.dart';
void main() {
runApp(const MyApp());
}
class MyApp extends StatefulWidget {
const MyApp({super.key});
@override
State<MyApp> createState() => _MyAppState();
}
class _MyAppState extends State<MyApp> {
@override
void initState() {
super.initState();
if (Platform.isAndroid) {
AdPopcornSSP.init('YOUR_ANDROID_APP_KEY');
}
else if (Platform.isIOS) {
AdPopcornSSP.init('YOUR_IOS_APP_KEY');
}
}
}5. 로그 설정
마지막 업데이트