forked from prebid/prebid-server
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Logic in prebid-server libraries shouldn't care about adapter logic, so adapters have been isolated and a registry to add them has been created. Usersyncs have also been moved to their adapter package. Router logic has been moved into it's own package and legacy auction to it's own file.
- Loading branch information
1 parent
e8b6513
commit 57a580c
Showing
98 changed files
with
1,815 additions
and
3,653 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
package adform | ||
|
||
import ( | ||
"net/url" | ||
|
||
"github.com/prebid/prebid-server/adapters" | ||
"github.com/prebid/prebid-server/config" | ||
"github.com/prebid/prebid-server/usersync" | ||
) | ||
|
||
func NewAdformSyncer(cfg *config.Configuration) usersync.Usersyncer { | ||
usersyncURL := cfg.Adapters[string(BidderAdform)].UserSyncURL | ||
redirectURI := url.QueryEscape(cfg.ExternalURL) + "%2Fsetuid%3Fbidder%3Dadform%26gdpr%3D{{gdpr}}%26gdpr_consent%3D{{gdpr_consent}}%26uid%3D%24UID" | ||
return adapters.NewSyncer("adform", 50, adapters.ResolveMacros(usersyncURL+redirectURI), adapters.SyncTypeRedirect) | ||
} |
Oops, something went wrong.