From 8d1602f9eb20e4b7f97ebce9228b8d1bd510166d Mon Sep 17 00:00:00 2001 From: kippsterr <29540638+kippsterr@users.noreply.github.com> Date: Wed, 27 Oct 2021 09:01:30 +0200 Subject: [PATCH 1/3] Add multi-format example to the Yieldlab bidder documentation --- modules/yieldlabBidAdapter.md | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/modules/yieldlabBidAdapter.md b/modules/yieldlabBidAdapter.md index f2dbdc39895..7dc1972fe3c 100644 --- a/modules/yieldlabBidAdapter.md +++ b/modules/yieldlabBidAdapter.md @@ -74,3 +74,29 @@ Module that connects to Yieldlab's demand sources } ]; ``` + +# Multi-Format Setup + +A general overview of how to set up multi-format ads can be found in the offical Predid.js docs. See: [show multi-format ads](https://docs.prebid.org/dev-docs/show-multi-format-ads.html) + +When setting up multi-format ads with Yieldlab make sure to always add at least one eligible Adslot per given media type in the ad unit configuration. + +```javascript +const adUnit = { + code: 'multi-format-adslot', + mediaTypes: { + banner: { + sizes: [ [ 728, 90 ] ] + }, + native: { + // native config + } + }, + bids: [ + // banner adslot + { bidder: 'yieldlab', params: { adslotId: '1234', supplyId: '42' } }, + // native adslot + { bidder: 'yieldlab', params: { adslotId: '2345', supplyId: '42' } } + ] +}; +``` From e51982d7dae8aa9feeb2cb42b737a18b19e760ae Mon Sep 17 00:00:00 2001 From: kippsterr <29540638+kippsterr@users.noreply.github.com> Date: Wed, 27 Oct 2021 09:07:36 +0200 Subject: [PATCH 2/3] Reformat code --- modules/yieldlabBidAdapter.md | 132 +++++++++++++++++----------------- 1 file changed, 68 insertions(+), 64 deletions(-) diff --git a/modules/yieldlabBidAdapter.md b/modules/yieldlabBidAdapter.md index 7dc1972fe3c..7c393405252 100644 --- a/modules/yieldlabBidAdapter.md +++ b/modules/yieldlabBidAdapter.md @@ -11,68 +11,72 @@ Maintainer: solutions@yieldlab.de Module that connects to Yieldlab's demand sources # Test Parameters -``` - var adUnits = [ - { - code: "banner", - sizes: [[728, 90]], - bids: [{ - bidder: "yieldlab", - params: { - adslotId: "5220336", - supplyId: "1381604", - targeting: { - key1: "value1", - key2: "value2" - }, - extId: "abc", - iabContent: { - id: "some_id", - episode: "1", - title: "some title", - series: "some series", - season: "s1", - artist: "John Doe", - genre: "some genre", - isrc: "CC-XXX-YY-NNNNN", - url: "http://foo_url.de", - cat: ["IAB1-1", "IAB1-2", "IAB2-10"], - context: "7", - keywords: ["k1", "k2"], - live: "0" - } - } - }] - }, { - code: "video", - sizes: [[640, 480]], - mediaTypes: { - video: { - context: "instream" // or "outstream" - } - }, - bids: [{ - bidder: "yieldlab", - params: { - adslotId: "5220339", - supplyId: "1381604" - } - }] - }, - { - code: "native", - mediaTypes: { - native: { } - }, - bids: [{ - bidder: "yieldlab", - params: { - adslotId: "5220339", - supplyId: "1381604" - } - }] - } - ]; + +```javascript +const adUnits = [ + { + code: 'banner', + sizes: [ [ 728, 90 ] ], + bids: [{ + bidder: 'yieldlab', + params: { + adslotId: '5220336', + supplyId: '1381604', + targeting: { + key1: 'value1', + key2: 'value2' + }, + extId: 'abc', + iabContent: { + id: 'some_id', + episode: '1', + title: 'some title', + series: 'some series', + season: 's1', + artist: 'John Doe', + genre: 'some genre', + isrc: 'CC-XXX-YY-NNNNN', + url: 'http://foo_url.de', + cat: [ 'IAB1-1', 'IAB1-2', 'IAB2-10' ], + context: '7', + keywords: ['k1', 'k2'], + live: '0' + } + } + }] + }, + { + code: 'video', + sizes: [ [ 640, 480 ] ], + mediaTypes: { + video: { + context: 'instream' // or 'outstream' + } + }, + bids: [{ + bidder: 'yieldlab', + params: { + adslotId: '5220339', + supplyId: '1381604' + } + }] + }, + { + code: 'native', + mediaTypes: { + native: { + // native config + } + }, + bids: [{ + bidder: 'yieldlab', + params: { + adslotId: '5220339', + supplyId: '1381604' + } + }] + } +]; ``` # Multi-Format Setup @@ -93,9 +97,9 @@ const adUnit = { } }, bids: [ - // banner adslot + // banner Adslot { bidder: 'yieldlab', params: { adslotId: '1234', supplyId: '42' } }, - // native adslot + // native Adslot { bidder: 'yieldlab', params: { adslotId: '2345', supplyId: '42' } } ] }; From 840b1bf0d822d71d6a7edfe42f437829980977b5 Mon Sep 17 00:00:00 2001 From: kippsterr <29540638+kippsterr@users.noreply.github.com> Date: Wed, 27 Oct 2021 15:06:45 +0200 Subject: [PATCH 3/3] Fix typo --- modules/yieldlabBidAdapter.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/yieldlabBidAdapter.md b/modules/yieldlabBidAdapter.md index 7c393405252..1f52e26f5c7 100644 --- a/modules/yieldlabBidAdapter.md +++ b/modules/yieldlabBidAdapter.md @@ -81,7 +81,7 @@ const adUnits = [ # Multi-Format Setup -A general overview of how to set up multi-format ads can be found in the offical Predid.js docs. See: [show multi-format ads](https://docs.prebid.org/dev-docs/show-multi-format-ads.html) +A general overview of how to set up multi-format ads can be found in the offical Prebid.js docs. See: [show multi-format ads](https://docs.prebid.org/dev-docs/show-multi-format-ads.html) When setting up multi-format ads with Yieldlab make sure to always add at least one eligible Adslot per given media type in the ad unit configuration.