class Google::Apis::PartnersV2::LogUserEventRequest

Request message for LogUserEvent.

Attributes

event_action[RW]

The action that occurred. Corresponds to the JSON property `eventAction` @return [String]

event_category[RW]

The category the action belongs to. Corresponds to the JSON property `eventCategory` @return [String]

event_datas[RW]

List of event data for the event. Corresponds to the JSON property `eventDatas` @return [Array<Google::Apis::PartnersV2::EventData>]

event_scope[RW]

The scope of the event. Corresponds to the JSON property `eventScope` @return [String]

lead[RW]

A lead resource that represents an advertiser contact for a `Company`. These are usually generated via Google Partner Search (the advertiser portal). Corresponds to the JSON property `lead` @return [Google::Apis::PartnersV2::Lead]

request_metadata[RW]

Common data that is in each API request. Corresponds to the JSON property `requestMetadata` @return [Google::Apis::PartnersV2::RequestMetadata]

url[RW]

The URL where the event occurred. Corresponds to the JSON property `url` @return [String]

Public Class Methods

new(**args) click to toggle source
# File generated/google/apis/partners_v2/classes.rb, line 65
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File generated/google/apis/partners_v2/classes.rb, line 70
def update!(**args)
  @request_metadata = args[:request_metadata] if args.key?(:request_metadata)
  @event_action = args[:event_action] if args.key?(:event_action)
  @event_category = args[:event_category] if args.key?(:event_category)
  @event_scope = args[:event_scope] if args.key?(:event_scope)
  @event_datas = args[:event_datas] if args.key?(:event_datas)
  @url = args[:url] if args.key?(:url)
  @lead = args[:lead] if args.key?(:lead)
end