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

Handle multi imp requests #2

Merged
merged 7 commits into from
Dec 3, 2020
Merged

Conversation

curlyblueeagle
Copy link
Collaborator

No description provided.

@@ -104,36 +110,35 @@ func preprocess(request *openrtb.BidRequest) error {
impExt.Ttx.Prod = ttxExt.ProductId

// Add zoneid if it's defined
impExt.Ttx.Zoneid = ttxExt.SiteId
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Please note that we will no longer be setting GUID under site.id, will use zoneID. This is to ensure that we can pass requests from app to TTX as well. TTX can decide independently how to handle this scenario,


if impCopy.Banner == nil && impCopy.Video == nil {
return openrtb.Imp{}, &errortypes.BadInput{
Message: fmt.Sprintf("Imp ID %s must have at one of [Banner, Video] defined", impCopy.ID),

Choose a reason for hiding this comment

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

typo "at least one"

@terryc33x
Copy link

do you mention this PR also includes the caller changes $.ext.ttx.caller?

@curlyblueeagle curlyblueeagle merged commit 8f35484 into master Dec 3, 2020
@curlyblueeagle curlyblueeagle deleted the handle_multi-imp_requests branch December 3, 2020 19:28
@curlyblueeagle curlyblueeagle restored the handle_multi-imp_requests branch December 3, 2020 19:49
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.

2 participants