oursprivacy-ingest 2.1.0 → 2.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +14 -0
- data/README.md +1 -1
- data/lib/oursprivacy_ingest/models/batch_create_params.rb +47 -14
- data/lib/oursprivacy_ingest/models/track_event_params.rb +47 -14
- data/lib/oursprivacy_ingest/models/visitor_upsert_params.rb +47 -14
- data/lib/oursprivacy_ingest/resources/track.rb +11 -9
- data/lib/oursprivacy_ingest/resources/visitor.rb +6 -4
- data/lib/oursprivacy_ingest/version.rb +1 -1
- data/rbi/oursprivacy_ingest/models/batch_create_params.rbi +59 -21
- data/rbi/oursprivacy_ingest/models/track_event_params.rbi +56 -18
- data/rbi/oursprivacy_ingest/models/visitor_upsert_params.rbi +56 -18
- data/rbi/oursprivacy_ingest/resources/track.rbi +24 -15
- data/rbi/oursprivacy_ingest/resources/visitor.rbi +19 -10
- data/sig/oursprivacy_ingest/models/batch_create_params.rbs +18 -3
- data/sig/oursprivacy_ingest/models/track_event_params.rbs +16 -1
- data/sig/oursprivacy_ingest/models/visitor_upsert_params.rbs +16 -1
- data/sig/oursprivacy_ingest/resources/track.rbs +1 -0
- data/sig/oursprivacy_ingest/resources/visitor.rbs +1 -0
- metadata +1 -1
|
@@ -95,7 +95,7 @@ module OursprivacyIngest
|
|
|
95
95
|
end
|
|
96
96
|
attr_writer :default_properties
|
|
97
97
|
|
|
98
|
-
# The email address of a user. When
|
|
98
|
+
# The email address of a user. When visitorId is absent and externalId does not
|
|
99
99
|
# resolve a visitor, we search your account for a visitor with this email. If no
|
|
100
100
|
# match is found, we try userProperties.phone_number before creating a new
|
|
101
101
|
# visitor. Leading and trailing whitespace is removed before validation.
|
|
@@ -122,11 +122,11 @@ module OursprivacyIngest
|
|
|
122
122
|
end
|
|
123
123
|
attr_accessor :event_properties
|
|
124
124
|
|
|
125
|
-
# Your system's unique identifier for this user. When
|
|
126
|
-
# your account for an existing visitor with this externalId. If no match is
|
|
127
|
-
# we try email and then userProperties.phone_number before creating a new
|
|
128
|
-
# If you also have the
|
|
129
|
-
# removes the lookup round-trip. Non-string input is converted to text before
|
|
125
|
+
# Your system's unique identifier for this user. When visitorId is absent, we
|
|
126
|
+
# search your account for an existing visitor with this externalId. If no match is
|
|
127
|
+
# found, we try email and then userProperties.phone_number before creating a new
|
|
128
|
+
# visitor. If you also have the visitorId from cookies or local storage, send both
|
|
129
|
+
# — it removes the lookup round-trip. Non-string input is converted to text before
|
|
130
130
|
# validation; clients should send a string. Leading and trailing whitespace is
|
|
131
131
|
# removed before validation.
|
|
132
132
|
sig { returns(T.nilable(String)) }
|
|
@@ -162,9 +162,10 @@ module OursprivacyIngest
|
|
|
162
162
|
|
|
163
163
|
# The Ours Visitor ID stored in local storage and cookies on your web properties.
|
|
164
164
|
# When present, this is used directly — no lookup by externalId, email, or phone
|
|
165
|
-
# is performed. If you have both a
|
|
166
|
-
# event is attached to the right visitor without any lookup overhead.
|
|
167
|
-
#
|
|
165
|
+
# is performed. If you have both a visitorId and an externalId, send both so the
|
|
166
|
+
# event is attached to the right visitor without any lookup overhead. visitorId
|
|
167
|
+
# takes precedence over the deprecated userId alias. Leading and trailing
|
|
168
|
+
# whitespace is removed before validation.
|
|
168
169
|
sig { returns(T.nilable(String)) }
|
|
169
170
|
attr_accessor :user_id
|
|
170
171
|
|
|
@@ -189,6 +190,15 @@ module OursprivacyIngest
|
|
|
189
190
|
end
|
|
190
191
|
attr_writer :user_properties
|
|
191
192
|
|
|
193
|
+
# The Ours Visitor ID stored in local storage and cookies on your web properties.
|
|
194
|
+
# When present, this is used directly — no lookup by externalId, email, or phone
|
|
195
|
+
# is performed. If you have both a visitorId and an externalId, send both so the
|
|
196
|
+
# event is attached to the right visitor without any lookup overhead. visitorId
|
|
197
|
+
# takes precedence over the deprecated userId alias. Leading and trailing
|
|
198
|
+
# whitespace is removed before validation.
|
|
199
|
+
sig { returns(T.nilable(String)) }
|
|
200
|
+
attr_accessor :visitor_id
|
|
201
|
+
|
|
192
202
|
sig do
|
|
193
203
|
params(
|
|
194
204
|
distinct_id: String,
|
|
@@ -217,7 +227,8 @@ module OursprivacyIngest
|
|
|
217
227
|
user_properties:
|
|
218
228
|
T.nilable(
|
|
219
229
|
OursprivacyIngest::BatchCreateParams::Event::UserProperties::OrHash
|
|
220
|
-
)
|
|
230
|
+
),
|
|
231
|
+
visitor_id: T.nilable(String)
|
|
221
232
|
).returns(T.attached_class)
|
|
222
233
|
end
|
|
223
234
|
def self.new(
|
|
@@ -233,7 +244,7 @@ module OursprivacyIngest
|
|
|
233
244
|
# These properties are used throughout the Ours app to pass known values onto
|
|
234
245
|
# destinations
|
|
235
246
|
default_properties: nil,
|
|
236
|
-
# The email address of a user. When
|
|
247
|
+
# The email address of a user. When visitorId is absent and externalId does not
|
|
237
248
|
# resolve a visitor, we search your account for a visitor with this email. If no
|
|
238
249
|
# match is found, we try userProperties.phone_number before creating a new
|
|
239
250
|
# visitor. Leading and trailing whitespace is removed before validation.
|
|
@@ -245,11 +256,11 @@ module OursprivacyIngest
|
|
|
245
256
|
# strings. After normalization, the serialized JSON must be shorter than 1,048,576
|
|
246
257
|
# UTF-16 code units.
|
|
247
258
|
event_properties: nil,
|
|
248
|
-
# Your system's unique identifier for this user. When
|
|
249
|
-
# your account for an existing visitor with this externalId. If no match is
|
|
250
|
-
# we try email and then userProperties.phone_number before creating a new
|
|
251
|
-
# If you also have the
|
|
252
|
-
# removes the lookup round-trip. Non-string input is converted to text before
|
|
259
|
+
# Your system's unique identifier for this user. When visitorId is absent, we
|
|
260
|
+
# search your account for an existing visitor with this externalId. If no match is
|
|
261
|
+
# found, we try email and then userProperties.phone_number before creating a new
|
|
262
|
+
# visitor. If you also have the visitorId from cookies or local storage, send both
|
|
263
|
+
# — it removes the lookup round-trip. Non-string input is converted to text before
|
|
253
264
|
# validation; clients should send a string. Leading and trailing whitespace is
|
|
254
265
|
# removed before validation.
|
|
255
266
|
external_id: nil,
|
|
@@ -263,13 +274,21 @@ module OursprivacyIngest
|
|
|
263
274
|
time: nil,
|
|
264
275
|
# The Ours Visitor ID stored in local storage and cookies on your web properties.
|
|
265
276
|
# When present, this is used directly — no lookup by externalId, email, or phone
|
|
266
|
-
# is performed. If you have both a
|
|
267
|
-
# event is attached to the right visitor without any lookup overhead.
|
|
268
|
-
#
|
|
277
|
+
# is performed. If you have both a visitorId and an externalId, send both so the
|
|
278
|
+
# event is attached to the right visitor without any lookup overhead. visitorId
|
|
279
|
+
# takes precedence over the deprecated userId alias. Leading and trailing
|
|
280
|
+
# whitespace is removed before validation.
|
|
269
281
|
user_id: nil,
|
|
270
282
|
# Properties to set on the visitor. (optional) You can also update these
|
|
271
283
|
# properties via the identify endpoint.
|
|
272
|
-
user_properties: nil
|
|
284
|
+
user_properties: nil,
|
|
285
|
+
# The Ours Visitor ID stored in local storage and cookies on your web properties.
|
|
286
|
+
# When present, this is used directly — no lookup by externalId, email, or phone
|
|
287
|
+
# is performed. If you have both a visitorId and an externalId, send both so the
|
|
288
|
+
# event is attached to the right visitor without any lookup overhead. visitorId
|
|
289
|
+
# takes precedence over the deprecated userId alias. Leading and trailing
|
|
290
|
+
# whitespace is removed before validation.
|
|
291
|
+
visitor_id: nil
|
|
273
292
|
)
|
|
274
293
|
end
|
|
275
294
|
|
|
@@ -302,7 +321,8 @@ module OursprivacyIngest
|
|
|
302
321
|
user_properties:
|
|
303
322
|
T.nilable(
|
|
304
323
|
OursprivacyIngest::BatchCreateParams::Event::UserProperties
|
|
305
|
-
)
|
|
324
|
+
),
|
|
325
|
+
visitor_id: T.nilable(String)
|
|
306
326
|
}
|
|
307
327
|
)
|
|
308
328
|
end
|
|
@@ -333,6 +353,11 @@ module OursprivacyIngest
|
|
|
333
353
|
sig { returns(T.nilable(String)) }
|
|
334
354
|
attr_accessor :ad_id
|
|
335
355
|
|
|
356
|
+
# The AdRoll Click ID (adct) from the landing URL. Ex: adct123 Leading and
|
|
357
|
+
# trailing whitespace is removed before validation.
|
|
358
|
+
sig { returns(T.nilable(String)) }
|
|
359
|
+
attr_accessor :adct
|
|
360
|
+
|
|
336
361
|
# The Admitad (Mitgo) affiliate Click ID. Ex: admitad_uid_abc123 Leading and
|
|
337
362
|
# trailing whitespace is removed before validation.
|
|
338
363
|
sig { returns(T.nilable(String)) }
|
|
@@ -753,6 +778,7 @@ module OursprivacyIngest
|
|
|
753
778
|
_ef_transaction_id: T.nilable(String),
|
|
754
779
|
active_duration: T.nilable(Float),
|
|
755
780
|
ad_id: T.nilable(String),
|
|
781
|
+
adct: T.nilable(String),
|
|
756
782
|
admitad_uid: T.nilable(String),
|
|
757
783
|
adset_id: T.nilable(String),
|
|
758
784
|
affiliatly_v3: T.nilable(String),
|
|
@@ -848,6 +874,9 @@ module OursprivacyIngest
|
|
|
848
874
|
# The ad id detected in the session. This is set by the web sdk automatically.
|
|
849
875
|
# Leading and trailing whitespace is removed before validation.
|
|
850
876
|
ad_id: nil,
|
|
877
|
+
# The AdRoll Click ID (adct) from the landing URL. Ex: adct123 Leading and
|
|
878
|
+
# trailing whitespace is removed before validation.
|
|
879
|
+
adct: nil,
|
|
851
880
|
# The Admitad (Mitgo) affiliate Click ID. Ex: admitad_uid_abc123 Leading and
|
|
852
881
|
# trailing whitespace is removed before validation.
|
|
853
882
|
admitad_uid: nil,
|
|
@@ -1104,6 +1133,7 @@ module OursprivacyIngest
|
|
|
1104
1133
|
_ef_transaction_id: T.nilable(String),
|
|
1105
1134
|
active_duration: T.nilable(Float),
|
|
1106
1135
|
ad_id: T.nilable(String),
|
|
1136
|
+
adct: T.nilable(String),
|
|
1107
1137
|
admitad_uid: T.nilable(String),
|
|
1108
1138
|
adset_id: T.nilable(String),
|
|
1109
1139
|
affiliatly_v3: T.nilable(String),
|
|
@@ -1774,6 +1804,10 @@ module OursprivacyIngest
|
|
|
1774
1804
|
sig { returns(T.nilable(String)) }
|
|
1775
1805
|
attr_accessor :ad_id
|
|
1776
1806
|
|
|
1807
|
+
# Leading and trailing whitespace is removed before validation.
|
|
1808
|
+
sig { returns(T.nilable(String)) }
|
|
1809
|
+
attr_accessor :adct
|
|
1810
|
+
|
|
1777
1811
|
# Leading and trailing whitespace is removed before validation.
|
|
1778
1812
|
sig { returns(T.nilable(String)) }
|
|
1779
1813
|
attr_accessor :admitad_uid
|
|
@@ -2081,6 +2115,7 @@ module OursprivacyIngest
|
|
|
2081
2115
|
params(
|
|
2082
2116
|
_ef_transaction_id: T.nilable(String),
|
|
2083
2117
|
ad_id: T.nilable(String),
|
|
2118
|
+
adct: T.nilable(String),
|
|
2084
2119
|
admitad_uid: T.nilable(String),
|
|
2085
2120
|
adset_id: T.nilable(String),
|
|
2086
2121
|
affiliatly_v3: T.nilable(String),
|
|
@@ -2180,6 +2215,8 @@ module OursprivacyIngest
|
|
|
2180
2215
|
_ef_transaction_id: nil,
|
|
2181
2216
|
ad_id: nil,
|
|
2182
2217
|
# Leading and trailing whitespace is removed before validation.
|
|
2218
|
+
adct: nil,
|
|
2219
|
+
# Leading and trailing whitespace is removed before validation.
|
|
2183
2220
|
admitad_uid: nil,
|
|
2184
2221
|
adset_id: nil,
|
|
2185
2222
|
affiliatly_v3: nil,
|
|
@@ -2314,6 +2351,7 @@ module OursprivacyIngest
|
|
|
2314
2351
|
{
|
|
2315
2352
|
_ef_transaction_id: T.nilable(String),
|
|
2316
2353
|
ad_id: T.nilable(String),
|
|
2354
|
+
adct: T.nilable(String),
|
|
2317
2355
|
admitad_uid: T.nilable(String),
|
|
2318
2356
|
adset_id: T.nilable(String),
|
|
2319
2357
|
affiliatly_v3: T.nilable(String),
|
|
@@ -52,7 +52,7 @@ module OursprivacyIngest
|
|
|
52
52
|
sig { returns(T.nilable(String)) }
|
|
53
53
|
attr_accessor :distinct_id
|
|
54
54
|
|
|
55
|
-
# The email address of a user. When
|
|
55
|
+
# The email address of a user. When visitorId is absent and externalId does not
|
|
56
56
|
# resolve a visitor, we search your account for a visitor with this email. If no
|
|
57
57
|
# match is found, we try userProperties.phone_number before creating a new
|
|
58
58
|
# visitor. Leading and trailing whitespace is removed before validation.
|
|
@@ -79,11 +79,11 @@ module OursprivacyIngest
|
|
|
79
79
|
end
|
|
80
80
|
attr_accessor :event_properties
|
|
81
81
|
|
|
82
|
-
# Your system's unique identifier for this user. When
|
|
83
|
-
# your account for an existing visitor with this externalId. If no match is
|
|
84
|
-
# we try email and then userProperties.phone_number before creating a new
|
|
85
|
-
# If you also have the
|
|
86
|
-
# removes the lookup round-trip. Non-string input is converted to text before
|
|
82
|
+
# Your system's unique identifier for this user. When visitorId is absent, we
|
|
83
|
+
# search your account for an existing visitor with this externalId. If no match is
|
|
84
|
+
# found, we try email and then userProperties.phone_number before creating a new
|
|
85
|
+
# visitor. If you also have the visitorId from cookies or local storage, send both
|
|
86
|
+
# — it removes the lookup round-trip. Non-string input is converted to text before
|
|
87
87
|
# validation; clients should send a string. Leading and trailing whitespace is
|
|
88
88
|
# removed before validation.
|
|
89
89
|
sig { returns(T.nilable(String)) }
|
|
@@ -115,9 +115,10 @@ module OursprivacyIngest
|
|
|
115
115
|
|
|
116
116
|
# The Ours Visitor ID stored in local storage and cookies on your web properties.
|
|
117
117
|
# When present, this is used directly — no lookup by externalId, email, or phone
|
|
118
|
-
# is performed. If you have both a
|
|
119
|
-
# event is attached to the right visitor without any lookup overhead.
|
|
120
|
-
#
|
|
118
|
+
# is performed. If you have both a visitorId and an externalId, send both so the
|
|
119
|
+
# event is attached to the right visitor without any lookup overhead. visitorId
|
|
120
|
+
# takes precedence over the deprecated userId alias. Leading and trailing
|
|
121
|
+
# whitespace is removed before validation.
|
|
121
122
|
sig { returns(T.nilable(String)) }
|
|
122
123
|
attr_accessor :user_id
|
|
123
124
|
|
|
@@ -138,6 +139,15 @@ module OursprivacyIngest
|
|
|
138
139
|
end
|
|
139
140
|
attr_writer :user_properties
|
|
140
141
|
|
|
142
|
+
# The Ours Visitor ID stored in local storage and cookies on your web properties.
|
|
143
|
+
# When present, this is used directly — no lookup by externalId, email, or phone
|
|
144
|
+
# is performed. If you have both a visitorId and an externalId, send both so the
|
|
145
|
+
# event is attached to the right visitor without any lookup overhead. visitorId
|
|
146
|
+
# takes precedence over the deprecated userId alias. Leading and trailing
|
|
147
|
+
# whitespace is removed before validation.
|
|
148
|
+
sig { returns(T.nilable(String)) }
|
|
149
|
+
attr_accessor :visitor_id
|
|
150
|
+
|
|
141
151
|
sig do
|
|
142
152
|
params(
|
|
143
153
|
token: String,
|
|
@@ -168,6 +178,7 @@ module OursprivacyIngest
|
|
|
168
178
|
T.nilable(
|
|
169
179
|
OursprivacyIngest::TrackEventParams::UserProperties::OrHash
|
|
170
180
|
),
|
|
181
|
+
visitor_id: T.nilable(String),
|
|
171
182
|
request_options: OursprivacyIngest::RequestOptions::OrHash
|
|
172
183
|
).returns(T.attached_class)
|
|
173
184
|
end
|
|
@@ -188,7 +199,7 @@ module OursprivacyIngest
|
|
|
188
199
|
# clients should send a string. Leading and trailing whitespace is removed before
|
|
189
200
|
# validation.
|
|
190
201
|
distinct_id: nil,
|
|
191
|
-
# The email address of a user. When
|
|
202
|
+
# The email address of a user. When visitorId is absent and externalId does not
|
|
192
203
|
# resolve a visitor, we search your account for a visitor with this email. If no
|
|
193
204
|
# match is found, we try userProperties.phone_number before creating a new
|
|
194
205
|
# visitor. Leading and trailing whitespace is removed before validation.
|
|
@@ -200,11 +211,11 @@ module OursprivacyIngest
|
|
|
200
211
|
# strings. After normalization, the serialized JSON must be shorter than 1,048,576
|
|
201
212
|
# UTF-16 code units.
|
|
202
213
|
event_properties: nil,
|
|
203
|
-
# Your system's unique identifier for this user. When
|
|
204
|
-
# your account for an existing visitor with this externalId. If no match is
|
|
205
|
-
# we try email and then userProperties.phone_number before creating a new
|
|
206
|
-
# If you also have the
|
|
207
|
-
# removes the lookup round-trip. Non-string input is converted to text before
|
|
214
|
+
# Your system's unique identifier for this user. When visitorId is absent, we
|
|
215
|
+
# search your account for an existing visitor with this externalId. If no match is
|
|
216
|
+
# found, we try email and then userProperties.phone_number before creating a new
|
|
217
|
+
# visitor. If you also have the visitorId from cookies or local storage, send both
|
|
218
|
+
# — it removes the lookup round-trip. Non-string input is converted to text before
|
|
208
219
|
# validation; clients should send a string. Leading and trailing whitespace is
|
|
209
220
|
# removed before validation.
|
|
210
221
|
external_id: nil,
|
|
@@ -218,13 +229,21 @@ module OursprivacyIngest
|
|
|
218
229
|
time: nil,
|
|
219
230
|
# The Ours Visitor ID stored in local storage and cookies on your web properties.
|
|
220
231
|
# When present, this is used directly — no lookup by externalId, email, or phone
|
|
221
|
-
# is performed. If you have both a
|
|
222
|
-
# event is attached to the right visitor without any lookup overhead.
|
|
223
|
-
#
|
|
232
|
+
# is performed. If you have both a visitorId and an externalId, send both so the
|
|
233
|
+
# event is attached to the right visitor without any lookup overhead. visitorId
|
|
234
|
+
# takes precedence over the deprecated userId alias. Leading and trailing
|
|
235
|
+
# whitespace is removed before validation.
|
|
224
236
|
user_id: nil,
|
|
225
237
|
# Properties to set on the visitor. (optional) You can also update these
|
|
226
238
|
# properties via the identify endpoint.
|
|
227
239
|
user_properties: nil,
|
|
240
|
+
# The Ours Visitor ID stored in local storage and cookies on your web properties.
|
|
241
|
+
# When present, this is used directly — no lookup by externalId, email, or phone
|
|
242
|
+
# is performed. If you have both a visitorId and an externalId, send both so the
|
|
243
|
+
# event is attached to the right visitor without any lookup overhead. visitorId
|
|
244
|
+
# takes precedence over the deprecated userId alias. Leading and trailing
|
|
245
|
+
# whitespace is removed before validation.
|
|
246
|
+
visitor_id: nil,
|
|
228
247
|
request_options: {}
|
|
229
248
|
)
|
|
230
249
|
end
|
|
@@ -254,6 +273,7 @@ module OursprivacyIngest
|
|
|
254
273
|
user_id: T.nilable(String),
|
|
255
274
|
user_properties:
|
|
256
275
|
T.nilable(OursprivacyIngest::TrackEventParams::UserProperties),
|
|
276
|
+
visitor_id: T.nilable(String),
|
|
257
277
|
request_options: OursprivacyIngest::RequestOptions
|
|
258
278
|
}
|
|
259
279
|
)
|
|
@@ -285,6 +305,11 @@ module OursprivacyIngest
|
|
|
285
305
|
sig { returns(T.nilable(String)) }
|
|
286
306
|
attr_accessor :ad_id
|
|
287
307
|
|
|
308
|
+
# The AdRoll Click ID (adct) from the landing URL. Ex: adct123 Leading and
|
|
309
|
+
# trailing whitespace is removed before validation.
|
|
310
|
+
sig { returns(T.nilable(String)) }
|
|
311
|
+
attr_accessor :adct
|
|
312
|
+
|
|
288
313
|
# The Admitad (Mitgo) affiliate Click ID. Ex: admitad_uid_abc123 Leading and
|
|
289
314
|
# trailing whitespace is removed before validation.
|
|
290
315
|
sig { returns(T.nilable(String)) }
|
|
@@ -705,6 +730,7 @@ module OursprivacyIngest
|
|
|
705
730
|
_ef_transaction_id: T.nilable(String),
|
|
706
731
|
active_duration: T.nilable(Float),
|
|
707
732
|
ad_id: T.nilable(String),
|
|
733
|
+
adct: T.nilable(String),
|
|
708
734
|
admitad_uid: T.nilable(String),
|
|
709
735
|
adset_id: T.nilable(String),
|
|
710
736
|
affiliatly_v3: T.nilable(String),
|
|
@@ -800,6 +826,9 @@ module OursprivacyIngest
|
|
|
800
826
|
# The ad id detected in the session. This is set by the web sdk automatically.
|
|
801
827
|
# Leading and trailing whitespace is removed before validation.
|
|
802
828
|
ad_id: nil,
|
|
829
|
+
# The AdRoll Click ID (adct) from the landing URL. Ex: adct123 Leading and
|
|
830
|
+
# trailing whitespace is removed before validation.
|
|
831
|
+
adct: nil,
|
|
803
832
|
# The Admitad (Mitgo) affiliate Click ID. Ex: admitad_uid_abc123 Leading and
|
|
804
833
|
# trailing whitespace is removed before validation.
|
|
805
834
|
admitad_uid: nil,
|
|
@@ -1056,6 +1085,7 @@ module OursprivacyIngest
|
|
|
1056
1085
|
_ef_transaction_id: T.nilable(String),
|
|
1057
1086
|
active_duration: T.nilable(Float),
|
|
1058
1087
|
ad_id: T.nilable(String),
|
|
1088
|
+
adct: T.nilable(String),
|
|
1059
1089
|
admitad_uid: T.nilable(String),
|
|
1060
1090
|
adset_id: T.nilable(String),
|
|
1061
1091
|
affiliatly_v3: T.nilable(String),
|
|
@@ -1724,6 +1754,10 @@ module OursprivacyIngest
|
|
|
1724
1754
|
sig { returns(T.nilable(String)) }
|
|
1725
1755
|
attr_accessor :ad_id
|
|
1726
1756
|
|
|
1757
|
+
# Leading and trailing whitespace is removed before validation.
|
|
1758
|
+
sig { returns(T.nilable(String)) }
|
|
1759
|
+
attr_accessor :adct
|
|
1760
|
+
|
|
1727
1761
|
# Leading and trailing whitespace is removed before validation.
|
|
1728
1762
|
sig { returns(T.nilable(String)) }
|
|
1729
1763
|
attr_accessor :admitad_uid
|
|
@@ -2031,6 +2065,7 @@ module OursprivacyIngest
|
|
|
2031
2065
|
params(
|
|
2032
2066
|
_ef_transaction_id: T.nilable(String),
|
|
2033
2067
|
ad_id: T.nilable(String),
|
|
2068
|
+
adct: T.nilable(String),
|
|
2034
2069
|
admitad_uid: T.nilable(String),
|
|
2035
2070
|
adset_id: T.nilable(String),
|
|
2036
2071
|
affiliatly_v3: T.nilable(String),
|
|
@@ -2130,6 +2165,8 @@ module OursprivacyIngest
|
|
|
2130
2165
|
_ef_transaction_id: nil,
|
|
2131
2166
|
ad_id: nil,
|
|
2132
2167
|
# Leading and trailing whitespace is removed before validation.
|
|
2168
|
+
adct: nil,
|
|
2169
|
+
# Leading and trailing whitespace is removed before validation.
|
|
2133
2170
|
admitad_uid: nil,
|
|
2134
2171
|
adset_id: nil,
|
|
2135
2172
|
affiliatly_v3: nil,
|
|
@@ -2264,6 +2301,7 @@ module OursprivacyIngest
|
|
|
2264
2301
|
{
|
|
2265
2302
|
_ef_transaction_id: T.nilable(String),
|
|
2266
2303
|
ad_id: T.nilable(String),
|
|
2304
|
+
adct: T.nilable(String),
|
|
2267
2305
|
admitad_uid: T.nilable(String),
|
|
2268
2306
|
adset_id: T.nilable(String),
|
|
2269
2307
|
affiliatly_v3: T.nilable(String),
|
|
@@ -52,18 +52,18 @@ module OursprivacyIngest
|
|
|
52
52
|
end
|
|
53
53
|
attr_writer :default_properties
|
|
54
54
|
|
|
55
|
-
# The email address of a user. When
|
|
55
|
+
# The email address of a user. When visitorId is absent and externalId does not
|
|
56
56
|
# resolve a visitor, we search your account for a visitor with this email. If no
|
|
57
57
|
# match is found, we try userProperties.phone_number before creating a new
|
|
58
58
|
# visitor. Leading and trailing whitespace is removed before validation.
|
|
59
59
|
sig { returns(T.nilable(String)) }
|
|
60
60
|
attr_accessor :email
|
|
61
61
|
|
|
62
|
-
# Your system's unique identifier for this user. When
|
|
63
|
-
# your account for an existing visitor with this externalId. If no match is
|
|
64
|
-
# we try email and then userProperties.phone_number before creating a new
|
|
65
|
-
# If you also have the
|
|
66
|
-
# removes the lookup round-trip. Non-string input is converted to text before
|
|
62
|
+
# Your system's unique identifier for this user. When visitorId is absent, we
|
|
63
|
+
# search your account for an existing visitor with this externalId. If no match is
|
|
64
|
+
# found, we try email and then userProperties.phone_number before creating a new
|
|
65
|
+
# visitor. If you also have the visitorId from cookies or local storage, send both
|
|
66
|
+
# — it removes the lookup round-trip. Non-string input is converted to text before
|
|
67
67
|
# validation; clients should send a string. Leading and trailing whitespace is
|
|
68
68
|
# removed before validation.
|
|
69
69
|
sig { returns(T.nilable(String)) }
|
|
@@ -91,12 +91,22 @@ module OursprivacyIngest
|
|
|
91
91
|
|
|
92
92
|
# The Ours Visitor ID stored in local storage and cookies on your web properties.
|
|
93
93
|
# When present, this is used directly — no lookup by externalId, email, or phone
|
|
94
|
-
# is performed. If you have both a
|
|
95
|
-
# event is attached to the right visitor without any lookup overhead.
|
|
96
|
-
#
|
|
94
|
+
# is performed. If you have both a visitorId and an externalId, send both so the
|
|
95
|
+
# event is attached to the right visitor without any lookup overhead. visitorId
|
|
96
|
+
# takes precedence over the deprecated userId alias. Leading and trailing
|
|
97
|
+
# whitespace is removed before validation.
|
|
97
98
|
sig { returns(T.nilable(String)) }
|
|
98
99
|
attr_accessor :user_id
|
|
99
100
|
|
|
101
|
+
# The Ours Visitor ID stored in local storage and cookies on your web properties.
|
|
102
|
+
# When present, this is used directly — no lookup by externalId, email, or phone
|
|
103
|
+
# is performed. If you have both a visitorId and an externalId, send both so the
|
|
104
|
+
# event is attached to the right visitor without any lookup overhead. visitorId
|
|
105
|
+
# takes precedence over the deprecated userId alias. Leading and trailing
|
|
106
|
+
# whitespace is removed before validation.
|
|
107
|
+
sig { returns(T.nilable(String)) }
|
|
108
|
+
attr_accessor :visitor_id
|
|
109
|
+
|
|
100
110
|
sig do
|
|
101
111
|
params(
|
|
102
112
|
token: String,
|
|
@@ -113,6 +123,7 @@ module OursprivacyIngest
|
|
|
113
123
|
OursprivacyIngest::VisitorUpsertParams::IdentityContext::OrHash
|
|
114
124
|
),
|
|
115
125
|
user_id: T.nilable(String),
|
|
126
|
+
visitor_id: T.nilable(String),
|
|
116
127
|
request_options: OursprivacyIngest::RequestOptions::OrHash
|
|
117
128
|
).returns(T.attached_class)
|
|
118
129
|
end
|
|
@@ -127,16 +138,16 @@ module OursprivacyIngest
|
|
|
127
138
|
# These properties are used throughout the Ours app to pass known values onto
|
|
128
139
|
# destinations
|
|
129
140
|
default_properties: nil,
|
|
130
|
-
# The email address of a user. When
|
|
141
|
+
# The email address of a user. When visitorId is absent and externalId does not
|
|
131
142
|
# resolve a visitor, we search your account for a visitor with this email. If no
|
|
132
143
|
# match is found, we try userProperties.phone_number before creating a new
|
|
133
144
|
# visitor. Leading and trailing whitespace is removed before validation.
|
|
134
145
|
email: nil,
|
|
135
|
-
# Your system's unique identifier for this user. When
|
|
136
|
-
# your account for an existing visitor with this externalId. If no match is
|
|
137
|
-
# we try email and then userProperties.phone_number before creating a new
|
|
138
|
-
# If you also have the
|
|
139
|
-
# removes the lookup round-trip. Non-string input is converted to text before
|
|
146
|
+
# Your system's unique identifier for this user. When visitorId is absent, we
|
|
147
|
+
# search your account for an existing visitor with this externalId. If no match is
|
|
148
|
+
# found, we try email and then userProperties.phone_number before creating a new
|
|
149
|
+
# visitor. If you also have the visitorId from cookies or local storage, send both
|
|
150
|
+
# — it removes the lookup round-trip. Non-string input is converted to text before
|
|
140
151
|
# validation; clients should send a string. Leading and trailing whitespace is
|
|
141
152
|
# removed before validation.
|
|
142
153
|
external_id: nil,
|
|
@@ -146,10 +157,18 @@ module OursprivacyIngest
|
|
|
146
157
|
identity_context: nil,
|
|
147
158
|
# The Ours Visitor ID stored in local storage and cookies on your web properties.
|
|
148
159
|
# When present, this is used directly — no lookup by externalId, email, or phone
|
|
149
|
-
# is performed. If you have both a
|
|
150
|
-
# event is attached to the right visitor without any lookup overhead.
|
|
151
|
-
#
|
|
160
|
+
# is performed. If you have both a visitorId and an externalId, send both so the
|
|
161
|
+
# event is attached to the right visitor without any lookup overhead. visitorId
|
|
162
|
+
# takes precedence over the deprecated userId alias. Leading and trailing
|
|
163
|
+
# whitespace is removed before validation.
|
|
152
164
|
user_id: nil,
|
|
165
|
+
# The Ours Visitor ID stored in local storage and cookies on your web properties.
|
|
166
|
+
# When present, this is used directly — no lookup by externalId, email, or phone
|
|
167
|
+
# is performed. If you have both a visitorId and an externalId, send both so the
|
|
168
|
+
# event is attached to the right visitor without any lookup overhead. visitorId
|
|
169
|
+
# takes precedence over the deprecated userId alias. Leading and trailing
|
|
170
|
+
# whitespace is removed before validation.
|
|
171
|
+
visitor_id: nil,
|
|
153
172
|
request_options: {}
|
|
154
173
|
)
|
|
155
174
|
end
|
|
@@ -171,6 +190,7 @@ module OursprivacyIngest
|
|
|
171
190
|
OursprivacyIngest::VisitorUpsertParams::IdentityContext
|
|
172
191
|
),
|
|
173
192
|
user_id: T.nilable(String),
|
|
193
|
+
visitor_id: T.nilable(String),
|
|
174
194
|
request_options: OursprivacyIngest::RequestOptions
|
|
175
195
|
}
|
|
176
196
|
)
|
|
@@ -194,6 +214,10 @@ module OursprivacyIngest
|
|
|
194
214
|
sig { returns(T.nilable(String)) }
|
|
195
215
|
attr_accessor :ad_id
|
|
196
216
|
|
|
217
|
+
# Leading and trailing whitespace is removed before validation.
|
|
218
|
+
sig { returns(T.nilable(String)) }
|
|
219
|
+
attr_accessor :adct
|
|
220
|
+
|
|
197
221
|
# Leading and trailing whitespace is removed before validation.
|
|
198
222
|
sig { returns(T.nilable(String)) }
|
|
199
223
|
attr_accessor :admitad_uid
|
|
@@ -502,6 +526,7 @@ module OursprivacyIngest
|
|
|
502
526
|
params(
|
|
503
527
|
_ef_transaction_id: T.nilable(String),
|
|
504
528
|
ad_id: T.nilable(String),
|
|
529
|
+
adct: T.nilable(String),
|
|
505
530
|
admitad_uid: T.nilable(String),
|
|
506
531
|
adset_id: T.nilable(String),
|
|
507
532
|
affiliatly_v3: T.nilable(String),
|
|
@@ -601,6 +626,8 @@ module OursprivacyIngest
|
|
|
601
626
|
_ef_transaction_id: nil,
|
|
602
627
|
ad_id: nil,
|
|
603
628
|
# Leading and trailing whitespace is removed before validation.
|
|
629
|
+
adct: nil,
|
|
630
|
+
# Leading and trailing whitespace is removed before validation.
|
|
604
631
|
admitad_uid: nil,
|
|
605
632
|
adset_id: nil,
|
|
606
633
|
affiliatly_v3: nil,
|
|
@@ -735,6 +762,7 @@ module OursprivacyIngest
|
|
|
735
762
|
{
|
|
736
763
|
_ef_transaction_id: T.nilable(String),
|
|
737
764
|
ad_id: T.nilable(String),
|
|
765
|
+
adct: T.nilable(String),
|
|
738
766
|
admitad_uid: T.nilable(String),
|
|
739
767
|
adset_id: T.nilable(String),
|
|
740
768
|
affiliatly_v3: T.nilable(String),
|
|
@@ -1958,6 +1986,11 @@ module OursprivacyIngest
|
|
|
1958
1986
|
sig { returns(T.nilable(String)) }
|
|
1959
1987
|
attr_accessor :ad_id
|
|
1960
1988
|
|
|
1989
|
+
# The AdRoll Click ID (adct) from the landing URL. Ex: adct123 Leading and
|
|
1990
|
+
# trailing whitespace is removed before validation.
|
|
1991
|
+
sig { returns(T.nilable(String)) }
|
|
1992
|
+
attr_accessor :adct
|
|
1993
|
+
|
|
1961
1994
|
# The Admitad (Mitgo) affiliate Click ID. Ex: admitad_uid_abc123 Leading and
|
|
1962
1995
|
# trailing whitespace is removed before validation.
|
|
1963
1996
|
sig { returns(T.nilable(String)) }
|
|
@@ -2378,6 +2411,7 @@ module OursprivacyIngest
|
|
|
2378
2411
|
_ef_transaction_id: T.nilable(String),
|
|
2379
2412
|
active_duration: T.nilable(Float),
|
|
2380
2413
|
ad_id: T.nilable(String),
|
|
2414
|
+
adct: T.nilable(String),
|
|
2381
2415
|
admitad_uid: T.nilable(String),
|
|
2382
2416
|
adset_id: T.nilable(String),
|
|
2383
2417
|
affiliatly_v3: T.nilable(String),
|
|
@@ -2473,6 +2507,9 @@ module OursprivacyIngest
|
|
|
2473
2507
|
# The ad id detected in the session. This is set by the web sdk automatically.
|
|
2474
2508
|
# Leading and trailing whitespace is removed before validation.
|
|
2475
2509
|
ad_id: nil,
|
|
2510
|
+
# The AdRoll Click ID (adct) from the landing URL. Ex: adct123 Leading and
|
|
2511
|
+
# trailing whitespace is removed before validation.
|
|
2512
|
+
adct: nil,
|
|
2476
2513
|
# The Admitad (Mitgo) affiliate Click ID. Ex: admitad_uid_abc123 Leading and
|
|
2477
2514
|
# trailing whitespace is removed before validation.
|
|
2478
2515
|
admitad_uid: nil,
|
|
@@ -2729,6 +2766,7 @@ module OursprivacyIngest
|
|
|
2729
2766
|
_ef_transaction_id: T.nilable(String),
|
|
2730
2767
|
active_duration: T.nilable(Float),
|
|
2731
2768
|
ad_id: T.nilable(String),
|
|
2769
|
+
adct: T.nilable(String),
|
|
2732
2770
|
admitad_uid: T.nilable(String),
|
|
2733
2771
|
adset_id: T.nilable(String),
|
|
2734
2772
|
affiliatly_v3: T.nilable(String),
|
|
@@ -3,16 +3,16 @@
|
|
|
3
3
|
module OursprivacyIngest
|
|
4
4
|
module Resources
|
|
5
5
|
class Track
|
|
6
|
-
# Track events from your server. Include
|
|
6
|
+
# Track events from your server. Include visitorId, externalId, email, or
|
|
7
7
|
# userProperties.phone_number to associate the event with an existing visitor.
|
|
8
|
-
# Identity resolution runs in priority order:
|
|
8
|
+
# Identity resolution runs in priority order: visitorId (direct, no lookup) →
|
|
9
9
|
# externalId → email → userProperties.phone_number. Each lookup runs only if
|
|
10
10
|
# earlier identifiers did not resolve a visitor. Phone matching ignores common
|
|
11
11
|
# formatting and an international + or 00 prefix, but does not infer a country
|
|
12
|
-
# code. If you know both
|
|
13
|
-
# properties: null clears the existing value, while undefined, omitted
|
|
14
|
-
# empty strings are ignored. For entries inside custom_properties:
|
|
15
|
-
# undefined, and empty strings are all ignored (custom_properties use merge
|
|
12
|
+
# code. If you know both visitorId and externalId, send both. For top-level
|
|
13
|
+
# visitor properties: null clears the existing value, while undefined, omitted
|
|
14
|
+
# fields, and empty strings are ignored. For entries inside custom_properties:
|
|
15
|
+
# null, undefined, and empty strings are all ignored (custom_properties use merge
|
|
16
16
|
# semantics). See https://docs.oursprivacy.com/docs/data-types for details and
|
|
17
17
|
# common pitfalls.
|
|
18
18
|
sig do
|
|
@@ -45,6 +45,7 @@ module OursprivacyIngest
|
|
|
45
45
|
T.nilable(
|
|
46
46
|
OursprivacyIngest::TrackEventParams::UserProperties::OrHash
|
|
47
47
|
),
|
|
48
|
+
visitor_id: T.nilable(String),
|
|
48
49
|
request_options: OursprivacyIngest::RequestOptions::OrHash
|
|
49
50
|
).returns(OursprivacyIngest::Models::TrackEventResponse)
|
|
50
51
|
end
|
|
@@ -65,7 +66,7 @@ module OursprivacyIngest
|
|
|
65
66
|
# clients should send a string. Leading and trailing whitespace is removed before
|
|
66
67
|
# validation.
|
|
67
68
|
distinct_id: nil,
|
|
68
|
-
# The email address of a user. When
|
|
69
|
+
# The email address of a user. When visitorId is absent and externalId does not
|
|
69
70
|
# resolve a visitor, we search your account for a visitor with this email. If no
|
|
70
71
|
# match is found, we try userProperties.phone_number before creating a new
|
|
71
72
|
# visitor. Leading and trailing whitespace is removed before validation.
|
|
@@ -77,11 +78,11 @@ module OursprivacyIngest
|
|
|
77
78
|
# strings. After normalization, the serialized JSON must be shorter than 1,048,576
|
|
78
79
|
# UTF-16 code units.
|
|
79
80
|
event_properties: nil,
|
|
80
|
-
# Your system's unique identifier for this user. When
|
|
81
|
-
# your account for an existing visitor with this externalId. If no match is
|
|
82
|
-
# we try email and then userProperties.phone_number before creating a new
|
|
83
|
-
# If you also have the
|
|
84
|
-
# removes the lookup round-trip. Non-string input is converted to text before
|
|
81
|
+
# Your system's unique identifier for this user. When visitorId is absent, we
|
|
82
|
+
# search your account for an existing visitor with this externalId. If no match is
|
|
83
|
+
# found, we try email and then userProperties.phone_number before creating a new
|
|
84
|
+
# visitor. If you also have the visitorId from cookies or local storage, send both
|
|
85
|
+
# — it removes the lookup round-trip. Non-string input is converted to text before
|
|
85
86
|
# validation; clients should send a string. Leading and trailing whitespace is
|
|
86
87
|
# removed before validation.
|
|
87
88
|
external_id: nil,
|
|
@@ -95,13 +96,21 @@ module OursprivacyIngest
|
|
|
95
96
|
time: nil,
|
|
96
97
|
# The Ours Visitor ID stored in local storage and cookies on your web properties.
|
|
97
98
|
# When present, this is used directly — no lookup by externalId, email, or phone
|
|
98
|
-
# is performed. If you have both a
|
|
99
|
-
# event is attached to the right visitor without any lookup overhead.
|
|
100
|
-
#
|
|
99
|
+
# is performed. If you have both a visitorId and an externalId, send both so the
|
|
100
|
+
# event is attached to the right visitor without any lookup overhead. visitorId
|
|
101
|
+
# takes precedence over the deprecated userId alias. Leading and trailing
|
|
102
|
+
# whitespace is removed before validation.
|
|
101
103
|
user_id: nil,
|
|
102
104
|
# Properties to set on the visitor. (optional) You can also update these
|
|
103
105
|
# properties via the identify endpoint.
|
|
104
106
|
user_properties: nil,
|
|
107
|
+
# The Ours Visitor ID stored in local storage and cookies on your web properties.
|
|
108
|
+
# When present, this is used directly — no lookup by externalId, email, or phone
|
|
109
|
+
# is performed. If you have both a visitorId and an externalId, send both so the
|
|
110
|
+
# event is attached to the right visitor without any lookup overhead. visitorId
|
|
111
|
+
# takes precedence over the deprecated userId alias. Leading and trailing
|
|
112
|
+
# whitespace is removed before validation.
|
|
113
|
+
visitor_id: nil,
|
|
105
114
|
request_options: {}
|
|
106
115
|
)
|
|
107
116
|
end
|