-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Interstitial Ads additions #2851
Merged
Merged
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
77f4b2e
removed sizes from RP bid params
bszekely1 2d4112e
Merge branch 'master' of https://github.com/prebid/prebid.github.io i…
bszekely1 31be03c
Merge branch 'master' of https://github.com/prebid/prebid.github.io i…
bszekely1 b04eb09
added interstitial page and config to adUnit
bszekely1 eb8c23c
interstitial page corrections
bszekely1 f8c3592
Update InterstitialAds.md
669ee6a
Update InterstitialAds.md
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,78 @@ | ||
--- | ||
layout: page_v2 | ||
title: Prebid.js Interstitial Ads | ||
description: Interstitial Ads - Prebid.js | ||
sidebarType: 1 | ||
--- | ||
|
||
# Interstitial Ads - Prebid.js | ||
{: .no_toc} | ||
|
||
* TOC | ||
{:toc} | ||
|
||
Interstitails ads are often placed at natural transition points of the user's experince, such as moving from one page to the next. These ads are generally center aligned overlaying user content. | ||
|
||
This document covers how to setup interstitial ad units. | ||
|
||
{: .alert.alert-warning :} | ||
Please check with each of your bidders to ensure they're reading the interstitial flag from the standard Prebid location. | ||
|
||
|
||
## How It Works | ||
|
||
The intended flow for publishers is the following: | ||
- Publisher traffics interstitial line item with appropriate size(s) ([GAM example](https://support.google.com/admanager/answer/9840201?hl=en)) | ||
- Publisher defines ad server interstitial slot on the page ([GAM Example](https://developers.google.com/publisher-tag/samples/display-web-interstitial-ad)) | ||
- Publisher defines the appropriate interstitial ad sizes within appriate adUnit.mediaType and supplies the adUnit Interstitial flag within the [AdUnit.ortb2Imp](/dev-docs/adunit-reference.html#adUnit-interstitial-example) config | ||
- Prebid requests bids for interstitial adUnits and invokes the ad server call from the requestBids callback | ||
|
||
## Ad Sizes | ||
Publishers are intended to set the desired size in the respective adUnit. | ||
|
||
The below sizes are specials sizes to indicate the ad will be full screen for mobile or tablet devices: | ||
- 320x480: Fullscreen mobile phone portrait ad | ||
- 480x320: Fullscreen mobile phone landscape ad | ||
- 768x1024: Fullscreen tablet portrait ad | ||
- 1024x768: Fullscreen tablet landscape ad | ||
|
||
## In-Page Example | ||
|
||
The Prebid Interstitial flag reflects the OpenRTB standard, specifying it at the imp level. | ||
|
||
|
||
### Supplying Interstitial Flag | ||
|
||
If an attribute is specific to an AdUnit, it can be passed this way: | ||
|
||
{% highlight js %} | ||
pbjs.addAdUnits({ | ||
code: "test-div", | ||
mediaTypes: { | ||
banner: { | ||
sizes: [[300,250]] | ||
} | ||
}, | ||
ortb2Imp: { | ||
intl:1 | ||
}, | ||
... | ||
}); | ||
{% endhighlight %} | ||
|
||
|
||
|
||
## How Bid Adapters Should Read Interstitial Flag | ||
|
||
To access global data, a Prebid.js bid adapter needs only to retrive the interstitial flag from the adUnit like this: | ||
|
||
{% highlight js %} | ||
utils.deepAccess(bidRequest.ortb2Imp, 'instl') | ||
{% endhighlight %} | ||
|
||
|
||
The assumption is that bid adapters will copy the values to the appropriate protocol location for their endpoint. | ||
|
||
## Related Topics | ||
|
||
- The [AdUnit Reference](/dev-docs/adunit-reference.html) |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
instl