보상형 전면 광고는 자연스러운 앱 전환 중에 자동으로 게재되는 광고에 대해
보상을 제공하는
인센티브형 광고 형식입니다. 보상형 광고와 달리 사용자는
수신 동의를 하지 않고도 보상형 전면 광고를 볼 수 있습니다. 이 가이드에서는 Ad Manager의
보상형 전면 광고를 Flutter 앱에 통합하는 방법을
설명합니다.
기본 요건
Flutter 플러그인 1.1.0 이상
시작하기를 모두 읽어보세요. Flutter 앱에는
이미 Google 모바일 광고 Flutter 플러그인이 있어야
합니다.
항상 테스트 광고로 테스트
앱을 제작하고 테스트할 때는 운영 중인 실제 광고 대신
테스트 광고를 사용하세요. 이렇게 하지 않으면 계정이 정지될 수 있습니다.
테스트 광고를 로드하는 가장 쉬운 방법은 보상형 전면 광고 전용 테스트 광고 단위 ID를
사용하는 것입니다.
/21775744923/example/rewarded-interstitial
테스트 광고 단위는 모든 요청에 대해 테스트 광고를 반환하도록 구성되며
코딩, 테스트, 디버깅 중에 앱에서 자유롭게 사용할 수 있습니다.
단, 앱을 게시하기 전에 이 테스트 광고 단위 ID를 자체 광고 단위 ID로 바꿔야
합니다.
광고 로드
다음 예에서는 보상형 전면 광고를 로드합니다.
classRewardedInterstitialExampleStateextendsState<RewardedInterstitialExample>{RewardedInterstitialAd?_rewardeInterstitialdAd;//TODO:replacethistestadunitwithyourownadunit.finaladUnitId='/21775744923/example/rewarded-interstitial';///Loadsarewardedad.voidloadAd(){RewardedInterstitialAd.loadWithAdManagerAdRequest(adUnitId:adUnitId,adManagerAdRequest:constAdManagerAdRequest(),adLoadCallback:RewardedInterstitialAdLoadCallback(//Calledwhenanadissuccessfullyreceived.onAdLoaded:(ad){debugPrint('$ad loaded.');//Keepareferencetotheadsoyoucanshowitlater._rewardedInterstitialAd=ad;},//Calledwhenanadrequestfailed.onAdFailedToLoad:(LoadAdErrorerror){debugPrint('RewardedInterstitialAd failed to load: $error');},));}}
보상형 전면 광고 이벤트
FullScreenContentCallback을 사용하면 광고 게재, 광고 닫기와 같은 수명 주기 이벤트를
수신 대기할 수 있습니다. 이러한
이벤트에 대한 알림을 받으려면 광고를 게재하기 전에
RewardedInterstitialAd.fullScreenContentCallback을 설정하세요. 이 예에서는 각 메서드를 구현하고
콘솔에 메시지를 기록합니다.
classRewardedInterstitialExampleStateextendsState<RewardedInterstitialExample>{RewardedInterstitialAd?_rewardedInterstitialAd;//TODO:replacethistestadunitwithyourownadunit.finaladUnitId='/21775744923/example/rewarded-interstitial';///Loadsarewardedad.voidloadAd(){RewardedInterstitialAd.loadWithAdManagerAdRequest(adUnitId:adUnitId,adManagerAdRequest:constAdManagerAdRequest(),adLoadCallback:RewardedInterstitialAdLoadCallback(//Calledwhenanadissuccessfullyreceived.onAdLoaded:(ad){ad.fullScreenContentCallback=FullScreenContentCallback(//Calledwhentheadshowedthefullscreencontent.onAdShowedFullScreenContent:(ad){},//Calledwhenanimpressionoccursonthead.onAdImpression:(ad){},//Calledwhentheadfailedtoshowfullscreencontent.onAdFailedToShowFullScreenContent:(ad,err){//Disposetheadheretofreeresources.ad.dispose();},//Calledwhentheaddismissedfullscreencontent.onAdDismissedFullScreenContent:(ad){//Disposetheadheretofreeresources.ad.dispose();},//Calledwhenaclickisrecordedforanad.onAdClicked:(ad){});debugPrint('$ad loaded.');//Keepareferencetotheadsoyoucanshowitlater._rewardedInterstitialAd=ad;},//Calledwhenanadrequestfailed.onAdFailedToLoad:(LoadAdErrorerror){debugprint('RewardedInterstitialAd failed to load: $error');},));}}
광고 표시
RewardedInterstitialAd는 모든 앱 콘텐츠 위에 오버레이로 표시되며
정적으로 배치되므로 Flutter 위젯 트리에 추가할 수 없습니다.
show()를 호출하여 광고 게재 시점을 선택할 수 있습니다.
RewardedInterstitialAd.show()는 사용자가 보상을 획득할 때
호출되는 OnUserEarnedRewardCallback을 사용합니다. 이 이벤트를 구현하고 사용자에게 광고 시청에 대한 보상을
제공해야 합니다.
show()가 호출되면 이 방식으로 게재된 Ad는 프로그래매틱 방식으로 삭제할 수 없으며 사용자가
입력해야 삭제할 수 있습니다. RewardedInterstitialAd는 한 번만 게재될 수
있습니다. 이후 표시되는 호출에서 onAdFailedToShowFullScreenContent가
트리거됩니다.
광고에 대한 액세스가 더 이상 필요하지 않으면 광고를 삭제해야 합니다. dispose()를 호출할 때의
권장사항은
FullScreenContentCallback.onAdDismissedFullScreenContent 및 FullScreenContentCallback.onAdFailedToShowFullScreenContent
콜백입니다.
[[["이해하기 쉬움","easyToUnderstand","thumb-up"],["문제가 해결됨","solvedMyProblem","thumb-up"],["기타","otherUp","thumb-up"]],[["필요한 정보가 없음","missingTheInformationINeed","thumb-down"],["너무 복잡함/단계 수가 너무 많음","tooComplicatedTooManySteps","thumb-down"],["오래됨","outOfDate","thumb-down"],["번역 문제","translationIssue","thumb-down"],["샘플/코드 문제","samplesCodeIssue","thumb-down"],["기타","otherDown","thumb-down"]],["최종 업데이트: 2025-08-25(UTC)"],[[["\u003cp\u003eRewarded interstitial ads are incentivized ads that appear automatically during natural app transitions, offering users rewards for viewing them without requiring opt-in.\u003c/p\u003e\n"],["\u003cp\u003eTo integrate rewarded interstitial ads in your Flutter app, you need to import the Google Mobile Ads Flutter plugin and use the provided code snippets to load and display the ads.\u003c/p\u003e\n"],["\u003cp\u003eAlways test with test ad units before publishing your app to avoid account suspension.\u003c/p\u003e\n"],["\u003cp\u003eBefore displaying an ad, present users with an intro screen providing reward details and an option to skip the ad.\u003c/p\u003e\n"],["\u003cp\u003eImplement the \u003ccode\u003eOnUserEarnedRewardCallback\u003c/code\u003e to reward users when they earn a reward for watching an ad.\u003c/p\u003e\n"]]],[],null,["Select platform: [Android](/ad-manager/mobile-ads-sdk/android/rewarded-interstitial \"View this page for the Android platform docs.\") [iOS](/ad-manager/mobile-ads-sdk/ios/rewarded-interstitial \"View this page for the iOS platform docs.\") [Unity](/ad-manager/mobile-ads-sdk/unity/rewarded-interstitial \"View this page for the Unity platform docs.\") [Flutter](/ad-manager/mobile-ads-sdk/flutter/rewarded-interstitial \"View this page for the Flutter platform docs.\")\n\n\u003cbr /\u003e\n\nRewarded interstitial is a type of incentivized ad format that lets you offer\n[rewards](//support.google.com/admob/answer/7313578) for ads that appear\nautomatically during natural app transitions. Unlike rewarded ads, users aren't\nrequired to opt-in to view a rewarded interstitial. This guide shows how to\nintegrate rewarded interstitial ads from Ad Manager\ninto a Flutter app.\n\nPrerequisites\n\n- Flutter plugin 1.1.0 or higher.\n- Complete [Get Started](/ad-manager/mobile-ads-sdk/flutter/quick-start). Your Flutter app should already have the Google Mobile Ads Flutter plugin imported.\n\nAlways test with test ads\n\nWhen building and testing your apps, make sure you use test ads rather than\nlive, production ads. Failure to do so can lead to suspension of your account.\n\nThe easiest way to load test ads is to use our dedicated test ad unit ID for\nrewarded interstitial ads:\n\n- `/21775744923/example/rewarded-interstitial`\n\nThe test ad units are configured to return test ads for every request, and\nyou're free to use them in your own apps while coding, testing, and debugging.\nJust make sure you replace them with your own ad unit IDs before publishing\nyour app.\n\nLoad an ad\n\nThe following example loads a rewarded interstitial ad: \n\n RewardedInterstitialAd.load(\n adUnitId: \"\u003cvar translate=\"no\"\u003e_adUnitId\u003c/var\u003e\",\n request: const AdManagerAdRequest(),\n rewardedInterstitialAdLoadCallback: RewardedInterstitialAdLoadCallback(\n onAdLoaded: (RewardedInterstitialAd ad) {\n // Called when an ad is successfully received.\n debugPrint('Ad was loaded.');\n // Keep a reference to the ad so you can show it later.\n _rewardedInterstitialAd = ad;\n },\n onAdFailedToLoad: (LoadAdError error) {\n // Called when an ad request failed.\n debugPrint('Ad failed to load with error: $error');\n },\n ),\n ); \n https://github.com/googleads/googleads-mobile-flutter/blob/82c58b3202d8b9391e4d3ec39b045032e90cf331/packages/google_mobile_ads/example/lib/snippets/rewarded_interstitial_ad_snippets.dart#L111-L129\n\nReplace \u003cvar translate=\"no\"\u003e_adUnitId\u003c/var\u003e with your own ad unit ID.\n\nRewarded interstitial ad events\n\nThrough the use of `FullScreenContentCallback`, you can listen for lifecycle\nevents, such as when the ad is shown or dismissed. Set\n`RewardedInterstitialAd.fullScreenContentCallback` before showing the ad to\nreceive notifications for these events. This example implements each method and\nlogs a message to the console: \n\n ad.fullScreenContentCallback = FullScreenContentCallback(\n onAdShowedFullScreenContent: (ad) {\n // Called when the ad showed the full screen content.\n debugPrint('Ad showed full screen content.');\n },\n onAdFailedToShowFullScreenContent: (ad, err) {\n // Called when the ad failed to show full screen content.\n debugPrint('Ad failed to show full screen content with error: $err');\n // Dispose the ad here to free resources.\n ad.dispose();\n },\n onAdDismissedFullScreenContent: (ad) {\n // Called when the ad dismissed full screen content.\n debugPrint('Ad was dismissed.');\n // Dispose the ad here to free resources.\n ad.dispose();\n },\n onAdImpression: (ad) {\n // Called when an impression occurs on the ad.\n debugPrint('Ad recorded an impression.');\n },\n onAdClicked: (ad) {\n // Called when a click is recorded for an ad.\n debugPrint('Ad was clicked.');\n },\n ); \n https://github.com/googleads/googleads-mobile-flutter/blob/82c58b3202d8b9391e4d3ec39b045032e90cf331/packages/google_mobile_ads/example/lib/snippets/rewarded_interstitial_ad_snippets.dart#L57-L82\n\nDisplay ad **Key Point:** Before displaying a rewarded interstitial ad to users, you must present the user with an intro screen that provides clear reward messaging and an option to skip the ad before it starts. [Learn\n| more](//support.google.com/admanager/answer/7386053).\n\nA `RewardedInterstitialAd` is displayed as an Overlay on top of all app content\nand is statically placed; thus, it can't be added to the Flutter widget tree.\nYou can choose when to show the ad by calling `show()`.\n`RewardedInterstitialAd.show()` takes an `OnUserEarnedRewardCallback`, which is\ninvoked when the user earns a reward. Be sure to implement this and reward the\nuser for watching an ad. \n\n _rewardedInterstitialAd?.show(\n onUserEarnedReward: (AdWithoutView view, RewardItem rewardItem) {\n debugPrint('Reward amount: ${rewardItem.amount}');\n },\n ); \n https://github.com/googleads/googleads-mobile-flutter/blob/82c58b3202d8b9391e4d3ec39b045032e90cf331/samples/admob/rewarded_interstitial_example/lib/main.dart#L108-L115\n\nOnce `show()` is called, an `Ad` displayed this way can't be removed\nprogrammatically and requires user input. A `RewardedInterstitialAd` can only\nbe shown once. Subsequent calls to show will trigger\n`onAdFailedToShowFullScreenContent`.\n\nAn ad must be disposed when access to it is no longer needed. The best practice\nfor when to call `dispose()` is in the\n`FullScreenContentCallback.onAdDismissedFullScreenContent` and\n`FullScreenContentCallback.onAdFailedToShowFullScreenContent` callbacks.\n\n\\[Optional\\] Validate server-side verification (SSV) callbacks\n\nApps that require extra data in [server-side verification](/ad-manager/mobile-ads-sdk/flutter/ssv)\ncallbacks should use the custom data feature of rewarded ads. Any string value\nset on a rewarded ad object is passed to the `custom_data` query parameter of\nthe SSV callback. If no custom data value is set, the `custom_data` query\nparameter value won't be present in the SSV callback.\n\nThe following code sample demonstrates how to set the SSV options after the\nrewarded interstitial ad is loaded: \n\n RewardedInterstitialAd.load(\n adUnitId: \"\u003cvar translate=\"no\"\u003e_adUnitId\u003c/var\u003e\",\n request: AdManagerAdRequest(),\n rewardedInterstitialAdLoadCallback: RewardedInterstitialAdLoadCallback(\n onAdLoaded: (ad) {\n ServerSideVerificationOptions _options =\n ServerSideVerificationOptions(\n customData: '\u003cvar translate=\"no\"\u003eSAMPLE_CUSTOM_DATA_STRING\u003c/var\u003e');\n ad.setServerSideOptions(_options);\n _rewardedInterstitialAd = ad;\n },\n onAdFailedToLoad: (error) {},\n ),\n ); \n https://github.com/googleads/googleads-mobile-flutter/blob/82c58b3202d8b9391e4d3ec39b045032e90cf331/packages/google_mobile_ads/example/lib/snippets/rewarded_interstitial_ad_snippets.dart#L135-L148\n\nReplace \u003cvar translate=\"no\"\u003eSAMPLE_CUSTOM_DATA_STRING\u003c/var\u003e with your custom data."]]