@@ -31,9 +31,10 @@ describe('pubxai analytics adapter', () => {
31
31
} ) ;
32
32
33
33
describe ( 'track' , ( ) => {
34
+ const pubxId = '6c415fc0-8b0e-4cf5-be73-01526a4db625' ;
34
35
let initOptions = {
35
36
samplingRate : '1' ,
36
- pubxId : '6c415fc0-8b0e-4cf5-be73-01526a4db625' ,
37
+ pubxId : pubxId ,
37
38
} ;
38
39
39
40
let originalVS ;
@@ -148,7 +149,7 @@ describe('pubxai analytics adapter', () => {
148
149
timeout : 1000 ,
149
150
config : {
150
151
samplingRate : '1' ,
151
- pubxId : '6c415fc0-8b0e-4cf5-be73-01526a4db625' ,
152
+ pubxId : pubxId ,
152
153
} ,
153
154
} ,
154
155
bidRequested : {
@@ -529,7 +530,7 @@ describe('pubxai analytics adapter', () => {
529
530
null ,
530
531
auctionId : 'bc3806e4-873e-453c-8ae5-204f35e923b4' ,
531
532
sizes : '300x250' ,
532
- renderStatus : 2 ,
533
+ bidType : 2 ,
533
534
requestTimestamp : 1616654312804 ,
534
535
creativeId : 96846035 ,
535
536
currency : 'USD' ,
@@ -651,7 +652,7 @@ describe('pubxai analytics adapter', () => {
651
652
placementId : 13144370 ,
652
653
renderedSize : '300x250' ,
653
654
sizes : '300x250' ,
654
- renderStatus : 4 ,
655
+ bidType : 4 ,
655
656
responseTimestamp : 1616654313071 ,
656
657
requestTimestamp : 1616654312804 ,
657
658
status : 'rendered' ,
@@ -764,6 +765,7 @@ describe('pubxai analytics adapter', () => {
764
765
auctionTimestamp : '1616654312804' ,
765
766
pubxaiAnalyticsVersion : 'v2.0.0' ,
766
767
prebidVersion : '$prebid.version$' ,
768
+ pubxId : pubxId ,
767
769
} ) ;
768
770
expect ( expectedData . type ) . to . equal ( 'text/json' ) ;
769
771
expect ( JSON . parse ( await readBlobSafariCompat ( expectedData ) ) ) . to . deep . equal ( [
@@ -807,6 +809,7 @@ describe('pubxai analytics adapter', () => {
807
809
auctionTimestamp : '1616654312804' ,
808
810
pubxaiAnalyticsVersion : 'v2.0.0' ,
809
811
prebidVersion : '$prebid.version$' ,
812
+ pubxId : pubxId ,
810
813
} ) ;
811
814
812
815
// Step 9: check that the data sent in the request is correct
@@ -932,6 +935,7 @@ describe('pubxai analytics adapter', () => {
932
935
auctionTimestamp : '1616654312804' ,
933
936
pubxaiAnalyticsVersion : 'v2.0.0' ,
934
937
prebidVersion : '$prebid.version$' ,
938
+ pubxId : pubxId ,
935
939
} ) ;
936
940
expect ( expectedData . type ) . to . equal ( 'text/json' ) ;
937
941
expect ( JSON . parse ( await readBlobSafariCompat ( expectedData ) ) ) . to . deep . equal ( [
@@ -1048,6 +1052,7 @@ describe('pubxai analytics adapter', () => {
1048
1052
auctionTimestamp : '1616654312804' ,
1049
1053
pubxaiAnalyticsVersion : 'v2.0.0' ,
1050
1054
prebidVersion : '$prebid.version$' ,
1055
+ pubxId : pubxId ,
1051
1056
} ) ;
1052
1057
expect ( expectedData . type ) . to . equal ( 'text/json' ) ;
1053
1058
expect ( JSON . parse ( await readBlobSafariCompat ( expectedData ) ) ) . to . deep . equal ( [
0 commit comments