ビッダーは、1 つの入札レスポンスで複数の購入者の広告枠を購入できます。たとえば、デマンドサイド プラットフォーム(DSP)は、入札アプリケーションを使用して、購入者である複数のマーケターまたは広告代理店のために広告枠を購入する場合があります。このガイドでは、複数の購入者に代わって送信された単一のリクエストを処理するようにビッダーをコーディングする方法について説明します。
背景
一部のシナリオでは、広告ネットワークや広告代理店の取引デスクが 1 つ以上の DSP と連携することを選択する場合があります。DSP を通じて作業する購入者には、次の 2 つのオプションがあります。
- DSP は、購入者ではないマーケターまたは代理店のために広告枠を購入します。この場合、DSP は 1 つの入札リクエストを受信し、1 つの入札で応答します。Google から DSP に直接請求されます。
- DSP は、購入者であるマーケターまたは代理店のために広告枠を購入します。DSP は、対象となる購入者に関連付けられた複数の請求先 ID を含む 1 つの入札リクエストを受け取り、入札する購入者ごとに個別の入札を行うことができます。このモデルでは、Google は DSP ではなく購入者に請求します。このガイドの残りの部分では、このシナリオに焦点を当てます。
設定とプレターゲティング設定
Google は、インプレッションをターゲットにした購入者と事前ターゲティング構成に関連付けられた 1 つ以上の請求 ID を含む入札リクエストを送信します。これらは BidRequest.imp.ext.billing_id フィールドで確認できます。
複数の購入者の請求 ID を含む BidRequest にレスポンスを返す場合は、Google が入札に関連付けるアカウントを把握できるように BidResponse.seatbid.bid.ext.billing_id が必要です。フィールドを設定していないレスポンスはフィルタされます。請求先 ID が 1 つだけ含まれる BidRequest では、このフィールドは引き続き省略可能です。
プレターゲティングの例
入札者が 2 人の購入者(請求 ID が 123 の購入者と請求 ID が 124 の購入者)に代わって入札します。入札者は、請求 ID 213 で英語をターゲットとするプレターゲティング設定と、請求 ID 231 でパソコンをターゲットとするプレターゲティング設定を 1 つずつ設定します。以下に、さまざまな種類のインプレッションの入札リクエストに表示される課金 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 } } }