Class: Google::Apis::Searchads360V23::GoogleAdsSearchads360V23CommonEventAttribute
- Inherits:
-
Object
- Object
- Google::Apis::Searchads360V23::GoogleAdsSearchads360V23CommonEventAttribute
- 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
-
#event ⇒ String
Required.
-
#event_date_time ⇒ String
Required.
-
#item_attribute ⇒ Array<Google::Apis::Searchads360V23::GoogleAdsSearchads360V23CommonEventItemAttribute>
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleAdsSearchads360V23CommonEventAttribute
constructor
A new instance of GoogleAdsSearchads360V23CommonEventAttribute.
-
#update!(**args) ⇒ Object
Update properties of this object.
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
#event ⇒ String
Required. Advertiser defined event to be used for remarketing. The accepted
values are "Viewed", "Cart", "Purchased" and "Recommended".
Corresponds to the JSON property event
4862 4863 4864 |
# File 'lib/google/apis/searchads360_v23/classes.rb', line 4862 def event @event end |
#event_date_time ⇒ String
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
4869 4870 4871 |
# File 'lib/google/apis/searchads360_v23/classes.rb', line 4869 def event_date_time @event_date_time end |
#item_attribute ⇒ Array<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 |