google_api_you_tube v0.4.0 GoogleApi.YouTube.V3.Model.PromotedItemId View Source

Describes a single promoted item id. It is a union of various possible types.

Attributes

  • recentlyUploadedBy (String.t): If type is recentUpload, this field identifies the channel from which to take the recent upload. If missing, the channel is assumed to be the same channel for which the invideoPromotion is set. Defaults to: null.
  • type (String.t): Describes the type of the promoted item. Defaults to: null.

    • Enum - one of [recentUpload, video, website]
  • videoId (String.t): If the promoted item represents a video, this field represents the unique YouTube ID identifying it. This field will be present only if type has the value video. Defaults to: null.
  • websiteUrl (String.t): If the promoted item represents a website, this field represents the url pointing to the website. This field will be present only if type has the value website. Defaults to: null.

Link to this section Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Link to this section Types

Link to this type

t() View Source
t() :: %GoogleApi.YouTube.V3.Model.PromotedItemId{
  recentlyUploadedBy: any(),
  type: any(),
  videoId: any(),
  websiteUrl: any()
}

Link to this section Functions

Link to this function

decode(value, options) View Source
decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.