Media Types
Inventory > Ad units > General: Media Types
Last edited: 2025/01/20
Media Types: Ad unit configuration where you specify the sizes of Prebid Media Types (e.g., Banner, Video) that can be served on the ad unit. If needed, you also define parameters for Native and Instream / Outstream Video ad units.
Defining media types
- Go to:
- In Old Platform: Prebid Stack > Inventory > Ad units > select the ad unit that you want to edit > Media Types
- In New Platform: Inventory > Ad units > select the ad unit that you want to edit > General: Media Types
- Select:
- No size mapping / Ignore viewport width (default) if you want to set the same Media Types and Sizes for all users and pageviews or
- Custom / Define per viewport width (recommended) if you want to differentiate them based on user’s viewport:
- Select the Media Types you want to apply to the given Ad Unit. You can use Banner, Outstream Video, and Native simultaneously. However, if you select Instream Video, no other Media Type can be added to the same Ad Unit.
- Define the sizes you want to use. These sizes will be requested from Prebid and Amazon UAM/TAM (if applicable). Note that Player size applies to both Outstream and Instream Video.
- If you want to use Outstream, Instream, or Native Media Types, add the JSON configuration object:
- Video (Instream / Outstream):
- Native
- If you want to use Instream video Media Type, you must define a Video Player provider:
- Go to Global setup > Prebid > Defaults: Prebid Video
- Select the video player from the list
- Click ‘Save’
AB Fixed Size Ad Specifications: https://www.iab.com/wp-content/uploads/2019/04/IABNewAdPortfolio_LW_FixedSizeSpec.pdf
Exemplary Outstream video configuration code:
{
"api": [2],
"mimes": [
"video/mp4",
"video/x-flv",
"video/x-ms-wmv"
],
"linearity": 1,
"protocols": [1, 2, 3, 4, 5, 6],
"maxduration": 10,
"playbackmethod": [2]
}
Full list of available parameters: Prebid Documentation.
Exemplary, properly formatted native configuration code is below (please pay attention to proper formatting of the brackets):
{
"body": {"required": false},
"icon": {"required": false},
"image": {
"sizes": [[300, 200]],
"required":true
},
"title": {"required": true},
"sponsoredBy": {"required": false}
}
Full list of available parameters: Prebid Documentation.
Attention: Makes sure that you use the proper JSON formatting. Learn more.
If your Video player is not supported yet (isn’t on the list), please contact Yieldbird directly for support.
Important: Using Prebid Stack on Instream Video or Native Media Type Ad Units requires dedicated Line Items in GAM. Make sure to create them before proceeding. Learn more.
On this page: