Class: Google::Apis::Searchads360V23::GoogleAdsSearchads360V23CommonEventAttribute

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/searchads360_v23/classes.rb,
lib/google/apis/searchads360_v23/representations.rb,
lib/google/apis/searchads360_v23/representations.rb

Overview

Advertiser defined events and their attributes. All the values in the nested fields are required.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleAdsSearchads360V23CommonEventAttribute

Returns a new instance of GoogleAdsSearchads360V23CommonEventAttribute.



4876
4877
4878
# File 'lib/google/apis/searchads360_v23/classes.rb', line 4876

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

Instance Attribute Details

#eventString

Required. Advertiser defined event to be used for remarketing. The accepted values are "Viewed", "Cart", "Purchased" and "Recommended". Corresponds to the JSON property event

Returns:

  • (String)


4862
4863
4864
# File 'lib/google/apis/searchads360_v23/classes.rb', line 4862

def event
  @event
end

#event_date_timeString

Required. Timestamp at which the event happened. The format is YYYY-MM-DD HH: MM:SS[+/-HH:MM], where [+/-HH:MM] is an optional timezone offset from UTC. If the offset is absent, the API will use the account's timezone as default. Corresponds to the JSON property eventDateTime

Returns:

  • (String)


4869
4870
4871
# File 'lib/google/apis/searchads360_v23/classes.rb', line 4869

def event_date_time
  @event_date_time
end

#item_attributeArray<Google::Apis::Searchads360V23::GoogleAdsSearchads360V23CommonEventItemAttribute>

Required. Item attributes of the event. Corresponds to the JSON property itemAttribute



4874
4875
4876
# File 'lib/google/apis/searchads360_v23/classes.rb', line 4874

def item_attribute
  @item_attribute
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4881
4882
4883
4884
4885
# File 'lib/google/apis/searchads360_v23/classes.rb', line 4881

def update!(**args)
  @event = args[:event] if args.key?(:event)
  @event_date_time = args[:event_date_time] if args.key?(:event_date_time)
  @item_attribute = args[:item_attribute] if args.key?(:item_attribute)
end