Meluncurkan pemeriksa iklan
Tetap teratur dengan koleksi
Simpan dan kategorikan konten berdasarkan preferensi Anda.
Sebelum menguji integrasi iklan, Anda harus meluncurkan pemeriksa iklan di aplikasi.
Halaman ini membahas cara meluncurkan pemeriksa iklan
melalui menu debug dan cara meluncurkannya
secara terprogram.
Prasyarat
Sebelum melanjutkan, lakukan hal berikut:
- Selesaikan semua item di
Prasyarat awal untuk membuat akun Ad Manager, menyetel perangkat pengujian, melakukan inisialisasi Google Mobile Ads SDK, dan menginstal versi terbaru.
Pilih opsi peluncuran
Anda dapat meluncurkan pemeriksa iklan dengan cara berikut:
- Tombol peluncuran dari menu debug dalam aplikasi Anda untuk menggunakan gestur yang Anda pilih di setelan pemeriksa iklan.
- Secara terprogram melalui Google Mobile Ads SDK.
Untuk meluncurkan pemeriksa iklan melalui menu debug, Anda tidak memerlukan perubahan lebih lanjut pada aplikasi. Untuk mengetahui detail selengkapnya, lihat Memeriksa penayangan iklan aplikasi seluler.
Selesaikan langkah berikut:
- Temukan iklan yang ditayangkan di jaringan Ad Manager Anda.
- Sentuh lama iklan untuk membuka menu debug.
- Pilih Open ad inspector.
Dari setelan debug, Anda juga dapat memilih Setelan pemeriksa iklan dan memilih gestur yang dapat membuka pemeriksa iklan.
Meluncurkan secara terprogram
Luncurkan pemeriksa iklan dengan menjalankan perintah berikut:
public void OnButtonClick() {
MobileAds.OpenAdInspector((AdInspectorError error) =>
{
// Error will be set if there was an issue and the inspector was not displayed.
});
}
Metode ini berfungsi untuk perangkat pengujian yang didaftarkan secara terprogram. Untuk mengetahui detail selengkapnya, lihat Mengaktifkan perangkat pengujian.
Kecuali dinyatakan lain, konten di halaman ini dilisensikan berdasarkan Lisensi Creative Commons Attribution 4.0, sedangkan contoh kode dilisensikan berdasarkan Lisensi Apache 2.0. Untuk mengetahui informasi selengkapnya, lihat Kebijakan Situs Google Developers. Java adalah merek dagang terdaftar dari Oracle dan/atau afiliasinya.
Terakhir diperbarui pada 2025-09-02 UTC.
[[["Mudah dipahami","easyToUnderstand","thumb-up"],["Memecahkan masalah saya","solvedMyProblem","thumb-up"],["Lainnya","otherUp","thumb-up"]],[["Informasi yang saya butuhkan tidak ada","missingTheInformationINeed","thumb-down"],["Terlalu rumit/langkahnya terlalu banyak","tooComplicatedTooManySteps","thumb-down"],["Sudah usang","outOfDate","thumb-down"],["Masalah terjemahan","translationIssue","thumb-down"],["Masalah kode / contoh","samplesCodeIssue","thumb-down"],["Lainnya","otherDown","thumb-down"]],["Terakhir diperbarui pada 2025-09-02 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/unity/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\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\n public void OnButtonClick() {\n MobileAds.OpenAdInspector((AdInspectorError error) =\u003e\n {\n // Error will be set if there was an issue and the inspector was not displayed.\n });\n }\n\nThis method works for test devices registered programmatically. For more details, see\n[Enable test devices](/ad-manager/mobile-ads-sdk/unity/test-ads#enable_test_devices)."]]