Skip to content

update docs to clarify usage of auctionDelay - #1539

Merged
bretg merged 3 commits into
prebid:masterfrom
smenzer-forks:auctiondelay-docs-update
Oct 30, 2019
Merged

update docs to clarify usage of auctionDelay#1539
bretg merged 3 commits into
prebid:masterfrom
smenzer-forks:auctiondelay-docs-update

Conversation

@smenzer

@smenzer smenzer commented Oct 11, 2019

Copy link
Copy Markdown
Collaborator

The docs are not clear about what auctionDelay and syncDelay are used for. Based on asking @jaiminpanchal27, auctionDelay is only for userId module providers, while syncDelay is used for both userId module providers and bid adapter user sync pixels.

… module IDs, while syncDelay applies to both.

@bretg bretg left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Question: if auctionDelay > 0, does syncDelay make sense?

i.e. if auctionDelay=500 and syncDelay is 3000, have we just wasted 500ms? Looked at the code and it seems like this might be the case.

If so, we want to make sure that no examples are shown doing this.

@bretg bretg added the question label Oct 14, 2019
@smenzer

smenzer commented Oct 17, 2019

Copy link
Copy Markdown
Collaborator Author

@bretg since syncDelay only applies to bid adapter usersyncs, we should support the case where auctionDelay > 0 and syncDelay is set, right? In that case, userId modules would fire pre-auction, and bid adapters would fire post...?

@bretg

bretg commented Oct 17, 2019

Copy link
Copy Markdown
Contributor

The documentation says that syncDelay is Delay in milliseconds for user syncing (both bid adapter user sync pixels and userId module ID providers)

So it appears that syncDelay is not just for bid adapter usersyncs?

@smenzer

smenzer commented Oct 22, 2019

Copy link
Copy Markdown
Collaborator Author

right...syncDelay works for both, but auctionDelay ONLY works for userId module. That's not clear in the docs which is what I was attempting to clarify with my change

@idettman

Copy link
Copy Markdown
Contributor

The documentation says that syncDelay is Delay in milliseconds for user syncing (both bid adapter user sync pixels and userId module ID providers)

So it appears that syncDelay is not just for bid adapter usersyncs?

Yes that appears to be correct

@bretg

bretg commented Oct 23, 2019

Copy link
Copy Markdown
Contributor

so back to my original question

if auctionDelay > 0, does syncDelay make sense?

i.e. if auctionDelay=500 and syncDelay is 3000, have we just wasted 500ms? This seems like something we need to prevent. i.e. when auctionDelay > 0 syncDelay is ignored for userIds.

@smenzer

smenzer commented Oct 23, 2019

Copy link
Copy Markdown
Collaborator Author

when auctionDelay > 0 syncDelay is ignored for userIds

i agree with this for userId module. obviously bid adapters should still sync post auction like normal using the auctionDelay

@bretg

bretg commented Oct 23, 2019

Copy link
Copy Markdown
Contributor

@idettman - is this the way it actually works? i.e. is syncDelay ignored when auctionDelay is > 0?

@idettman

idettman commented Oct 30, 2019

Copy link
Copy Markdown
Contributor

Yes syncDelay is ignored in the User ID module if auctionDelay is > 0

@bretg bretg removed the question label Oct 30, 2019
@bretg

bretg commented Oct 30, 2019

Copy link
Copy Markdown
Contributor

Thanks Scott and Isaac. I added a note. Merging.

@bretg
bretg merged commit 850e83b into prebid:master Oct 30, 2019
@smenzer
smenzer deleted the auctiondelay-docs-update branch October 30, 2019 18:48
@patmmccann

Copy link
Copy Markdown
Collaborator

@bretg I think the doc might be wrong here; @idettman said "Yes syncDelay is ignored in the User ID module if auctionDelay is > 0" but users are reading this as bidder adapters ignore syncDelay too. specifically https://redditadops.slack.com/archives/C0HVALS8P/p1615281622031800

tagging @smenzer also as the question is about your integration

@smenzer

smenzer commented Mar 9, 2021

Copy link
Copy Markdown
Collaborator Author

yea, seems like the "Ignored if auctionDelay > 0" part should clarify that the ignoring only applies to user id modules.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants