Using custom events to test MRAID ads

221 views
Skip to first unread message

ofek cohany

unread,
Sep 4, 2013, 4:56:40 PM9/4/13
to google-adm...@googlegroups.com
Hello,

Recently I created new ads in MRAID format. I tested those ads in the test tool at http://webtester.mraid.org and they work well.

I would like to start advertising those ads at AdMob however, I would like to test my ads first, to make sure they are compatible with AdMob system and codes.

I saw an article at https://support.google.com/admob/answer/2576174?hl=en where it says:
"A Custom Event allows you to serve ads from a network or ad server that isn’t supported by AdMob Mediation."
There is also section 8 on the article at https://developers.google.com/mobile-ads-sdk/docs/admob/mediation#ios-customevents that says:
"Custom Events are a way to serve ads from your own ad server, from an ad network that is not featured in AdMob Mediation, or to invoke any other code of your choice."
From these articles I figured out that in order to test my ads I have to create a "custom event" that will display my ads only and then get my test app to work with it.

So, in order to test my ads I created an account in AdMob and then navigated to
Sites & apps -> ad network mediation.
Then I added a new "network mediation placement" and then I added a "custom event" to that, along with a class name as requested.
I developed a simple iphone app and I have a class with the same name... and I got stuck there...

As I wrote, I would like to test MY ads. How do I get the custom event to display MY ads ONLY? Where do I put the code that will retrieve the ads from MY server? Do I put it in the iPhone app? Do I put it in the code that AdMob supply, the code that suppose to be in my app? If so, where do I put it in this code?
Is there a different way altogether to test MRAID ads?
The articles that I found (I read many of them) didn't supply an answer for these questions.

Any information that anyone can provide will be highly appreciated!

Thank you!
Ofek Cohany

Eric Leichtenschlag

unread,
Sep 12, 2013, 5:25:44 PM9/12/13
to google-adm...@googlegroups.com
Hi Ofek,

You won't be able to use a custom event to test the ad because it has to be running through the AdMob SDK to test. Your creative probably has a <script src="mraid.js"> in there somewhere, but the AdMob SDK WebView listens for that and replaces it with an app-specific implementation that you won't have if you just stick your HTML in a WebView and return that for your custom event.

As for other options, it looks like you can test this pretty easily on the Mobile Ads Showcase App, but it looks like this app is only publicly available on Android.

Thanks,
Eric
Reply all
Reply to author
Forward
0 new messages