diff --git a/modules/sonobiBidAdapter.js b/modules/sonobiBidAdapter.js index e66a1aa26069..d1d0949f6a04 100644 --- a/modules/sonobiBidAdapter.js +++ b/modules/sonobiBidAdapter.js @@ -114,7 +114,7 @@ export const spec = { height: Number(height), ad: createCreative(bidResponse.sbi_dc, bid.sbi_aid), ttl: 500, - creativeId: bid.sbi_aid, + creativeId: bid.sbi_crid || bid.sbi_aid, netRevenue: true, currency: 'USD' }; diff --git a/test/spec/modules/sonobiBidAdapter_spec.js b/test/spec/modules/sonobiBidAdapter_spec.js index d92553d66614..d7097f4927d4 100644 --- a/test/spec/modules/sonobiBidAdapter_spec.js +++ b/test/spec/modules/sonobiBidAdapter_spec.js @@ -237,6 +237,7 @@ describe('SonobiBidAdapter', () => { '/7780971/sparks_prebid_LB|30b31c1838de1f': { 'sbi_size': '300x600', 'sbi_apoc': 'remnant', + 'sbi_crid': '1234abcd', 'sbi_aid': '30292e432662bd5f86d90774b944b039', 'sbi_mouse': 1.07, }, @@ -268,7 +269,7 @@ describe('SonobiBidAdapter', () => { 'height': 600, 'ad': '', 'ttl': 500, - 'creativeId': '30292e432662bd5f86d90774b944b039', + 'creativeId': '1234abcd', 'netRevenue': true, 'currency': 'USD' },