Skip to content
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

Prebid Server Long Form Video Deal Support Changes #1174

Closed
camrice opened this issue Jan 24, 2020 · 2 comments
Closed

Prebid Server Long Form Video Deal Support Changes #1174

camrice opened this issue Jan 24, 2020 · 2 comments
Labels
PBS-Java Ready For Dev Feature specification is ready to be developed.

Comments

@camrice
Copy link
Contributor

camrice commented Jan 24, 2020

Below is a work in progress write up of the intended changes.

Deal Support

Overview

Bids that contain deals may need to be updated with a bidder defined prefix and priority level. This will be reflected in the hb_pb_cat_dur value in the resulting adPod. The field hb_pb_cat_duris usually formed with {price bucket}_{industry code}_{duration}. With this feature, hb_pb_cat_dur will instead be formed by {bidder prefix}{deal priority}_{industry code}_{duration} if all conditions are met.

Example:

Original:

"adPods": [
    {
        "podid": 1,
        "targeting": [
            {
                "hb_pb": "15.00",
                "hb_pb_cat_dur": "15.00_food_30s",
                "hb_cache_id": "420d7329-30e8-4c4e-8eaa-fe937172e4e0"
            }
        ],
        "errors": null
    }
],

Modified:

"adPods": [
    {
        "podid": 1,
        "targeting": [
            {
                "hb_pb": "15.00",
                "hb_pb_cat_dur": "tier7_food_30s",
                "hb_cache_id": "420d7329-30e8-4c4e-8eaa-fe937172e4e0"
            }
        ],
        "errors": null
    }
],

In order for the modification to occur, there are a few pieces that need to be setup. The configuration must contain a dealTier object that holds the prefix and minDealTier values. The request to Prebid Server must also enable this feature through the SupportDeals field. Note that in order for ImpBus to return the deal priority for resulting bids, deals must be configured for the target campaign outside of Prebid Server.

Prebid Configuration

The prefix and minimum deal tier must be defined in the Prebid configuration in order for the key to be updated. These are set per bidder in a dealTier object.

Field Type Description
dealTier 'Object' Contains prefix and minimum deal tier values
dealTier.prefix 'String' The prefix string that is added to hb_pb_cat_dur. Must be non-empty.
dealTier.minDealTier 'Integer' The minimum deal priority value (inclusive) that must be met for modification to occur. Must be greater than 0.

Example:

[
    {
        "params": {
            "dealTier": {
                "prefix": "tier",
                "minDealTier": 5
            },
            "placementId": 12345678
        },
        "bidder": "bidder_name"
    }
]

Video Request

The request for the video endpoint contains a new boolean field: SupportDeals. If omitted, the default value for SupportDeals is false. The field exists in the top level of the request.

Example:

{
    ...
    "supportdeals": true,
    ...
}

Example Modification of hb_pb_cat_dur

For this example, assume there is a Prebid configuration as follows:

[
    {
        "params": {
            "dealTier": {
                "prefix": "firstprefix",
                "minDealTier": 5
            },
            "placementId": 12345678
        },
        "bidder": "bidder1"
    },
    {
        "params": {
            "dealTier": {
                "prefix": "secondprefix",
                "minDealTier": 8
            },
            "placementId": 12345678
        },
        "bidder": "bidder2"
    }, 
]

Also assume the following result for the auction:

Impression Winner Original hb_pb_cat_dur Bid Deal Priority
1 bidder1 10.00_movies_30s 6
2 bidder2 10.00_medicine_30s 7

Due to the deal priorities received, only the hb_pb_cat_dur for "bidder1" will be updated, as shown in this example response:

"adPods": [
    {
        "podid": 1,
        "targeting": [
            {
                "hb_pb": "10.00",
                "hb_pb_cat_dur": "firstprefix6_movies_30s",
                "hb_cache_id": "420d7329-30e8-4c4e-8eaa-fe937172e4e0"
            },
            {
                "hb_pb": "10.00",
                "hb_pb_cat_dur": "10.00_medicine_30s",
                "hb_cache_id": "420d7329-30e8-4c4e-8eaa-fe937172e4e0"
            }
        ],
        "errors": null
    }
],
@SyntaxNode SyntaxNode added the Intent to implement An issue describing a plan for a major feature. These are intended for community feedback label Jan 24, 2020
@bretg bretg changed the title Prebid Server Deal Support Changes Prebid Server Long Form Video Deal Support Changes Jul 20, 2020
@bretg bretg added the PBS-Java label Jul 20, 2020
@SyntaxNode SyntaxNode added Ready For Dev Feature specification is ready to be developed. and removed Intent to implement An issue describing a plan for a major feature. These are intended for community feedback labels Sep 7, 2022
@bretg bretg removed the projectboard label Sep 8, 2022
@bretg bretg moved this from Triage to Clarify Request in Prebid Server Prioritization Dec 2, 2022
@bretg bretg moved this from Clarify Request to Ready for Dev in Prebid Server Prioritization Dec 2, 2022
@bretg
Copy link
Contributor

bretg commented Dec 2, 2022

Don't see that this has been ported yet to PBS-Java. Opened a low-pri ticket internally.

@bretg
Copy link
Contributor

bretg commented Sep 8, 2023

Cancelling due to pending video endpoint deprecation

@bretg bretg closed this as completed Sep 8, 2023
@github-project-automation github-project-automation bot moved this from Ready for Dev to Done in Prebid Server Prioritization Sep 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
PBS-Java Ready For Dev Feature specification is ready to be developed.
Projects
Status: Done
Development

No branches or pull requests

3 participants