Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

adServerDomain setup in creatives appears to be useless #181

Open
dgirardi opened this issue Oct 3, 2022 · 6 comments
Open

adServerDomain setup in creatives appears to be useless #181

dgirardi opened this issue Oct 3, 2022 · 6 comments

Comments

@dgirardi
Copy link
Collaborator

dgirardi commented Oct 3, 2022

In at least some of our docs we ask publishers to set up PUC-GAM creatives with adServerDomain:

<script>
  var ucTagData = {};
  ucTagData.adServerDomain = "";

PUC includes it as part of the message payload for Prebid, but the latter does not use it:

function requestAdFromPrebid() {
let message = {
message: 'Prebid Request',
adId: adId,
adServerDomain: fullAdServerDomain
}
sendMessage(message, renderAd);
}

From my testing, including or removing it makes no difference. I believe it should be removed together with the code around it, and the docs updated.

@jsnellbaker
Copy link
Collaborator

I think it used to be used on the Prebid.js side of things to help handle the postMessage request. But it seems that a while ago the logic was changed on the Prebid.js side through this PR:
prebid/Prebid.js#5285

It's likely it was just not cleaned up on the PUC side, and now (as you inferred) doesn't do much and can probably be removed.

@dgirardi
Copy link
Collaborator Author

dgirardi commented Oct 3, 2022

Thanks for the detective work! That PR was merged in 3.22; is that old enough to be OK to break with a PUC update?

@jsnellbaker
Copy link
Collaborator

I'm not sure what you mean by break in this instance? Do you mean people that would still be using latest PUC (as that's how the creatives are setup) while also using a version of 3.x Prebid.js; as that would stop supplying the adserverDomain from updated PUC to that old version of Prebid.js?

@dgirardi
Copy link
Collaborator Author

dgirardi commented Oct 3, 2022

Yes - with how we distribute PUC, we are implicitly promising unlimited backwards compatibility.

@jsnellbaker
Copy link
Collaborator

I think we need to review this with the larger group.

@dgirardi
Copy link
Collaborator Author

dgirardi commented Oct 3, 2022

Agreed. Brainstorming ideas on how to escape this trap, we could try to tie breaking changes to Prebid major versions; the transition will take forever, but we could for example ask pubs to set up

<script src="https://cdn.jsdelivr.net/npm/prebid-universal-creative@%%PATTERN:hb_pb_majorversion%%/dist/creative.js" />

and start a new PUC branch (and release tag) for each new Prebid major version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Needs Req
Development

No branches or pull requests

2 participants