Prebid.js icon indicating copy to clipboard operation
Prebid.js copied to clipboard

Criteo Bid Adapter: incorrect request ids in interpreted response

Open GeneGenie opened this issue 4 years ago • 5 comments

Type of issue

criteoBidAdapter.js bug

Description

And the goal of any analytics - to track down performance of each individual bidder config. Which is impossible right now.

When adunit bid list has several criteo bidders and one of them doesn't have zoneId, e.g only networkId param or several bidders that have only networkId param, and at least 2 of bidders gave bid response, than all bid responses return Which is especially critical since Criteo is deprecating zoneId

Expected problem is here (taking in account that criteo external publishertag.js has the same logic) const bidRequest = find(request.bidRequests, b => b.adUnitCode === slot.impid && (!b.params.zoneId || parseInt(b.params.zoneId) === slot.zoneid));

Steps to reproduce

Consider following config

adunits: [{
                'code': 'hb_unit',
                'bids': [
                    {
                        'bidder': 'criteo',
                        'params': {networkId: **REPLACE_ME**},
                    },{
                        'bidder': 'criteo',
                        'params': {networkId: **REPLACE_ME**},
                    },

                ],
                'mediaTypes': {
                    banner: {sizes:[[300,250]]},
                }
}]

Test page

https://jsfiddle.net/yq2d9g8p/ Insert network id that will respond

Expected results

See log: RequestedId: 2ceb03cc4b3851 RequestedId: 379112e5626bff Responded requestId: 2ceb03cc4b3851 Responded requestId: 379112e5626bff

Actual results

RequestedId: 2ceb03cc4b3851 RequestedId: 379112e5626bff Responded requestId: 2ceb03cc4b3851 Responded requestId: 2ceb03cc4b3851

Other information

This is adapter-server issue coz server do not return requestId reference, so bidAdapter doesn't do exact bidId-requestId matching

GeneGenie avatar Aug 04 '22 10:08 GeneGenie

As a workaround for now we'll use individual aliasing of each "networkId" criteo bid adapter, ofcourse it will produce additional request to criteo server.

GeneGenie avatar Aug 04 '22 10:08 GeneGenie

@leonardlabat could you comment?

patmmccann avatar Aug 04 '22 12:08 patmmccann

hi @GeneGenie I dont fully understand what you are trying to achieve with this setup, the Criteo bidder should be initiated only once per adunit. I advise you to reach out to your Criteo representative to discuss what you are trying to solve and find a solution.

allanjun avatar Aug 04 '22 14:08 allanjun

@allanjun i'm not really into accounting staff. I am a technician =) What I know is - one Criteo bidder is configured for native ads, and the other for banner, one has zoneId the other doesn't example shows the simplest way to reproduce technical issue. I will pass the advice to contact Criteo support Thank you

GeneGenie avatar Aug 04 '22 14:08 GeneGenie

@GeneGenie why don't you just alias criteo on the second call? Cafemedia for example, aliases Index as Roundel for this exact reason, to pass a second account level id param.

patmmccann avatar Aug 15 '22 15:08 patmmccann