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

Mobile app rendering: if burl is missing from bid, write ad markup after MRAID-viewable #248

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

rickyblaha
Copy link

To reduce discrepancies, when burl is missing from mobile app bids, rendering of ad markup is now delayed until MRAID-viewable happens, so tracking pixels present in ad markup do not get called too soon.

Included units tests along with a simple mock of MRAID 2 and MRAID 3 that has only enough features for these tests.

Also included a simple log function called during this rendering sequence to help with debugging. Once ad render already happens, you can use Safari Dev Tools to inspect the web view, go to the console and type pucLogs to see all the console logs that happened prior to opening dev tools.

Ricky Blaha added 2 commits December 19, 2024 02:27
… if there is a burl present. If no burl, render the markup only after mraid viewable happens.

* Added console logs to observe this behavior that stick around in `window.pucLogs` so they can be viewed once a web view is inspected after render has already taken place.
* Added simple MRAID 2 and 3 for use in the unit tests for this change.
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.

1 participant