AssistantApiSettingsHospitalityCardSettingsYouTubeCardConfig

AI Overview😉

  • The potential purpose of this module is to configure and display a YouTube video card, also known as a "Stargazer tile", in search results. This module seems to be responsible for specifying the image, playlist, and text to be displayed on the card.
  • This module could impact search results by providing users with a more engaging and interactive experience, allowing them to play YouTube videos directly from the search results page. This could also affect the ranking of websites that have YouTube videos embedded or linked, as the search algorithm may prioritize those that provide a more seamless user experience.
  • A website may change things to be more favorable for this function by ensuring that their YouTube videos are publicly accessible, using playlists instead of single video IDs, and providing high-quality image thumbnails that are easily accessible by the search algorithm. Additionally, websites may want to optimize their video titles and descriptions to make them more appealing and informative when displayed on the YouTube video card.

Interesting Module? Vote 👇

Voting helps other researchers find interesting modules.

Current Votes: 0

GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsHospitalityCardSettingsYouTubeCardConfig (google_api_content_warehouse v0.4.0)

Configuration for YouTube video card (Stargazer tile).

Attributes

  • imageUrl (type: String.t, default: nil) - URL of image to go on card. The URL must be a public link accessible from ZeroState.
  • playlistId (type: String.t, default: nil) - ID of YouTube playlist to play on card tap. A playlist is used instead of a single video id to avoid autoplaying related videos. The playlist and the videos it contains must be public or unlisted to be accessible from ZeroState.
  • text (type: String.t, default: nil) - Text on card (i.e., video title).

Summary

Types

t()

Functions

decode(value, options)

Unwrap a decoded JSON object into its complex fields.

Types

Link to this type

t()

@type t() ::
  %GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsHospitalityCardSettingsYouTubeCardConfig{
    imageUrl: String.t() | nil,
    playlistId: String.t() | nil,
    text: String.t() | nil
  }

Functions

Link to this function

decode(value, options)

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

Unwrap a decoded JSON object into its complex fields.