View Source GoogleApi.Content.V21.Model.RecommendationCallToAction (google_api_content v0.67.1)

Call to action (CTA) that explains how a merchant can implement this recommendation

Attributes

  • intent (type: String.t, default: nil) - Output only. Intent of the action. This value describes the intent (for example, OPEN_CREATE_EMAIL_CAMPAIGN_FLOW) and can vary from recommendation to recommendation. This value can change over time for the same recommendation. Currently available intent values: - OPEN_CREATE_EMAIL_CAMPAIGN_FLOW: Opens a user journey where they can create a marketing email campaign. (No default URL) - OPEN_CREATE_COLLECTION_TAB: Opens a user journey where they can create a collection for their Merchant account. (No default URL)
  • localizedText (type: String.t, default: nil) - Output only. Localized text of the CTA. Optional.
  • uri (type: String.t, default: nil) - Optional. URL of the CTA. This field will only be set for some recommendations where there is a suggested landing URL. Otherwise it will be set to an empty string. We recommend developers to use their own custom landing page according to the description of the intent field above when this uri field is empty.

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

@type t() :: %GoogleApi.Content.V21.Model.RecommendationCallToAction{
  intent: String.t() | nil,
  localizedText: String.t() | nil,
  uri: String.t() | nil
}

Functions

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

Unwrap a decoded JSON object into its complex fields.