Sử dụng bộ sưu tập để sắp xếp ngăn nắp các trang
Lưu và phân loại nội dung dựa trên lựa chọn ưu tiên của bạn.
Hướng dẫn này cung cấp thông tin tổng quan về các khái niệm đặt giá thầu theo thời gian thực (RTB) cần thiết để viết ứng dụng của bên đặt giá thầu có thể tham gia tính năng Đặt giá thầu theo thời gian thực của Authorized Buyers.
Thông tin cơ bản
Ứng dụng bên đặt giá thầu có thể giao tiếp với Google bằng một trong các giao thức RTB được hỗ trợ. Yêu cầu giá thầu được gửi đến một ứng dụng cung cấp ngữ cảnh về ít nhất một cơ hội quảng cáo để bên đặt giá thầu có thể xác định mẫu quảng cáo và giá thầu tối ưu (nếu có) cho mỗi lượt hiển thị. Bên đặt giá thầu có thể phản hồi bằng một phản hồi giá thầu để đặt ít nhất một giá thầu và chỉ định mẫu quảng cáo sẽ được đặt cho các cơ hội quảng cáo được gửi trong yêu cầu.
Trường hợp sau đây là một trong những hoạt động tương tác có thể xảy ra giữa ứng dụng bên đặt giá thầu và Authorized Buyers:
Google gửi cho ứng dụng của bên đặt giá thầu một yêu cầu giá thầu mô tả một lượt hiển thị đang được đấu giá. Tài khoản của bên đặt giá thầu được định cấu hình để sử dụng OpenRTB ở định dạng Protobuf, vì vậy, yêu cầu sẽ đến dưới dạng BidRequest được chuyển đổi tuần tự như trong openrtb.proto.
Để tìm hiểu cách ứng dụng của bạn diễn giải yêu cầu giá thầu, hãy xem phần Xử lý yêu cầu.
Ứng dụng bên đặt giá thầu phân tích cú pháp yêu cầu và áp dụng logic đặt giá thầu để tạo một BidResponse bao gồm giá thầu và mẫu quảng cáo cho cơ hội quảng cáo. Sau đó, ứng dụng sẽ chuyển đổi tuần tự phản hồi giá thầu và gửi phản hồi đó đến Google. Để tìm hiểu cách ứng dụng của bạn tạo và trả về phản hồi giá thầu, hãy xem phần Tạo phản hồi.
Hệ thống nhận được phản hồi giá thầu và giá thầu đó sẽ tham gia phiên đấu giá mở. Tại đây, giá thầu đó sẽ giành chiến thắng trong lượt hiển thị vì là giá thầu cao nhất. Do đó, mẫu quảng cáo được chỉ định trong phản hồi sẽ được đặt.
Chọn giao thức
Giao thức đặt giá thầu theo thời gian thực chỉ định các tín hiệu mà ứng dụng của bạn có thể sử dụng để đánh giá và đặt giá thầu cho từng lượt hiển thị được gửi trong một yêu cầu, cũng như cách tạo phản hồi. Có hai cách để sửa đổi giao thức liên kết với ứng dụng bên đặt giá thầu:
Hãy liên hệ với Nhà quản lý tài khoản kỹ thuật để thay đổi thông tin này theo cách thủ công.
Cách triển khai thông số kỹ thuật OpenRTB bằng JSON.
Giới thiệu về Vùng đệm giao thức
Protobuf là một định dạng mã nguồn mở để biểu thị và chuyển đổi tuần tự thông tin có cấu trúc.
Nếu muốn sử dụng OpenRTB Protobuf, bạn phải cài đặt trình biên dịch giao thức và thời gian chạy Protobuf cho ngôn ngữ đã chọn. Sau đó, bạn có thể tải các tệp proto mà bạn dự định sử dụng xuống và chạy trình biên dịch để tạo một thư viện có thể chuyển đổi tuần tự hoặc chuyển đổi tuần tự ngược các thông điệp được xác định trong proto, chẳng hạn như BidRequest hoặc BidResponse. Tài liệu tham khảo về Protobuf này minh hoạ cách thực hiện việc này cho một số ngôn ngữ.
Thông tin cập nhật về giao thức
Các giao thức RTB sẽ được sửa đổi khi Google thêm các tính năng mới và ngừng sử dụng các tính năng khác. Chúng tôi sẽ thông báo trước khi các thay đổi có hiệu lực, để bạn có đủ thời gian xoá mọi phần phụ thuộc mà ứng dụng của bạn có thể có trên các trường dự kiến ngừng sử dụng. Để biết thêm thông tin về cách xử lý các trường không dùng nữa, hãy xem phần Điều chỉnh khi các trường BidRequest không dùng nữa.
Các bước tiếp theo
Nội dung sau đây cung cấp thêm thông tin chi tiết về các khái niệm liên quan đến tính năng đặt giá thầu theo thời gian thực:
Xử lý yêu cầu: Cách phân tích cú pháp và diễn giải các tín hiệu có trong hầu hết các yêu cầu giá thầu.
Tạo phản hồi: Cách tạo phản hồi giá thầu và các trường thường được chỉ định trong phản hồi.
Hướng dẫn về OpenRTB: Tài liệu tham khảo về cách triển khai quy cách OpenRTB của Authorized Buyers, ngoài các tiện ích dành riêng cho Authorized Buyers. Chi tiết về các trường hợp đặc biệt và giới hạn dành riêng cho phương thức triển khai này, đồng thời xác định các trường tương đương trong giao thức của Google.
Kiểm thử và phát hành ứng dụng: Thông tin chi tiết về cách bắt đầu kiểm thử ứng dụng bên đặt giá thầu bằng lưu lượng truy cập do Google gửi trên quy mô lớn.
[null,null,["Cập nhật lần gần đây nhất: 2025-08-21 UTC."],[[["\u003cp\u003eThis guide outlines the fundamental concepts of real-time bidding (RTB) for building bidder applications that integrate with Authorized Buyers.\u003c/p\u003e\n"],["\u003cp\u003eBidder applications communicate with Authorized Buyers using supported RTB protocols, receiving bid requests containing ad opportunity details and responding with bids and creative selections.\u003c/p\u003e\n"],["\u003cp\u003eThe interaction involves Google sending a bid request, the bidder processing it and sending a bid response, and, if successful, the winning creative being placed.\u003c/p\u003e\n"],["\u003cp\u003eAuthorized Buyers supports the OpenRTB (Protobuf and JSON) protocols, while the older Google protocol is now deprecated and should not be used.\u003c/p\u003e\n"],["\u003cp\u003eThere are several resources provided for understanding request processing, response building, OpenRTB guidelines, testing, pretargeting, and more to complete bidder development.\u003c/p\u003e\n"]]],[],null,["# Real-time Bidding\n\nThis guide provides an overview of real-time bidding (RTB) concepts that are\nneeded to write bidder applications that can participate in Authorized Buyers\nReal-time Bidding.\n\nBasics\n------\n\nA bidder application can communicate with Google using one of the\n[supported RTB protocols](#select-a-protocol). A bid request sent to\nan application provides context about at least one ad opportunity so that the\nbidder can determine the optimal creative and bid amount (if any) for each\nimpression. A bidder can respond with a bid response to place at least one bid\nand specify the creative to be placed for ad opportunities sent in the request.\n\nThe following scenario is one possible interaction between a bidder\napplication and Authorized Buyers:\n\n1. Google sends the bidder application a bid request that describes an impression being auctioned. The bidder's account is configured to use OpenRTB in the Protobuf format, so the request arrives as a serialized `BidRequest` as seen in [openrtb.proto](/authorized-buyers/rtb/downloads/openrtb-proto). To learn how your application should interpret the bid request, see [Processing the Request](/authorized-buyers/rtb/request-guide).\n2. The bidder application parses the request and applies its bidding logic to\n construct a `BidResponse` that includes a bid and creative for the\n ad opportunity. The application then serializes the bid response and sends it\n to Google. To learn how your application should create and return a bid\n response, see\n [Building the Response](/authorized-buyers/rtb/response-guide).\n\n3. The bid response is received and its bid enters the open auction, where it\n wins the impression because it is the highest bid. As a result, the creative\n specified in the response is placed.\n\n | **Note:** Google waits 80 to 1000 ms for the bidder application to respond, depending on the format and auction type. To determine the exact value, see the `BidRequest.tmax` field. All responses received after the deadline will be excluded from the auction.\n\nSelect a protocol\n-----------------\n\nThe real-time bidding protocol specifies the signals your application can\nuse to evaluate and bid on each impression sent in a request, as well as how to\nconstruct a response. There are two ways to modify the protocol associated with\nyour bidder application:\n\n- Contact your Technical Account Manager to manually change it.\n- Use the [Authorized Buyers REST API](/authorized-buyers/apis/v1.4/accounts#bidderLocation.bidProtocol) to programmatically change it..\n\n### Supported protocols\n\nAuthorized Buyers supports two RTB protocols:\n\n[OpenRTB](/authorized-buyers/rtb/openrtb-guide) (Protobuf)\n\n: An implementation of the OpenRTB specification using Protobuf.\n\n[OpenRTB](/authorized-buyers/rtb/openrtb-guide) (JSON)\n\n: An implementation of the OpenRTB specification using JSON.\n\n### About Protocol Buffers\n\nProtobuf is an\n[open-source](//github.com/protocolbuffers/protobuf?tab=readme-ov-file#overview)\nformat for representing and serializing structured information.\n\nIf you want to use OpenRTB Protobuf, you must install the protocol compiler\nand Protobuf runtime for your chosen language. You can then\n[download](/authorized-buyers/rtb/data#protos) the proto files you\nintend to use and run the compiler to generate a library that can serialize or\ndeserialize messages defined in the proto, such as `BidRequest` or\n`BidResponse`. This\n[Protobuf reference](/protocol-buffers/docs/reference/overview)\ndemonstrates how to do this for several languages.\n\n### Protocol updates\n\nThe RTB protocols will be modified as Google adds new features and\ndeprecates others. Changes will be announced well before they take effect,\nwhich should give you sufficient time to remove any dependencies your\napplication may have on fields that are scheduled for deprecation. For more\ninformation on handling deprecated fields, see\n[Adapting as BidRequest Fields are Deprecated](/authorized-buyers/rtb/request-guide#adapt).\n\nNext steps\n----------\n\nThe following content provides more specifics about real-time bidding\nconcepts:\n\n- [Process the Request](/authorized-buyers/rtb/request-guide): How to parse and interpret signals found in most bid requests.\n- [Build the Response](/authorized-buyers/rtb/response-guide): How to build a bid response, and fields commonly specified in the response.\n- [OpenRTB Guide](/authorized-buyers/rtb/openrtb-guide): Reference for the Authorized Buyers implementation of the OpenRTB specification, in addition to Authorized Buyers-specific extensions. Details edge-cases and limitations specific to this implementation, and identifies equivalent fields in the Google protocol.\n- [Requirements for Third-party Ad Serving](//support.google.com/adspolicy/answer/94230): Defines policies bidders must comply with to use various ad formats, as well as technical specifications of those formats.\n- [Pretargeting](/authorized-buyers/rtb/target-guide): How to configure your bidder application to receive only impressions matching your targeting criteria.\n- [Cookie Matching](/authorized-buyers/rtb/cookie-guide): Reference for the Cookie Matching Service, and other related services, used for remarketing.\n- [Latency Restrictions and Peering](/authorized-buyers/rtb/peer-guide): Details on trading locations and how to lower latency, such as by peering.\n- [Testing and Releasing Your Application](/authorized-buyers/rtb/test-guide): Details on how to start testing your bidder application with traffic sent by Google at scale."]]