Class: Google::Apis::ContentV2_1::RecommendationCallToAction
- Inherits:
-
Object
- Object
- Google::Apis::ContentV2_1::RecommendationCallToAction
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/content_v2_1/classes.rb,
lib/google/apis/content_v2_1/representations.rb,
lib/google/apis/content_v2_1/representations.rb
Overview
Call to action (CTA) that explains how a merchant can implement this recommendation
Instance Attribute Summary collapse
-
#intent ⇒ String
Output only.
-
#localized_text ⇒ String
Output only.
-
#uri ⇒ String
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ RecommendationCallToAction
constructor
A new instance of RecommendationCallToAction.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ RecommendationCallToAction
Returns a new instance of RecommendationCallToAction.
11596 11597 11598 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 11596 def initialize(**args) update!(**args) end |
Instance Attribute Details
#intent ⇒ String
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)
Corresponds to the JSON property
intent
11581 11582 11583 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 11581 def intent @intent end |
#localized_text ⇒ String
Output only. Localized text of the CTA. Optional.
Corresponds to the JSON property localizedText
11586 11587 11588 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 11586 def localized_text @localized_text end |
#uri ⇒ String
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.
Corresponds to the JSON property uri
11594 11595 11596 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 11594 def uri @uri end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
11601 11602 11603 11604 11605 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 11601 def update!(**args) @intent = args[:intent] if args.key?(:intent) @localized_text = args[:localized_text] if args.key?(:localized_text) @uri = args[:uri] if args.key?(:uri) end |