File tree 2 files changed +9
-7
lines changed
2 files changed +9
-7
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,12 @@ import CONSTANTS from '../src/constants.json';
5
5
import * as url from '../src/url' ;
6
6
import * as utils from '../src/utils' ;
7
7
8
+ /**
9
+ * Analytics adapter from adxcg.com
10
+
11
+ * updated 201911 for prebid 3.0
12
+ */
13
+
8
14
const emptyUrl = '' ;
9
15
const analyticsType = 'endpoint' ;
10
16
const adxcgAnalyticsVersion = 'v2.01' ;
@@ -107,11 +113,8 @@ function mapBidWon (bidResponse) {
107
113
}
108
114
109
115
function send ( data ) {
110
- let location = utils . getTopWindowLocation ( ) ;
111
- let secure = location . protocol === 'https:' ;
112
-
113
116
let adxcgAnalyticsRequestUrl = url . format ( {
114
- protocol : secure ? 'https' : 'http ',
117
+ protocol : 'https' ,
115
118
hostname : adxcgAnalyticsAdapter . context . host ,
116
119
pathname : '/pbrx/v2' ,
117
120
search : {
@@ -145,14 +148,13 @@ adxcgAnalyticsAdapter.enableAnalytics = function (config) {
145
148
return ;
146
149
}
147
150
148
- let secure = location . protocol === 'https:' ;
149
151
adxcgAnalyticsAdapter . context = {
150
152
events : {
151
153
bidRequests : [ ] ,
152
154
bidResponses : [ ]
153
155
} ,
154
156
initOptions : config . options ,
155
- host : config . options . host || ( secure ? 'hbarxs.adxcg.net' : 'hbarx .adxcg.net')
157
+ host : config . options . host || ( 'hbarxs.adxcg.net' )
156
158
} ;
157
159
158
160
adxcgAnalyticsAdapter . originEnableAnalytics ( config ) ;
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ https://www.adxcg.com/
16
16
{
17
17
provider: 'adxcg',
18
18
options : {
19
- publisherId: [ "42"]
19
+ publisherId: "42"
20
20
}
21
21
}
22
22
You can’t perform that action at this time.
0 commit comments