View Source GoogleApi.DisplayVideo.V3.Model.MastheadAd (google_api_display_video v0.38.3)

Details for a Masthead Ad.

Attributes

  • autoplayVideoDuration (type: String.t, default: nil) - The duration of time the video will autoplay.
  • autoplayVideoStartMillisecond (type: String.t, default: nil) - The amount of time in milliseconds after which the video will start to play.
  • callToActionButtonLabel (type: String.t, default: nil) - The text on the call-to-action button.
  • callToActionFinalUrl (type: String.t, default: nil) - The destination URL for the call-to-action button.
  • callToActionTrackingUrl (type: String.t, default: nil) - The tracking URL for the call-to-action button.
  • companionYoutubeVideos (type: list(GoogleApi.DisplayVideo.V3.Model.YoutubeVideoDetails.t), default: nil) - The videos that appear next to the Masthead Ad on desktop. Can be no more than two.
  • description (type: String.t, default: nil) - The description of the ad.
  • headline (type: String.t, default: nil) - The headline of the ad.
  • showChannelArt (type: boolean(), default: nil) - Whether to show a background or banner that appears at the top of a YouTube page.
  • video (type: GoogleApi.DisplayVideo.V3.Model.YoutubeVideoDetails.t, default: nil) - The YouTube video used by the ad.
  • videoAspectRatio (type: String.t, default: nil) - The aspect ratio of the autoplaying YouTube video on the Masthead.

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

t()

@type t() :: %GoogleApi.DisplayVideo.V3.Model.MastheadAd{
  autoplayVideoDuration: String.t() | nil,
  autoplayVideoStartMillisecond: String.t() | nil,
  callToActionButtonLabel: String.t() | nil,
  callToActionFinalUrl: String.t() | nil,
  callToActionTrackingUrl: String.t() | nil,
  companionYoutubeVideos:
    [GoogleApi.DisplayVideo.V3.Model.YoutubeVideoDetails.t()] | nil,
  description: String.t() | nil,
  headline: String.t() | nil,
  showChannelArt: boolean() | nil,
  video: GoogleApi.DisplayVideo.V3.Model.YoutubeVideoDetails.t() | nil,
  videoAspectRatio: String.t() | nil
}

Functions

decode(value, options)

@spec decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.