Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

MastheadAd

import type { MastheadAd } from "https://googleapis.deno.dev/v1/displayvideo:v3.ts";

Details for a Masthead Ad.

interface MastheadAd {
autoplayVideoDuration?: number;
autoplayVideoStartMillisecond?: bigint;
callToActionButtonLabel?: string;
callToActionFinalUrl?: string;
callToActionTrackingUrl?: string;
companionYoutubeVideos?: YoutubeVideoDetails[];
description?: string;
headline?: string;
showChannelArt?: boolean;
videoAspectRatio?: "VIDEO_ASPECT_RATIO_UNSPECIFIED" | "VIDEO_ASPECT_RATIO_WIDESCREEN" | "VIDEO_ASPECT_RATIO_FIXED_16_9";
}

§Properties

§
autoplayVideoDuration?: number
[src]

The duration of time the video will autoplay.

§
autoplayVideoStartMillisecond?: bigint
[src]

The amount of time in milliseconds after which the video will start to play.

§
callToActionButtonLabel?: string
[src]

The text on the call-to-action button.

§
callToActionFinalUrl?: string
[src]

The destination URL for the call-to-action button.

§
callToActionTrackingUrl?: string
[src]

The tracking URL for the call-to-action button.

§
companionYoutubeVideos?: YoutubeVideoDetails[]
[src]

The videos that appear next to the Masthead Ad on desktop. Can be no more than two.

§
description?: string
[src]

The description of the ad.

§
headline?: string
[src]

The headline of the ad.

§
showChannelArt?: boolean
[src]

Whether to show a background or banner that appears at the top of a YouTube page.

§

The YouTube video used by the ad.

§
videoAspectRatio?: "VIDEO_ASPECT_RATIO_UNSPECIFIED" | "VIDEO_ASPECT_RATIO_WIDESCREEN" | "VIDEO_ASPECT_RATIO_FIXED_16_9"
[src]

The aspect ratio of the autoplaying YouTube video on the Masthead.