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

Pass "req.ext.prebid.targeting.includebrandcategory" To Bidders #3817

Merged
merged 4 commits into from
Nov 21, 2024

Conversation

SyntaxNode
Copy link
Contributor

Addresses #3305 for PBS-Go.

@@ -105,8 +105,7 @@
]
},
"includewinners": true,
"includebidderkeys": true,
"mediatypepricegranularity": {}
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changed mediatypepricegranularity and publisher to be omitted when empty. Not sure why this wasn't done initially. I doubt it was intentional.

@bsardo
Copy link
Collaborator

bsardo commented Nov 4, 2024

Hi @SyntaxNode, we recently released PBS 3.0, more specifically v3.1.0, which updates Prebid Server package import references throughout the project from v2 to v3.
For example:

import (
    "github.com/prebid/prebid-server/v3/adapters"
)

As a result, please merge with master (no rebase) and then ensure all Prebid Server package import references in the files you’ve changed are v3 so we can resume reviewing. Thanks!

@bsardo bsardo self-assigned this Nov 5, 2024
Copy link
Collaborator

@bsardo bsardo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Just a comment nitpick and conflicts need to be resolved.

@@ -3676,6 +3728,7 @@ func TestBuildExtData(t *testing.T) {
}
}

// fails
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Delete comment.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

image

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed

@SyntaxNode
Copy link
Contributor Author

Hi @SyntaxNode, we recently released PBS 3.0, more specifically v3.1.0, which updates Prebid Server package import references throughout the project from v2 to v3. For example:

import (
    "github.com/prebid/prebid-server/v3/adapters"
)

As a result, please merge with master (no rebase) and then ensure all Prebid Server package import references in the files you’ve changed are v3 so we can resume reviewing. Thanks!

image

bsardo
bsardo previously approved these changes Nov 21, 2024
if err := validatePriceGranularity(t.MediaTypePriceGranularity.Video); err != nil {
}

if mediaPriceGranularity := t.MediaTypePriceGranularity; mediaPriceGranularity != nil {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why are you making a copy of t.MediaTypePriceGranularity? It doesn't seem to be to protect the original from accidental modification.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This PR changes the MediaTypePriceGranularity field on the ExtRequestTargeting struct from a value to a pointer to match the rest of the targeting object. It looks like MediaTypePriceGranularity was intended to be a pointer since it has the omitemty directive which I noticed during this change wasn't working.

Therefore, this is not a copy. I'm assigning t.MediaTypePriceGranularity to a local variable to simplify the references from t.MediaTypePriceGranularity to directly mediaPriceGranularity .

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changed for clarity. If this syntax isn't clear, likely not a great idea.

@hhhjort
Copy link
Collaborator

hhhjort commented Nov 21, 2024

I just have that one little nitpick, otherwise it looks good.

Copy link
Collaborator

@hhhjort hhhjort left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@bsardo bsardo merged commit 3406b59 into prebid:master Nov 21, 2024
3 checks passed
scr-oath pushed a commit to scr-oath/prebid-server that referenced this pull request Dec 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants