出价方可以在单个出价响应中为多个买方购买广告资源。例如,需求方平台 (DSP) 可能会使用其出价应用为多个营销人员或代理机构(即买方)购买广告资源。本指南介绍了如何对出价方进行编码,以处理代表多个买方发送的单个请求。
背景
在某些情况下,广告联盟或代理机构交易公司可能会选择与一个或多个 DSP 合作。通过 DSP 合作的买方可以选择以下两种方式:
- DSP 为营销人员或代理机构(即 非 买方)购买广告资源。在这种情况下,DSP 会收到一个出价请求 并以一个出价进行响应。Google 会直接向 DSP 收取费用。
- DSP 为营销人员或代理机构(即 买方)购买广告资源。DSP 会收到一个出价请求,其中包含与符合条件的买方关联的多个结算 ID,并且可以为每个 买方(DSP 打算代表其出价)设置不同的出价。在这种模式下,Google 会向 买方(而不是 DSP)收取费用。本指南的其余部分将重点介绍这种情况。
设置和预定位
Google 会发送一个出价请求,其中包含与买方关联的一个或多个结算 ID,以及定位到相应展示机会的预定位配置。
您可以使用 BidRequest.imp.ext.billing_id 字段找到这些信息。
在响应包含来自多个买方的结算 ID 的 BidRequest 时,您需要设置 BidResponse.seatbid.bid.ext.billing_id,以便 Google 知道要将出价与哪个账号相关联。系统会过滤掉未设置该字段的任何响应。对于仅包含单个结算 ID 的任何 BidRequest,该字段仍然是可选字段。
预定位示例
出价方代表两个买方出价,一个买方的结算 ID 为 123,另一个买方的结算 ID 为 124。出价方配置了一个结算 ID 为 213 的预定位配置,以定位到英语,并配置了另一个结算 ID 为 231 的预定位配置,以定位到个人电脑。下面介绍了在针对不同类型的展示机会的出价请求中显示的结算 ID。
| 展示机会说明 | 出价请求中的结算 ID |
|---|---|
| 个人电脑上的日语内容。 | 123、124、231 |
| 手机上的英语内容。 | 123、124、213 |
| 个人电脑上的英语内容。 | 123、124、213、231 |
BidRequest 示例
以下是 BidRequest 的示例。您会注意到,这些请求中包含多个结算 ID
,因为这些请求适用于多个账号。
OpenRTB Protobuf
显示示例
序列化请求id: "a7gs668pOD71593174WD18" imp { id: "1" banner { w: 320 h: 50 pos: ABOVE_THE_FOLD battr: VIDEO_IN_BANNER_AUTO_PLAY battr: VIDEO_IN_BANNER_USER_INITIATED api: MRAID_1 api: MRAID_2 format { w: 320 h: 50 } } displaymanager: "GoogleMobileAds-iOS" displaymanagerver: "12.11.0" tagid: "1775995363" bidfloor: 10.0 bidfloorcur: "JPY" pmp { deals { id: "28061984" bidfloor: 10.0 bidfloorcur: "JPY" [com.google.doubleclick.deal] { deal_type: MARKETPLACE_PACKAGE } } } secure: true exp: 3600 clickbrowser: true metric { type: "click_through_rate" value: 0.0007115462212823331 vendor: "EXCHANGE" } metric { type: "viewability" value: 0.83 vendor: "EXCHANGE" } [com.google.doubleclick.imp] { billing_id: 25077279506 billing_id: 81842042446 publisher_settings_list_id: 9245119909902343598 publisher_settings_list_id: 7060632308909145426 allowed_vendor_type: 0 ampad: AMP_AD_NOT_ALLOWED buyer_generated_request_data { source_app { id: "com.google.ads.mediation.test.TestAdapter" } data: "Test Data" } excluded_creatives { buyer_creative_id: "EXCLUDED_BUYER_CREATIVE_ID" } excluded_creatives { buyer_creative_id: "EXCLUDED_BUYER_CREATIVE_ID" } skadn { sourceapp: "com.google.testapp" skadnetids: "3Y4W2r13" skadnetids: "D2b9v6eq" versions: "2.0" versions: "2.1" fidelities: STOREKIT_RENDERED_ADS fidelities: VIEW_THROUGH_ADS } creative_enforcement_settings { policy_enforcement: POLICY_ENFORCEMENT_NETWORK_AND_PLATFORM_POLICY publisher_blocks_enforcement: PUBLISHER_BLOCKS_ENFORCEMENT_APPLIES } billable_event_rate_bid_adjustment { bid_adjustment: 1.0 creative_type: HTML_SNIPPET } jsver: "test-sdk_123456789" } } app { name: "Test App" cat: "IAB19-15" pagecat: "IAB19-15" ver: "26.39.0" bundle: "com.google.testapp" publisher { id: "pub-3006071972218254" [com.google.doubleclick.publisher] { country: "US" } } content { url: "https://www.google.com" language: "en" genre: "Business Banking & Finance,Financial Regulation,Automotive Industry,News and Politics,Government Business,Job Market,Personal Finance,Economy,Private Equity,Logistics and Transportation Industry,Crossover,Smart Home,Business and Finance,Celebrity Style,Minivan,Careers,Women\'s Fashion,Consumer Banking,Job Search,Apprenticeships" data { id: "0" segment { id: "OMITTED" } segment { id: "OMITTED" } [com.google.doubleclick.data] { segtax: 6 } } } storeurl: "https://www.google.com" cattax: IAB_CONTENT_1_0 [com.google.doubleclick.app] { installed_sdk { id: "com.google.ads.mediation.test.TestAdapter" sdk_version { major: 8 minor: 16 micro: 0 } adapter_version { major: 8 minor: 16 micro: 0 } } } } device { ua: "OMITTED" geo { lat: 0.0 lon: 0.0 country: "USA" region: "TX" metro: "623" city: "Grand Prairie" zip: "75052" type: IP utcoffset: -300 accuracy: 4812 [com.google.doubleclick.geo] { geo_criteria_id: 9026819 } } ipv6: "2607:fb91:97c:3624:b9ba:48ef:bbc3:ea22" carrier: "70093" language: "en" make: "Apple" model: "iPhone13,4" os: "iOS" osv: "26.7.1" connectiontype: CELL_4G devicetype: HIGHEND_PHONE ifa: "d2ee7c9c-d000-4abb-9fe3-b6f9891f59af" hwv: "iPhone13,4" w: 428 h: 926 pxratio: 3.0 sua { browsers { brand: "Mozilla" version: "5" version: "0" } browsers { brand: "AppleWebKit" version: "605" version: "1" } platform { brand: "iPhone" version: "26" version: "7" } mobile: true bitness: "64" model: "iPhone" source: USER_AGENT_STRING } [com.google.doubleclick.device] { atts: 3 audioout: AUDIO_SPEAKER ifa_type: "idfa" scrollposx: 0 scrollposy: 0 } } user { [com.google.doubleclick.user] { eids { source: "OMITTED_SOURCE" uids { id: "OMITTED_ID" } } session { duration: 94 depth: 8 requestssinceappopen: 11 } } } at: FIRST_PRICE tmax: 700 cur: "AUD" cur: "KRW" bcat: "5" bcat: "10" regs { gpp: "OMITTED" gpp_sid: USNAT } source { schain { complete: true nodes { asi: "testssp.com" sid: "pub-1111111111111111" hp: true } ver: "1.0" } [com.google.doubleclick.source] { omidpn: "Google" omidpv: "afma-sdk-i-v12.11.0" } } cattax: GOOGLE_CATEGORIES [com.google.doubleclick.bid_request] { google_query_id: "ANy-zL23dM-K888C926iz54pL02I4wa4sXX04N9233701g8h787afvX78G815DcjFi573537" fcap_scope: FREQUENCY_CAPPING_SCOPE_NONE privacy_treatments { ip: IP_FULL allow_user_data_collection: true } }
OpenRTB JSON
显示示例
{ "id": "a7gs668pOD71593174WD18", "imp": [ { "id": "1", "banner": { "w": 320, "h": 50, "pos": 1, "battr": [ 6, 7 ], "api": [ 3, 5 ], "format": [ { "w": 320, "h": 50 } ] }, "displaymanager": "GoogleMobileAds-iOS", "displaymanagerver": "12.11.0", "tagid": "1775995363", "bidfloor": 10.0, "bidfloorcur": "JPY", "pmp": { "deals": [ { "id": "28061984", "bidfloor": 10.0, "bidfloorcur": "JPY", "ext": { "deal_type": 5 } } ] }, "secure": 1, "exp": 3600, "clickbrowser": 1, "metric": [ { "type": "click_through_rate", "value": 0.0007115462212823331, "vendor": "EXCHANGE" }, { "type": "viewability", "value": 0.83, "vendor": "EXCHANGE" } ], "ext": { "billing_id": [ "25077279506", "81842042446" ], "publisher_settings_list_id": [ "9245119909902343598", "7060632308909145426" ], "allowed_vendor_type": [ 0 ], "ampad": 2, "buyer_generated_request_data": [ { "source_app": { "id": "com.google.ads.mediation.test.TestAdapter" }, "data": "Test Data" } ], "excluded_creatives": [ { "buyer_creative_id": "EXCLUDED_BUYER_CREATIVE_ID" }, { "buyer_creative_id": "EXCLUDED_BUYER_CREATIVE_ID" } ], "skadn": { "sourceapp": "com.google.testapp", "skadnetids": [ "3Y4W2r13", "D2b9v6eq" ], "versions": [ "2.0", "2.1" ], "fidelities": [ 1, 0 ] }, "creative_enforcement_settings": { "policy_enforcement": 2, "publisher_blocks_enforcement": 1 }, "billable_event_rate_bid_adjustment": [ { "bid_adjustment": 1.0, "creative_type": 1 } ], "jsver": "test-sdk_123456789" } } ], "app": { "name": "Test App", "cat": [ "IAB19-15" ], "pagecat": [ "IAB19-15" ], "ver": "26.39.0", "bundle": "com.google.testapp", "publisher": { "id": "pub-3006071972218254", "ext": { "country": "US" } }, "content": { "url": "https://www.google.com", "language": "en", "genre": "Business Banking & Finance,Financial Regulation,Automotive Industry,News and Politics,Government Business,Job Market,Personal Finance,Economy,Private Equity,Logistics and Transportation Industry,Crossover,Smart Home,Business and Finance,Celebrity Style,Minivan,Careers,Women's Fashion,Consumer Banking,Job Search,Apprenticeships", "data": [ { "id": "0", "segment": [ { "id": "OMITTED" }, { "id": "OMITTED" } ], "ext": { "segtax": 6 } } ] }, "storeurl": "https://www.google.com", "cattax": 1, "ext": { "installed_sdk": [ { "id": "com.google.ads.mediation.test.TestAdapter", "sdk_version": { "major": 8, "minor": 16, "micro": 0 }, "adapter_version": { "major": 8, "minor": 16, "micro": 0 } } ] } }, "device": { "ua": "OMITTED", "geo": { "lat": 0.0, "lon": 0.0, "country": "USA", "region": "TX", "metro": "623", "city": "Grand Prairie", "zip": "75052", "type": 2, "utcoffset": -300, "accuracy": 4812, "ext": { "geo_criteria_id": 9026819 } }, "ipv6": "2607:fb91:97c:3624:b9ba:48ef:bbc3:ea22", "carrier": "70093", "language": "en", "make": "Apple", "model": "iPhone13,4", "os": "iOS", "osv": "26.7.1", "connectiontype": 6, "devicetype": 4, "ifa": "d2ee7c9c-d000-4abb-9fe3-b6f9891f59af", "hwv": "iPhone13,4", "w": 428, "h": 926, "pxratio": 3.0, "sua": { "browsers": [ { "brand": "Mozilla", "version": [ "5", "0" ] }, { "brand": "AppleWebKit", "version": [ "605", "1" ] } ], "platform": { "brand": "iPhone", "version": [ "26", "7" ] }, "mobile": 1, "bitness": "64", "model": "iPhone", "source": 3 }, "ext": { "atts": 3, "audioout": 1, "ifa_type": "idfa", "scrollposx": 0, "scrollposy": 0 } }, "user": { "ext": { "eids": [ { "source": "OMITTED_SOURCE", "uids": [ { "id": "OMITTED_ID" } ] } ], "session": { "duration": 94, "depth": 8, "requestssinceappopen": 11 } } }, "at": 1, "tmax": 700, "cur": [ "AUD", "KRW" ], "bcat": [ "5", "10" ], "regs": { "gpp": "OMITTED", "gpp_sid": [ 7 ] }, "source": { "schain": { "complete": 1, "nodes": [ { "asi": "testssp.com", "sid": "pub-1111111111111111", "hp": 1 } ], "ver": "1.0" }, "ext": { "omidpn": "Google", "omidpv": "afma-sdk-i-v12.11.0" } }, "cattax": 500, "ext": { "google_query_id": "ANy-zL23dM-K888C926iz54pL02I4wa4sXX04N9233701g8h787afvX78G815DcjFi573537", "fcap_scope": 1, "privacy_treatments": { "ip": 1, "allow_user_data_collection": 1 } } }