-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
PBS videoCacheKey and vastUrl #2101
PBS videoCacheKey and vastUrl #2101
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, but should probably have appenxus video implementor review as well
I'm not convinced we fully understand this problem. There's a broader issue where setting s2sConfig.cacheMarkup=1 destroys display ads. Yet it's required for video which is on the same page. Going to assign it to back to @moonshells who will report on our internal discussions. |
is this ready for review? |
…dy cached video bids only
@mkendall07 Yes, please review it. |
modules/prebidServerBidAdapter.js
Outdated
bidObject.videoCacheKey = bidObj.cache_id; | ||
} | ||
if (bidObj.cache_url) { | ||
bidObject.vastUrl = bidObj.cache_url; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think this does anything by itself? ie, prebid.js will still try to cache this URL, so essentially your double caching here I believe. You'd need a way to signal to the core prebid library not to cache this bid.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
upon further review: it does check:
https://github.com/prebid/Prebid.js/blob/master/src/auction.js#L230
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do note that the current version of AMP support does not include cache_url
, it only sends the cache_id
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if that is the case, we need to update this to check both keys exist. Otherwise we'll break caching if cache_url
doesn't exist.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
check for both cache_id and cache_url and only update the bid if both exist.
@mkendall07 Thanks for pointing this out! Bug fixed. |
Type of change
Description of change
When video bids are cached by Prebid Server (Rubicon Video is using server side cache), there's no need to cache them in Prebid.js, they should have correct videoCacheKey and vastUrl.