class Google::Apis::PlayablelocationsV3::GoogleMapsPlayablelocationsV3Impression

Encapsulates impression event details.

Attributes

game_object_type[RW]

An arbitrary, developer-defined type identifier for each type of game object used in your game. Since players interact with differ types of game objects in different ways, this field allows you to segregate impression data by type for analysis. You should assign a unique `game_object_type` ID to represent a distinct type of game object in your game. For example, 1=monster location, 2= powerup location. Corresponds to the JSON property `gameObjectType` @return [Fixnum]

impression_type[RW]

Required. The type of impression event. Corresponds to the JSON property `impressionType` @return [String]

location_name[RW]

Required. The name of the playable location. Corresponds to the JSON property `locationName` @return [String]

Public Class Methods

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

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/playablelocations_v3/classes.rb, line 54
def update!(**args)
  @game_object_type = args[:game_object_type] if args.key?(:game_object_type)
  @impression_type = args[:impression_type] if args.key?(:impression_type)
  @location_name = args[:location_name] if args.key?(:location_name)
end