Class: Google::Apis::PartnersV2::LogUserEventRequest

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

Overview

Request message for LogUserEvent.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ LogUserEventRequest

Returns a new instance of LogUserEventRequest



1886
1887
1888
# File 'generated/google/apis/partners_v2/classes.rb', line 1886

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

Instance Attribute Details

#event_actionString

The action that occurred. Corresponds to the JSON property eventAction

Returns:

  • (String)


1864
1865
1866
# File 'generated/google/apis/partners_v2/classes.rb', line 1864

def event_action
  @event_action
end

#event_categoryString

The category the action belongs to. Corresponds to the JSON property eventCategory

Returns:

  • (String)


1853
1854
1855
# File 'generated/google/apis/partners_v2/classes.rb', line 1853

def event_category
  @event_category
end

#event_datasArray<Google::Apis::PartnersV2::EventData>

List of event data for the event. Corresponds to the JSON property eventDatas



1879
1880
1881
# File 'generated/google/apis/partners_v2/classes.rb', line 1879

def event_datas
  @event_datas
end

#event_scopeString

The scope of the event. Corresponds to the JSON property eventScope

Returns:

  • (String)


1884
1885
1886
# File 'generated/google/apis/partners_v2/classes.rb', line 1884

def event_scope
  @event_scope
end

#leadGoogle::Apis::PartnersV2::Lead

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



1859
1860
1861
# File 'generated/google/apis/partners_v2/classes.rb', line 1859

def lead
  @lead
end

#request_metadataGoogle::Apis::PartnersV2::RequestMetadata

Common data that is in each API request. Corresponds to the JSON property requestMetadata



1874
1875
1876
# File 'generated/google/apis/partners_v2/classes.rb', line 1874

def 
  @request_metadata
end

#urlString

The URL where the event occurred. Corresponds to the JSON property url

Returns:

  • (String)


1869
1870
1871
# File 'generated/google/apis/partners_v2/classes.rb', line 1869

def url
  @url
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1891
1892
1893
1894
1895
1896
1897
1898
1899
# File 'generated/google/apis/partners_v2/classes.rb', line 1891

def update!(**args)
  @event_category = args[:event_category] if args.key?(:event_category)
  @lead = args[:lead] if args.key?(:lead)
  @event_action = args[:event_action] if args.key?(:event_action)
  @url = args[:url] if args.key?(:url)
  @request_metadata = args[:request_metadata] if args.key?(:request_metadata)
  @event_datas = args[:event_datas] if args.key?(:event_datas)
  @event_scope = args[:event_scope] if args.key?(:event_scope)
end