-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
OpenRTB 2.6-202409 + AdCom v1.0-202409 #16
Changes from 2 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
package adcom1 | ||
|
||
// MatchMethod represents various ways an ID could be matched to an ad request, and if they pertain to a single property or app. | ||
// It should be used on conjunction with the mm attribute in Object: EID of OpenRTB 2.x. | ||
type MatchMethod int64 | ||
|
||
// Various ways an ID could be matched to an ad request | ||
const ( | ||
MatchMethodUnknown MatchMethod = 0 | ||
MatchMethodNoMatch MatchMethod = 1 // No matching has occurred. The associated ID came directly from a 3rd-party cookie or OS-provided resettable device ID for advertising (IFA). | ||
MatchMethodBrowserCookieSync MatchMethod = 2 // Real time cookie sync as described in Appendix C (Cookie Based ID Syncing) of OpenRTB 2.x. | ||
MatchMethodAuthenticated MatchMethod = 3 // ID match was based on user authentication such as an email login or hashed PII. | ||
MatchMethodObserved MatchMethod = 4 // ID match was based on a 1st party observation, but without user authentication (e.g. GUID, SharedID, Session IDs, CHIPS or other 1st party cookies contained in localStorage). | ||
MatchMethodInference MatchMethod = 5 // ID match was inferred from linkage based on non-authenticated features across multiple browsers or devices (e.g. IP address and/or UserAgent). | ||
) |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,13 +9,53 @@ import "encoding/json" | |
// The exchange should ensure that business agreements allow for the sending of this data. | ||
type EID struct { | ||
|
||
// Attribute: | ||
// inserter | ||
// Type: | ||
// string | ||
// Description: | ||
// The canonical domain name of the entity (publisher, publisher monetization | ||
// company, SSP, Exchange, Header Wrapper, etc.) that caused the ID array element | ||
// to be added. This may be the operational domain of the system, if that is | ||
// different from the parent corporate domain, to facilitate WHOIS and reverse IP | ||
// lookups to establish clear ownership of the delegate system. | ||
// | ||
// This should be the same value as used to identify sellers in an ads.txt file if | ||
// one exists. | ||
// | ||
// For ad tech intermediaries, this would be the domain as used in ads.txt. For | ||
// publishers, this would match the domain in the `site` or `app` object. | ||
Inserter string `json:"inserter,omitempty"` | ||
|
||
// Attribute: | ||
// matcher | ||
// Type: | ||
// string | ||
// Description: | ||
// Technology providing the match method as defined in mm. | ||
// | ||
// In some cases, this may be the same value as inserter. | ||
// | ||
// When blank, it is assumed that the matcher is equal to the source | ||
// | ||
// May be omitted when mm=0, 1, or 2. | ||
Matcher string `json:"matcher,omitempty"` | ||
|
||
// Attribute: | ||
// mm | ||
// Type: | ||
// integer | ||
// Description: | ||
// Match method used by the matcher. Refer to List: Delivery Methods | ||
// in AdCOM 1.0. | ||
MM int64 `json:"mm,omitempty"` | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Implementing as omitempty instead of a pointer following our "zero value has no meaning" convention. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Should the type be There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes. Fixed. |
||
|
||
// Attribute: | ||
// source | ||
// Type: | ||
// string | ||
// Description: | ||
// Source or technology provider responsible for the set of | ||
// included IDs. Expressed as a top-level domain. | ||
// Canonical domain of the ID. | ||
Source string `json:"source,omitempty"` | ||
|
||
// Attribute: | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this be
"Refer to List: ID Match Methods"
?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes. Fixed.