เปิดใช้เครื่องมือตรวจสอบโฆษณา
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
ก่อนที่จะทดสอบการผสานรวมโฆษณา คุณต้องเปิดใช้เครื่องมือตรวจสอบโฆษณาในแอป
หน้านี้จะอธิบายวิธีเปิดใช้เครื่องมือตรวจสอบโฆษณา
ผ่านเมนูแก้ไขข้อบกพร่องและวิธีเปิดใช้
แบบเป็นโปรแกรม
ข้อกำหนดเบื้องต้น
ก่อนดำเนินการต่อ ให้ทำดังนี้
- ทําตามรายการทั้งหมดในข้อกําหนดเบื้องต้นเริ่มต้นเพื่อสร้างบัญชี Ad Manager ตั้งค่าอุปกรณ์ทดสอบ เริ่มต้น Google Mobile Ads SDK
และติดตั้งเวอร์ชันล่าสุด
เลือกตัวเลือกการเปิดตัว
คุณเปิดใช้เครื่องมือตรวจสอบโฆษณาได้ด้วยวิธีต่อไปนี้
- ปุ่มเปิดจากเมนูการแก้ไขข้อบกพร่องภายในแอปเพื่อใช้ท่าทางสัมผัส
ที่คุณเลือกในการตั้งค่าเครื่องมือตรวจสอบโฆษณา
- โดยอัตโนมัติผ่าน SDK โฆษณาในอุปกรณ์เคลื่อนที่ของ Google
หากต้องการเปิดใช้เครื่องมือตรวจสอบโฆษณาผ่านเมนูแก้ไขข้อบกพร่อง คุณไม่จำเป็นต้องทำการเปลี่ยนแปลงเพิ่มเติมในแอป ดูรายละเอียดเพิ่มเติมได้ที่ตรวจสอบการแสดงโฆษณาในแอปบนอุปกรณ์เคลื่อนที่
ทำตามขั้นตอนต่อไปนี้ให้ครบถ้วน
- ค้นหาโฆษณาที่แสดงในเครือข่าย Ad Manager
- แตะโฆษณาค้างไว้เพื่อเปิดเมนูการแก้ไขข้อบกพร่อง
- เลือกเปิดเครื่องมือตรวจสอบโฆษณา
จากการตั้งค่าการแก้ไขข้อบกพร่อง คุณยังเลือกการตั้งค่าเครื่องมือตรวจสอบโฆษณาและ
เลือกท่าทางสัมผัสที่เปิดเครื่องมือตรวจสอบโฆษณาได้ด้วย
เปิดใช้งานแบบเป็นโปรแกรม
เปิดเครื่องมือตรวจสอบโฆษณาโดยเรียกใช้คำสั่งต่อไปนี้
public void OnButtonClick() {
MobileAds.OpenAdInspector((AdInspectorError error) =>
{
// Error will be set if there was an issue and the inspector was not displayed.
});
}
วิธีนี้ใช้ได้กับอุปกรณ์ทดสอบที่ลงทะเบียนโดยใช้โปรแกรม ดูรายละเอียดเพิ่มเติมได้ที่เปิดใช้อุปกรณ์ทดสอบ
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-08-31 UTC
[null,null,["อัปเดตล่าสุด 2025-08-31 UTC"],[],[],null,["# Launch ad inspector\n\nSelect 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-------------\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----------------------\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\n### Launch 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\n### Launch 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)."]]