Flex ads

Last updated on April 23, 2018

The OpenX user interface supports choosing multiple ad sizes for an ad unitThe smallest inventory component that represents the space on a site where ads display.. By default, the setting in the UI will result in ad delivery of any one of these sizes based on best possibility of monetization. If you want to specify a subset of your ad units' supported ad sizes at delivery time, such as flexible sizes only for certain refreshes, use the setFlexAdSize parameter:

 /* Set predefined flex adsize here. Please refer 'AdConfiguration.OXMAdSize' for more OpenX predefined flex ad sizes. */
// Or, set your custom flex adsize as a string.

Note that this approach does not apply to video interstitialA full-screen ad displayed in content transitions. For example, a video ad that loads between levels of a mobile game. ads, because VAST specifications already support multiple media files.

Enabling multiple ad sizes for an ad unit (flexible ad sizes) allows for better monetization because more ad sizes can fill an impressionA single display of an ad on a web page, mobile app, or other delivery medium. For deals, impression is a metric to relay the total number of ads that have served. See also billable impression, forecasted impressions., but it also means that in some cases, a smaller ad may fill. This could create more blank space. If user experience is important, you may prefer to use a single ad size.

If you do not set these values programmatically, then the values set in the UI will be used for bid requests.

The supported ad sizes are as follows:











// Flexible ad sizes for portrait, phone



// Flexible ad sizes for landscape, phone



// Flexible ad sizes for portrait, tablet



// Flexible ad sizes for landscape, tablet



Fill out my online form.