Skip to content

Commit 748e2d0

Browse files
authored
Beachfront: GDPR id (issue 1301) and documentation updates (#1321)
* Defined cookie sync URL in config, cleared deprecated comment in usersync * Update beachfront.md * editing documentation * updated gdpr id - issue 1301
1 parent 9f3a8c7 commit 748e2d0

File tree

3 files changed

+16
-4
lines changed

3 files changed

+16
-4
lines changed

adapters/beachfront/usersync.go

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,12 @@ import (
77
"github.com/prebid/prebid-server/usersync"
88
)
99

10+
var VENDOR_ID uint16 = 335
11+
1012
func NewBeachfrontSyncer(temp *template.Template) usersync.Usersyncer {
11-
return adapters.NewSyncer("beachfront", 0, temp, adapters.SyncTypeIframe)
13+
return adapters.NewSyncer(
14+
"beachfront",
15+
VENDOR_ID,
16+
temp,
17+
adapters.SyncTypeIframe)
1218
}

adapters/beachfront/usersync_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,6 @@ func TestBeachfrontSyncer(t *testing.T) {
3030
assert.NoError(t, err)
3131
assert.Equal(t, "https://sync.bfmio.com/sync_s2s?gdpr=A&us_privacy=C&url=https%3A%2F%2Flocalhost%3A8888%2Fsetuid%3Fbidder%3Dbeachfront%26gdpr%3DA%26gdpr_consent%3DB%26uid%3D%5Bio_cid%5D", syncInfo.URL)
3232
assert.Equal(t, "iframe", syncInfo.Type)
33-
assert.EqualValues(t, 0, syncer.GDPRVendorID())
33+
assert.EqualValues(t, uint16(335), syncer.GDPRVendorID())
3434
assert.Equal(t, false, syncInfo.SupportCORS)
3535
}

docs/bidders/beachfront.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,13 @@
11
# Beachfront bidder
22

3-
To use the beachfront bidder you will need an appId from an exchange
4-
account on [https://platform.beachfront.io](platform.beachfront.io).
3+
To use the beachfront bidder you will need an appId (Exchange Id) from an exchange
4+
account on [platform.beachfront.io](https://platform.beachfront.io).
55

66
For further information, please contact [email protected].
77

8+
As seen in the JSON response from \{your PBS server\}\/bidder\/params [(example)](https://prebid.adnxs.com/pbs/v1/bidders/params), the beachfront bidder can take either an "appId" parameter, or an "appIds" parameter. If the request is for one media type, the appId parameter should be used with the value of the Exchange Id on the Beachfront platform.
9+
10+
The appIds parameter is for requesting a mix of banner and video. It has two parameters, "banner", and "video" for the appIds of two appropriately configured exchanges on the platform. The appIds parameter can be sent with just one of its two parameters and it will behave like the appId parameter.
11+
12+
If the request includes an appId configured for a video response, the videoResponseType parameter can be defined as "nurl", "adm" or "both". These will apply to all video returned. If it is not defined, the response type will be a nurl. The definitions for "nurl" vs. "adm" are here: (https://github.com/mxmCherry/openrtb/blob/master/openrtb2/bid.go).
13+

0 commit comments

Comments
 (0)