광고 검사기 실행
컬렉션을 사용해 정리하기
내 환경설정을 기준으로 콘텐츠를 저장하고 분류하세요.
광고 통합을 테스트하기 전에 앱에서 광고 검사기를 실행해야 합니다.
이 페이지에서는 동작을 사용하여 광고 검사기를 실행하는 방법과 프로그래매틱 방식으로 실행하는 방법을 설명합니다.
기본 요건
계속하기 전에 다음을 수행하세요.
- 초기 기본 요건의 모든 항목을 완료하여 AdMob 계정을 만들고, 테스트 기기를 설정하고, Google 모바일 광고 SDK를 초기화하고, 최신 버전을 설치합니다.
출시 옵션 선택
다음과 같은 방법으로 광고 검사기를 실행할 수 있습니다.
- 테스트 기기를 등록한 후 AdMob UI에서 선택한 동작을 사용합니다. 자세한 내용은 테스트 기기 설정을 참고하세요.
- Google 모바일 광고 SDK를 통해 프로그래매틱 방식으로
동작으로 실행하기
동작으로 광고 검사기를 실행하려면 테스트 기기의 AdMob UI에서 구성한 동작(예: 2번 휙 돌리기 또는 흔들기)을 실행합니다. 자세한 내용은 광고 검사기로 앱 테스트하기를 참고하세요.
AdMob UI에서 동작을 설정한 후 적용될 때까지 기다립니다. Google 모바일 광고 SDK를 통해 광고를 요청하여 테스트 기기에 동작 설정을 등록합니다. 동작을 수행해도 광고 검사기가 열리지 않으면 광고를 로드하고 앱을 다시 시작한 다음 동작을 다시 테스트해 보세요.
프로그래매틱 방식으로 실행
다음을 실행하여 광고 검사기를 실행합니다.
자바
MobileAds.openAdInspector(
context,
new OnAdInspectorClosedListener() {
public void onAdInspectorClosed(@Nullable AdInspectorError error) {
// Error will be non-null if ad inspector closed due to an error.
}
});
Kotlin
MobileAds.openAdInspector(context) { error ->
// Error will be non-null if ad inspector closed due to an error.
}
이 메서드는 프로그래매틱 방식으로 등록되거나 AdMob UI를 통해 등록된 테스트 기기에서 작동합니다.
자세한 내용은 테스트 기기 사용 설정을 참고하세요.
달리 명시되지 않는 한 이 페이지의 콘텐츠에는 Creative Commons Attribution 4.0 라이선스에 따라 라이선스가 부여되며, 코드 샘플에는 Apache 2.0 라이선스에 따라 라이선스가 부여됩니다. 자세한 내용은 Google Developers 사이트 정책을 참조하세요. 자바는 Oracle 및/또는 Oracle 계열사의 등록 상표입니다.
최종 업데이트: 2025-08-31(UTC)
[null,null,["최종 업데이트: 2025-08-31(UTC)"],[],[],null,["Select platform: [Android](/admob/android/ad-inspector/launch-ad-inspector \"View this page for the Android platform docs.\") [iOS](/admob/ios/ad-inspector/launch-ad-inspector \"View this page for the iOS platform docs.\") [Unity](/admob/unity/ad-inspector/launch-ad-inspector \"View this page for the Unity platform docs.\") [Flutter](/admob/flutter/ad-inspector/launch-ad-inspector \"View this page for the Flutter platform docs.\")\n\n\u003cbr /\u003e\n\nBefore you test your ad integration, you must launch ad inspector in your app.\nThis page covers how to launch ad inspector\nusing gestures\nand how to launch\nprogrammatically.\n\nPrerequisites\n\nBefore you continue, do the following:\n\n- Complete all items in the initial [Prerequisites](/admob/android/ad-inspector#prerequisites) to create an AdMob account, set your test device, initialize Google Mobile Ads SDK, and install the latest version.\n\nChoose a launch option\n\nYou can launch ad inspector in the following ways:\n\n- Use the gesture you selected in the AdMob UI after registering a test device. For details, see [Set up a test device](https://support.google.com/admob/answer/9691433).\n- Programmatically through the Google Mobile Ads SDK.\n\nLaunch using gestures\n\nTo launch ad inspector with a gesture, perform the gesture, such as a double\nflick or shake, that you configured in AdMob UI for your test\ndevice. For more details, see\n[Test your app with ad inspector](https://support.google.com/admob/answer/10159602).\n\nAfter you set a gesture in the AdMob UI, allow time to propagate. Make an ad\nrequest through the Google Mobile Ads SDK to register your\ngesture setting with your test device. If performing your gesture fails to\nopen in ad inspector, try to load an ad, restart your app, and test the gesture\nagain.\n\nLaunch programmatically\n\nLaunch ad inspector by running the following: \n\nJava \n\n MobileAds.openAdInspector(\n context,\n new OnAdInspectorClosedListener() {\n public void onAdInspectorClosed(@Nullable AdInspectorError error) {\n // Error will be non-null if ad inspector closed due to an error.\n }\n }); \n https://github.com/googleads/googleads-mobile-android-examples/blob/ccc290a583d7f552bdcf81ea76adc05beaa43f0b/java/advanced/APIDemo/app/src/main/java/com/google/android/gms/snippets/AdInspectorSnippets.java#L28-L34\n\nKotlin \n\n MobileAds.openAdInspector(context) { error -\u003e\n // Error will be non-null if ad inspector closed due to an error.\n } \n https://github.com/googleads/googleads-mobile-android-examples/blob/ccc290a583d7f552bdcf81ea76adc05beaa43f0b/kotlin/advanced/APIDemo/app/src/main/java/com/google/android/gms/snippets/AdInspectorSnippets.kt#L25-L27\n\nThis method works for test devices registered\nprogrammatically or in the AdMob UI.\nFor more details, see\n[Enable test devices](/admob/android/test-ads#enable_test_devices)."]]