SocialCommonSegment

AI Overview😉

  • The potential purpose of this module is to help Google understand and process social media content, such as hashtags, links, and user mentions, within search results. It appears to be a way to standardize and structure social media data, making it easier for Google's algorithms to analyze and display this content in search results.
  • This module could impact search results by allowing Google to better understand the context and relevance of social media content. This could lead to more accurate and informative search results, especially when searching for topics related to social media. It may also enable Google to display social media content in a more visually appealing and user-friendly way, such as rendering hashtags in bold or italics.
  • To be more favorable for this function, a website may want to ensure that their social media content is properly structured and formatted, using standard metadata and formatting conventions. This could include using consistent and descriptive text for hashtags, links, and user mentions, as well as providing clear and accurate metadata for each type of segment. Additionally, websites may want to consider optimizing their social media content for search engines, using relevant keywords and phrases to increase their visibility in search results.

Interesting Module? Vote 👇

Voting helps other researchers find interesting modules.

Current Votes: 0

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

Attributes

  • formatting (type: GoogleApi.ContentWarehouse.V1.Model.SocialCommonFormatting.t, default: nil) - Formatting to be applied when rendering the Segment. For all segment types, this is the standard way of representing that the Segment should be rendered in bold, italics, etc.
  • hashtagData (type: GoogleApi.ContentWarehouse.V1.Model.SocialCommonHashtagData.t, default: nil) - For HASHTAG type:
  • linkData (type: GoogleApi.ContentWarehouse.V1.Model.SocialCommonLinkData.t, default: nil) - Type-specific metadata. At most one of these should be populated, and the one that is populated should correspond to the type of the Segment. For LINK type:
  • searchLinkData (type: GoogleApi.ContentWarehouse.V1.Model.SocialCommonSearchLinkData.t, default: nil) - For SEARCH_LINK type:
  • text (type: String.t, default: nil) - Text content of the Segment. As a general rule, this field should contain the actual text that should be rendered in the UI. Thus, for a hashtag, it should be "#Foo", and for a link, it should be the display text. Clients that do not understand a particular segment type may use this text, along with the Formatting info below, as a fallback for display. The field is not required -- if all relevant information is carried in other metadata fields and there is no need for a fallback, or it is not practical for a fallback to be provided for any other reason, the field may be left blank. A standard example would be a user reference being transmitted between server layers, where a gaia-ID representation may be sufficient and there is no need for a textual fallback. In such a case, it would be valid and useful - though not required - for servers to compute and populate a fallback on the serving path.
  • type (type: String.t, default: nil) - Type of Segment.
  • userMentionData (type: GoogleApi.ContentWarehouse.V1.Model.SocialCommonUserMentionData.t, default: nil) - For USER_MENTION type:

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.SocialCommonSegment{
  formatting:
    GoogleApi.ContentWarehouse.V1.Model.SocialCommonFormatting.t() | nil,
  hashtagData:
    GoogleApi.ContentWarehouse.V1.Model.SocialCommonHashtagData.t() | nil,
  linkData: GoogleApi.ContentWarehouse.V1.Model.SocialCommonLinkData.t() | nil,
  searchLinkData:
    GoogleApi.ContentWarehouse.V1.Model.SocialCommonSearchLinkData.t() | nil,
  text: String.t() | nil,
  type: String.t() | nil,
  userMentionData:
    GoogleApi.ContentWarehouse.V1.Model.SocialCommonUserMentionData.t() | nil
}

Functions

Link to this function

decode(value, options)

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

Unwrap a decoded JSON object into its complex fields.