Help Center Manage Your Account Ad Tag
How do I setup a companion ad in video ad serving?
A companion ad runs along with a VAST video ad (pre-roll, mid-roll or post-roll) to provide a more integrated experience for viewers. To setup, you add a companion positioning restriction to show another ad together with a video ad.Setup
- Click on a video ad
- Click on tab "Restrictions", click tab "Add"
- Choose type "Companion/Competitive Restriction"
- Choose another ad as companion, which could be an image banner ad, a SWF/Flash ad, a text link ad, or a Rich-Media/HTML ad
- Click "Save" button to tie the companion ad with the linear/non-linear ad
Integration with Video Player
If a pre-roll video ad has a companion ad, it is automatically included in the VAST call. You only need to specify the correct container ID and the dimension. Below is an example for JWPlayer:advertising: { client: "vast", tag: "http://g.adspeed.net/ad.php?do=vast..." companiondiv: { id: "MyCompanionDIV", width: 300, height: 250 } }Another example for FlowPlayer:
"ads":{ "schedule":[{ "position":"pre-roll", "server":{ "type":"direct", "tag":"http://g.adspeed.net/ad.php?do=vast..." } }], "companions":[{ "id":"MyCompanionDIV", "width":300, "height":250 }] }
Other Articles in Ad Tag
This section describes the ad tag (serving code) with basic and advanced settings. It includes common ad serving setup instructions and answers frequently asked questions when integrating the ad tag into your site, blog or app.
- Accelerated Mobile Pages Project - AMP Ad Tag
- Can I have ads refresh automatically without a page reload?
- How can I avoid document.write warning in Chrome?
- How can I avoid duplicate ads on the same page?
- How can I combine multiple ads in the same placement?
- How can I defer ads until after the page has finished loading?
- How can I display an ad only when it is visible on screen?
- How can I measure ad viewability?
- How can I mix ad dimensions or mix banners with text-link ads?
- How can I put ads into my blog/website?
- How can I serve multiple ad dimensions in the same place?
- How can I serve multiple zones with a single server request?
- How can I support click tracking for external ad servers?
- How can I turn off ad serving error messages?
- How do I add current timestamp into the serving code?
- How do I display mobile ads using Android WebView?
- How do I display mobile ads using Apple iOS WKWebView?
- How do I integrate AdSpeed mobile ad serving API?
- How do I make ads responsive on mobile devices?
- How do I pass custom data and variables into the ad?
- How do I set up advertising on WordPress?
- How do I setup a passback ad tag?
- How do I switch to secure SSL/https ad serving?
- Should I use protocol-relative URLs in ad tags?
- What are custom ad serving settings and variables?
- What are different formats of serving code?
- What are different types of ad tag?
- What are the effects of ad blocking software?
- What is the pop-up and pop-under ad tag?
- What is the serving code or ad tag?
- What is WMODE for SWF ads? How can I change it?
- Where is the publisher-side file for iframe busting?
- Why doesn't the provided HTML serving code work?
Cannot find an answer for your question? Ask our Customer Care team
Related
- Campaign
"Documentation for API methods to manage your campaigns in our ad server. API Version1.4.6 (build 20240530). This page was updated ..."
- Website
"Documentation for API methods to manage one or multiple websites. API Version1.4.6 (build 20240530). This page was updated on Mon, ..."
- Channels
"Documentation for API methods to manage one or multiple channels. API Version1.4.6 (build 20240530). This page was updated on Sat, ..."
- Zone
"Documentation for API methods to manage one or multiple zones. API Version1.4.6 (build 20240530). This page was updated on Thu, ..."
- QuickTime and Windows Media Video Ad
"To create an advertisement using these media formats (.MOV and .WMV), please follow the steps below. On the other hand, ..."
in Ad Gallery