-#### Line 32 to 63: Set Custom Price Granularity
+#### Line 40 to 71: Set Custom Price Granularity
In this example, we customize the bid price to use our own custom logic. The logic is:
@@ -50,10 +50,10 @@ To see the effect of this customization, click into the **Result** tab of this J
-#### Line 87 to 90: Set targeting with custom keywords
+#### Line 97 to 100: Set targeting with custom keywords
`pbjs.setTargetingForGPTAsync()` will now use your custom keywords for targeting.
-The keywords can be retrieved by calling `pbjs.getAdserverTargeting()` as shown on line 91.
+The keywords can be retrieved by calling `pbjs.getAdserverTargeting()` as shown on line 100.
diff --git a/dev-docs/examples/custom-price-bucket.md b/dev-docs/examples/custom-price-bucket.md
index 3618b5e55f..a7b7434f57 100644
--- a/dev-docs/examples/custom-price-bucket.md
+++ b/dev-docs/examples/custom-price-bucket.md
@@ -14,7 +14,7 @@ about:
- Integration with DFP's GPT single request asynchronous mode
- One set of line items for all bidders
-jsfiddle_link: jsfiddle.net/prebid/bp9magow/87/embedded/html,result
+jsfiddle_link: jsfiddle.net/46rttaqv/2/embedded/html,result
code_height: 3166
code_lines: 146
diff --git a/dev-docs/examples/full-page-refresh.md b/dev-docs/examples/full-page-refresh.md
index 15bd5321e1..8a4281eed4 100644
--- a/dev-docs/examples/full-page-refresh.md
+++ b/dev-docs/examples/full-page-refresh.md
@@ -15,7 +15,7 @@ about:
- Standard keyword targeting setup (
)
- Standard price granularity
-jsfiddle_link: jsfiddle.net/prebid/amg49spy/18/embedded/html,result
+jsfiddle_link: jsfiddle.net/amg49spy/21/embedded/html,result
code_height: 2662
code_lines: 122
@@ -29,7 +29,7 @@ pid: 35
-#### Line 31 to 41: Refresh bids listener
+#### Line 92 to 102: Refresh bids listener
The refresh button triggers this function call. `pbjs.requestBids` will set keyword targeting and refresh the DFP ad units when:
diff --git a/dev-docs/examples/jw-cloud-example.md b/dev-docs/examples/jw-cloud-example.md
index 46bb3c0051..773fa1269d 100644
--- a/dev-docs/examples/jw-cloud-example.md
+++ b/dev-docs/examples/jw-cloud-example.md
@@ -18,7 +18,7 @@ player_notes:
- No matter what embedding method you choose to use, you must follow the
custom embed instructions. You cannot use the single-line embed.
- If you're using a cloud-hosted player,
do not enable advertising in the platform. We'll do it on page so that we can use the vast url from prebid.
- You can set up most of your player's settings in the platform. The platform settings will be used unless overridden on the page in the setup call.
-jsfiddle_link: jsfiddle.net/prebid/zt70zj9z/11/embedded/html/
+jsfiddle_link: jsfiddle.net/zt70zj9z/21/embedded/html/
demo_link: prebid.org/examples/video/jwPlatformPrebidDemo.html
code_lines: 137
code_height: 3540
diff --git a/dev-docs/examples/jw-selfhost-example.md b/dev-docs/examples/jw-selfhost-example.md
index e83d8b2ebd..1fe6ea7637 100644
--- a/dev-docs/examples/jw-selfhost-example.md
+++ b/dev-docs/examples/jw-selfhost-example.md
@@ -16,7 +16,7 @@ player_notes:
- For this example we will be using
method 3, a self-hosted player with JW Platform hosted content.
- To see an example using the cloud-hosted player, see
Show a Video Ad in a Cloud Hosted JW Player.
- No matter what embedding method you choose to use, you must follow the
custom embed instructions. You cannot use the single-line embed.
-jsfiddle_link: jsfiddle.net/prebid/357yaqgc/29/embedded/html/
+jsfiddle_link: jsfiddle.net/357yaqgc/32/embedded/html/
demo_link: prebid.org/examples/video/jwPlayerPrebid.html
code_lines: 141
code_height: 3600
diff --git a/dev-docs/examples/kaltura-example.md b/dev-docs/examples/kaltura-example.md
index af93826151..abbbc1190a 100644
--- a/dev-docs/examples/kaltura-example.md
+++ b/dev-docs/examples/kaltura-example.md
@@ -13,7 +13,7 @@ player_notes:
- In
Kaltura Studio, enable the advertising plugin you want to use. For this demo we'll be using the VAST 3.0 plugin.
- We'll be using the
Dynamic Embed method to add the player to the page. We need to customize the player on the page, so the auto embed method will not work.
- To find the
Dynamic Embed code for your player, go to the
content tab in
Kaltura Studio and select the
Preview and Embed action. Click
Show Advanced Options to see more embedding options, and select
Dynamic Embed from the dropdown menu.
-jsfiddle_link: jsfiddle.net/prebid/17vap1ro/8/embedded/html/
+jsfiddle_link: jsfiddle.net/17vap1ro/11/embedded/html/
demo_link: prebid.org/examples/video/klt-demo.html
code_lines: 139
code_height: 4000
diff --git a/dev-docs/examples/ooyala-example.md b/dev-docs/examples/ooyala-example.md
index 68ec6105fe..eab8a27454 100644
--- a/dev-docs/examples/ooyala-example.md
+++ b/dev-docs/examples/ooyala-example.md
@@ -14,7 +14,7 @@ about:
player_notes:
- This guide uses the V4 Ooyala player. To get the embed code for the V4 player, select
New Ooyala Player (V4) Embed Code in the embed options instead of HTML Embed Code.
- Do not select an ad set in the 'Monetize' tab. We'll control that setting on the page (see example code below).
-jsfiddle_link: jsfiddle.net/prebid/hxzue5eu/9/embedded/html/
+jsfiddle_link: jsfiddle.net/hxzue5eu/12/embedded/html/
demo_link: prebid.org/examples/video/ooyala-demo.html
code_lines: 154
code_height: 5000
diff --git a/dev-docs/examples/outstream-video-example.md b/dev-docs/examples/outstream-video-example.md
index e300b49917..1add3ae494 100644
--- a/dev-docs/examples/outstream-video-example.md
+++ b/dev-docs/examples/outstream-video-example.md
@@ -10,10 +10,10 @@ about:
- Other than setting up the ad unit, very little change from standard Prebid for engineering
- No changes in ad ops setup; use standard Prebid creatives
- Must have demand from video-enabled bidder adapters
--
Note - this example only works sporadically in the embedded JSFiddle below - try
running it from JSFiddle.net directly
+-
Note - this example only works sporadically in the embedded JSFiddle below - try
running it from JSFiddle.net directly
- See also the following examples hosted on Prebid.org -
Show an outstream ad using Unruly and AppNexus, and
Show an outstream ad without an ad server
- For more information, including links to more outstream examples, see
Show Outstream Video Ads
-jsfiddle_link: jsfiddle.net/prebid/e9bb94L6/2/embedded/html,result
+jsfiddle_link: jsfiddle.net/e9bb94L6/10/embedded/html,result
use_old_example_style: false
code_lines: 110
code_height: 3400
diff --git a/dev-docs/examples/send-all-bids.md b/dev-docs/examples/send-all-bids.md
index 5715c20f35..0ea36a7a0d 100644
--- a/dev-docs/examples/send-all-bids.md
+++ b/dev-docs/examples/send-all-bids.md
@@ -15,7 +15,7 @@ about:
- Standard price granularity
- Standard integration with DFP's GPT single request asynchronous mode
-jsfiddle_link: jsfiddle.net/prebid/qu68xoz5/60/embedded/html,result
+jsfiddle_link: jsfiddle.net/qu68xoz5/71/embedded/html,result
code_lines: 121
code_height: 2641
diff --git a/dev-docs/examples/simplified-price-bucket-setup.md b/dev-docs/examples/simplified-price-bucket-setup.md
index 66fedea84d..ea92c6bde3 100644
--- a/dev-docs/examples/simplified-price-bucket-setup.md
+++ b/dev-docs/examples/simplified-price-bucket-setup.md
@@ -11,7 +11,7 @@ hide: true
about:
- Simplified price bucket setup with one function call to
pbjs.setPriceGranularity()
-jsfiddle_link: jsfiddle.net/prebid/bp9magow/98/embedded/html,result
+jsfiddle_link: jsfiddle.net/bp9magow/129/embedded/html,result
code_height: 2641
code_lines: 121
@@ -47,7 +47,7 @@ pid: 25
-#### Line 32: Set price granularity
+#### Line 41: Set price granularity
The simplest way to set price granularity is to use the helper method [`pbjs.setPriceGranularity`](/dev-docs/publisher-api-reference.html#module_pbjs.setPriceGranularity). For more information about this method, see [its documentation](/dev-docs/publisher-api-reference.html#module_pbjs.setPriceGranularity).
diff --git a/dev-docs/examples/size-mapping.md b/dev-docs/examples/size-mapping.md
index 29f5045ebe..ad7c3ae105 100644
--- a/dev-docs/examples/size-mapping.md
+++ b/dev-docs/examples/size-mapping.md
@@ -11,7 +11,7 @@ hide: true
about:
- Example showing how to configure ad units to resize dynamically based on screen size
-jsfiddle_link: jsfiddle.net/prebid/58udrja1/31/embedded/html,result
+jsfiddle_link: jsfiddle.net/58udrja1/61/embedded/html,result
code_height: 3000
code_lines: 118
@@ -21,7 +21,7 @@ pid: 102
-#### Line 8: Add size mapping to the ad unit
+#### Line 13: Add size mapping to the ad unit
You can use the ad unit's new `sizeMapping` property to declaratively specify the ad sizes that should be shown when the device screen is greater than or equal to a given size.
diff --git a/dev-docs/examples/use-prebid-with-appnexus-ad-server.md b/dev-docs/examples/use-prebid-with-appnexus-ad-server.md
index ed2e813195..046fbe647b 100644
--- a/dev-docs/examples/use-prebid-with-appnexus-ad-server.md
+++ b/dev-docs/examples/use-prebid-with-appnexus-ad-server.md
@@ -11,7 +11,7 @@ about:
- An example showing how to use Prebid.js with AppNexus Publisher Ad Server
- ... including how to use the
AppNexus Seller Tag
-jsfiddle_link: jsfiddle.net/prebid/gqvoj5pk/embedded/html,result
+jsfiddle_link: jsfiddle.net/gqvoj5pk/36/embedded/html,result
code_lines: 120
code_height: 2850
use_old_example_style: false
diff --git a/dev-docs/examples/videojs-example.md b/dev-docs/examples/videojs-example.md
index f68d9f3489..e3eee30bb9 100644
--- a/dev-docs/examples/videojs-example.md
+++ b/dev-docs/examples/videojs-example.md
@@ -13,7 +13,7 @@ about:
player_notes:
- Make sure to incude at least one advertising plugin you want to use on the page. For this demo, we're using the
Mail Online VAST/VPAID plugin.
- A guide to the options the
vastClient accepts can be found
here.
-jsfiddle_link: jsfiddle.net/prebid/vfzo8ofu/13/embedded/html/
+jsfiddle_link: jsfiddle.net/vfzo8ofu/19/embedded/html/
demo_link: prebid.org/examples/video/videojs-demo.html
code_lines: 159
code_height: 4000
diff --git a/dev-docs/getting-started.md b/dev-docs/getting-started.md
index 00dcbf578e..ca13b580b7 100644
--- a/dev-docs/getting-started.md
+++ b/dev-docs/getting-started.md
@@ -22,7 +22,7 @@ The easiest way to get started with Prebid.js is to use the example code below.
{% include dev-docs/build-from-source-warning.md %}
-
+
### Next Steps
diff --git a/examples/adunit_refresh_example.html b/examples/adunit_refresh_example.html
index 64f5341cc8..8f78c2f3a4 100644
--- a/examples/adunit_refresh_example.html
+++ b/examples/adunit_refresh_example.html
@@ -10,7 +10,11 @@
var adUnits = [{
code: 'div-gpt-ad-1438287399331-0',
- sizes: [[300, 250], [300, 600]],
+ mediaTypes: {
+ banner: {
+ sizes: [[300, 250], [300, 600]],
+ }
+ },
bids: [{
bidder: 'appnexus',
params: { placementId: '10433394' }
@@ -30,7 +34,7 @@
-
+