-
Notifications
You must be signed in to change notification settings - Fork 3
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
Load ads directly instead of pulling from iframe #215
Conversation
@@ -1,5 +1,13 @@ | |||
import { test, expect } from '@playwright/test'; | |||
|
|||
function srcEvaluate(node) { |
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.
🙏🏼
Would be good to leave a note on how to update the WLE test projects in the SDK README. |
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.
Small nit but not blocker. Looking forward to impact 🍏
utils/networking.js
Outdated
document.head.appendChild(gifscript); | ||
|
||
// Select baseDivId based on format, defaulting to the one for medium rectangle | ||
if (format == 'billboard') { |
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.
Could all of this information on each format's attributes be in utils/formats.js
?
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.
It probably could yeah, can do in a small followup if this deploys without issue
I've got an existing issue at #206 which would remove the need to manually build the test project, just haven't gotten around to figuring out the workflow yet |
This PR changes the behavior of the SDK to pull the wrapper in to the embedding page directly instead of going through the cross-origin frame, which was impacting viewability metrics. It also no longer initializes prebid resources if the ad unit ID provided is not a valid v4 uuid, along with a slight change to the A-Frame tests to account for varying image src.