초기화 및 광고 로드 최적화
컬렉션을 사용해 정리하기
내 환경설정을 기준으로 콘텐츠를 저장하고 분류하세요.
Google 모바일 광고(GMA) SDK 버전 21.0.0부터 최적화된 SDK 초기화 및 광고 로드를 사용 설정하여 광고의 전반적인 응답성을 개선하고 앱의 '애플리케이션 응답 없음(ANR)' 오류를 방지할 수 있습니다. 이 가이드에서는 최적화를 사용 설정하기 위해 변경해야 할 사항을 설명합니다.
요구사항
- Google 모바일 광고 Unity 플러그인 버전 7.2.0 이상
Google 모바일 광고 설정 업데이트
Google 모바일 광고 SDK는
기본적으로 최적화를 지원하고, 백그라운드 스레드에서 초기화와 광고 로드 작업 처리를 수행하도록 SDK에 지시합니다.
Google 모바일 광고 SDK 설정
스크립트 가능한 객체에 사용할 수 있는
플래그는
다음과 같습니다.
- 초기화 최적화 사용 중지
- 광고 로드 최적화 사용 중지
다음 설정을 확인하여 기본 스레드에서 광고를 초기화하고 로드하도록 SDK에 지시합니다.
설정 | 동작 |
초기화 최적화 사용 중지 |
MobileAds.initialize() 초기화 호출 최적화를 사용 중지합니다. |
광고 로드 최적화 사용 중지
|
모든 광고 형식에 대한 광고 로드 호출을 최적화합니다. |
광고 로드 호출 최적화를 사용 중지합니다. |
Unity 애셋 메뉴를 통해 Google 모바일 광고 설정에 액세스할 수 있습니다.
애셋 > Google 모바일 광고 > 설정
선택하면 설정 UI가 Unity 편집기 검사기 창에 표시됩니다.

동일한 앱에서 두 옵션 중 하나 또는 둘 다를 사용 설정할 수 있습니다.
달리 명시되지 않는 한 이 페이지의 콘텐츠에는 Creative Commons Attribution 4.0 라이선스에 따라 라이선스가 부여되며, 코드 샘플에는 Apache 2.0 라이선스에 따라 라이선스가 부여됩니다. 자세한 내용은 Google Developers 사이트 정책을 참조하세요. 자바는 Oracle 및/또는 Oracle 계열사의 등록 상표입니다.
최종 업데이트: 2025-08-18(UTC)
[null,null,["최종 업데이트: 2025-08-18(UTC)"],[[["\u003cp\u003eStarting with Google Mobile Ads SDK version 21.0.0, you can optimize SDK initialization and ad loading to enhance ad responsiveness and mitigate ANR errors.\u003c/p\u003e\n"],["\u003cp\u003eThese optimizations are enabled through two flags within the Google Mobile Ads settings: \u003cstrong\u003eOptimize Initialization\u003c/strong\u003e and \u003cstrong\u003eOptimize AdLoading\u003c/strong\u003e, which offload time-consuming tasks to background threads.\u003c/p\u003e\n"],["\u003cp\u003eYou can access and modify these settings via the Unity asset menu: \u003cstrong\u003eAssets > Google Mobile Ads > Settings\u003c/strong\u003e, enabling either or both options based on your needs.\u003c/p\u003e\n"],["\u003cp\u003eBy default, both optimization flags are set to \u003ccode\u003efalse\u003c/code\u003e, requiring you to manually enable them to leverage these improvements.\u003c/p\u003e\n"]]],["Optimized SDK initialization and ad loading can be enabled in Google Mobile Ads (GMA) SDK version 21.0.0 and higher, preventing \"Application Not Responding\" (ANR) errors. To activate, update to Google Mobile Ads Unity plugin version 7.2.0 or higher. In Unity's **Assets \u003e Google Mobile Ads \u003e Settings**, enable **Optimize Initialization** and/or **Optimize AdLoading**. These settings offload initialization and ad loading to background threads. Both flags are `false` by default.\n"],null,["# Optimize initialization and ad loading\n\nSelect platform: [Android](/admob/android/optimize-initialization \"View this page for the Android platform docs.\") [Unity](/admob/unity/optimize-initialization \"View this page for the Unity platform docs.\")\n\n\u003cbr /\u003e\n\nStarting from Google Mobile Ads (GMA) SDK version 21.0.0, you can enable\noptimized SDK initialization and ad loading to improve the overall\nresponsiveness of ads and help prevent [\"Application Not Responding\"\n(ANR)](//developer.android.com/topic/performance/vitals/anr) errors on your app.\nThis guide outlines the changes you need to make to enable these optimizations.\n\nRequirements\n------------\n\n- Complete the [Get Started guide](/admob/unity/quick-start).\n\n\u003c!-- --\u003e\n\n- Google Mobile Ads Unity plugin version 7.2.0 or higher.\n\nUpdate your Google Mobile Ads settings\n--------------------------------------\n\nThe\n\nGoogle Mobile Ads SDK\n\nenables optimization by default, and instructs the SDK to\nperform initialization and ad loading tasks processing on background threads.\n\nThe following flags are available for the\n\nGoogle Mobile Ads SDK\n\nsettings scriptable\nobject:\n\n- Disable initialization optimization\n- Disable ad loading optimization\n\nCheck these settings to instruct the SDK to initialize and load ads on the main\nthread:\n\n| Setting | Behavior |\n|---------------------------------|-----------------------------------------------------------------------|------------------------------------------|\n| Disable Optimize Initialization | Disables optimizing the `MobileAds.initialize()` initialization call. |\n| Disable ad loading optimization | Optimizes ad load calls for all ad formats. | Disables optimizing the ad loading call. |\n\nYou can access the Google Mobile Ads settings through the Unity asset menu:\n\n**Assets \\\u003e Google Mobile Ads \\\u003e Settings**\n\nOnce selected, the settings UI appears in your Unity Editor inspector window.\n\nNote that you can turn on one or both options in the same app."]]