Re: admob close button on mraid expanded panel

988 views
Skip to first unread message

Eric Leichtenschlag

unread,
Jan 24, 2013, 9:54:58 PM1/24/13
to google-adm...@googlegroups.com
Hi Nevded,

We should be making a new release of the JavaScript this week which supports the ability to call mraid.useCustomClose(true) to remove the AdMob custom close button. Just make sure your creative handles closing appropriately so the user doesn't get stuck on the ad.

Cheers,
Eric


On Mon, Jan 21, 2013 at 12:34 AM, Nedved Yang <nedve...@crispmedia.com> wrote:
Hi,

Admob SDK 6.2.1 comes with a default panel close button for Mraid ad when expanded. May I know whether it is possible to disable it and let the creative handle the panel close button?

Thanks
Nedved

--
 
 
 


Eric Leichtenschlag

unread,
Jan 24, 2013, 9:57:28 PM1/24/13
to google-adm...@googlegroups.com
Correction - it will happen early next week.

Eric Leichtenschlag

unread,
Feb 7, 2013, 8:41:58 PM2/7/13
to google-adm...@googlegroups.com
Hey Nedved,

Sorry for the misunderstanding. Yeah you'll still just reference mraid.js - nothing changed from your perspective. We updated the JavaScript that runs in the AdMob SDK's WebView earlier this week, and it now supports using custom close. You should now be able to call mraid.setExpandProperties({'useCustomClose':true}); or mraid.useCustomClose(true); and we won't show a close button when you call mraid.expand().

Remember that you'll need to have your own mechanism for the user to close the expandable when using useCustomClose.

Cheers,
Eric


On Wed, Feb 6, 2013 at 10:28 PM, Nedved Yang <nedve...@crispmedia.com> wrote:
Hi Eric,

I notice the SDK version is still 6.2.1. Could u share where to download the latest js? is it mraid.js only?

thanks
Nedved

--
 
---
You received this message because you are subscribed to the Google Groups "Google AdMob Ads Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-admob-ads...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
  

Eric Leichtenschlag

unread,
Feb 8, 2013, 6:47:13 PM2/8/13
to google-adm...@googlegroups.com
Hey Nedved,

That's correct, the SDK will load up the appropriate mraid.js file that is hosted on a server outside of the SDK, so we can make updates without having to release a new SDK. By setting mraid.setExpandProperties({'useCustomClose':true}), you should no longer see the default close button when you call mraid.expand() when serving the creative in the AdMob SDK.

Cheers,
Eric


On Thu, Feb 7, 2013 at 9:49 PM, Nedved Yang <nedve...@crispmedia.com> wrote:
Hi Eric,

Thanks, will take a try again.


Thanks
Nedved
To unsubscribe from this group and stop receiving emails from it, send an email to google-admob-ads-sdk+unsub...@googlegroups.com.

For more options, visit https://groups.google.com/groups/opt_out.
 
  

Nedved Yang

unread,
Jul 11, 2013, 1:10:51 AM7/11/13
to google-adm...@googlegroups.com
Hi Eric,

We have found that though your latest android SDK make the default close button invisible when mraid.setExpandProperties({'useCustomClose':true}), however, it is still clickable.

Please try:  (admob adunit: /10737440/AdmobNedved1Part)  320x50

I think you should have removed instead of making it invisible only?

Regards
Nedved

On Wednesday, February 13, 2013 5:10:35 PM UTC+8, Nedved Yang wrote:
Hi Eric,

Thanks. We have tested and the default close button is no longer there.

Regards
Nedved

To unsubscribe from this group and stop receiving emails from it, send an email to google-admob-ads-sdk+unsubscrib...@googlegroups.com.

For more options, visit https://groups.google.com/groups/opt_out.
 
  

Eric Leichtenschlag

unread,
Jul 18, 2013, 6:27:50 PM7/18/13
to google-adm...@googlegroups.com
Hey Nedved,

Are you testing on iOS? We keep this around intentionally as a safeguard so that there is at least some way out of the interstitial in case the ad doesn't provide a closing mechanism.


To unsubscribe from this group and stop receiving emails from it, send an email to google-admob-ads...@googlegroups.com.

For more options, visit https://groups.google.com/groups/opt_out.
 
 



--

Eric Leichtenschlag | Developer Programs Engineer | eleich...@google.com | 650-776-5591

Nedved Yang

unread,
Jul 18, 2013, 9:47:16 PM7/18/13
to google-adm...@googlegroups.com
Hi Eric,

Yes, I have tested with expandable on both IOS and android and looks like same behavior. So in this case, if I click the invisible SDK close button, will mraid state change event be throw out?

regards
Nedved

Eric Leichtenschlag

unread,
Jul 25, 2013, 2:23:40 PM7/25/13
to google-adm...@googlegroups.com
Hi Nedved,

The invisible close button should behave the same as if it was present and you didn't invoke useCustomClose. The mraid state should still change from expanded back to default.

Thanks,
Eric

Crow Jonah Norlander

unread,
Jan 23, 2014, 10:36:33 AM1/23/14
to google-adm...@googlegroups.com
Hi Eric (or anyone else!),

I've built an MRAID compliant ad and am successfully using mraid.useCustomClose(true)on iOS to hide the default close button and display my own in the Interstitial Example app, implementing version 6.6.1 of the AdMob SDK.

Unfortunately, the behavior differs when the same ad is shown through an Android app (I've tried both the Advanced sample app as well as the Interstitial Example.) For Android I'm using AdMob SDK v. 6.4.1. From within the ad after it has expanded, I can getExpandProperties and see that useCustomClose is true, but the default close button remains visible on Android < 4.4.2.

I can also confirm that mraid_app_interstitial.js is calling AFMA_SendMessage('customClose', {"custom_close":1})

Can you think of any reason custom close would not be supported on Android using version 6.4.1 of the AdMob SDK?

Eric Leichtenschlag

unread,
Jan 24, 2014, 6:58:50 PM1/24/14
to google-adm...@googlegroups.com
Hello,

As I understand it, useCustomClose is an expand property used with mraid expandables on a banner format. In the interstitial world there is no concept of an expandable because by definition the ad is already full screen. So the SDK always puts the close button on the top left of the interstitial, and that's unrelated to mraid. Hopefully you're not also seeing an mraid close button on the top right.

Thanks,
Eric

Eric Kim

unread,
Mar 12, 2014, 12:21:57 PM3/12/14
to google-adm...@googlegroups.com
Hi,

I've created an ad using MRAID, and it seems that the close button graphic is the only thing that's not rendered when useCustomClose is true. I have custom close logic that calls mraid close but never gets executed since the button's div is still present on top of the ad. Is there any workarounds for this?

Thanks,
Eric

Eric Leichtenschlag

unread,
Mar 12, 2014, 6:43:33 PM3/12/14
to google-adm...@googlegroups.com
Hey Eric,

The button's div is still present (but invisible) when using useCustomClose, to still provide a means of exiting the ad in case the custom implementation of close doesn't work. Generally useCustomClose is used for creatives that don't want a close button in that corner, but want it in the other corner or some button on the bottom of the screen.

Thanks,
Eric

kuldeep rathore

unread,
Oct 27, 2015, 7:38:25 AM10/27/15
to Google Mobile Ads SDK Developers
admo hidden close button is over cutom close button, bcoz of which cutom close event never fire. 
I even try to move position of default close button with customClosePosition, but it always come to top-right.

Same thing happen on resize, there is no close button in mraid doc for resize .

Eric, how you add event over close?
Reply all
Reply to author
Forward
0 new messages