Skip to content

Commit

Permalink
Catching stage up with master (#2215)
Browse files Browse the repository at this point in the history
* Privacy updates (#2189)

* privacy notice: updates from legal review

* download page legal notice

* review changes

* pubperf analytics adapter added. (#2166)

* Add docs for apstream adapter (#2141)

* Add docs for apstream adapter

* Describe possibility to disable DSU

Co-authored-by: Yevhenii Tykhostup <yevhenii.tykhostup@audienceproject.com>

* AdButler Bid Adapter: Add 'extra' bid parameter description and example (#2172)

* Undertone video docs (#2162)

* Update undertone.md

Added documentation for recommended configuration settings for undertone which includes iframe based user sync

* add video object doc

Co-authored-by: Omer Koren <omerko@users.noreply.github.com>

* ad ops video fix (#2190)

* clarifying that sizeConfig is banner only (#2191)

* amp clarification (#2194)

* removed stray div

* removing apn-specific reference (#2203)

* added akamai video player (#2181)

Co-authored-by: Steve <ssuranie@appnexus.com>

* removing pubcommon support from Rubicon (#2211)

* adding concurrent FAQ entry (#2212)

* fixed typo in pbadslot example (#2213)

* pbadslot implementation ended up moving the location (#2214)

* Update CNAME

Co-authored-by: Bruce Dou <doubaokun@gmail.com>
Co-authored-by: frstua <moyade@gmail.com>
Co-authored-by: Yevhenii Tykhostup <yevhenii.tykhostup@audienceproject.com>
Co-authored-by: Dan Harton <dan@sparklit.com>
Co-authored-by: Oran Hollaender <oran@perion.com>
Co-authored-by: Omer Koren <omerko@users.noreply.github.com>
Co-authored-by: MartianTribe <steve@martiantribe.com>
Co-authored-by: Steve <ssuranie@appnexus.com>
  • Loading branch information
9 people authored Aug 12, 2020
1 parent 33e824f commit d2aad64
Show file tree
Hide file tree
Showing 15 changed files with 224 additions and 51 deletions.
2 changes: 1 addition & 1 deletion CNAME
Original file line number Diff line number Diff line change
@@ -1 +1 @@
prebid.org
docs.prebid.org
4 changes: 2 additions & 2 deletions _includes/adops/adops-gam-video-setup.html
Original file line number Diff line number Diff line change
Expand Up @@ -49,13 +49,13 @@ <h3 id="creative-single-cache">Single Cache Location</h3>

<p>If you’re using a single order for all bidders, then the VAST URL will be the same for each bidder:</p>

<figure class="highlight"><pre><code class="language-html" data-lang="html"> https://prebid.adnxs.com/pbc/v1/cache?uuid=%%PATTERN:hb_cache_id%%
<figure class="highlight"><pre><code class="language-html" data-lang="html"> https://prebid.adnxs.com/pbc/v1/cache?uuid=%%PATTERN:hb_uuid%%
or
[other bidder cache location]</code></pre></figure>

<p>If you’re using different orders for each bidder, the VAST URL for each will include the bidder-specific targeting variable:</p>

<figure class="highlight"><pre><code class="language-html" data-lang="html"> https://prebid.adnxs.com/pbc/v1/cache?uuid=%%PATTERN:hb_cache_id_BIDDERCODE%%
<figure class="highlight"><pre><code class="language-html" data-lang="html"> https://prebid.adnxs.com/pbc/v1/cache?uuid=%%PATTERN:hb_uuid_BIDDERCODE%%
or
[other bidder cache location]</code></pre></figure>

Expand Down
15 changes: 8 additions & 7 deletions dev-docs/bidders/adbutler.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,11 @@ biddercode: adbutler
### Bid Params

{: .table .table-bordered .table-striped }
| Name | Scope | Description | Example | Type |
|-------------|----------|--------------------------------------|------------------|----------|
| `accountID` | required | Account ID | `'167283'` | `string` |
| `zoneID` | required | Zone ID | `'210093'` | `string` |
| `keyword` | optional | Keyword(s) used for custom targeting | `'green,orange'` | `string` |
| `minCPM` | optional | Minimum CPM value to accept | `'1.00'` | `string` |
| `maxCPM` | optional | Maximum CPM value to accept | `'5.00'` | `string` |
| Name | Scope | Description | Example | Type |
|-------------|----------|------------------------------------------------------|------------------|----------|
| `accountID` | required | Account ID | `'167283'` | `string` |
| `zoneID` | required | Zone ID | `'210093'` | `string` |
| `keyword` | optional | Keyword(s) used for custom targeting | `'green,orange'` | `string` |
| `minCPM` | optional | Minimum CPM value to accept | `'1.00'` | `string` |
| `maxCPM` | optional | Maximum CPM value to accept | `'5.00'` | `string` |
| `extra` | optional | Pass other AdButler parameters like 'tuid' or 'kw' | `{kw: "green"}` | `object` |
97 changes: 97 additions & 0 deletions dev-docs/bidders/apstream.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,97 @@
# 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
}
}]
}
];
```

# DSU

To disable DSU use config option:

```
pbjs.setConfig({
apstream: {
noDsu: true
}
});
```
2 changes: 1 addition & 1 deletion dev-docs/bidders/rubicon.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ usp_supported: true
coppa_supported: true
schain_supported: true
media_types: video
userIds: identityLink, liveIntentId, pubCommonId, unifiedId
userIds: identityLink, liveIntentId, unifiedId
prebid_member: true
safeframes_ok: true
---
Expand Down
11 changes: 11 additions & 0 deletions dev-docs/bidders/undertone.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,17 @@ userIds: britepoolId, criteo, id5Id, identityLink, liveIntentId, netId, parrable
| `placementId` | optional | Your placement ID (provided by undertone) | `"13as14d0"` | `string` |
| `publisherId` | required | publisher ID (provided by undertone) | `12345` | `integer` |


#### Video Object

{: .table .table-bordered .table-striped }
| Name | Scope | Description | Example | Type |
|------------------|----------|------------------------------------------------|-------------------------------------------|-----------------|
| `playbackMethod` | optional | Playback method supported by the publisher.<br/>`1`: Auto-play sound on<br/>`2`: Auto-play sound off<br/>`3`: Click-to-play sound on<br/>`4`: Mouse-over sound on| `1` | `integer` |
| `maxDuration` | optional | Maximum video ad duration in seconds. | `30` | `integer` |
| `skippable` | optional | Skippability of the inventory. Possible values: `true` - only skippable inventory is allowed, `false` - skippable inventory is not allowed, null/missing - all inventory is allowed (default value). | `true` | `boolean` |


### Configuration

To maximize revenue efficiency, please enable iframe-based user syncing. This functionality will improve user match rates and will help increasing the bid rate.
Expand Down
8 changes: 5 additions & 3 deletions dev-docs/conditional-ad-units.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ See the [Publisher API reference]({{site.baseurl}}/dev-docs/publisher-api-refere
## What if some bidders should be skipped for some devices?

{: .alert.alert-info :}
See the [Advanced Size Mapping module](/dev-docs/modules/sizeMappingV2.html) for another way to handle this scenario.
See the [Advanced Size Mapping module](/dev-docs/modules/sizeMappingV2.html) for another way to handle this scenario. Note that you must use Advanced Size Mapping for mediaTypes other than banner.

Say a particular bidder is focused on mobile phone demand, so it's really not worthwhile
to send them requests from display or tablets.
Expand Down Expand Up @@ -107,7 +107,7 @@ For instance, say that a given bidder wants to define different placements for d
| Display | 1111 |
| Phones and tablets | 2222 |

### Using the Global sizeConfig Approach
### Using the Global sizeConfig Approach (Banner only)

Assuming the same `sizeConfig` as in the first use case above, the AdUnit would contain bids for both
placements, but the conditional `labelAny` is added to them both. This will cause the bid to be fired only if one
Expand Down Expand Up @@ -191,7 +191,7 @@ var AdUnits = [{
## What if some ad unit auctions should be skipped entirely for some devices?

Say there's a responsive page where one of the ad units only supports larger sizes, so it doesn't make sense
on phones. To suppress the ad unit for mobile users, we can apply conditional logic to the entire ad unit. For example:
on phones. To suppress the ad unit for mobile users, we can apply conditional logic to the entire ad unit. Here's an example using the global sizeConfig approach (banner only):

{% highlight js %}

Expand Down Expand Up @@ -219,6 +219,8 @@ var AdUnits = [{
]
}]

See the [Advanced Size Mapping module](/dev-docs/modules/sizeMappingV2.html) if you need to do something like this for video.

{% endhighlight %}

## What if some bid requests apply only to users originating certain from countries?
Expand Down
11 changes: 10 additions & 1 deletion dev-docs/faq.md
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ See [the GitHub release schedule](https://github.com/prebid/Prebid.js/blob/maste
## When do I have to upgrade my version of Prebid.js?
Prebid.org does not support any version of Prebid.js prior to version 1.0. If you want continued support through updates and documentation you should upgrade to a newer version.
Prebid.org does not support any version of Prebid.js prior to the previous version. e.g. if the current version is 4.x, we'll help debug 3.x, but not 2.x. If you want continued support through updates and documentation you should upgrade to a newer version.
## How can I change the price granularity for different ad units?
Expand All @@ -148,6 +148,15 @@ benefits for sending more than one bid.
Once you find the right balance for your application, you can specify
what's sent to the ad server with [targetingControls.auctionKeyMaxChars](/dev-docs/publisher-api-reference.html#setConfig-targetingControls) and/or [sendBidsControl.bidLimit](/dev-docs/publisher-api-reference.html#setConfig-Send-Bids-Control)
## Can I run multiple different versions of Prebid.js concurrently?
It's technically possible, but we don't recommend doing this:
- The code isn't small. For performance reasons you don't want to run two versions if you can help it
- We don't test concurrent versions
- We won't specifically support debugging problems caused by running two concurrent versions. But will take take PRs if someone finds an issue.
If all this wasn't enough to warn you away from trying, it should work if you name the PBJS global differently for each instance (https://github.com/prebid/Prebid.js/blob/master/package.json#L20)
## Related Reading
Expand Down
5 changes: 3 additions & 2 deletions dev-docs/publisher-api-reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -2042,13 +2042,14 @@ As of Prebid.js 3.11.0, the [Advanced SizeMapping module](/dev-docs/modules/size
You should consider using that module if any of these scenarios are true:
{::nomarkdown}
<ul>
<li> You need to work with video or native AdUnits</li>
<li> The site needs to alter different AdUnits at different screen widths; e.g., the left-nav changes sizes at 600 pixels, but the footer's size behavior changes at 620 pixels.</li>
<li>The site needs to alter different mediaTypes at different screen widths; e.g., the banner size ranges are 0-400px, 401-700px, and 701+px, but the native ads appear at 500px.</li>
<li>Some bidders or mediaTypes should be included (or removed) at different overlapping size ranges.</li>
</ul>
<br/>
{:/}
If, on the other hand, the AdUnits, bidders, and mediaTypes all change behavior together at the same viewport width, then the built-in sizeConfig feature is appropriate.
If, on the other hand, you're only working with the banner mediaType and the AdUnits all change behavior together at the same viewport width, then the built-in sizeConfig feature is appropriate.
{% endcapture %}
{% include alerts/alert_tip.html content=tip-choosing %}

Expand All @@ -2058,7 +2059,7 @@ If, on the other hand, the AdUnits, bidders, and mediaTypes all change behavior

<a name="sizeConfig-How-it-Works" />

##### How it Works
##### How Size Config Works for Banners

- Before `requestBids` sends bid requests to adapters, it will evaluate and pick the appropriate label(s) based on the `sizeConfig.mediaQuery` and device properties. Once it determines the active label(s), it will then filter the `adUnit.bids` array based on the `labels` defined and whether the `banner` mediaType was included. Ad units that include a `banner` mediaType that don't match the label definition are dropped.
- The required `sizeConfig.mediaQuery` property allows [CSS media queries](https://developer.mozilla.org/en-US/docs/Web/CSS/Media_Queries/Using_media_queries). The queries are tested using the [`window.matchMedia`](https://developer.mozilla.org/en-US/docs/Web/API/Window/matchMedia) API.
Expand Down
34 changes: 26 additions & 8 deletions dev-docs/show-prebid-ads-on-amp-pages.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ To set up Prebid to serve ads into your AMP pages, you'll need:

+ An account with a [Prebid Server][PBS] instance
+ One or more Prebid Server Stored Bid Requests. A Stored Bid Request is a partial OpenRTB JSON request which:
+ Specifies properties like timeout and price granularity
+ Specifies properties like currency, schain, price granularity, etc.
+ Contains a list of demand partners and their respective parameters
+ An AMP page containing at least one amp-ad element for an AMP ad network that supports Fast Fetch and AMP RTC

Expand All @@ -52,19 +52,38 @@ To set up Prebid to serve ads into your AMP pages, you'll need:

You will have to create at least one Stored Request for Prebid Server. Valid Stored Requests for AMP pages must contain an `imp` array with exactly one element. It is not necessary to include a `tmax` field in the Stored Request, as Prebid Server will always use the smaller of the AMP default timeout (1000ms) and the value passed via the `timeoutMillis` field of the `amp-ad.rtc-config` attribute (explained in the next section).

An example Stored Request is given below:
An example Stored Request is given below. You'll see that the Stored Request contains some important info
that doesn't come from /amp parameters:

- cur
- schain
- ext.prebid.cache.bids - needed to let Prebid Server know that you want it to store the result in PBC
- ext.prebid.targeting.pricegranularity - needed to let Prebid Server know how to calculate the price bucket
- ext.prebid.aliases
- bidders and their parameters

```html

{
"id": "some-request-id",
"cur": ["USD"],
"source": {
"ext": {
"schain": {
...
}
}
},
"site": {
"page": "prebid.org"
"page": "prebid.org" // will be overridden by the 'curl' parameter on /amp endpoint
},
"ext": {
"prebid": {
"cache": {
"bids": {}
},
"targeting": {
"pricegranularity": { // This is equivalent to the deprecated "pricegranularity": "medium"
"pricegranularity": { // This is equivalent to "pricegranularity": "medium"
"precision": 2,
"ranges": [{
"max": 20.00,
Expand All @@ -86,10 +105,10 @@ An example Stored Request is given below:
]
},
"ext": {
"appnexus": {
"bidderA": {
// Insert parameters here
},
"rubicon": {
"bidderB": {
// Insert parameters here
}
}
Expand All @@ -98,6 +117,7 @@ An example Stored Request is given below:
}

```
This basic OpenRTB record will be enhanced by the parameters from the call to the [/amp endpoint](prebid-server/endpoints/openrtb2/amp.html).

### AMP content page

Expand Down Expand Up @@ -277,8 +297,6 @@ To review that Prebid on AMP is working properly the following aspects can be lo
+ [AMP RTC Overview][RTC-Overview]
+ [AMP RTC Publisher Integration Guide](https://github.com/ampproject/amphtml/blob/master/extensions/amp-a4a/rtc-publisher-implementation-guide.md)

</div>

<!-- Reference Links -->

[PBS]: {{site.baseurl}}/dev-docs/get-started-with-prebid-server.html
Expand Down
12 changes: 11 additions & 1 deletion download.md
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,9 @@ function get_form_data() {
# Customize and Download Prebid.js

{: .lead :}
To improve the speed and load time of your site, build Prebid.js for only the header bidding partners you choose.

{: .alert.alert-warning :}
Prebid.js is open source software that is offered for free as a convenience. While it is designed to help companies address legal requirements associated with header bidding, we cannot and do not warrant that your use of Prebid.js will satisfy legal requirements. You are solely responsible for ensuring that your use of Prebid.js complies with all applicable laws. We strongly encourage you to obtain legal advice when using Prebid.js to ensure your implementation complies with all laws where you operate.

### Option 1: Customize your download here

Expand Down Expand Up @@ -402,6 +404,14 @@ Prebid only supports the most recent major version. Within a month or so after a
</div>
</div>

<div class="col-md-4">
<div class="checkbox">
<label>
<input type="checkbox" analyticscode="pubperf" class="analytics-check-box" /> Pubperf Analytics
</label>
</div>
</div>

<div class="col-md-4">
<div class="checkbox">
<label>
Expand Down
4 changes: 2 additions & 2 deletions features/pbAdSlot.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ Example page function:
// Use adunit.fpd.context.pbAdSlot if it exists. Otherwise, if the
// the adunit.code is a div ID, then look for a data-adslotid attribute, then look a matching slot in GPT
// Otherwise, just use the AdUnit.code
var setPbAdSlot = function setPbAdSlot(adunits) {
var setPbAdSlot = function setPbAdSlot(adUnits) {
// set pbAdSlot for all ad units
adUnits.forEach(function (adUnit) {
if (!adUnit.fpd) {
Expand Down Expand Up @@ -100,7 +100,7 @@ Some scenarios that could be supported:

## Prebid Server

The OpenRTB location for the Prebid Ad Slot is `imp[].ext.context.data.adslot`:
The OpenRTB location for the Prebid Ad Slot is `imp[].ext.context.data.pbadslot`:

- The Prebid SDK will place the value there.
- AMP Stored Requests should place the value there if desired.
Expand Down
1 change: 1 addition & 0 deletions overview/analytics.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ There are several analytics adapter plugins available to track header bidding pe
| Media.net | <a href="mailto: prebid-support@media.net">Contact vendor</a>| [Website](https://media.net) |
| PrebidAnalytics by Roxot | [Paid]( http://prebidanalytics.roxot.com/) | [Website](http://prebidanalytics.roxot.com/) |
| [Prebid Manager](https://prebidmanager.com/) | Free trial and free up to a certain volume. See [pricing](http://prebidmanager.com/#pricing) | [Website](http://prebidmanager.com/) |
| [Pubperf](https://www.pubperf.com/) | Free trial. See [pricing](https://www.pubperf.com/pricing) | [Website](http://www.pubperf.com/) |
| [Pubstack](https://pubstack.io?source=prebid.org-analytics) ~ Real Time Analytics For Prebid and GAM | <a href="mailto: sales@pubstack.io">Start a free trial / Talk to the Sales Team</a> | [Website](https://pubstack.io?source=prebid.org-analytics) |
| PubWise | Free & Paid, see [pricing](https://pubwise.io/pricing/) | [Website](https://www.pubwise.io/) |
| PulsePoint | Contact vendor | [Website](https://www.pulsepoint.com/) |
Expand Down
Loading

0 comments on commit d2aad64

Please sign in to comment.