AdInspectorError

public final class AdInspectorError extends AdError


ข้อมูลข้อผิดพลาดเกี่ยวกับสาเหตุที่เครื่องมือตรวจสอบโฆษณาล้มเหลว

สรุป

ประเภทที่ซ้อนกัน

ค่าคงที่ที่ AdInspectorError รองรับ

ค่าคงที่

static final int

เปิดเครื่องมือตรวจสอบโฆษณาไม่ได้เนื่องจากเปิดอยู่แล้ว

static final int

โหลดเครื่องมือตรวจสอบโฆษณาไม่สำเร็จ

static final int

เครื่องมือตรวจสอบโฆษณาเกิดข้อผิดพลาดภายใน

static final int

เปิดเครื่องมือตรวจสอบโฆษณาไม่ได้เนื่องจากอุปกรณ์ไม่ได้อยู่ในโหมดทดสอบ

เครื่องมือสร้างสาธารณะ

AdInspectorError(
    @AdInspectorError.AdInspectorErrorCode int code,
    @NonNull String message,
    @NonNull String domain
)

สร้าง AdInspectorError

เมธอดสาธารณะ

int

รับรหัสของข้อผิดพลาด

ค่าคงที่ที่รับค่ามา

จาก com.google.android.gms.ads.AdError
static final String
UNDEFINED_DOMAIN = "undefined"

โดเมนข้อผิดพลาดที่ไม่ได้ระบุไว้

ฟิลด์ที่รับค่า

จาก com.google.android.gms.ads.AdError

วิธีการที่รับค่ามา

จาก com.google.android.gms.ads.AdError
@Nullable AdError

รับสาเหตุของข้อผิดพลาดนี้หรือ null หากไม่มีสาเหตุหรือไม่ทราบสาเหตุ

@NonNull String

รับโดเมนของข้อผิดพลาด

@NonNull String

รับข้อความที่อธิบายข้อผิดพลาด

String

แสดงผลสตริงเวอร์ชันที่เหมาะกับบันทึกของออบเจ็กต์นี้

ค่าคงที่

ERROR_CODE_ALREADY_OPEN

public static final int ERROR_CODE_ALREADY_OPEN = 3

เปิดเครื่องมือตรวจสอบโฆษณาไม่ได้เนื่องจากเปิดอยู่แล้ว

ERROR_CODE_FAILED_TO_LOAD

public static final int ERROR_CODE_FAILED_TO_LOAD = 1

โหลดเครื่องมือตรวจสอบโฆษณาไม่สำเร็จ

ERROR_CODE_INTERNAL_ERROR

public static final int ERROR_CODE_INTERNAL_ERROR = 0

เครื่องมือตรวจสอบโฆษณาเกิดข้อผิดพลาดภายใน

ERROR_CODE_NOT_IN_TEST_MODE

public static final int ERROR_CODE_NOT_IN_TEST_MODE = 2

เปิดเครื่องมือตรวจสอบโฆษณาไม่ได้เนื่องจากอุปกรณ์ไม่ได้อยู่ในโหมดทดสอบ ดูข้อมูลเพิ่มเติมได้ที่ https://developers.google.com/admob/android/test-ads#enable_test_devices

เครื่องมือสร้างสาธารณะ

AdInspectorError

public AdInspectorError(
    @AdInspectorError.AdInspectorErrorCode int code,
    @NonNull String message,
    @NonNull String domain
)

สร้าง AdInspectorError

พารามิเตอร์
@AdInspectorError.AdInspectorErrorCode int code

รหัสข้อผิดพลาด

@NonNull String message

ข้อความที่ระบุรายละเอียดข้อผิดพลาด

@NonNull String domain

โดเมนข้อผิดพลาด

เมธอดสาธารณะ

getCode

@AdInspectorError.AdInspectorErrorCode
public int getCode()

รับรหัสของข้อผิดพลาด