Testing Mobile Ad Creatives

So far a lot of what I’ve been using lately in terms of mobile advertising has been banners. Images. Simple to deal with, but probably not long-term a fantastic way to go. Especially for mobile, where the ads are supposed to be highly relevant and context aware. More and more advertisers are looking at how to tailor their ads to the user, or to the current location. Not a crazy idea apparently, as there was just an update to the Mobile Rich Media Ad Interface Definitions (MRAID) released a few weeks ago. Seems like a good time to figure out how to use this stuff.

However, after some digging around I found mostly stuff like this completely neglected Quora question. There’s an online MRAID tester that a few folks from Crisp put together. An awesome idea, but I really needed to see the stuff on devices. (Plus, I had trouble getting the MRAID webtester to work with any of the MRAID samples I had, so I must be doing something wrong still)

Fortunately however, the MoPub SDK has MRAID support. And it’s open source, so I figured there had to be a way to trick it into showing what I wanted instead of fetching stuff from the exchange. And as it turns out, there is. For the MRAID stuff almost trivial I would say, just injecting a few extra headers to make the SDK happy (actually fetching and delivering the ad isn’t covered by the MRAID spec). I’m sure it’s going to be almost nearly unusable by anyone except me at this point without some real hackery, but I decided to push the script up to GitHub with some instructions just in case.

Right now using it means you have to have a working dev environment for iOS and/or Android. And you have to go in and hack that script to change the creative you want to test with. And I’m not inserting all the headers correctly so that stuff like impression recording and click event reporting work correctly. Which is a pain, but in my opinion less of a pain than testing by actually flighting an ad and then figuring out if it works where you want it to. And now I can play around with expandable banners and all that jazz, so I’m happy at least. Just need to figure out how to get this stuff properly supported on our platform.

If you need to test MRAID creatives – I’ve open sourced this under the same permissive BSD license that MoPub has their stuff under, so feel free to do nearly whatever you want with it. It is in pretty pre-alpha shape though. So I don’t assure it will work, it might take some work to just get it functioning. And of course it comes with no assurances. It might crash your server, it might brick your phone, it might slap your mama and stomp into the kitchen to start smashing plates. Might. It hasn’t done any of those things for me.

I’m thinking there’s probably some nice way to package this stuff up. Like add the hostname and path to pull the creatives from as a setting in the iOS and Android versions, and then publishing it as a free app. Then anyone wanting to test MRAID doesn’t have to have dev environments setup. Then put the server side stuff together into a form easy to deploy onto a hosting service, with some nice forms for setting up the different creative styles and a way to spit out ad tags once you’re happy.

Mostly though, I’m wondering why this stuff isn’t already out there? So if I’m completely missing some kind of simple solution or testing tool, let me know.

But assuming I’m not there’s the open question of how to run these kinds of tests using the other non-opensource mobile ad SDKs. Seems like that might be something of an issue, but turns out my willingness to resort to DNS hackery might actually be paying off there. That’s a topic for another post.

This entry was posted in Android, Business, iPhone, Metaresolver, Open Source, Software, Technology. Bookmark the permalink.

8 Responses to Testing Mobile Ad Creatives

  1. Same here, it just sucks that there is no app from IAB online. I’m also twisting my head around testing as the webtester doesn’t work at all. It just ignores the injection of the mraid.js.

  2. Mike Brickl says:

    Google’s Mobile Ads Showcase is an Android app that lets you test MRAID creatives. I highly recommend it:


  3. Ryan says:

    Thanks a lot! With your help, I was able to get Rails to display MRAID ads with the MoPub SDK. You’re not missing anything; it seems crazy that there’s nothing out there to make testing creatives on devices easier, but for now this will have to do.

  4. Harsh says:

    Am trying to integrate the steps you enumerated with no success yet.
    I saw the latest mopub sdk has the header: “X-DspCreativeid” instead of “X-Creativeid”, as well the ad ids have changed.
    Can you provide a little information of what I should change the values of these parameters in the php file (I am not very familiar with php)?

  5. This paragraph is genuinely a nice one it assists new net people, who are wishing in favor of blogging.

  6. Eunseok Lee says:

    I was able to find the mraid.js file, thanks to your help.

  7. Avinash says:


    I am having problem running the MoPub simple Ads demo to test creative, any insight on it?

    Thanks and Regards,

  8. Avinash says:

    Finally the issue is clear. Simple Ads demo is a great tool or help by MoPub to test creatives.


Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="" highlight="">