InPage sizes include the following:
728x90,300x250,336x280,160x600,300x600,970x90,970x250,320x100,320x50
To control which ad sizes are served in specific positions, you can add the data-sizes attribute to your ad tag (data-sizes="list sizes separated by a comma here"). This attribute restricts the ad sizes that are allowed in a particular div.
For example, by specifying data-sizes within the code, you can include or exclude certain ad sizes based on your needs. If you only medium rectangles to appear, you would include only those dimensions within the data-sizes attribute. Here’s how it would look:
<div class="udm-inpage" data-sizes="300x250,336x280">
<script>
try {
top.udm_inpage_sid = ENTER YOUR SID HERE;
} catch (e) {
console.warn(
"Error initializing udm inpage. Please verify you are not using an unfriendly iframe"
);
}
</script>
<script src="https://bid.underdog.media/inpageLoader.js"></script>
</div>
**Make sure to enter the SID (site ID) for your site specific InPage tag, or the code will not work.**
Note that each placement of InPage code can have a unique list of 'data-sizes,' allowing only the specified sizes to fill that particular placement. For example, you might want to display rails in one div, footers in another, and medium rectangles in a third, or use any combination of sizes that suit your site's layout.
Comments
0 comments
Article is closed for comments.