Class: Google::Apis::AdsenseplatformV1alpha::Event

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

Overview

A platform sub-account event to record spam signals.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Event

Returns a new instance of Event.



283
284
285
# File 'lib/google/apis/adsenseplatform_v1alpha/classes.rb', line 283

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

Instance Attribute Details

#event_infoGoogle::Apis::AdsenseplatformV1alpha::EventInfo

Private information for partner recorded events (PII). Corresponds to the JSON property eventInfo



271
272
273
# File 'lib/google/apis/adsenseplatform_v1alpha/classes.rb', line 271

def event_info
  @event_info
end

#event_timeString

Required. Event timestamp. Corresponds to the JSON property eventTime

Returns:

  • (String)


276
277
278
# File 'lib/google/apis/adsenseplatform_v1alpha/classes.rb', line 276

def event_time
  @event_time
end

#event_typeString

Required. Event type. Corresponds to the JSON property eventType

Returns:

  • (String)


281
282
283
# File 'lib/google/apis/adsenseplatform_v1alpha/classes.rb', line 281

def event_type
  @event_type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



288
289
290
291
292
# File 'lib/google/apis/adsenseplatform_v1alpha/classes.rb', line 288

def update!(**args)
  @event_info = args[:event_info] if args.key?(:event_info)
  @event_time = args[:event_time] if args.key?(:event_time)
  @event_type = args[:event_type] if args.key?(:event_type)
end