google_youtube_api_v3/youtube/channel

Types

The current billing profile status.

pub type BillingStatus {
  BillingStatusBillingStatusUnspecified
  BillingStatusBillingStatusPending
  BillingStatusBillingStatusActive
  BillingStatusBillingStatusInactive
}

Constructors

  • BillingStatusBillingStatusUnspecified
  • BillingStatusBillingStatusPending
  • BillingStatusBillingStatusActive
  • BillingStatusBillingStatusInactive

A channel resource contains information about a YouTube channel.

pub type Channel {
  Channel(
    audit_details: option.Option(ChannelAuditDetails),
    branding_settings: option.Option(ChannelBrandingSettings),
    content_details: option.Option(ChannelContentDetails),
    content_owner_details: option.Option(
      ChannelContentOwnerDetails,
    ),
    conversion_pings: option.Option(ChannelConversionPings),
    etag: option.Option(String),
    id: option.Option(String),
    kind: option.Option(String),
    localizations: option.Option(
      dict.Dict(String, ChannelLocalization),
    ),
    snippet: option.Option(ChannelSnippet),
    statistics: option.Option(ChannelStatistics),
    status: option.Option(ChannelStatus),
    topic_details: option.Option(ChannelTopicDetails),
  )
}

Constructors

The auditDetails object encapsulates channel data that is relevant for YouTube Partners during the audit process.

pub type ChannelAuditDetails {
  ChannelAuditDetails(
    community_guidelines_good_standing: option.Option(Bool),
    content_id_claims_good_standing: option.Option(Bool),
    copyright_strikes_good_standing: option.Option(Bool),
  )
}

Constructors

A channel banner returned as the response to a channel_banner.insert call.

pub type ChannelBannerResource {
  ChannelBannerResource(
    etag: option.Option(String),
    kind: option.Option(String),
    url: option.Option(String),
  )
}

Constructors

Branding properties of a YouTube channel.

pub type ChannelBrandingSettings {
  ChannelBrandingSettings(
    channel: option.Option(ChannelSettings),
    hints: option.Option(List(PropertyValue)),
    image: option.Option(ImageSettings),
    watch: option.Option(WatchSettings),
  )
}

Constructors

Details about the content of a channel.

pub type ChannelContentDetails {
  ChannelContentDetails(
    related_playlists: option.Option(dict.Dict(String, String)),
  )
}

Constructors

The contentOwnerDetails object encapsulates channel data that is relevant for YouTube Partners linked with the channel.

pub type ChannelContentOwnerDetails {
  ChannelContentOwnerDetails(
    content_owner: option.Option(String),
    time_linked: option.Option(String),
  )
}

Constructors

Pings that the app shall fire (authenticated by biscotti cookie). Each ping has a context, in which the app must fire the ping, and a url identifying the ping.

pub type ChannelConversionPing {
  ChannelConversionPing(
    context: option.Option(Context),
    conversion_url: option.Option(String),
  )
}

Constructors

The conversionPings object encapsulates information about conversion pings that need to be respected by the channel.

pub type ChannelConversionPings {
  ChannelConversionPings(
    pings: option.Option(List(ChannelConversionPing)),
  )
}

Constructors

pub type ChannelListResponse {
  ChannelListResponse(
    etag: option.Option(String),
    event_id: option.Option(String),
    items: option.Option(List(Channel)),
    kind: option.Option(String),
    next_page_token: option.Option(String),
    page_info: option.Option(page_info.PageInfo),
    prev_page_token: option.Option(String),
    token_pagination: option.Option(
      token_pagination.TokenPagination,
    ),
    visitor_id: option.Option(String),
  )
}

Constructors

Channel localization setting

pub type ChannelLocalization {
  ChannelLocalization(
    description: option.Option(String),
    title: option.Option(String),
  )
}

Constructors

pub type ChannelProfileDetails {
  ChannelProfileDetails(
    channel_id: option.Option(String),
    channel_url: option.Option(String),
    display_name: option.Option(String),
    profile_image_url: option.Option(String),
  )
}

Constructors

pub type ChannelSection {
  ChannelSection(
    content_details: option.Option(ChannelSectionContentDetails),
    etag: option.Option(String),
    id: option.Option(String),
    kind: option.Option(String),
    localizations: option.Option(
      dict.Dict(String, ChannelSectionLocalization),
    ),
    snippet: option.Option(ChannelSectionSnippet),
    targeting: option.Option(ChannelSectionTargeting),
  )
}

Constructors

Details about a channelsection, including playlists and channels.

pub type ChannelSectionContentDetails {
  ChannelSectionContentDetails(
    channels: option.Option(List(String)),
    playlists: option.Option(List(String)),
  )
}

Constructors

pub type ChannelSectionListResponse {
  ChannelSectionListResponse(
    etag: option.Option(String),
    event_id: option.Option(String),
    items: option.Option(List(ChannelSection)),
    kind: option.Option(String),
    visitor_id: option.Option(String),
  )
}

Constructors

ChannelSection localization setting

pub type ChannelSectionLocalization {
  ChannelSectionLocalization(title: option.Option(String))
}

Constructors

Basic details about a channel section, including title, style and position.

pub type ChannelSectionSnippet {
  ChannelSectionSnippet(
    channel_id: option.Option(String),
    default_language: option.Option(String),
    localized: option.Option(ChannelSectionLocalization),
    position: option.Option(Int),
    style: option.Option(Style),
    title: option.Option(String),
    type_: option.Option(Type),
  )
}

Constructors

ChannelSection targeting setting.

pub type ChannelSectionTargeting {
  ChannelSectionTargeting(
    countries: option.Option(List(String)),
    languages: option.Option(List(String)),
    regions: option.Option(List(String)),
  )
}

Constructors

Branding properties for the channel view.

pub type ChannelSettings {
  ChannelSettings(
    country: option.Option(String),
    default_language: option.Option(String),
    default_tab: option.Option(String),
    description: option.Option(String),
    featured_channels_title: option.Option(String),
    featured_channels_urls: option.Option(List(String)),
    keywords: option.Option(String),
    moderate_comments: option.Option(Bool),
    profile_color: option.Option(String),
    show_browse_view: option.Option(Bool),
    show_related_channels: option.Option(Bool),
    title: option.Option(String),
    tracking_analytics_account_id: option.Option(String),
    unsubscribed_trailer: option.Option(String),
  )
}

Constructors

Basic details about a channel, including title, description and thumbnails.

pub type ChannelSnippet {
  ChannelSnippet(
    country: option.Option(String),
    custom_url: option.Option(String),
    default_language: option.Option(String),
    description: option.Option(String),
    localized: option.Option(ChannelLocalization),
    published_at: option.Option(String),
    thumbnails: option.Option(thumbnail.ThumbnailDetails),
    title: option.Option(String),
  )
}

Constructors

Statistics about a channel: number of subscribers, number of videos in the channel, etc.

pub type ChannelStatistics {
  ChannelStatistics(
    comment_count: option.Option(String),
    hidden_subscriber_count: option.Option(Bool),
    subscriber_count: option.Option(String),
    video_count: option.Option(String),
    view_count: option.Option(String),
  )
}

Constructors

JSON template for the status part of a channel.

pub type ChannelStatus {
  ChannelStatus(
    is_channel_monetization_enabled: option.Option(Bool),
    is_linked: option.Option(Bool),
    long_uploads_status: option.Option(LongUploadsStatus),
    made_for_kids: option.Option(Bool),
    privacy_status: option.Option(PrivacyStatus),
    self_declared_made_for_kids: option.Option(Bool),
  )
}

Constructors

Information specific to a creator in an affiliate program linked to a YouTube channel.

pub type ChannelToAffiliateProgramLinkDetails {
  ChannelToAffiliateProgramLinkDetails(
    merchant_id: option.Option(String),
    program_status: option.Option(ProgramStatus),
    status_update_reason: option.Option(String),
    status_update_time: option.Option(String),
  )
}

Constructors

Information specific to a store on a merchandising platform linked to a YouTube channel.

pub type ChannelToStoreLinkDetails {
  ChannelToStoreLinkDetails(
    billing_details: option.Option(
      ChannelToStoreLinkDetailsBillingDetails,
    ),
    merchant_affiliate_program_details: option.Option(
      ChannelToStoreLinkDetailsMerchantAffiliateProgramDetails,
    ),
    merchant_id: option.Option(String),
    store_name: option.Option(String),
    store_url: option.Option(String),
  )
}

Constructors

Information specific to billing.

pub type ChannelToStoreLinkDetailsBillingDetails {
  ChannelToStoreLinkDetailsBillingDetails(
    billing_status: option.Option(BillingStatus),
  )
}

Constructors

Information specific to merchant affiliate program.

pub type ChannelToStoreLinkDetailsMerchantAffiliateProgramDetails {
  ChannelToStoreLinkDetailsMerchantAffiliateProgramDetails(
    status: option.Option(Status),
  )
}

Constructors

Freebase topic information related to the channel.

pub type ChannelTopicDetails {
  ChannelTopicDetails(
    topic_categories: option.Option(List(String)),
    topic_ids: option.Option(List(String)),
  )
}

Constructors

Defines the context of the ping.

pub type Context {
  ContextSubscribe
  ContextUnsubscribe
  ContextCview
}

Constructors

  • ContextSubscribe
  • ContextUnsubscribe
  • ContextCview

Branding properties for images associated with the channel.

pub type ImageSettings {
  ImageSettings(
    background_image_url: option.Option(
      localized.LocalizedProperty,
    ),
    banner_external_url: option.Option(String),
    banner_image_url: option.Option(String),
    banner_mobile_extra_hd_image_url: option.Option(String),
    banner_mobile_hd_image_url: option.Option(String),
    banner_mobile_image_url: option.Option(String),
    banner_mobile_low_image_url: option.Option(String),
    banner_mobile_medium_hd_image_url: option.Option(String),
    banner_tablet_extra_hd_image_url: option.Option(String),
    banner_tablet_hd_image_url: option.Option(String),
    banner_tablet_image_url: option.Option(String),
    banner_tablet_low_image_url: option.Option(String),
    banner_tv_high_image_url: option.Option(String),
    banner_tv_image_url: option.Option(String),
    banner_tv_low_image_url: option.Option(String),
    banner_tv_medium_image_url: option.Option(String),
    large_branded_banner_image_imap_script: option.Option(
      localized.LocalizedProperty,
    ),
    large_branded_banner_image_url: option.Option(
      localized.LocalizedProperty,
    ),
    small_branded_banner_image_imap_script: option.Option(
      localized.LocalizedProperty,
    ),
    small_branded_banner_image_url: option.Option(
      localized.LocalizedProperty,
    ),
    tracking_image_url: option.Option(String),
    watch_icon_image_url: option.Option(String),
  )
}

Constructors

The long uploads status of this channel. See https://support.google.com/youtube/answer/71673 for more information.

pub type LongUploadsStatus {
  LongUploadsStatusLongUploadsUnspecified
  LongUploadsStatusAllowed
  LongUploadsStatusEligible
  LongUploadsStatusDisallowed
}

Constructors

  • LongUploadsStatusLongUploadsUnspecified
  • LongUploadsStatusAllowed
  • LongUploadsStatusEligible
  • LongUploadsStatusDisallowed

Privacy status of the channel.

pub type PrivacyStatus {
  PrivacyStatusPublic
  PrivacyStatusUnlisted
  PrivacyStatusPrivate
}

Constructors

  • PrivacyStatusPublic
  • PrivacyStatusUnlisted
  • PrivacyStatusPrivate

Required. Affiliate program status.

pub type ProgramStatus {
  ProgramStatusAffiliateProgramStatusUnspecified
  ProgramStatusActive
  ProgramStatusInactive
}

Constructors

  • ProgramStatusAffiliateProgramStatusUnspecified
  • ProgramStatusActive
  • ProgramStatusInactive

A pair Property / Value.

pub type PropertyValue {
  PropertyValue(
    property: option.Option(String),
    value: option.Option(String),
  )
}

Constructors

The current merchant affiliate program status.

pub type Status {
  StatusMerchantAffiliateProgramStatusUnspecified
  StatusMerchantAffiliateProgramStatusEligible
  StatusMerchantAffiliateProgramStatusActive
  StatusMerchantAffiliateProgramStatusPaused
}

Constructors

  • StatusMerchantAffiliateProgramStatusUnspecified
  • StatusMerchantAffiliateProgramStatusEligible
  • StatusMerchantAffiliateProgramStatusActive
  • StatusMerchantAffiliateProgramStatusPaused

The style of the channel section.

pub type Style {
  StyleChannelsectionStyleUnspecified
  StyleHorizontalRow
  StyleVerticalList
}

Constructors

  • StyleChannelsectionStyleUnspecified
  • StyleHorizontalRow
  • StyleVerticalList

The type of the channel section.

pub type Type {
  TypeChannelsectionTypeUndefined
  TypeSinglePlaylist
  TypeMultiplePlaylists
  TypePopularUploads
  TypeRecentUploads
  TypeLikes
  TypeAllPlaylists
  TypeLikedPlaylists
  TypeRecentPosts
  TypeRecentActivity
  TypeLiveEvents
  TypeUpcomingEvents
  TypeCompletedEvents
  TypeMultipleChannels
  TypePostedVideos
  TypePostedPlaylists
  TypeSubscriptions
}

Constructors

  • TypeChannelsectionTypeUndefined
  • TypeSinglePlaylist
  • TypeMultiplePlaylists
  • TypePopularUploads
  • TypeRecentUploads
  • TypeLikes
  • TypeAllPlaylists
  • TypeLikedPlaylists
  • TypeRecentPosts
  • TypeRecentActivity
  • TypeLiveEvents
  • TypeUpcomingEvents
  • TypeCompletedEvents
  • TypeMultipleChannels
  • TypePostedVideos
  • TypePostedPlaylists
  • TypeSubscriptions

Branding properties for the watch. All deprecated.

pub type WatchSettings {
  WatchSettings(
    background_color: option.Option(String),
    featured_playlist_id: option.Option(String),
    text_color: option.Option(String),
  )
}

Constructors

Values

pub fn billing_status_to_string(value: BillingStatus) -> String
pub fn channel_audit_details_decoder() -> decode.Decoder(
  ChannelAuditDetails,
)
pub fn channel_audit_details_to_json(
  value: ChannelAuditDetails,
) -> json.Json
pub fn channel_banner_resource_decoder() -> decode.Decoder(
  ChannelBannerResource,
)
pub fn channel_banner_resource_to_json(
  value: ChannelBannerResource,
) -> json.Json
pub fn channel_branding_settings_to_json(
  value: ChannelBrandingSettings,
) -> json.Json
pub fn channel_content_details_decoder() -> decode.Decoder(
  ChannelContentDetails,
)
pub fn channel_content_details_to_json(
  value: ChannelContentDetails,
) -> json.Json
pub fn channel_content_owner_details_to_json(
  value: ChannelContentOwnerDetails,
) -> json.Json
pub fn channel_conversion_ping_decoder() -> decode.Decoder(
  ChannelConversionPing,
)
pub fn channel_conversion_ping_to_json(
  value: ChannelConversionPing,
) -> json.Json
pub fn channel_conversion_pings_decoder() -> decode.Decoder(
  ChannelConversionPings,
)
pub fn channel_conversion_pings_to_json(
  value: ChannelConversionPings,
) -> json.Json
pub fn channel_decoder() -> decode.Decoder(Channel)
pub fn channel_list_response_decoder() -> decode.Decoder(
  ChannelListResponse,
)
pub fn channel_list_response_to_json(
  value: ChannelListResponse,
) -> json.Json
pub fn channel_localization_decoder() -> decode.Decoder(
  ChannelLocalization,
)
pub fn channel_localization_to_json(
  value: ChannelLocalization,
) -> json.Json
pub fn channel_profile_details_decoder() -> decode.Decoder(
  ChannelProfileDetails,
)
pub fn channel_profile_details_to_json(
  value: ChannelProfileDetails,
) -> json.Json
pub fn channel_section_content_details_to_json(
  value: ChannelSectionContentDetails,
) -> json.Json
pub fn channel_section_list_response_to_json(
  value: ChannelSectionListResponse,
) -> json.Json
pub fn channel_section_localization_to_json(
  value: ChannelSectionLocalization,
) -> json.Json
pub fn channel_section_snippet_decoder() -> decode.Decoder(
  ChannelSectionSnippet,
)
pub fn channel_section_snippet_to_json(
  value: ChannelSectionSnippet,
) -> json.Json
pub fn channel_section_targeting_to_json(
  value: ChannelSectionTargeting,
) -> json.Json
pub fn channel_section_to_json(
  value: ChannelSection,
) -> json.Json
pub fn channel_settings_decoder() -> decode.Decoder(
  ChannelSettings,
)
pub fn channel_settings_to_json(
  value: ChannelSettings,
) -> json.Json
pub fn channel_snippet_to_json(
  value: ChannelSnippet,
) -> json.Json
pub fn channel_statistics_decoder() -> decode.Decoder(
  ChannelStatistics,
)
pub fn channel_statistics_to_json(
  value: ChannelStatistics,
) -> json.Json
pub fn channel_status_to_json(value: ChannelStatus) -> json.Json
pub fn channel_to_affiliate_program_link_details_to_json(
  value: ChannelToAffiliateProgramLinkDetails,
) -> json.Json
pub fn channel_to_json(value: Channel) -> json.Json
pub fn channel_to_store_link_details_billing_details_to_json(
  value: ChannelToStoreLinkDetailsBillingDetails,
) -> json.Json
pub fn channel_to_store_link_details_to_json(
  value: ChannelToStoreLinkDetails,
) -> json.Json
pub fn channel_topic_details_decoder() -> decode.Decoder(
  ChannelTopicDetails,
)
pub fn channel_topic_details_to_json(
  value: ChannelTopicDetails,
) -> json.Json
pub fn context_decoder() -> decode.Decoder(Context)
pub fn context_to_string(value: Context) -> String
pub fn image_settings_to_json(value: ImageSettings) -> json.Json
pub fn long_uploads_status_decoder() -> decode.Decoder(
  LongUploadsStatus,
)
pub fn long_uploads_status_to_string(
  value: LongUploadsStatus,
) -> String
pub fn privacy_status_to_string(value: PrivacyStatus) -> String
pub fn program_status_to_string(value: ProgramStatus) -> String
pub fn property_value_to_json(value: PropertyValue) -> json.Json
pub fn status_decoder() -> decode.Decoder(Status)
pub fn status_to_string(value: Status) -> String
pub fn style_decoder() -> decode.Decoder(Style)
pub fn style_to_string(value: Style) -> String
pub fn type_decoder() -> decode.Decoder(Type)
pub fn type_to_string(value: Type) -> String
pub fn watch_settings_to_json(value: WatchSettings) -> json.Json
✨ Search Document