Skip to content

Commit 88a7fe9

Browse files
lovellharpere
authored andcommitted
Audience Network: upgrade bid requests to use latest SDK (prebid#3571)
1 parent 849ae8f commit 88a7fe9

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

modules/audienceNetworkBidAdapter.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ const ttl = 600;
1818
const videoTtl = 3600;
1919
const platver = '$prebid.version$';
2020
const platform = '241394079772386';
21-
const adapterver = '1.2.0';
21+
const adapterver = '1.3.0';
2222

2323
/**
2424
* Does this bid request contain valid parameters?
@@ -108,7 +108,7 @@ const isFullWidth = format => format === 'fullwidth';
108108
* @param {String} format
109109
* @returns {String}
110110
*/
111-
const sdkVersion = format => isVideo(format) ? '' : '5.5.web';
111+
const sdkVersion = format => isVideo(format) ? '' : '6.0.web';
112112

113113
/**
114114
* Which platform identifier should be used?

test/spec/modules/audienceNetworkBidAdapter_spec.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ const placementId = 'test-placement-id';
1919
const playerwidth = 320;
2020
const playerheight = 180;
2121
const requestId = 'test-request-id';
22-
const debug = 'adapterver=1.2.0&platform=241394079772386&platver=$prebid.version$&cb=test-uuid';
22+
const debug = 'adapterver=1.3.0&platform=241394079772386&platver=$prebid.version$&cb=test-uuid';
2323
const pageUrl = encodeURIComponent(utils.getTopWindowUrl());
2424

2525
describe('AudienceNetwork adapter', function () {
@@ -141,7 +141,7 @@ describe('AudienceNetwork adapter', function () {
141141
requestIds: [requestId],
142142
sizes: ['300x250'],
143143
url: 'https://an.facebook.com/v2/placementbid.json',
144-
data: `placementids[]=test-placement-id&adformats[]=300x250&testmode=false&pageurl=${pageUrl}&sdk[]=5.5.web&${debug}`
144+
data: `placementids[]=test-placement-id&adformats[]=300x250&testmode=false&pageurl=${pageUrl}&sdk[]=6.0.web&${debug}`
145145
}]);
146146
});
147147

@@ -179,7 +179,7 @@ describe('AudienceNetwork adapter', function () {
179179
requestIds: [requestId],
180180
sizes: ['728x90'],
181181
url: 'https://an.facebook.com/v2/placementbid.json',
182-
data: `placementids[]=test-placement-id&adformats[]=native&testmode=false&pageurl=${pageUrl}&sdk[]=5.5.web&${debug}`
182+
data: `placementids[]=test-placement-id&adformats[]=native&testmode=false&pageurl=${pageUrl}&sdk[]=6.0.web&${debug}`
183183
}]);
184184
});
185185

@@ -202,7 +202,7 @@ describe('AudienceNetwork adapter', function () {
202202
requestIds: [requestId],
203203
sizes: ['300x250'],
204204
url: 'https://an.facebook.com/v2/placementbid.json',
205-
data: `placementids[]=test-placement-id&adformats[]=300x250&testmode=false&pageurl=${pageUrl}&sdk[]=5.5.web&${debugPlatform}`
205+
data: `placementids[]=test-placement-id&adformats[]=300x250&testmode=false&pageurl=${pageUrl}&sdk[]=6.0.web&${debugPlatform}`
206206
}]);
207207
});
208208
});

0 commit comments

Comments
 (0)