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

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

Attributes

  • recentlyUploadedBy (type: String.t, default: nil) - 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.
  • type (type: String.t, default: nil) - Describes the type of the promoted item.
  • videoId (type: String.t, default: nil) - 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.
  • websiteUrl (type: String.t, default: nil) - 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.

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: String.t(),
  type: String.t(),
  videoId: String.t(),
  websiteUrl: String.t()
}

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.