Class: Google::Apis::AdsenseplatformV1::Event

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/adsenseplatform_v1/classes.rb,
lib/google/apis/adsenseplatform_v1/representations.rb,
lib/google/apis/adsenseplatform_v1/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.



227
228
229
# File 'lib/google/apis/adsenseplatform_v1/classes.rb', line 227

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

Instance Attribute Details

#event_infoGoogle::Apis::AdsenseplatformV1::EventInfo

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



215
216
217
# File 'lib/google/apis/adsenseplatform_v1/classes.rb', line 215

def event_info
  @event_info
end

#event_timeString

Required. Event timestamp. Corresponds to the JSON property eventTime

Returns:

  • (String)


220
221
222
# File 'lib/google/apis/adsenseplatform_v1/classes.rb', line 220

def event_time
  @event_time
end

#event_typeString

Required. Event type. Corresponds to the JSON property eventType

Returns:

  • (String)


225
226
227
# File 'lib/google/apis/adsenseplatform_v1/classes.rb', line 225

def event_type
  @event_type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



232
233
234
235
236
# File 'lib/google/apis/adsenseplatform_v1/classes.rb', line 232

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