Để thảo luận và đưa ra ý kiến phản hồi về các sản phẩm của chúng tôi, hãy tham gia kênh Discord chính thức của AdMob trong máy chủ Cộng đồng quảng cáo và đo lường của Google.
Để gỡ lỗi và ghi nhật ký, quảng cáo đã tải thành công sẽ cung cấp đối tượng ResponseInfo. Đối tượng này chứa thông tin về quảng cáo đã tải.
Mỗi lớp định dạng quảng cáo đều có một thuộc tính responseInfo được điền sau khi quảng cáo đó tải.
Các thuộc tính của ResponseInfo bao gồm:
Thuộc tính
Mô tả
adapterResponses
Danh sách AdapterResponseInfo chứa siêu dữ liệu cho từng bộ chuyển đổi có trong nội dung phản hồi quảng cáo. Bạn có thể sử dụng danh sách này để gỡ lỗi cách đặt giá thầu và cách thực thi quy trình dàn xếp kiểu thác nước. Thứ tự của danh sách này khớp với thứ tự của quy trình dàn xếp kiểu thác nước cho yêu cầu quảng cáo này.
Trả về AdapterResponseInfo tương ứng với bộ chuyển đổi đã tải quảng cáo.
mediationAdapterClassName
Trả về tên lớp bộ chuyển đổi dàn xếp của mạng quảng cáo đã tải quảng cáo.
responseId
Giá trị nhận dạng nội dung phản hồi là giá trị nhận dạng duy nhất của nội dung phản hồi quảng cáo. Hệ thống
có thể sử dụng giá trị nhận dạng này để xác định và chặn quảng cáo trong Trung tâm xem xét quảng cáo (ARC).
responseExtras
Trả về thông tin bổ sung về nội dung phản hồi quảng cáo. Phương thức bổ sung có thể trả về các khoá sau:
mediation_ab_test_variant: Biến thể được dùng trong thử nghiệm A/B cho tính năng dàn xếp (nếu có)
Thông tin phản hồi của bộ chuyển đổi
AdapterResponseInfo chứa siêu dữ liệu cho mỗi bộ chuyển đổi có trong nội dung phản hồi quảng cáo. Bạn có thể sử dụng siêu dữ liệu này để gỡ lỗi cho cách đặt giá thầu và cách thực thi quy trình dàn xếp kiểu thác nước. Thứ tự của danh sách này khớp với thứ tự của quy trình dàn xếp kiểu thác nước cho yêu cầu quảng cáo.
Đối với mỗi mạng quảng cáo, AdapterResponseInfo sẽ cung cấp các thuộc tính sau:
Thuộc tính
Mô tả
adapterClassName
Một tên lớp xác định mạng quảng cáo.
credentials
Nội dung mô tả dạng chuỗi về thông tin đăng nhập của bộ chuyển đổi được chỉ định trong giao diện người dùng AdMob.
adError
Lỗi liên quan đến yêu cầu được gửi tới mạng. Trống nếu mạng
đã tải quảng cáo thành công hoặc nếu mạng chưa thử tải quảng cáo.
latencyMillis
Lượng thời gian cần để mạng quảng cáo tải quảng cáo. 0 nếu
mạng chưa thử tải quảng cáo.
description
Một phiên bản chuỗi dành cho nhật ký của AdapterResponseInfo.
[null,null,["Cập nhật lần gần đây nhất: 2025-09-02 UTC."],[[["\u003cp\u003eThe \u003ccode\u003eResponseInfo\u003c/code\u003e object, accessible via the \u003ccode\u003eresponseInfo\u003c/code\u003e property of ad format classes, provides debugging and logging data for successfully loaded ads.\u003c/p\u003e\n"],["\u003cp\u003eThis object includes details such as adapter responses, the loading adapter, mediation information, a unique response ID, and optional response extras.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eAdapterResponseInfo\u003c/code\u003e objects within \u003ccode\u003eResponseInfo\u003c/code\u003e offer insights into each adapter's performance in the mediation waterfall, including latency, errors, and credentials.\u003c/p\u003e\n"],["\u003cp\u003eThese objects are crucial for understanding ad loading behavior and diagnosing issues in the ad serving process.\u003c/p\u003e\n"]]],[],null,["Select platform: [Android](/admob/android/response-info \"View this page for the Android platform docs.\") [iOS](/admob/ios/response-info \"View this page for the iOS platform docs.\") [Unity](/admob/unity/response-info \"View this page for the Unity platform docs.\") [Flutter](/admob/flutter/response-info \"View this page for the Flutter platform docs.\")\n\n\u003cbr /\u003e\n\nFor debugging and logging purposes, successfully loaded ads provide a\n`ResponseInfo` object. This object contains information about the ad it loaded.\nEach ad format class has a property `responseInfo` which is populated after\nit loads.\n\nProperties on the `ResponseInfo` include:\n\n| Property | Description |\n|-----------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `adapterResponses` | The list of `AdapterResponseInfo` containing metadata for each adapter included in the ad response. Can be used to debug the waterfall mediation and bidding execution. The order of the list matches the order of the mediation waterfall for this ad request. See [Adapter Response Info](#adapter_response_info) for more information. |\n| `loadedAdapterResponseInfo` | Returns the `AdapterResponseInfo` corresponding to the adapter that loaded the ad. |\n| `mediationAdapterClassName` | Returns the mediation adapter class name of the ad network that loaded the ad. |\n| `responseId` | The response identifier is a unique identifier for the ad response. This identifier can be used to identify and block the ad in the [Ads Review Center (ARC)](//support.google.com/admob/answer/3480906). |\n| `responseExtras` | | **Beta:** This API is in beta. Returned values can change without an SDK release. Returns extra information about the ad response. Extras may return the following keys: - `mediation_group_name`: The name of the mediation group - `mediation_ab_test_name`: The name of the [mediation A/B test](//support.google.com/admob/answer/9572326), if applicable - `mediation_ab_test_variant`: The variant used in the mediation A/B test, if applicable |\n\nAdapter Response Info\n\n`AdapterResponseInfo` contains metadata for each adapter included in the ad\nresponse which can be used to debug the waterfall mediation and bidding\nexecution. The order of the list matches the order of the mediation waterfall\nfor the ad request.\n\nFor each ad network, `AdapterResponseInfo` provides the following\nproperties:\n\n| Property | Description |\n|--------------------|--------------------------------------------------------------------------------------------------------------------------------------|\n| `adapterClassName` | A class name that identifies the ad network. |\n| `credentials` | A string description of adapter credentials specified in the AdMob UI. |\n| `adError` | Error associated with the request to the network. Null if the network successfully loaded an ad or if the network was not attempted. |\n| `latencyMillis` | Amount of time the ad network spent loading an ad. `0` if the network was not attempted. |\n| `description` | A log friendly string version of the AdapterResponseInfo. |"]]