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

pass additional data to sync url #4059

Open
jney opened this issue Nov 19, 2024 · 4 comments
Open

pass additional data to sync url #4059

jney opened this issue Nov 19, 2024 · 4 comments

Comments

@jney
Copy link

jney commented Nov 19, 2024

Hi,

Is there a way to add additional data to macros.UserSyncPrivacy to pass it to sync url, I'd like to add so extra id.
thank you

@bretg
Copy link
Contributor

bretg commented Nov 19, 2024

@jney - no, there's no way to define an arbitrary macro to pass arbitrary data to a sync endpoint. Unclear what that even mean. Please note that sync requests don't have much context: there's no auction request, it's in a 3rd party domain so has no access to any type of ID, it doesn't utilize any vendor-specific code.

Please help us understand exactly what you're trying to do.

@bretg bretg moved this from Triage to Clarify Request in Prebid Server Prioritization Nov 19, 2024
@jney
Copy link
Author

jney commented Nov 26, 2024

hi bret, for some reason we need the publisher to pass its api key to the sync system.
it looks like we aren't the only one with the issue https://github.com/prebid/prebid-server/blob/master/static/bidder-info/zeta_global_ssp.yaml#L18

@bretg
Copy link
Contributor

bretg commented Nov 26, 2024

we need the publisher to pass its api key to the sync system

I would recommend changing that requirement to allow the PBS host-company to have the API key rather than having a different key per publisher account in a multi-tenant environment.

If you insist on per-account, a community member will need to contribute the feature. It's not a priority for the core development team.

  1. The /cookie_sync endpoint doesn't require the account ID.
  2. If the account ID is provided, it will do a lookup to get the account config
  3. There's no current place in the account config to put account-specific sync macros

If you want to add this feature, go ahead and add an account config like:

cookie-sync:    // in PBS-Go, use underscore instead of dash
  url-macros:
    bidderAsynckey: abc123

Update the /cookie_sync endpoint to resolve macros in the sync URLs something like

url: https://HOST/redirectuser?apikey={{MACRO:bidderAsynckey}}&gdpr={{.GDPR}}

There are details to work out with this. If someone really wants to build this, we'll help you dot-the-i's and cross-the-t's.

looks like we aren't the only one with the issue

This example is global to the PBS host, not per-account.

@bretg bretg moved this from Clarify Request to Ready for Dev - maintainer in Prebid Server Prioritization Nov 26, 2024
@bretg
Copy link
Contributor

bretg commented Dec 17, 2024

@jney - are you volunteering to build this feature?

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

No branches or pull requests

2 participants