From 76d55a31e143b2409b4f0604b5402d70878a2932 Mon Sep 17 00:00:00 2001 From: Jason Snellbaker Date: Mon, 29 Jan 2018 12:50:21 -0500 Subject: [PATCH 1/3] updates to JSFiddle examples for multiformat updates --- dev-docs/examples/adjust-price.md | 4 ++-- dev-docs/examples/adunit-refresh.md | 2 +- dev-docs/examples/basic-example.md | 24 +++++++++---------- dev-docs/examples/brightcove-example.md | 2 +- ...-price-bucket-using-setpricegranularity.md | 8 +++---- dev-docs/examples/custom-price-bucket.md | 2 +- dev-docs/examples/full-page-refresh.md | 4 ++-- dev-docs/examples/jw-cloud-example.md | 2 +- dev-docs/examples/jw-selfhost-example.md | 2 +- dev-docs/examples/kaltura-example.md | 2 +- dev-docs/examples/ooyala-example.md | 2 +- dev-docs/examples/outstream-video-example.md | 4 ++-- dev-docs/examples/send-all-bids.md | 2 +- .../examples/simplified-price-bucket-setup.md | 4 ++-- dev-docs/examples/size-mapping.md | 4 ++-- .../use-prebid-with-appnexus-ad-server.md | 2 +- dev-docs/examples/videojs-example.md | 2 +- dev-docs/getting-started.md | 2 +- examples/adunit_refresh_example.html | 6 ++++- 19 files changed, 42 insertions(+), 38 deletions(-) diff --git a/dev-docs/examples/adjust-price.md b/dev-docs/examples/adjust-price.md index 2d907a024c..15d0599aeb 100644 --- a/dev-docs/examples/adjust-price.md +++ b/dev-docs/examples/adjust-price.md @@ -17,7 +17,7 @@ about: - Standard price granularity -jsfiddle_link: jsfiddle.net/prebid/hn06j4f4/11/embedded/html,result +jsfiddle_link: jsfiddle.net/prebid/hn06j4f4/19/embedded/html,result code_height: 2725 code_lines: 125 @@ -37,7 +37,7 @@ pid: 80



-#### Line 31 to 38: Adjust Bid Price +#### Line 35 to 42: Adjust Bid Price Some bidders return gross prices, instead of the net prices (what the publisher will actually get paid). For example, a publisher’s net price might be 15% below the returned gross price. In this case, the publisher may want to adjust the bidder’s returned price to run a true header bidding auction. Otherwise, this bidder’s gross price will unfairly win over your other demand sources who report the real price. diff --git a/dev-docs/examples/adunit-refresh.md b/dev-docs/examples/adunit-refresh.md index e7b67277ab..f75f447cc8 100644 --- a/dev-docs/examples/adunit-refresh.md +++ b/dev-docs/examples/adunit-refresh.md @@ -12,7 +12,7 @@ about: - Standard keyword targeting setup - Standard price granularity - See a Prebid.org-hosted version of the example code here -jsfiddle_link: jsfiddle.net/prebid/dzrs3gfL/75/embedded/html,result +jsfiddle_link: jsfiddle.net/prebid/dzrs3gfL/78/embedded/html,result code_height: 2600 code_lines: 140 pid: 20 diff --git a/dev-docs/examples/basic-example.md b/dev-docs/examples/basic-example.md index bb2c5add87..b10838c5a7 100644 --- a/dev-docs/examples/basic-example.md +++ b/dev-docs/examples/basic-example.md @@ -13,7 +13,7 @@ about: - Standard keyword targeting setup (reference). - Standard price granularity -jsfiddle_link: jsfiddle.net/prebid/bhn3xk2j/458/embedded/html,result +jsfiddle_link: jsfiddle.net/prebid/bhn3xk2j/638/embedded/html,result code_lines: 110 code_height: 2389 @@ -24,7 +24,7 @@ pid: 10
-##### Line 6 to 27: Define timeout and ad units +##### Line 6 to 39: Define timeout and ad units This section is the only prebid config you may need to update frequently when: @@ -40,7 +40,7 @@ Some publishers put this section of the code into a separate JS file for ad ops
-##### Line 8 to 26: Define ad units and bidder tag Ids +##### Line 8 to 39: Define ad units and bidder tag Ids Register all your ad units in page here. The key `code` is an identifier of this ad unit. If you're using GPT, we recommend putting in that ad unit's slot element ID. If you don't put in the slot element ID, `pbjs.setTargetingForGPTAsync()` would not work, but you can still manually set targeting using `pbjs.getAdserverTargeting()` or `pbjs.getBidResponses()` ([API Reference](/dev-docs/publisher-api-reference.html)). @@ -52,7 +52,7 @@ For each ad unit, register the header bidding bidders' tag Ids. For example in t
-##### Line 30 and Below: Boilerplate. No Need To Change. +##### Line 44 and Below: Boilerplate. No Need To Change.
@@ -60,7 +60,7 @@ For each ad unit, register the header bidding bidders' tag Ids. For example in t
-##### Line 35: Load the Prebid.js library Asynchronously +##### Line 45: Load the Prebid.js library Asynchronously Generate your version of Prebid.js with the selected adapters [here](http://prebid.org/download.html). Do not use the prebid.js version on the left in your production environment. @@ -69,11 +69,11 @@ Generate your version of Prebid.js with the selected adapters [here](http://preb
-##### Line 40: Googletag `disableInitialLoad()` +##### Line 50: Googletag `disableInitialLoad()` See full documentation from DFP [here](https://developers.google.com/doubleclick-gpt/reference#googletag.PubAdsService_disableInitialLoad). -- Ads will be requested with a `googletag.pubads().refresh()` call. See line 55 in the `sendAdserverRequest()` call. +- Ads will be requested with a `googletag.pubads().refresh()` call. See line 66 in the `sendAdserverRequest()` call. - This should be set prior to enabling the service. - GPT's Async mode must be used. @@ -81,7 +81,7 @@ See full documentation from DFP [here](https://developers.google.com/doubleclick
-##### Line 45 to 47: If all requested bids are back early, send out GPT ad request +##### Line 55 to 57: If all requested bids are back early, send out GPT ad request Prebid.js sends out all registerd bid requests at `pbjs.requestBids()`. Callback `bidsBackHandler` will be triggered when all bids are back for the requested ad units. @@ -92,13 +92,13 @@ Callback `bidsBackHandler` will be triggered when all bids are back for the requ
-##### Line 51 to 52: ensure `sendAdserverRequest()` only called once +##### Line 61 to 62: ensure `sendAdserverRequest()` only called once Send out GPT ad request when all bids are back, or when timeout is hit, whichever comes earlier.
-##### Line 55 to 56: Set key-values before GPT `refresh()` to send ad requests to DFP +##### Line 65 to 66: Set key-values before GPT `refresh()` to send ad requests to DFP This refresh call will trigger GPT to send out the ad request for all the defined ad units on page. It's important to pair this with `disableInitialLoad()`, as in line 40. @@ -108,7 +108,7 @@ Call `pbjs.setTargetingForGPTAsync()` before the refresh call to let prebid.js a
-##### Line 61 to 63: set timeout to timebox bidders' bids +##### Line 71 to 73: set timeout to timebox bidders' bids The page will only asynchronously wait for PREBID_TIMEOUT amount of time before it calls `sendAdserverRequest()` to let GPT send out the bids. @@ -118,7 +118,7 @@ The page will only asynchronously wait for PREBID_TIMEOUT amount of time before
-##### Line 68 and below: your original page setup unchanged. +##### Line 78 and below: your original page setup unchanged. You don't have to change any other part of your page, such as GPT loading or GPT tags definition. diff --git a/dev-docs/examples/brightcove-example.md b/dev-docs/examples/brightcove-example.md index 62544d9598..743ebcfe5a 100644 --- a/dev-docs/examples/brightcove-example.md +++ b/dev-docs/examples/brightcove-example.md @@ -16,7 +16,7 @@ player_notes: - For this demo we'll be configuring the player's ima3 settings on the page instead of in Video Cloud. Make sure you load the ima3 script and CSS file in addition to your player script. - On the publish page for the player, choose the Advanced embed code (not Standard). - If you're playing a preroll ad, do not include the videoID in the video element. -jsfiddle_link: jsfiddle.net/prebid/dd4wd8z7/32/embedded/html/ +jsfiddle_link: jsfiddle.net/prebid/dd4wd8z7/35/embedded/html/ demo_link: prebid.org/examples/video/bc-demo.html code_lines: 154 code_height: 4600 diff --git a/dev-docs/examples/custom-price-bucket-using-setpricegranularity.md b/dev-docs/examples/custom-price-bucket-using-setpricegranularity.md index 9011d24c5c..e1529dc207 100644 --- a/dev-docs/examples/custom-price-bucket-using-setpricegranularity.md +++ b/dev-docs/examples/custom-price-bucket-using-setpricegranularity.md @@ -12,7 +12,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/100/embedded/html,result +jsfiddle_link: jsfiddle.net/prebid/qhdnvdhj/1/embedded/html,result code_height: 3166 code_lines: 146 pid: 101 @@ -30,7 +30,7 @@ pid: 101
-#### 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..39c6afb272 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/prebid/46rttaqv/1/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..bd4f4e798f 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 (reference) - Standard price granularity -jsfiddle_link: jsfiddle.net/prebid/amg49spy/18/embedded/html,result +jsfiddle_link: jsfiddle.net/prebid/amg49spy/20/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..290e88bd54 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/prebid/zt70zj9z/20/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..e43175799b 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/prebid/357yaqgc/31/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..b95152704d 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/prebid/17vap1ro/10/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..a75e607447 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/prebid/hxzue5eu/11/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..2e0758aa6a 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/prebid/e9bb94L6/9/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..9aa87ab3db 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/prebid/qu68xoz5/65/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..31abce1166 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/prebid/bp9magow/128/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..79d697fa65 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/prebid/58udrja1/60/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..dccb5c508d 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/prebid/gqvoj5pk/17/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..41076f5103 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/prebid/vfzo8ofu/18/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..a5605350b5 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' } From 839b043a8e983ff436849687c6ffe502a9c58e87 Mon Sep 17 00:00:00 2001 From: Jason Snellbaker Date: Mon, 12 Feb 2018 09:53:23 -0500 Subject: [PATCH 2/3] updating pages with new fiddle that is 1.x compliant --- dev-docs/examples/adjust-price.md | 2 +- dev-docs/examples/adunit-refresh.md | 2 +- dev-docs/examples/basic-example.md | 2 +- dev-docs/examples/brightcove-example.md | 2 +- .../examples/custom-price-bucket-using-setpricegranularity.md | 2 +- dev-docs/examples/custom-price-bucket.md | 2 +- dev-docs/examples/full-page-refresh.md | 2 +- dev-docs/examples/jw-cloud-example.md | 2 +- dev-docs/examples/jw-selfhost-example.md | 2 +- dev-docs/examples/kaltura-example.md | 2 +- dev-docs/examples/ooyala-example.md | 2 +- dev-docs/examples/outstream-video-example.md | 2 +- dev-docs/examples/send-all-bids.md | 2 +- dev-docs/examples/simplified-price-bucket-setup.md | 2 +- dev-docs/examples/size-mapping.md | 2 +- dev-docs/examples/use-prebid-with-appnexus-ad-server.md | 2 +- dev-docs/examples/videojs-example.md | 2 +- examples/adunit_refresh_example.html | 2 +- 18 files changed, 18 insertions(+), 18 deletions(-) diff --git a/dev-docs/examples/adjust-price.md b/dev-docs/examples/adjust-price.md index 15d0599aeb..0c1027938b 100644 --- a/dev-docs/examples/adjust-price.md +++ b/dev-docs/examples/adjust-price.md @@ -17,7 +17,7 @@ about: - Standard price granularity -jsfiddle_link: jsfiddle.net/prebid/hn06j4f4/19/embedded/html,result +jsfiddle_link: jsfiddle.net/prebid/hn06j4f4/21/embedded/html,result code_height: 2725 code_lines: 125 diff --git a/dev-docs/examples/adunit-refresh.md b/dev-docs/examples/adunit-refresh.md index f75f447cc8..83b7f66c5f 100644 --- a/dev-docs/examples/adunit-refresh.md +++ b/dev-docs/examples/adunit-refresh.md @@ -12,7 +12,7 @@ about: - Standard keyword targeting setup - Standard price granularity - See a Prebid.org-hosted version of the example code here -jsfiddle_link: jsfiddle.net/prebid/dzrs3gfL/78/embedded/html,result +jsfiddle_link: jsfiddle.net/prebid/dzrs3gfL/92/embedded/html,result code_height: 2600 code_lines: 140 pid: 20 diff --git a/dev-docs/examples/basic-example.md b/dev-docs/examples/basic-example.md index b10838c5a7..1bfa031f82 100644 --- a/dev-docs/examples/basic-example.md +++ b/dev-docs/examples/basic-example.md @@ -13,7 +13,7 @@ about: - Standard keyword targeting setup (reference). - Standard price granularity -jsfiddle_link: jsfiddle.net/prebid/bhn3xk2j/638/embedded/html,result +jsfiddle_link: jsfiddle.net/prebid/bhn3xk2j/655/embedded/html,result code_lines: 110 code_height: 2389 diff --git a/dev-docs/examples/brightcove-example.md b/dev-docs/examples/brightcove-example.md index 743ebcfe5a..41204645a7 100644 --- a/dev-docs/examples/brightcove-example.md +++ b/dev-docs/examples/brightcove-example.md @@ -16,7 +16,7 @@ player_notes: - For this demo we'll be configuring the player's ima3 settings on the page instead of in Video Cloud. Make sure you load the ima3 script and CSS file in addition to your player script. - On the publish page for the player, choose the Advanced embed code (not Standard). - If you're playing a preroll ad, do not include the videoID in the video element. -jsfiddle_link: jsfiddle.net/prebid/dd4wd8z7/35/embedded/html/ +jsfiddle_link: jsfiddle.net/prebid/dd4wd8z7/36/embedded/html/ demo_link: prebid.org/examples/video/bc-demo.html code_lines: 154 code_height: 4600 diff --git a/dev-docs/examples/custom-price-bucket-using-setpricegranularity.md b/dev-docs/examples/custom-price-bucket-using-setpricegranularity.md index e1529dc207..67fd50f4d4 100644 --- a/dev-docs/examples/custom-price-bucket-using-setpricegranularity.md +++ b/dev-docs/examples/custom-price-bucket-using-setpricegranularity.md @@ -12,7 +12,7 @@ about: - Integration with DFP's GPT single request asynchronous mode - One set of line items for all bidders -jsfiddle_link: jsfiddle.net/prebid/qhdnvdhj/1/embedded/html,result +jsfiddle_link: jsfiddle.net/prebid/qhdnvdhj/2/embedded/html,result code_height: 3166 code_lines: 146 pid: 101 diff --git a/dev-docs/examples/custom-price-bucket.md b/dev-docs/examples/custom-price-bucket.md index 39c6afb272..dcd05e926e 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/46rttaqv/1/embedded/html,result +jsfiddle_link: jsfiddle.net/prebid/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 bd4f4e798f..05b0154176 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 (reference) - Standard price granularity -jsfiddle_link: jsfiddle.net/prebid/amg49spy/20/embedded/html,result +jsfiddle_link: jsfiddle.net/prebid/amg49spy/21/embedded/html,result code_height: 2662 code_lines: 122 diff --git a/dev-docs/examples/jw-cloud-example.md b/dev-docs/examples/jw-cloud-example.md index 290e88bd54..27f3655320 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/20/embedded/html/ +jsfiddle_link: jsfiddle.net/prebid/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 e43175799b..3dbb4b7d35 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/31/embedded/html/ +jsfiddle_link: jsfiddle.net/prebid/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 b95152704d..2f4a572136 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/10/embedded/html/ +jsfiddle_link: jsfiddle.net/prebid/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 a75e607447..4c808bf91c 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/11/embedded/html/ +jsfiddle_link: jsfiddle.net/prebid/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 2e0758aa6a..4ff4db78c8 100644 --- a/dev-docs/examples/outstream-video-example.md +++ b/dev-docs/examples/outstream-video-example.md @@ -13,7 +13,7 @@ about: - 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/9/embedded/html,result +jsfiddle_link: jsfiddle.net/prebid/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 9aa87ab3db..8e5d14ef9d 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/65/embedded/html,result +jsfiddle_link: jsfiddle.net/prebid/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 31abce1166..140d499802 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/128/embedded/html,result +jsfiddle_link: jsfiddle.net/prebid/bp9magow/129/embedded/html,result code_height: 2641 code_lines: 121 diff --git a/dev-docs/examples/size-mapping.md b/dev-docs/examples/size-mapping.md index 79d697fa65..c2f189b732 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/60/embedded/html,result +jsfiddle_link: jsfiddle.net/prebid/58udrja1/61/embedded/html,result code_height: 3000 code_lines: 118 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 dccb5c508d..ce081dfc8d 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/17/embedded/html,result +jsfiddle_link: jsfiddle.net/prebid/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 41076f5103..343d89e35f 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/18/embedded/html/ +jsfiddle_link: jsfiddle.net/prebid/vfzo8ofu/19/embedded/html/ demo_link: prebid.org/examples/video/videojs-demo.html code_lines: 159 code_height: 4000 diff --git a/examples/adunit_refresh_example.html b/examples/adunit_refresh_example.html index a5605350b5..8f78c2f3a4 100644 --- a/examples/adunit_refresh_example.html +++ b/examples/adunit_refresh_example.html @@ -34,7 +34,7 @@ - +