Class: Google::Apis::ContentV2_1::RecommendationCreative

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ RecommendationCreative

Returns a new instance of RecommendationCreative.



11623
11624
11625
# File 'lib/google/apis/content_v2_1/classes.rb', line 11623

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#typeString

Type of the creative. Corresponds to the JSON property type

Returns:

  • (String)


11616
11617
11618
# File 'lib/google/apis/content_v2_1/classes.rb', line 11616

def type
  @type
end

#uriString

URL of the creative. Corresponds to the JSON property uri

Returns:

  • (String)


11621
11622
11623
# File 'lib/google/apis/content_v2_1/classes.rb', line 11621

def uri
  @uri
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



11628
11629
11630
11631
# File 'lib/google/apis/content_v2_1/classes.rb', line 11628

def update!(**args)
  @type = args[:type] if args.key?(:type)
  @uri = args[:uri] if args.key?(:uri)
end