diff --git a/adapters/beachfront/usersync.go b/adapters/beachfront/usersync.go index a255d4d994b..a6502331bee 100644 --- a/adapters/beachfront/usersync.go +++ b/adapters/beachfront/usersync.go @@ -7,6 +7,12 @@ import ( "github.com/prebid/prebid-server/usersync" ) +var VENDOR_ID uint16 = 335 + func NewBeachfrontSyncer(temp *template.Template) usersync.Usersyncer { - return adapters.NewSyncer("beachfront", 0, temp, adapters.SyncTypeIframe) + return adapters.NewSyncer( + "beachfront", + VENDOR_ID, + temp, + adapters.SyncTypeIframe) } diff --git a/adapters/beachfront/usersync_test.go b/adapters/beachfront/usersync_test.go index f0c4b3817d1..0267ac05eb7 100644 --- a/adapters/beachfront/usersync_test.go +++ b/adapters/beachfront/usersync_test.go @@ -30,6 +30,6 @@ func TestBeachfrontSyncer(t *testing.T) { assert.NoError(t, err) 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) assert.Equal(t, "iframe", syncInfo.Type) - assert.EqualValues(t, 0, syncer.GDPRVendorID()) + assert.EqualValues(t, uint16(335), syncer.GDPRVendorID()) assert.Equal(t, false, syncInfo.SupportCORS) } diff --git a/docs/bidders/beachfront.md b/docs/bidders/beachfront.md index bb51db41081..ecd7a8f95d1 100644 --- a/docs/bidders/beachfront.md +++ b/docs/bidders/beachfront.md @@ -1,7 +1,13 @@ # Beachfront bidder -To use the beachfront bidder you will need an appId from an exchange -account on [https://platform.beachfront.io](platform.beachfront.io). +To use the beachfront bidder you will need an appId (Exchange Id) from an exchange +account on [platform.beachfront.io](https://platform.beachfront.io). For further information, please contact adops@beachfront.com. +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. + +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. + +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). +