Class: Google::Apis::ContentV2_1::RecommendationCreative
- Inherits:
-
Object
- Object
- Google::Apis::ContentV2_1::RecommendationCreative
- 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
Creative is a multimedia attachment to recommendation that can be used on the frontend.
Instance Attribute Summary collapse
-
#type ⇒ String
Type of the creative.
-
#uri ⇒ String
URL of the creative.
Instance Method Summary collapse
-
#initialize(**args) ⇒ RecommendationCreative
constructor
A new instance of RecommendationCreative.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ RecommendationCreative
Returns a new instance of RecommendationCreative.
11585 11586 11587 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 11585 def initialize(**args) update!(**args) end |
Instance Attribute Details
#type ⇒ String
Type of the creative.
Corresponds to the JSON property type
11578 11579 11580 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 11578 def type @type end |
#uri ⇒ String
URL of the creative.
Corresponds to the JSON property uri
11583 11584 11585 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 11583 def uri @uri end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
11590 11591 11592 11593 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 11590 def update!(**args) @type = args[:type] if args.key?(:type) @uri = args[:uri] if args.key?(:uri) end |