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

Stored auction response is returning empty string for bid.ext.prebid.type field #2614

Closed
camrice opened this issue Mar 1, 2023 · 5 comments
Assignees

Comments

@camrice
Copy link
Contributor

camrice commented Mar 1, 2023

When using a request with an imp.storedauctionresponse.id, the response will contain an empty bid.ext.prebid.type field, even if this field is included in the stored auction response. The response from Prebid Server will instead contain an empty string. Example response below:

{
    "bid": {
        ...
        "ext": {
            "appnexus": {
                "auction_id": 4567,
                "bid_ad_type": 3,
                "bidder_id": 2,
                "brand_id": 1
            },
            "origbidcpm": 0,
            "origbidcur": "USD",
            "prebid": {
                "meta": {
                    "adaptercode": "appnexus"
                },
                "type": "",
                "bidid": "af3a5b4b-25d8-4c50-8e72-d7fdf6535382"
            }
        }
    }
}

Initial findings below from @VeronikaSolovei9 :

The Prebid type field is present on stored bid responses because these responses will go through MakeBids() and will populate the field. In the case of using the Appnexus adapter and a stored auction response, there is a portion that gets missed in appnexus.go line 403:

bidResponse.Bids = append(bidResponse.Bids, &adapters.TypedBid{
						Bid:          &bid,
						BidType:      bidType,
						BidVideo:     impVideo,
						DealPriority: bidExt.Appnexus.DealPriority,
					})

This seems to be needed for the field to work with auction responses.

@VeronikaSolovei9
Copy link
Contributor

Thank you Cameron, good finding!

@camrice
Copy link
Contributor Author

camrice commented Mar 1, 2023

Thank you for looking into this Veronika! I'll be in touch for any updates.

@VeronikaSolovei9
Copy link
Contributor

Fix PR: #2615

@camrice
Copy link
Contributor Author

camrice commented Mar 28, 2023

Sorry for the late update, but I wanted to confirm that this is now working for our usage. Thank you!

@bretg
Copy link
Contributor

bretg commented Jun 6, 2023

Confirmed this is not a problem in PBS-Java.

@bretg bretg closed this as completed Jun 6, 2023
@bretg bretg removed the PBS-Java label Jun 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

No branches or pull requests

4 participants