RTB 發布商設定
Google 透過上傳發布商設定清單的方式提供匯總清單
連結至帳戶專屬的 Google Cloud Storage 值區 (在
Google 所有)。您可以下載這些檔案,用於無法指定
出價時完成的調查若要啟用,請與客戶技術顧問聯絡
這項功能就會在您的帳戶中生效
包含發布商設定的檔案可透過程式下載
使用 Cloud Storage
API (可手動透過 Google Developers 應用程式)
控制台 UI,或使用 gsutil 指令列工具。
請參閱 Google Cloud
儲存空間說明文件,進一步瞭解如何存取儲存在 Google Cloud 服務中的資料
Google Cloud Storage
檔案是採用 gzip 壓縮格式,符合 RFC 1952 標準。從
執行 gzip -d <filename>
如要擷取
藉由編寫程式,您可以使用 zlib 或類似壓縮程式庫
支援 gzip 格式結果會產生序列化的通訊協定緩衝區,類似
BidRequest
中的 POST 要求酬載,請
是使用以下程式碼片段剖析:
string compressed = /* the payload from the GET request */;
string uncompressed = gunzip(compressed);
PublisherSettingsList publisher_settings;
if (publisher_settings.ParseFromString(uncompressed)) {
// Process the publisher settings.
}
PublisherSettingsList
的通訊協定緩衝區定義可以
從參考資料資料中下載
頁面。你也可以要求壓縮
publisher-settings.pb.gz
檔案。這項服務
包含通訊協定緩衝區的定義以及範例發布者
設定檔
PublisherSettingsList
的順序可隨時變更。
不保證會依照特定順序或排序。發布商中的每個項目
設定清單包含識別碼,以及
BidRequests
會標上該 ID。您可以在
出價系統會定期檢查新的發布商設定清單。
當 Google 收到可用於即時出價的曝光時,
Google 會在出價要求中加入與
發布商設定清單您的出價系統可以使用發布商設定
篩選該次曝光的候選廣告必須符合特定條件
候選廣告必須遵守所有發布商設定項目
以及要求中傳送的 ID
請注意,檔案中任何缺少的發布商設定,
,因為 ID 沒有封鎖相關的網址。
將發布商設定檔案拆分為多個較小的檔案,以便減少檔案數量
每筆交易必須下載的資料量。這些檔案
可分為約 5 MB 區塊和名稱
publisher-settings.0.pb.gz
到
publisher-settings.n.pb.gz
(n 是
減 1)。請與您的帳戶代表聯絡,以取得這些
檔案。
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2024-09-10 (世界標準時間)。
[null,null,["上次更新時間:2024-09-10 (世界標準時間)。"],[[["Google provides aggregated publisher settings lists via a Google Cloud Storage bucket for account-specific use, enabling targeting adjustments beyond bidding time."],["These publisher settings files can be accessed programmatically using the Cloud Storage API, manually through the Google Developer Console UI, or via the gsutil command-line tool."],["The files are gzip-compressed and contain a serialized protocol buffer that can be decompressed using commands like `gzip -d \u003cfilename\u003e` or with zlib-like libraries."],["The `PublisherSettingsList` protocol buffer definition, which provides details about the settings and an example file, can be downloaded from the reference data page or requested from your account representative."],["Publisher settings are split into multiple smaller, approximately 5 MB files, named `publisher-settings.0.pb.gz` through `publisher-settings.n.pb.gz`, to ease downloading."]]],["Google provides aggregated publisher settings lists in account-specific Google Cloud Storage buckets. These files, compressed in gzip format, can be downloaded programmatically via the Cloud Storage API, manually through the Google Developer Console, or using the `gsutil` tool. They contain serialized protocol buffers that can be parsed to extract settings. Bidding systems can utilize these settings to filter ads based on identifiers included in bid requests. Files are split into ~5MB chunks. Missing settings are due to lack of associated blocked URLs.\n"]]