Skip to content

Commit

Permalink
feat: add opaqueUserId and placementId fields to auction request desc…
Browse files Browse the repository at this point in the history
…ription (#135)

Document opaque_user_id and placement_id on auction calls
  • Loading branch information
jilanglois authored Jan 7, 2025
1 parent 7361547 commit 07a38ea
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions topsort-api-v2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -408,6 +408,23 @@ components:
- mobile
default: desktop

OpaqueUserID:
type: string
description:
An anonymized unique identifier that maps to the original user ID without revealing the original value and
should match the value used for events. The opaque user ID allows correlating user activity, such as Impressions,
Clicks and Purchases, whether or not they are actually logged in. It must be long lived (at least a year) so
that Topsort can attribute purchases. If your users are always logged in you may use a hash of your customer ID.
If your users may interact with your app or site while logged out we recommend generating a random identifier
(UUIDv4) on first load and store it on local storage (cookie, local storage, etc) and let it live for at least
a year.
example: 71303ce0-de89-496d-8270-6434589615e8

PlacementId:
type: integer
format: int32
description: The marketplace's ID of the placement where the ad will appear.

GeoTargeting:
type: object
description: An object describing geographical information associated with this auction.
Expand Down Expand Up @@ -446,6 +463,10 @@ components:
$ref: '#/components/schemas/Products'
geoTargeting:
$ref: '#/components/schemas/GeoTargeting'
opaqueUserId:
$ref: '#/components/schemas/OpaqueUserID'
placementId:
$ref: '#/components/schemas/PlacementId'
required:
- type
- slots
Expand Down Expand Up @@ -498,6 +519,10 @@ components:
minLength: 1
products:
$ref: '#/components/schemas/Products'
opaqueUserId:
$ref: '#/components/schemas/OpaqueUserID'
placementId:
$ref: '#/components/schemas/PlacementId'
required:
- type
- slots
Expand Down

0 comments on commit 07a38ea

Please sign in to comment.