File tree Expand file tree Collapse file tree 3 files changed +45
-26
lines changed Expand file tree Collapse file tree 3 files changed +45
-26
lines changed Original file line number Diff line number Diff line change @@ -36,13 +36,13 @@ func TestInvalidParams(t *testing.T) {
36
36
var validParams = []string {
37
37
`{"siteId": 123456, "networkId": 123456, "bidfloor": 0.10}` ,
38
38
`{"siteId": 123456, "networkId": 123456}` ,
39
+ `{"siteId": 123456, "networkId": "123456", "bidfloor": 0.10}` ,
40
+ `{"siteId": "123456", "networkId": 123456, "bidfloor": 0.10}` ,
39
41
}
40
42
41
43
var invalidParams = []string {
42
44
`{}` ,
43
45
`null` ,
44
- `{"siteId": 123456, "networkId": "123456", "bidfloor": 0.10}` ,
45
- `{"siteId": "123456", "networkId": 123456, "bidfloor": 0.10}` ,
46
46
`{"siteId": 123456, "networkId": 123456, "bidfloor": "0.10"}` ,
47
47
`{"siteId": "123456"}` ,
48
48
`{"networkId": 123456}` ,
Original file line number Diff line number Diff line change
1
+ # Please uncomment the appropriate endpoint URL for your datacenter
2
+ # Europe
1
3
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
2
10
maintainer :
3
11
email : " support@connectad.io"
12
+ endpointCompression : gzip
4
13
gvlVendorID : 138
5
14
capabilities :
6
15
app :
7
16
mediaTypes :
8
- - banner
17
+ - banner
9
18
site :
10
19
mediaTypes :
11
- - banner
20
+ - banner
12
21
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}}"
15
24
userMacro : " "
16
25
# 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
Original file line number Diff line number Diff line change 1
1
2
2
{
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"
21
22
},
22
- "required" : [" networkId" , " siteId" ]
23
- }
23
+ "bidfloor" : {
24
+ "type" : " number" ,
25
+ "description" : " Requests Floorprice"
26
+ }
27
+ },
28
+ "required" : [" networkId" , " siteId" ]
29
+ }
24
30
You can’t perform that action at this time.
0 commit comments