Tirmz / mraid-web-tester

Ad tester on mobile.
0 stars 0 forks source link

Display of IAB ad, Simple Resize #6

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Use the MRAID Test Ad-Simple Resize.pdf to get the ad unit
2. Prepare and Flight the ad using the tool
3. Ad does not display

What is the expected output? What do you see instead?
* Ad should display and should respond to and generate resize events.

Original issue reported on code.google.com by nathan.c...@crispmedia.com on 7 Oct 2013 at 7:56

GoogleCodeExporter commented 8 years ago

Original comment by nathan.c...@crispmedia.com on 7 Oct 2013 at 8:06

Attachments:

GoogleCodeExporter commented 8 years ago
I'll take this one. We're going to need to update the way the adhtml is loaded 
so that mraid loads first. Once that's finished, this ad works as intended.

Original comment by frank.sh...@crispmedia.com on 21 Oct 2013 at 5:37

GoogleCodeExporter commented 8 years ago
updated mraidview.js:

created a new function, loadHtml(), that is called once we know that mraid is 
available. This function loads the ad html into the iframe document and then 
cycles through any scripts (in adhtml), appending them to the body as needed. 
This functionality used to be in loadAd(), but would often fire before mraid 
was available, and so the ad would not display.

This also addresses Issue 14.

Original comment by frank.sh...@crispmedia.com on 23 Oct 2013 at 8:38