Class: Google::Apis::PlayablelocationsV3::GoogleMapsPlayablelocationsV3LogImpressionsRequest

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

Overview

A request for logging impressions.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleMapsPlayablelocationsV3LogImpressionsRequest

Returns a new instance of GoogleMapsPlayablelocationsV3LogImpressionsRequest.

[View source]

85
86
87
# File 'generated/google/apis/playablelocations_v3/classes.rb', line 85

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

Instance Attribute Details

#client_infoGoogle::Apis::PlayablelocationsV3::GoogleMapsUnityClientInfo

Client information. Corresponds to the JSON property clientInfo


68
69
70
# File 'generated/google/apis/playablelocations_v3/classes.rb', line 68

def client_info
  @client_info
end

#impressionsArray<Google::Apis::PlayablelocationsV3::GoogleMapsPlayablelocationsV3Impression>

Required. Impression event details. The maximum number of impression reports that you can log at once is 50. Corresponds to the JSON property impressions


74
75
76
# File 'generated/google/apis/playablelocations_v3/classes.rb', line 74

def impressions
  @impressions
end

#request_idString

Required. A string that uniquely identifies the log impressions request. This allows you to detect duplicate requests. We recommend that you use UUIDs for this value. The value must not exceed 50 characters. You should reuse the request_id only when retrying a request in case of failure. In this case, the request must be identical to the one that failed. Corresponds to the JSON property requestId

Returns:

  • (String)

83
84
85
# File 'generated/google/apis/playablelocations_v3/classes.rb', line 83

def request_id
  @request_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object

[View source]

90
91
92
93
94
# File 'generated/google/apis/playablelocations_v3/classes.rb', line 90

def update!(**args)
  @client_info = args[:client_info] if args.key?(:client_info)
  @impressions = args[:impressions] if args.key?(:impressions)
  @request_id = args[:request_id] if args.key?(:request_id)
end