Skip to content
This repository has been archived by the owner on Feb 21, 2023. It is now read-only.

Adding Display Ads To Your Showcase

Christiaan Scheermeijer edited this page Aug 29, 2017 · 3 revisions

This page will help you get started with DoubleClick for Publishers (DFP) display ads on your Showcase. We will not cover how to setup DFP, although we do recommended to make your ads responsive (see https://support.google.com/dfp_premium/answer/3423562 for more information).

Positions / Slots

Showcase has four predefined ad positions which you can use to insert DFP ads into your video watch pages. It's currently not possible to change or move these positions, but we have intentions to add more in the future.

Above the video player

  • Slot identifier: "above-video"
  • Shown on: tablet
  • Ad sizes: leaderboard (728x90) and medium rectangle (300x250)

Below the video player

  • Slot identifier: "below-video"
  • Shown on: desktop, tablet, and mobile
  • Ad sizes: leaderboard (728x90) and medium rectangle (300x250)

Right Rail (beside the video player)

  • Slot identifier: "rail"
  • Shown on: desktop
  • Ad sizes: medium rectangle (300x250)

Below Right Rail

  • Slot identifier: "below-rail"
  • Shown on: mobile
  • Ad sizes: medium rectangle (300x250)

Configuration

Display ads configuration in Showcase is simple. You only have to match your DFP paths to the correct identifier. Make sure that your DFP paths are able to serve the ad sizes being used in the selected position.

The displayAds contains two fields:

  • client is used to configure the ad client. Currently, we only have support for the value dfp.
  • slots is the mapping between ad positions in Showcase and your DFP paths.

Here is an example:

{
  "version": "2",
  ...
  "options": {
    "displayAds": {
      "client": "dfp",
      "slots": {
        "above-video": "/123456789/ad-path1",
        "below-video": "/123456789/ad-path2",
        "rail":        "/123456789/ad-path3",
        "below-rail":  "/123456789/ad-path4"
      }
    }
  }
}

Debugging

If your display ads don't display properly, you can try to:

  • visit your DFP dashboard for debugging stats.
  • type googletag.openConsole() in your browser Developer Tools console to open the Google DFP debugging tools.