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

setBidderConfig for AnalyticsAdapter #12633

Open
phtechno opened this issue Jan 9, 2025 · 3 comments
Open

setBidderConfig for AnalyticsAdapter #12633

phtechno opened this issue Jan 9, 2025 · 3 comments

Comments

@phtechno
Copy link
Contributor

phtechno commented Jan 9, 2025

Type of issue

question

Description

I want to set a bidderConfig for an analytics-Adapter.
In detail I want to transport the ortb2-site-Informations just for orbidder + agmaAnalyticsAdapter.
I configured
pbjs.setBidderConfig({"bidders":["orbidder","agma"],"config":{"ortb2":{...}}});
orbidder works fine but agma don't get this information.

Do you have any ideas? It this possible or can AnalyticsAdapters only have access to public-configs?

@patmmccann
Copy link
Collaborator

Agma does not look at the auction events, they could easily change their analytics adapter to look at beforeBidRequested or BidRequested and handle those events however they see fit. The Agma analytics module is quite minimal, and we're not sure how publishers are using it.

@patmmccann patmmccann moved this from Triage to Needs OP in Prebid.js Tactical Issues table Jan 9, 2025
@dgirardi
Copy link
Collaborator

dgirardi commented Jan 9, 2025

Looking at the agma adapter, it seems to look for ortb2 under options:

pbjs.enableAnalytics({
  provider: 'agma',
  options: {
    ortb2: {...}
  }
});

But this wouldn't be enough if you have other bidders with different config.

FYI @steffenmllr

@steffenmllr
Copy link
Contributor

Hey here 👋

we try to use the options.ortb2.site and options.ortb2.user within our config, if this fails we look into the global config. I'm not sure if setBidderConfig works for analytics adapters tbh

If you want to provide the info (only) for agma in every request, enableAnalytics is a good spot to do this. If you see a need to only send a subset to agma (for the configured bidder), we can look into the BidRequested events to get the data from there.

Also happy to discuss your usecase per email: steffen (at) mllrsohn (dot) com

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

No branches or pull requests

4 participants