Skip to content

Commit 382f793

Browse files
authored
ConenctAd Adapter Update (#3715)
1 parent 536821f commit 382f793

File tree

3 files changed

+45
-26
lines changed

3 files changed

+45
-26
lines changed

adapters/connectad/params_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,13 @@ func TestInvalidParams(t *testing.T) {
3636
var validParams = []string{
3737
`{"siteId": 123456, "networkId": 123456, "bidfloor": 0.10}`,
3838
`{"siteId": 123456, "networkId": 123456}`,
39+
`{"siteId": 123456, "networkId": "123456", "bidfloor": 0.10}`,
40+
`{"siteId": "123456", "networkId": 123456, "bidfloor": 0.10}`,
3941
}
4042

4143
var invalidParams = []string{
4244
`{}`,
4345
`null`,
44-
`{"siteId": 123456, "networkId": "123456", "bidfloor": 0.10}`,
45-
`{"siteId": "123456", "networkId": 123456, "bidfloor": 0.10}`,
4646
`{"siteId": 123456, "networkId": 123456, "bidfloor": "0.10"}`,
4747
`{"siteId": "123456"}`,
4848
`{"networkId": 123456}`,

static/bidder-info/connectad.yaml

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,29 @@
1+
# Please uncomment the appropriate endpoint URL for your datacenter
2+
# Europe
13
endpoint: "http://bidder.connectad.io/API?src=pbs"
4+
# North/South America
5+
# endpoint: "http://bidder-us.connectad.io/API?src=pbs"
6+
# APAC
7+
# endpoint: "http://bidder-apac.connectad.io/API?src=pbs"
8+
geoscope:
9+
- global
210
maintainer:
311
email: "support@connectad.io"
12+
endpointCompression: gzip
413
gvlVendorID: 138
514
capabilities:
615
app:
716
mediaTypes:
8-
- banner
17+
- banner
918
site:
1019
mediaTypes:
11-
- banner
20+
- banner
1221
userSync:
13-
iframe:
14-
url: "https://cdn.connectad.io/connectmyusers.php?gdpr={{.GDPR}}&consent={{.GDPRConsent}}&us_privacy={{.USPrivacy}}&cb={{.RedirectURL}}"
22+
redirect:
23+
url: "https://sync.connectad.io/ImageSyncer?gdpr={{.GDPR}}&consent={{.GDPRConsent}}&us_privacy={{.USPrivacy}}&gpp={{.GPP}}&gpp_sid={{.GPPSID}}&cb={{.RedirectURL}}"
1524
userMacro: ""
1625
# connectad appends the user id to end of the redirect url and does not utilize a macro
26+
iframe:
27+
url: "https://sync.connectad.io/iFrameSyncer?gdpr={{.GDPR}}&consent={{.GDPRConsent}}&us_privacy={{.USPrivacy}}&gpp={{.GPP}}&gpp_sid={{.GPPSID}}&cb={{.RedirectURL}}"
28+
userMacro: ""
29+
# connectad appends the user id to end of the redirect url and does not utilize a macro

static/bidder-params/connectad.json

Lines changed: 26 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,30 @@
11

22
{
3-
"$schema": "http://json-schema.org/draft-04/schema#",
4-
"title": "ConnectAd S2S dapter Params",
5-
"description": "A schema which validates params accepted by the ConnectAd Adapter",
6-
7-
"type": "object",
8-
"properties": {
9-
"networkId": {
10-
"type": "integer",
11-
"description": "NetworkId"
12-
},
13-
"siteId": {
14-
"type": "integer",
15-
"description": "SiteId"
16-
},
17-
"bidfloor": {
18-
"type": "number",
19-
"description": "Requests Floorprice"
20-
}
3+
"$schema": "http://json-schema.org/draft-04/schema#",
4+
"title": "ConnectAd S2S dapter Params",
5+
"description": "A schema which validates params accepted by the ConnectAd Adapter",
6+
7+
"type": "object",
8+
"properties": {
9+
"networkId": {
10+
"type": [
11+
"integer",
12+
"string"
13+
],
14+
"description": "NetworkId"
15+
},
16+
"siteId": {
17+
"type": [
18+
"integer",
19+
"string"
20+
],
21+
"description": "SiteId"
2122
},
22-
"required": ["networkId", "siteId"]
23-
}
23+
"bidfloor": {
24+
"type": "number",
25+
"description": "Requests Floorprice"
26+
}
27+
},
28+
"required": ["networkId", "siteId"]
29+
}
2430

0 commit comments

Comments
 (0)