Prebid.js icon indicating copy to clipboard operation
Prebid.js copied to clipboard

Proposal for Taxonomy Segments in FPD

Open sfrancolla opened this issue 6 years ago • 51 comments

Type of issue

Improvement

Description

This is a request for comment prior to next meeting (Dec 8).

The Taxonomy Taskforce has been presented with the below proposal from the taskforce's Prebid-IAB Tech Lab subcommittee. The subcommittee was created to zero-in on an agreeable structure for context and audience taxonomy segments and bring it back to the larger group.

Objectives were to support publisher, proprietary, and standardized segments with a simple structure that avoids significant repetitive text.

Additional Background

Proposal

With:

  • ext.segtax
    • [Optional] The ID for a taxonomy that is centrally registered. At present, it's assumed that the IAB would manage the registrations. Example taxonomy registry is hashed out underneath the json.
  • segment[].id
    • [Required] The ID of the segment that may or may not have a segtax affiliation. I.e. it’s fully proprietary when no ext.segtax is provided.

The proposed structure:

  "user": {
      "data": [
        {
          "name": "www.dataprovider1.com",
          "ext": {
            "segtax": 3
          },
          "segment": [
            { "id": "1001" }, 
            { "id": "1002" }
          ]
        },
        {
          "name": "www.dataprovider1.com",
          "ext": {
            "segtax": 501
          },
          "segment": [
            { "id": "123" }, 
            { "id": "456" }
          ]
        }
      ]
    },
"site": {
  "content": {
      "data": [
        {
          "name": "www.dataprovider1.com",
          "ext": {
            "segtax": 2
          },
          "segment": [
            { "id": "2001" }, 
            { "id": "2002" }
          ]
        },
        {
          "name": "www.dataprovider1.com",
          "ext": {
            "segtax": 502
          },
          "segment": [
            { "id": "123" }, 
            { "id": "456" }
          ]
        }
      ]
    }
}

Example Taxonomy Registry (Managed by IAB Tech Lab):

Taxonomy ID Taxonomy Type Version Description Link
1 Content 2.1 IAB - Content Taxonomy version 2.1 iab-content-2.1
2 Content 2.2 IAB - Content Taxonomy new version 2.2 iab-content-2.2
3 Audience 1.1 IAB - Audience iab-audience-1.1
501 Audience 1.0 Custom Audience custom-aud-1.0
502 Content 1.0 Custom Content custom-cont-1.0

*Note - numbers from 1-500 are reserved for standard taxonomy and 501 onwards can be used for custom / community agreed taxonomies.

sfrancolla avatar Dec 01 '20 03:12 sfrancolla

Thanks @sfrancolla - I fixed "context.data"" to "site.content.data"

bretg avatar Dec 01 '20 14:12 bretg

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Dec 25 '20 13:12 stale[bot]

I don't have a strong opinion about the data model, but I do have a strong opinion about using custom taxonomies. Magnite is probably going to pick one to support. We will map all the segments in the taxonomy we pick into our platform so that when we observe one in an ad request our exchange knows what to do with it.

jdwieland8282 avatar Jan 26 '21 21:01 jdwieland8282

Having a default standard taxonomy (that we decide upon in the committee) while also allowing the flexibility to specify some type of taxonomy id for backends that want to support multiple types of taxonomies is something that I think would make sense. This would make segment ids look something like user ids, where we have a type/id binding in Prebid that the modules can interact with.

antlauzon avatar Feb 02 '21 18:02 antlauzon

@sfrancolla can we add any doc on taxonomyname or other parts of this spec to https://docs.prebid.org/features/firstPartyData.html and close this out?

patmmccann avatar Mar 22 '21 15:03 patmmccann

should we replicate this into a pr at https://github.com/InteractiveAdvertisingBureau/openrtb/tree/master/extensions/community_extensions

patmmccann avatar Mar 22 '21 15:03 patmmccann

Question for this group in the context of the OpenRTB 2.6 discussions. If this is brand new, should this be an extension or be proposed as a change to 2.6? If new, and if things are stable / well defined, we might want to consider an actual change to the object model rather than go down the extensions path. Just putting that option out there.

amitshetty avatar Apr 08 '21 20:04 amitshetty

Notes from discussion for consideration:

Change taxonomyname -> segtax Keep segtax in ext IAB Audience Taxonomy -> iab_aud (or similar short code) IAB Content Taxonomy -> iab_cat (or similar short code) segtax version in the ext? Convert segtax from string to an enum? - would require people to do a pr to add their number to the enum list

patmmccann avatar Apr 09 '21 16:04 patmmccann

In response to @patmmccann's recommendation:

  • I have updated the ext.taxonomyname -> ext.segtax change in the issue.

Did we agree to the short codes at this time? If yes, I will update that as well.

Conversion from string to enum to be discussed.

sfrancolla avatar Apr 09 '21 16:04 sfrancolla

I am envisioning this kind of structure and enumeration:

"data": [
        {
          "name": "www.dataprovider1.com",
          "ext": { "segtax": "1" },
          "segment": [
            { "id": "1001" }, 
            { "id": "1002" }
          ]
        },
        {
          "name": "www.dataprovider2.com",
          "ext": { "segtax": "501" },
          "segment": [
            { "id": "123" }, 
            { "id": "456" }
          ]
        }
      ]
    }
Taxonomy ID Taxonomy Type Version Description Link
1 Content 2.1 IAB - Content Taxonomy version 2.1 iab-content-2.1
2 Content 2.2 IAB Content Taxonomy new version 2.2 iab-content-2.2
3 Audience 1.1 IAB - Audience iab-audience-1.1
501 Audience 1.0 Custom custom-aud-1.0

*Note - numbers from 1-500 is reserved for standard taxonomy 501 onwards can be used for custom / community agreed taxonomies.

abhinavsinha001 avatar Apr 09 '21 18:04 abhinavsinha001

Thanks @sfrancolla for updating the example at the top. One last question, custax is optional right, it can be omitted if a publisher decides its not relevant. In which case, the only change RTD maintainers and pubs (who have implemented this already) is to change user.data.ext.taxonomyname to user.data.ext.segtax

jdwieland8282 avatar Apr 14 '21 18:04 jdwieland8282

I don't think different keys for conveying same information is a good design/standard approach. Causes parsing overhead and requires special logic.

In short we should not have segtax and custax represent taxonomy name. Also this approach of custom taxonomy can have conflicts and collision.

If I understand the intention correctly , it is to allow unrestricted way of defining and using taxonomies without the need for IAB doc update.If that is the case I would propose using Taxonomy provider (taxprovider) to be used and only requires provider ID update in IAB documentation.

If we want to do away with that overhead of updating provider ID as well - we can use domain as taxonomy provider iab.com and prebid.org as taxprovider

"data": [
        {
          "name": "www.dataprovider1.com",
          "ext": { "segtax": "1" , "taxprovider":"1" },
          "segment": [
            { "id": "1001" }, 
            { "id": "1002" }
          ]
        },
        {
          "name": "www.dataprovider2.com",
          "ext": { "segtax": "1" , "taxprovider":"2" },
          "segment": [
            { "id": "123" }, 
            { "id": "456" }
          ]
        }
      ]
    }
Taxonomy ID Taxonomy Type Version Description Link
1 Content 2.1 IAB - Content Taxonomy version 2.1 iab-content-2.1
2 Content 2.2 IAB Content Taxonomy new version 2.2 iab-content-2.2
3 Audience 1.1 IAB - Audience iab-audience-1.1
Taxonomy Provider ID Provider Name Taxonomy Location
1 IAB https://iabtechlab.com/wp-content/uploads/
2 Prebid https://prebid.org/custom-taxonomy/
3 New Provider https://newprovider.com/taxonomy/

abhinavsinha001 avatar Apr 14 '21 21:04 abhinavsinha001

Agree @abhinavsinha001. There will be scenarios where non-IAB taxonomies are utilized and being able to specify the provider is important in order to avoid potential id range conflicts.

antlauzon avatar Apr 14 '21 23:04 antlauzon

Quick note that the proposal has been updated in full.

This is open to a 2-week comment period, having started from Tues, April 13.

Comments will be reviewed as they come in with the aim of a final discussion taking place at the next Taxonomy Taskforce meeting on Tues, April 27.

Please continue the discussion here.

Thanks!

sfrancolla avatar Apr 15 '21 09:04 sfrancolla

I will add to @abhinavsinha001's objection to adding custtax. The point of making the taxonomy an enumeration is to save space over the wire. Adding a string field means 1. potential for the two fields to disagree and 2. the string is the path of least resistance. It seems the string has been added back on the assumption that there will be some problem governing the enumerated list.

It would be vastly better to tackle governance. E.g., if this is a Prebid-owned extension, then Prebid can decide to govern the list -- if a simple/fast approach is deemed sufficient and satisfactory, so be it.

In addition, segtax and taxprovider should be typed as integers/enums, not strings, for the same reason as above -- allowing arbitrary strings means the enumerability can/will be ignored. (Anybody coding ahead of the spec being final does so at their own risk.)

Finally, if it's necessary to break out taxprovider from segtax, then why not go all the way and have separate fields for the provider, type, and version? (To follow OpenRTB, which I would encourage, the single enumerated field should be sufficient.)

simontrasler avatar Apr 16 '21 16:04 simontrasler

I do not follow the case for taxprovider; it appears completely redundant with other information.

Agreed on segtax being an integer.

The case for custtax is largely around concerns on the gatekeeping of the enum 5xx + list, particularly by a body that publishes one of the competing taxonomies. @simontrasler are you suggesting it is possible for Prebid to be that gatekeeper? I think that would alleviate those concerns.

patmmccann avatar Apr 16 '21 17:04 patmmccann

are you suggesting it is possible for Prebid to be that gatekeeper?

Yes. I don't see why that would be a problem, and I'd certainly choose that over propagating strings.

simontrasler avatar Apr 16 '21 18:04 simontrasler

I do not follow the case for taxprovider; it appears completely redundant with other information.

@patmmccann Introducing taxonomy provider is a middle ground where instead of updating each taxonomy version/updates and ID in central doc(IAB governed) there can be consortium/ providers (Prebid) who can register once (providing taxonomy hosting location) and manage/create/update taxonomies & ids. This will reduce overall governance overhead.

abhinavsinha001 avatar Apr 16 '21 18:04 abhinavsinha001

@abhinavsinha001 do you foresee taxprovider always being the same as the data provider, just a numerical id? @patmmccann i can imagine that data providers may under some circumstances want to reference a taxonomy from a different provider than themselves. also, having a range of taxonomy identifiers [1..n] that is unique for each taxonomy provider makes sense to me. it minimizes potential collisions and red-tape around what segtax id ranges mean what and what taxonomy provider gets which id ranges allocated to them by who. the default segtax range in the absence of taxprovider could just be iab. if taxprovider happens to be present the overhead byte-wise is negligible.

antlauzon avatar Apr 18 '21 04:04 antlauzon

@abhinavsinha001 do you foresee taxprovider always being the same as the data provider, just a numerical id?

@anthonylauzon No I do not think that is the case and ideally we should not have that level of fragmentation where everyone defines their own taxonomy. Defeats the purpose of "standard".

abhinavsinha001 avatar Apr 18 '21 09:04 abhinavsinha001