광고 검사기 실행
컬렉션을 사용해 정리하기
내 환경설정을 기준으로 콘텐츠를 저장하고 분류하세요.
광고 통합을 테스트하기 전에 앱에서 광고 검사기를 실행해야 합니다.
이 페이지에서는 디버그 메뉴를 통해 광고 검사기를 실행하는 방법과 프로그래매틱 방식으로 실행하는 방법을 설명합니다.
기본 요건
계속하기 전에 다음을 수행하세요.
- 초기 기본 요건의 모든 항목을 완료하여 Ad Manager 계정을 만들고, 테스트 기기를 설정하고, Google 모바일 광고 SDK를 초기화하고, 최신 버전을 설치합니다.
출시 옵션 선택
다음과 같은 방법으로 광고 검사기를 실행할 수 있습니다.
- 앱 내 디버그 메뉴의 실행 버튼을 사용하여 광고 검사기 설정에서 선택한 동작을 사용합니다.
- Google 모바일 광고 SDK를 통해 프로그래매틱 방식으로
디버그 메뉴를 통해 광고 검사기를 실행하기 위해 앱을 추가로 변경할 필요는 없습니다. 자세한 내용은 모바일 앱 광고 게재 검사를 참고하세요.
다음 단계를 완료합니다.
- Ad Manager 네트워크에서 게재된 광고를 찾습니다.
- 광고를 길게 터치하여 디버그 메뉴를 엽니다.
- 광고 검사기 열기를 선택합니다.
기기를 연결하지 않은 경우 Ad Manager 계정에 로그인해야 할 수도 있습니다.
디버그 설정에서 광고 검사기 설정을 선택한 다음, 광고 검사기를 열게 해 주는 동작을 선택할 수도 있습니다.
프로그래매틱 방식으로 실행
다음을 실행하여 광고 검사기를 실행합니다.
자바
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.
}
이 메서드는 프로그래매틱 방식으로 등록된 테스트 기기에서 작동합니다. 자세한 내용은 테스트 기기 사용 설정을 참고하세요.
달리 명시되지 않는 한 이 페이지의 콘텐츠에는 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](/ad-manager/mobile-ads-sdk/android/ad-inspector/launch-ad-inspector \"View this page for the Android platform docs.\") [iOS](/ad-manager/mobile-ads-sdk/ios/ad-inspector/launch-ad-inspector \"View this page for the iOS platform docs.\") [Unity](/ad-manager/mobile-ads-sdk/unity/ad-inspector/launch-ad-inspector \"View this page for the Unity platform docs.\") [Flutter](/ad-manager/mobile-ads-sdk/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\nthrough the debug menu and how to launch\nprogrammatically.\n\nPrerequisites\n\nBefore you continue, do the following:\n\n- Complete all items in the initial [Prerequisites](/ad-manager/mobile-ads-sdk/android/ad-inspector#prerequisites) to create an Ad Manager 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- The launch button from the debug menu within your app to use the gesture that you selected in the ad inspector settings.\n- Programmatically through the Google Mobile Ads SDK.\n\nLaunch using the debug menu\n\nTo launch ad inspector through the debug menu, you don't require further\nchanges on your app. For more details, see\n[Inspect mobile app ad delivery](//support.google.com/admanager/answer/7180401).\n\nComplete the following steps:\n\n1. Find an ad served in your Ad Manager network.\n2. Touch and hold the ad to open the debug menu.\n3. Select **Open ad inspector**.\n\nIf you didn't [link your device](/ad-manager/mobile-ads-sdk/android/debug#link_your_device), you might\nneed to sign in to your Ad Manager account.\n\nFrom the debug settings, you can also select **Ad inspector settings** and\nchoose a gesture that can open ad inspector.\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 programmatically. For more details, see\n[Enable test devices](/ad-manager/mobile-ads-sdk/android/test-ads#enable_test_devices)."]]