-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Adapter instance communication #1820
Comments
Hey @elljoh |
@mkendall07 thanks. it occurs to me that I may have been misinterpreting what "adapter instance" means. Incorrectly I have, for some reason (?), been carrying a mental model of an adapter instance being related to a bid request for a particular slot... more akin to an "execution" :\ Whereas an "adapter instance" is a newly instantiated and registered adapter object. My concern was that, for example, an adapter instance might wish to keep a count of bid requests and provide this or other variables kept in memory as Url query parameters in the bid request in order to optimize demand partner bids. For a page visit if there is a single adapter instance, keeping state w/in the adapter implementation is fine. However, there are scenarios where this could be a limitation. For example:
Based on #2, kargoBidAdapter.js, is it acceptable in Prebid 1.0 adapter implementations to use ...and indeed gives some form of communications b/w adapter instances, although simply |
@elljoh |
Question
If an adapter needs to share request parameter state to optimize requests, or indeed to support SRA as indicated in #891, is
postMessage()
towindow.parent
the recommended technique.Or do you expect to have an adapter context object/API to support adapter instance communication?
In some respects, I read the two requirements below as somewhat opposed.
Thanks, John
Ref: #891
The text was updated successfully, but these errors were encountered: