Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 19 additions & 6 deletions adapters/thetradedesk/thetradedesk.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,25 @@ func (a *adapter) MakeRequests(request *openrtb2.BidRequest, reqInfo *adapters.E

if imp.Banner != nil {
if len(imp.Banner.Format) > 0 {
firstFormat := imp.Banner.Format[0]
bannerCopy := *imp.Banner
bannerCopy.H = &firstFormat.H
bannerCopy.W = &firstFormat.W
imp.Banner = &bannerCopy

if supplySourceId == "directtqmrw45y" {
bannerCopy := *imp.Banner
bannerCopy.Format = []openrtb2.Format{
{
H: 480,
W: 320,
},
}
firstFormat := bannerCopy.Format[0]
bannerCopy.H = &firstFormat.H
bannerCopy.W = &firstFormat.W
imp.Banner = &bannerCopy
} else {
firstFormat := imp.Banner.Format[0]
bannerCopy := *imp.Banner
bannerCopy.H = &firstFormat.H
bannerCopy.W = &firstFormat.W
imp.Banner = &bannerCopy
}
Copy link
Author

@zwl-williamzha zwl-williamzha Jun 25, 2025

Choose a reason for hiding this comment

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

Local Testing: Screenshot 2025-06-25 at 11 32 51 AM

Context: Screenshot 2025-06-25 at 11 33 35 AM

Copy link
Collaborator

Choose a reason for hiding this comment

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

can you move this logic to hook_bidder_request?

}
}

Expand Down
Loading