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

url: null when using url: encodeURIComponent(window.location.href) with dfpAdServerVideo module - video #10580

Closed
spormeon opened this issue Oct 6, 2023 · 7 comments
Labels

Comments

@spormeon
Copy link

spormeon commented Oct 6, 2023

Type of issue

I think the fix in #10575 now leads url: null, if using: url: encodeURIComponent(window.location.href),

Description

using: url: encodeURIComponent(window.location.href), to auto pick out the page url, now leads to url: null, an offset of #10575 fix , I think

description_url: encodeURIComponent(window.location.href), still works and return the correct "page url"

Steps to reproduce

playlistUIverticalAmazonParallelReBid_html_—Prebid_Publishers__Workspace

DevTools_-_127_0_0_1_5502_prebid_VideoDemo_DemoSite_pages_playlistUIverticalAmazonParallelReBid_html

hard code the url and still works as expected:

playlistUIverticalAmazonParallelReBid_html_—Prebid_Publishers__Workspace

DevTools_-_127_0_0_1_5502_prebid_VideoDemo_DemoSite_pages_playlistUIverticalAmazonParallelReBid_html

Also does it , if you dont set "url" at all, which is ment to allow ima sdk to "fetch the url" on its own, sort of the "default ima sdk" setting:

playlistUIverticalAmazonParallelReBid_html_—Prebid_Publishers__Workspace

DevTools_-_127_0_0_1_5502_prebid_VideoDemo_DemoSite_pages_playlistUIverticalAmazonParallelReBid_html

Platform details

mac, chrome, P 8.18.0

Other information

@karimMourra
Copy link
Collaborator

Unassigning myself; based on the code changes, it's not clear that this is caused by #10575

function getDescriptionUrl(bid, components, prop) {
  return deepAccess(components, `${prop}.description_url`) || encodeURIComponent(dep.ri().page);
}

it doesn't seem like encodeURIComponent(dep.ri().page) would even get called in this scenario.

@patmmccann patmmccann moved this from Ready for Dev to Needs Req in Prebid.js Tactical Issues table Oct 9, 2023
@spormeon
Copy link
Author

spormeon commented Oct 9, 2023

i've actually been back to P7.37.0 and still does it then, might of just been completely luck found it when testing 8.18.0 and thought had something to do with 10575, it could go way way way back

@spormeon spormeon changed the title #10575 seems to lead to url: null - video url: null when using url: encodeURIComponent(window.location.href) with dfpAdServerVideo module - video Oct 10, 2023
@spormeon
Copy link
Author

cant you apply what did with "description_url" and relate it to "url", as description_url works with: description_url: encodeURIComponent(window.location.href), & description_url: 'https://test.com',

@dgirardi
Copy link
Collaborator

@spormeon I don't understand how to reproduce this. Is it consistent? With what configuration?

@spormeon
Copy link
Author

spormeon commented Oct 10, 2023

the bidsbackhandler video demo in repo gets you it, if add a line to the params: url:encodeURIComponent(window.location.href),
if hard code
url: 'https://test.com', it will work

search ima in consule, get/ see the url with the video tag sent on it, check "payload"

Screenshot 2023-10-10 17 34 20

p.s. not on my usual machine, so cant post you it to look at , at mo

@patmmccann
Copy link
Collaborator

@spormeon we're having trouble making heads or tails out of your steps to reproduce. Could you start over and list them in more detail?

@spormeon
Copy link
Author

spormeon commented Nov 1, 2023

my bad on this one, its actually ima sdk doing it, perills of a non authorised (google) test domain

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

No branches or pull requests

4 participants