Skip to content

Commit

Permalink
add ortb2Imp in Greenbids analytics module payload (#10591)
Browse files Browse the repository at this point in the history
  • Loading branch information
jbogp authored Oct 10, 2023
1 parent fe8918e commit 353bad4
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
1 change: 1 addition & 0 deletions modules/greenbidsAnalyticsAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ export const greenbidsAnalyticsAdapter = Object.assign(adapter({ANALYTICS_SERVER
...(adUnit.mediaTypes.video !== undefined) && {video: adUnit.mediaTypes.video},
...(adUnit.mediaTypes.native !== undefined) && {native: adUnit.mediaTypes.native}
},
ortb2Imp: adUnit.ortb2Imp || {},
bidders: [],
});
});
Expand Down
15 changes: 15 additions & 0 deletions test/spec/modules/greenbidsAnalyticsAdapter_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,13 @@ describe('Greenbids Prebid AnalyticsAdapter Testing', function () {
skip: 1,
protocols: [1, 2, 3, 4]
},
},
ortb2Imp: {
ext: {
data: {
adunitDFP: 'adunitcustomPathExtension'
}
}
}
},
],
Expand All @@ -266,6 +273,7 @@ describe('Greenbids Prebid AnalyticsAdapter Testing', function () {
sizes: [[300, 250], [300, 600]]
}
},
ortb2Imp: {},
bidders: [
{
bidder: 'greenbids',
Expand All @@ -281,6 +289,13 @@ describe('Greenbids Prebid AnalyticsAdapter Testing', function () {
},
{
code: 'adunit-2',
ortb2Imp: {
ext: {
data: {
adunitDFP: 'adunitcustomPathExtension'
}
}
},
mediaTypes: {
banner: {
sizes: [[300, 250], [300, 600]]
Expand Down

0 comments on commit 353bad4

Please sign in to comment.