From 25dd56beb2b4ff73ed272ac273a32823e1274b9b Mon Sep 17 00:00:00 2001 From: Yevhenii Tykhostup Date: Fri, 17 Jul 2020 11:57:00 +0300 Subject: [PATCH 1/2] Add docs for apstream adapter --- dev-docs/bidders/apstream.md | 85 ++++++++++++++++++++++++++++++++++++ 1 file changed, 85 insertions(+) create mode 100644 dev-docs/bidders/apstream.md diff --git a/dev-docs/bidders/apstream.md b/dev-docs/bidders/apstream.md new file mode 100644 index 0000000000..8069a64b97 --- /dev/null +++ b/dev-docs/bidders/apstream.md @@ -0,0 +1,85 @@ +# Overview + +``` +Module Name: AP Stream Bidder Adapter +Module Type: Bidder Adapter +Maintainer: stream@audienceproject.com +gdpr_supported: true +tcf2_supported: true +``` + +# Description + +Module that connects to AP Stream source + +# Inherit from prebid.js +``` + var adUnits = [ + { + code: '/19968336/header-bid-tag-1', + mediaTypes: { // mandatory and should be only one + banner: { + sizes: [[920,180], [920, 130]] + } + }, + bids: [{ + bidder: 'apstream', + params: { + publisherId: STREAM_PIBLISHER_ID // mandatory + } + }] + } + ]; +``` + +# Explicit ad-unit code +``` + var website = null; + switch (location.hostname) { + case "site1.com": + website = "S1"; + break; + case "site2.com": + website = "S2"; + break; + } + + var adUnits = [ + { + code: '/19968336/header-bid-tag-1', + mediaTypes: { // mandatory and should be only one + banner: { + sizes: [[920,180], [920, 130]] + } + }, + bids: [{ + bidder: 'apstream', + params: { + publisherId: STREAM_PIBLISHER_ID, // mandatory + code: website + '_Leaderboard' + } + }] + } + ]; +``` + +# Explicit ad-unit ID +``` + var adUnits = [ + { + code: '/19968336/header-bid-tag-1', + mediaTypes: { // mandatory and should be only one + banner: { + sizes: [[920,180], [920, 130]] + } + }, + bids: [{ + bidder: 'apstream', + params: { + publisherId: STREAM_PIBLISHER_ID, // mandatory + adunitId: 1234 + } + }] + } + ]; +``` From 555bbe2958cca8a3b4cccf44db0e38b02d504edc Mon Sep 17 00:00:00 2001 From: Yevhenii Tykhostup Date: Tue, 4 Aug 2020 08:49:32 +0300 Subject: [PATCH 2/2] Describe possibility to disable DSU --- dev-docs/bidders/apstream.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/dev-docs/bidders/apstream.md b/dev-docs/bidders/apstream.md index 8069a64b97..e85fb3cd51 100644 --- a/dev-docs/bidders/apstream.md +++ b/dev-docs/bidders/apstream.md @@ -83,3 +83,15 @@ Module that connects to AP Stream source } ]; ``` + +# DSU + +To disable DSU use config option: + +``` + pbjs.setConfig({ + apstream: { + noDsu: true + } + }); +``` \ No newline at end of file