Dailymotion
Features
| Bidder Code | dailymotion | Prebid.org Member | yes | 
|---|---|---|---|
| Prebid.js Adapter | yes | Prebid Server Adapter | no | 
| Media Types | display, video | Multi Format Support | check with bidder | 
| TCF-EU Support | yes | IAB GVL ID | 573 | 
| GPP Support | some (check with bidder) | DSA Support | check with bidder | 
| USP/CCPA Support | yes | COPPA Support | yes | 
| Supply Chain Support | check with bidder | Demand Chain Support | check with bidder | 
| Safeframes OK | yes | Supports Deals | yes | 
| Floors Module Support | yes | First Party Data Support | check with bidder | 
| Endpoint Compression | check with bidder | ORTB Blocking Support | no | 
| User IDs | none | Privacy Sandbox | check with bidder | 
Registration
To use the adapter with any non-test request, you first need to ask an API key from Dailymotion. Please contact us through publishers@dailymotion.com .
This API key will ensure proper identification of your inventory and allow you to get real bids.
Configuration options
Before calling this adapter, you need to at least set a video adUnit in an instream context and the API key in the bid parameters:
const adUnits = [
  {
    bids: [{
      bidder: 'dailymotion',
      params: {
        apiKey: 'fake_api_key'
      },
    }],
    code: 'test-ad-unit',
    mediaTypes: {
      video: {
        context: 'instream',
      },
    },
  }
];
apiKey is your publisher API key. For testing purpose, you can use “dailymotion-testing”.
User Sync
To enable user synchronization, add the following code. Dailymotion highly recommends using iframes and/or pixels for user syncing. This feature enhances DSP user match rates, resulting in higher bid rates and bid prices. Ensure that pbjs.setConfig() is called only once.
pbjs.setConfig({
  userSync: {
    syncEnabled: true,
    filterSettings: {
      iframe: {
        bidders: '*', // Or add dailymotion to your list included bidders
        filter: 'include'
      },
      image: {
        bidders: '*', // Or add dailymotion to your list of included bidders
        filter: 'include'
      },
    },
  },
});
Price floor
The price floor can be set at the ad unit level, for example :
const adUnits = [{
  floors: {
    currency: 'USD',
    schema: {
      fields: [ 'mediaType', 'size' ]
    },
    values: {
      'video|300x250': 2.22,
      'video|*': 1
    }
  },
  bids: [{
    bidder: 'dailymotion',
    params: {
      apiKey: 'dailymotion-testing',
    }
  }],
  code: 'test-ad-unit',
  mediaTypes: {
    video: {
      playerSize: [300, 250],
      context: 'instream',
    },
  }
}];
// Do not forget to set an empty object for "floors" to active the price floor module
pbjs.setConfig({floors: {}});
The following request will be sent to Dailymotion Prebid Service :
{
  "pbv": "9.23.0-pre",
  "ortb": {
    "imp": [
      {
        ...
        "bidfloor": 2.22,
        "bidfloorcur": "USD"
      }
    ],
  }
  ...
}
Or the price floor can be set at the package level, for example :
const adUnits = [
  {
    bids: [{
      bidder: 'dailymotion',
      params: {
        apiKey: 'dailymotion-testing',
      }
    }],
    code: 'test-ad-unit',
    mediaTypes: {
      video: {
        playerSize: [1280,720],
        context: 'instream',
      },
    }
  }
];
pbjs.setConfig({
  floors: {
      data: { 
          currency: 'USD',
          schema: {
              fields: [ 'mediaType', 'size' ]
          },
          values: {
              'video|300x250': 2.22,
              'video|*': 1
          }
      }
  }
})
This will send the following bid floor in the request to Daiymotion Prebid Service :
{
  "pbv": "9.23.0-pre",
  "ortb": {
    "imp": [
      {
        ...
        "bidfloor": 1,
        "bidfloorcur": "USD"
      }
    ],
    ...
  }
}
You can also set dynamic floors.
Test Parameters
By setting the following bid parameters, you’ll get a constant response to any request, to validate your adapter integration:
const adUnits = [
  {
    bids: [{
      bidder: 'dailymotion',
      params: {
        apiKey: 'dailymotion-testing',
      },
    }],
    code: 'test-ad-unit',
    mediaTypes: {
      video: {
        context: 'instream',
      },
    },
  }
];
Please note that failing to set these will result in the adapter not bidding at all.
Sample video AdUnit
To allow better targeting, you should provide as much context about the video as possible. There are three ways of doing this depending on if you’re using Dailymotion player or a third party one.
If you are using the Dailymotion player, you must provide the video xid in the video.id field of your ad unit, example:
const adUnits = [
  {
    bids: [{
      bidder: 'dailymotion',
      params: {
        apiKey: 'dailymotion-testing',
        video: {
          id: 'x123456'     // Dailymotion infrastructure unique video ID
          autoplay: false,
          playerName: 'dailymotion',
          playerVolume: 8
        },
      }
    }],
    code: 'test-ad-unit',
    mediaTypes: {
      video: {
        api: [2, 7],
        context: 'instream',
        startdelay: 0,
        w: 1280,
        h: 720,
      },
    }
  }
];
This will automatically fetch the most up-to-date information about the video.
Please note that if you provide any video metadata not listed above, they will be replaced by the ones fetched from the video.id.
If you are using a third party video player, you should fill the following members:
const adUnits = [
  {
    bids: [{
      bidder: 'dailymotion',
      params: {
        apiKey: 'dailymotion-testing',
        video: {
          description: 'this is a video description',
          duration: 556,
          iabcat1: ['IAB-2'],
          iabcat2: ['6', '17'],
          id: '54321',
          lang: 'FR',
          livestream: 0,
          private: false,
          tags: 'tag_1,tag_2,tag_3',
          title: 'test video',
          url: 'https://test.com/testvideo'
          topics: 'topic_1, topic_2',
          isCreatedForKids: false,
          videoViewsInSession: 1,
          autoplay: false,
          playerName: 'video.js',
          playerVolume: 8
        }
      }
    }],
    code: 'test-ad-unit',
    mediaTypes: {
      video: {
        api: [2, 7],
        context: 'instream',
        mimes: ['video/mp4'],
        minduration: 5,
        maxduration: 30,
        playbackmethod: [3],
        plcmt: 1,
        protocols: [7, 8, 11, 12, 13, 14],
        startdelay: 0,
        w: 1280,
        h: 720,
      },
    }
  }
];
Each of the following video metadata fields can be added in bids.params.video.
- description- Video description
- duration- Video duration in seconds
- iabcat1- List of IAB category IDs from the 1.0 taxonomy
- iabcat2- List of IAB category IDs from the 2.0 taxonomy and above
- id- Video unique ID in host video infrastructure
- lang- ISO 639-1 code for main language used in the video
- livestream- 0 = not live, 1 = content is live
- private- True if video is not publicly available
- tags- Tags for the video, comma separated
- title- Video title
- url- URL of the content
- topics- Main topics for the video, comma separated
- isCreatedForKids- The content is created for children as primary audience
The following contextual information can also be added in bids.params.video.
- autoplay- Playback was launched without user interaction
- playerName- Name of the player used to display the video
- playerVolume- Player volume between 0 (muted, 0%) and 10 (100%)
- videoViewsInSession- Number of videos viewed within the current user session
If you already specify First-Party data through the ortb2 object when calling pbjs.requestBids(requestObj), we will collect the following values and fallback to bids.params.video values when applicable. See the mapping below.
| From ortb2 | Metadata fields | 
|---|---|
| ortb2.site.content.catORortb2.site.content.datawhereext.segtaxis4 | iabcat1 | 
| ortb2.site.content.datawhereext.segtaxis5,6or7 | iabcat2 | 
| ortb2.site.content.id | id | 
| ortb2.site.content.language | lang | 
| ortb2.site.content.livestream | livestream | 
| ortb2.site.content.keywords | tags | 
| ortb2.site.content.title | title | 
| ortb2.site.content.url | url | 
| ortb2.* | N/A | 
"Send All Bids" Ad Server Keys
These are the bidder-specific keys that would be targeted within GAM in a Send-All-Bids scenario. GAM truncates keys to 20 characters.| hb_pb_dailymotion | hb_bidder_dailymotio | hb_adid_dailymotion | 
| hb_size_dailymotion | hb_source_dailymotio | hb_format_dailymotio | 
| hb_cache_host_dailym | hb_cache_id_dailymot | hb_uuid_dailymotion | 
| hb_cache_path_dailym | hb_deal_dailymotion |