-
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
Add multiformat docs: developers, ad ops, example code #561
Changes from all commits
e3eb5bf
214f59f
0033fcb
42644fa
e1c7548
aeeac8b
8ca48b8
7813214
bf266aa
a76d3ae
32d5d68
c580344
79bad3b
cff4142
002baba
538f782
f29de26
c54bec3
704cdf4
0e6d711
8a67f2e
8a05c90
fe2edcb
08d65cc
be9fd69
83efd5a
2ce71da
639aae0
e78286a
96357cb
c857214
418cab5
595002a
3c42b81
6c1a446
7649b51
ab96040
17c9013
f79abbe
d2df4d0
83e1042
ad53c49
5001f63
00c7223
b188f67
1556a3e
f5e56b3
2c4d531
ba8a77f
0e604fa
182b37b
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,85 @@ | ||
--- | ||
layout: page | ||
title: Setting up Prebid Multi-Format in DFP | ||
head_title: Setting up Prebid Multi-Format in DFP | ||
description: Setting up Prebid Multi-Format in DFP | ||
pid: 3 | ||
hide: false | ||
top_nav_section: adops | ||
nav_section: tutorials | ||
--- | ||
|
||
<div class="bs-docs-section" markdown="1"> | ||
|
||
# Setting up Prebid Multi-Format in DFP | ||
{: .no_toc} | ||
|
||
This page shows how to set up your ad server so that you can serve multi-format ads. | ||
|
||
Multi-Format ads allow you to declare multiple media types on a single ad unit. For example, you can set up one ad on the page that could show a banner, native, or outstream video ad, depending on which had the highest bid. | ||
|
||
{: .alert.alert-info :} | ||
For instructions on how to set up multi-format ads from the engineering side, see [Show Multi-Format Ads with Prebid.js]({{site.baseurl}}/dev-docs/show-multi-format-ads.html). | ||
|
||
* TOC | ||
{: toc } | ||
|
||
## Step 1. Add an Ad Unit | ||
|
||
In DFP, [create an ad unit](https://support.google.com/dfp_premium/answer/177203?hl=en). | ||
|
||
Decide what combination of formats will be permitted on the ad unit. This will determine what sizes you allow to serve. The ad unit's sizes must be configured properly to support the combination of formats that will be permitted. | ||
|
||
If your ad unit will support native ads, you may want to create a custom **Prebid Native Format** and at least one **Prebid Native Style**. Examples of each are given in [Setting up Prebid Native in DFP][nativeAdSetup]. | ||
|
||
## Step 2. Add an Order | ||
|
||
In DFP, create a new order. This order will be associated with the multiple line items needed to run multi-format auctions. | ||
|
||
## Step 3. Add Line Items and Creatives for each Media Type | ||
|
||
Multi-format ad units which support native require at least two distinct sets of line items and creatives: | ||
|
||
+ One for [banners and/or outstream video][bannerAdSetup]. Banners and outstream videos will serve into a DFP banner creative. | ||
|
||
+ One for [native][nativeAdSetup]. Native ads will serve into a native creative with native format and styles. | ||
|
||
### Banner/Outstream | ||
|
||
Follow the instructions for creating line items and creatives in [Send all bids to the ad server][bannerAdSetup], with the following changes: | ||
|
||
+ Add key-value targeting for **'hb_format' is ('banner' OR 'video')** | ||
+ This will ensure that the appropriate ad server line item is activated for banner / outstream bids | ||
+ For bidder-specific line items, specify `hb_format_{BIDDER_CODE}`, e.g., `hb_format_appnexus` | ||
|
||
![Set hb_format to 'banner,video']({{site.baseurl}}/assets/images/ad-ops/multi-format/hb_format_video_banner.png) | ||
|
||
+ Make sure that you're targeting the right sizes for both banner ads and any outstream ads you want to serve in this slot, e.g., | ||
+ 1x1 for outstream (or whatever size you pass into DFP as your outstream impression) | ||
+ whatever banner sizes are valid for your site / use case | ||
|
||
### Native | ||
|
||
Follow the instructions for creating line items, creatives, custom native formats, and native styles in [Show Native Ads][nativeAdSetup], with the following changes: | ||
|
||
+ Add key-value targeting for **'hb_format' is 'native'** | ||
|
||
![Set 'hb_format' to 'native']({{site.baseurl}}/assets/images/ad-ops/multi-format/hb_format_native.png) | ||
|
||
+ Make sure you're targeting the right sizes for the native ads you want to serve: | ||
+ Fixed-size native, where you specify one or more absolute sizes | ||
+ Fluid, which expands to fit whatever space it's put in | ||
+ For more information on fluid vs. fixed, see [the DFP docs](https://support.google.com/dfp_premium/answer/6366914?hl=en) | ||
|
||
## Related Topics | ||
|
||
+ [Show Multi-Format Ads with Prebid.js]({{site.baseurl}}/dev-docs/show-multi-format-ads.html) (Engineering setup) | ||
+ [Multi-Format Example]({{site.baseurl}}/dev-docs/examples/multi-format-example.html) (Example code) | ||
|
||
</div> | ||
|
||
<!-- Reference Links --> | ||
|
||
[bannerAdSetup]: {{site.baseurl}}/adops/send-all-bids-adops.html | ||
[nativeAdSetup]: {{site.baseurl}}/adops/setting-up-prebid-native-in-dfp.html | ||
[createCustomNativeFormat]: {{site.baseurl}}/adops/setting-up-prebid-native-in-dfp.html#create-a-custom-native-ad-format |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
--- | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I am seeing "Prebid.js Multi-Format Example" appear in the left nav under "Developer Quick Start" on all /dev-docs/ pages. Is this intended? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Nope! Forgot to add a |
||
layout: example | ||
title: Prebid.js Multi-Format Example | ||
description: Prebid.js Multi-Format Example | ||
top_nav_section: dev_docs | ||
nav_section: quick-start | ||
hide: true | ||
about: | ||
- Multi-Format ads allow you to declare multiple media types on a single ad unit | ||
- Set up one ad unit that could show a banner, native, or outstream video ad | ||
- Any bidder that supports at least one of the listed media types can participate in the auction for that ad unit | ||
- For engineering setup instructions, see <a href="/dev-docs/show-multi-format-ads.html">Show Multi-Format Ads</a> | ||
- For ad ops setup instructions, see <a href="/adops/setting-up-prebid-multi-format-in-dfp.html">Setting up Prebid Multi-Format in DFP</a> | ||
- <em>Note</em> - Outstream ads only work sporadically in the embedded JSFiddle below; try the Prebid.org-hosted <a href="/examples/multi_format_example.html">Multi-Format Example</a> | ||
jsfiddle_link: jsfiddle.net/prebid/mg81j0rw/12/embedded/html,result | ||
code_lines: 110 | ||
code_height: 2389 | ||
use_old_example_style: false | ||
pid: 11 | ||
--- |
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.
Should we note that hb_format_[BIDDER_CODE] would need to be specified for bidder-specific line items?
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.
Yes! Added the following note in 7649b51: