Skip to content

Commit

Permalink
adding COPPA support docs, feature table (#1367)
Browse files Browse the repository at this point in the history
  • Loading branch information
bretg authored Jun 25, 2019
1 parent 6272a2c commit afea797
Show file tree
Hide file tree
Showing 11 changed files with 56 additions and 16 deletions.
33 changes: 23 additions & 10 deletions _layouts/bidder.html
Original file line number Diff line number Diff line change
Expand Up @@ -29,22 +29,35 @@

<h3>{{ page.title }}</h3>

<h4>Bidder Code</h4>

{% if page.s2s_only == true %}
<div class="pb-bidder-s2">
<h3>Note:</h3> This is a S2S adapter only.</h3>
</div>
{% endif %}

<code>{{ page.biddercode }}</code>
{% if page.biddercode_longer_than_12 != true %}
<h4>Send All Bids Ad Server Keys</h4>
<code>hb_pb_{{ page.biddercode }}</code>
<code>hb_adid_{{ page.biddercode }}</code>
<code>hb_size_{{ page.biddercode }}</code>
{% endif %}

<h3>Features</h3>

<table>
<tr><th class="pbTh">Bidder Code</th><td class="pbTd">{{ page.biddercode }}</td><th class="pbTh">Prebid.org Member</th><td class="pbTd">{% if page.prebid_member == true %}yes{% else %}no{% endif %}</td></tr>
<tr><th class="pbTh">Media Types</th><td class="pbTd">display{% if page.media_types contains 'video' %}, video{% endif %}{% if page.media_types contains 'native' %}, native{% endif %}</td><th class="pbTh">GDPR Support<td class="pbTd">{% if page.gdpr_supported == true %}yes{% else %}no{% endif %}</td></tr>
<tr><th class="pbTh">User IDs</th><td class="pbTd">{% if page.userIds and page.userIds != '' %}{{page.userIds}}{% else %}none{% endif %}</td><th class="pbTh">COPPA Support</th><td class="pbTd">{% if page.coppa_supported == true %}yes{% else %}no{% endif %}</td></tr>
</table>

<h3>"Send All Bids" Ad Server Keys</h3>

<font size="-1">These are the bidder-specific keys that would be targeted within GAM in a Send-All-Bids scenario. GAM truncates keys to 20 characters.</font>

<table>
<tr><td class="pbTd"><code>{{ "hb_pb_" | append: page.biddercode | slice: 0,20 }}</code></td><td class="pbTd"><code>{{ "hb_bidder_" | append: page.biddercode | slice: 0,20 }}</code></td><td class="pbTd"><code>{{ "hb_adid_" | append: page.biddercode | slice: 0,20 }}</code></td></tr>
<tr><td class="pbTd"><code>{{ "hb_size_" | append: page.biddercode | slice: 0,20 }}</code></td><td class="pbTd"><code>{{ "hb_source_" | append: page.biddercode | slice: 0,20 }}</code></td><td class="pbTd"><code>{{ "hb_format_" | append: page.biddercode | slice: 0,20 }}</code></td></tr>
<tr><td class="pbTd"><code>{{ "hb_cache_host_" | append: page.biddercode | slice: 0,20 }}</code></td><td class="pbTd"><code>{{ "hb_cache_id_" | append: page.biddercode | slice: 0,20 }}</code></td><td class="pbTd"><code>{{ "hb_uuid_" | append: page.biddercode | slice: 0,20 }}</code></td></tr>
</table>

{% if page.bidder_supports_deals != false %}
<h3>"Deal ID" Ad Server Key</h3>
<code>{{ "hb_deal_" | append: page.biddercode | slice: 0,20 }}</code>
{% endif %}

{{content}}

</div>
Expand Down
8 changes: 6 additions & 2 deletions dev-docs/bidders.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,9 +94,13 @@ The following parameters in the `bidResponse` object are common across all bidde
<h3>Note:</h3> This is a S2S adapter only.
{% endif %}

<h3>Bidder Code</h3>
<h3>Features</h3>

{: .table .table-bordered .table-striped }
| **Bidder Code** | {{ page.biddercode }} | **Prebid.org Member** | {% if page.prebid_member == true %}yes{% else %}no{% endif %} |
| **Media Types** | display{% if page.media_types contains 'video' %}, video{% endif %}{% if page.media_types contains 'native' %}, native{% endif %} | **GDPR Support** | {% if page.gdpr_supported == true %}yes{% else %}no{% endif %} |
| **User IDs** | {% if page.userIds and page.userIds != '' %}{{page.userIds}}{% else %}none{% endif %} | **COPPA Support** | {% if page.coppa_supported == true %}yes{% else %}no{% endif %} |

<code>{{ page.biddercode }}</code>

<h3>"Send All Bids" Ad Server Keys</h3>

Expand Down
1 change: 1 addition & 0 deletions dev-docs/bidders/appnexus.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ biddercode: appnexus
hide: true
media_types: banner, video, native
gdpr_supported: true
prebid_member: true
---

### Table of Contents
Expand Down
1 change: 1 addition & 0 deletions dev-docs/bidders/arteebee.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ description: Prebid Arteebee Bidder Adaptor
hide: true
biddercode: arteebee
gdpr_supported: true
coppa_supported: true
---

### Bid Params
Expand Down
1 change: 1 addition & 0 deletions dev-docs/bidders/criteo.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ biddercode: criteo
bidder_supports_deals: false
media_types: native
gdpr_supported: true
prebid_member: true
---


Expand Down
2 changes: 2 additions & 0 deletions dev-docs/bidders/openx.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@ hide: true
biddercode: openx
media_types: video
gdpr_supported: true
coppa_supported: true
userIds: pubcommon
prebid_member: true
---

### Bid Parameters
Expand Down
3 changes: 2 additions & 1 deletion dev-docs/bidders/openxoutstream.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ description: Prebid OpenX Outstream Bidder Adaptor
hide: true
biddercode: openxoutstream
media_types: native

prebid_member: true
coppa_supported: true
---


Expand Down
1 change: 1 addition & 0 deletions dev-docs/bidders/pubmatic.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ biddercode: pubmatic
media_types: banner, video, native
gdpr_supported: true
userIds: unifiedId/tradedesk
prebid_member: true
---

### Prebid Server Note:
Expand Down
3 changes: 2 additions & 1 deletion dev-docs/bidders/rubicon.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,12 @@ description: Rubicon Project Prebid Bidder Adaptor
hide: true
biddercode: rubicon
gdpr_supported: true
coppa_supported: true
media_types: video
userIds: unifiedId/tradedesk, digitrust
prebid_member: true
---


### Note:
The Rubicon Project adapter requires setup and approval from the Rubicon Project team, even for existing Rubicon Project publishers. Please reach out to your account team or globalsupport@rubiconproject.com for more information.

Expand Down
1 change: 1 addition & 0 deletions dev-docs/bidders/sortable.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ biddercode: sortable
hide: true
media_types: banner
gdpr_supported: true
prebid_member: true
---

**Table of Contents**
Expand Down
18 changes: 16 additions & 2 deletions dev-docs/publisher-api-reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ This page has documentation for the public API methods of Prebid.js.
* [userSync](#setConfig-Configure-User-Syncing)
* [targetingControls](#setConfig-targetingControls)
* [sizeConfig and labels](#setConfig-Configure-Responsive-Ads) (responsive ads)
* [COPPA](#setConfig-coppa)
* [Generic Configuration](#setConfig-Generic-Configuration)
* [Troubleshooting your config](#setConfig-Troubleshooting-your-configuration)
* [.getConfig([string])](#module_pbjs.getConfig)
Expand Down Expand Up @@ -1237,6 +1238,7 @@ Core config:
+ [Configure user syncing](#setConfig-Configure-User-Syncing)
+ [Configure targeting controls](#setConfig-targetingControls)
+ [Configure responsive ad units with `sizeConfig` and `labels`](#setConfig-Configure-Responsive-Ads)
+ [COPPA](#setConfig-coppa)
+ [Generic Configuration](#setConfig-Generic-Configuration)
+ [Troubleshooting your configuration](#setConfig-Troubleshooting-your-configuration)

Expand Down Expand Up @@ -1961,8 +1963,20 @@ pbjs.addAdUnits([{

See [Conditional Ad Units]({{site.baseurl}}/dev-docs/conditional-ad-units.html) for additional use cases around labels.

<a name="setConfig-Generic-Configuration" />

<a name="setConfig-coppa" />

#### COPPA

Bidder adapters that support the Child Online Privacy Protection Act (COPPA) read the `coppa` configuration.
Publishers with content falling under the scope of this regulation should consult with their legal teams.
The flag may be passed to supporting adapters with this config:

{% highlight js %}
pbjs.setConfig('coppa', 'true'));
{% endhighlight %}

<a name="setConfig-Generic-Configuration" />

#### Generic setConfig Configuration

Expand All @@ -1977,7 +1991,7 @@ Some adapters may support other options, as defined in their documentation. To s
If you call `pbjs.setConfig` without an object, e.g.,

{% highlight js %}
pbjs.setConfig('debug', 'true'))
pbjs.setConfig('debug', 'true'));
{% endhighlight %}

then Prebid.js will print an error to the console that says:
Expand Down

0 comments on commit afea797

Please sign in to comment.