View Source GoogleApi.CustomSearch.V1.Model.Promotion (google_api_custom_search v0.22.0)

Promotion result.

Attributes

  • bodyLines (type: list(GoogleApi.CustomSearch.V1.Model.PromotionBodyLines.t), default: nil) - An array of block objects for this promotion.
  • displayLink (type: String.t, default: nil) - An abridged version of this search's result URL, e.g. www.example.com.
  • htmlTitle (type: String.t, default: nil) - The title of the promotion, in HTML.
  • image (type: GoogleApi.CustomSearch.V1.Model.PromotionImage.t, default: nil) - Image belonging to a promotion.
  • link (type: String.t, default: nil) - The URL of the promotion.
  • title (type: String.t, default: nil) - The title of the promotion.

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

@type t() :: %GoogleApi.CustomSearch.V1.Model.Promotion{
  bodyLines: [GoogleApi.CustomSearch.V1.Model.PromotionBodyLines.t()] | nil,
  displayLink: String.t() | nil,
  htmlTitle: String.t() | nil,
  image: GoogleApi.CustomSearch.V1.Model.PromotionImage.t() | nil,
  link: String.t() | nil,
  title: String.t() | nil
}

Functions

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

Unwrap a decoded JSON object into its complex fields.