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

PBS videoCacheKey and vastUrl #2101

Merged
merged 7 commits into from
Mar 20, 2018

Conversation

moonshells
Copy link
Contributor

@moonshells moonshells commented Feb 2, 2018

Type of change

  • Bugfix

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.

Copy link
Collaborator

@snapwich snapwich left a 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

@bretg
Copy link
Collaborator

bretg commented Feb 2, 2018

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.

@mkendall07 mkendall07 added this to the Prebid 1.4.0 milestone Feb 12, 2018
@mkendall07 mkendall07 self-requested a review February 20, 2018 19:17
@moonshells moonshells changed the title Pbs video cache key PBS video cache key Feb 21, 2018
@moonshells moonshells changed the title PBS video cache key PBS videoCacheKey and vastUrl Feb 21, 2018
@mkendall07 mkendall07 modified the milestones: Prebid 1.4.0, Prebid 1.5.0 Feb 23, 2018
@mkendall07 mkendall07 modified the milestones: Prebid 1.5.0, 1.6 Mar 8, 2018
@mkendall07
Copy link
Member

is this ready for review?

@moonshells
Copy link
Contributor Author

@mkendall07 Yes, please review it.

bidObject.videoCacheKey = bidObj.cache_id;
}
if (bidObj.cache_url) {
bidObject.vastUrl = bidObj.cache_url;
Copy link
Member

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.

Copy link
Member

Choose a reason for hiding this comment

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

Copy link
Contributor

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.

Copy link
Member

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.

Copy link
Member

@mkendall07 mkendall07 left a 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.

@moonshells
Copy link
Contributor Author

@mkendall07 Thanks for pointing this out! Bug fixed.

@mkendall07 mkendall07 merged commit 4fbf447 into prebid:master Mar 20, 2018
@moonshells moonshells deleted the pbs_video_cache_key branch March 20, 2018 19:06
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.

5 participants