Skip to content
This repository was archived by the owner on Dec 22, 2022. It is now read-only.

Commit e2186fd

Browse files
村橋克也村橋克也
authored andcommitted
fix: user sync 設定
1 parent 3a295b7 commit e2186fd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

config/config.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -564,7 +564,7 @@ func (cfg *Configuration) GetCachedAssetURL(uuid string) string {
564564
// For example, the typical Bidder's usersync URL includes the PBS config.external_url, because it redirects to the `external_url/setuid` endpoint.
565565
//
566566
func (cfg *Configuration) setDerivedDefaults() {
567-
externalURL := "https://prebid-server.flux-adserver.com"
567+
externalURL := cfg.ExternalURL
568568
if os.Getenv("ENV") == "flux" {
569569
setDefaultUsersync(cfg.Adapters, openrtb_ext.BidderAJA, "https://ad.as.amanad.adtdp.com/v1/sync/ssp?ssp=4&gdpr={{.GDPR}}&us_privacy={{.USPrivacy}}&redir="+url.QueryEscape(externalURL)+"%2Fsetuid%3Fbidder%3Daja%26gdpr%3D{{.GDPR}}%26gdpr_consent%3D{{.GDPRConsent}}%26uid%3D%25s")
570570
setDefaultUsersync(cfg.Adapters, openrtb_ext.BidderAppnexus, "https://ib.adnxs.com/getuid?"+url.QueryEscape(externalURL)+"%2Fsetuid%3Fbidder%3Dadnxs%26gdpr%3D{{.GDPR}}%26gdpr_consent%3D{{.GDPRConsent}}%26uid%3D%24UID")

0 commit comments

Comments
 (0)