mraid - resize function not found

141 views
Skip to first unread message

kuldeep rathore

unread,
Oct 14, 2014, 6:46:22 AM10/14/14
to google-adm...@googlegroups.com
hi all,
I am trying to use mraid.resize function, which show following error ,
Uncaught TypeError: Object [object Object] has no method 'resize'

Google play services mraid version show 2.0

In IAB mraid, resize function is there in 2.0.

And other functionality also not working like,
useCustomClose, 
getMaxSize  takes full screen, even status bar

And where i can find mraid js file?

Eric Leichtenschlag

unread,
Oct 14, 2014, 11:03:41 PM10/14/14
to google-adm...@googlegroups.com
- The current version of the SDK is not MRAID 2.0 compliant, so resize hasn't been implemented yet.

- useCustomClose should be working. Do you have an example creative that isn't working?

- getMaxSize also looks like an MRAID 2.0 feature.

- The Google Mobile Ads SDK's supported MRAID spec can be found at http://media.admob.com/mraid/v1/docs/index.html

Thanks,
Eric

kuldeep rathore

unread,
Oct 16, 2014, 6:02:52 AM10/16/14
to google-adm...@googlegroups.com
Hi Eric,
mraid.getVersion()  i am getting is 2.0

this is how i setup my banner ad

I am using google play services for admob

This is how i setup custom close still i am getting default close
mraid.setExpandProperties({
        width : screen.width,
        height : screen.height,
        useCustomClose:true
      });

      mraid.useCustomClose(true);


getMaxSize is 2.0 feature still my mraid object has getMaxsize function

Can you tell me path from where sdk download mraid.js ??

Thanks

Eric Leichtenschlag

unread,
Oct 16, 2014, 7:54:22 PM10/16/14
to google-adm...@googlegroups.com
I'm not sure exactly what the url is, but it is dependent upon the type of ad you have. It's also obfuscated, so seeing the url won't help much.

kuldeep rathore

unread,
Oct 17, 2014, 6:28:42 AM10/17/14
to google-adm...@googlegroups.com
I have updated version of google play serivce, which shows me mraid version 2.0.
Can you please check on latest version what is mraid version is?
and if its 2.0, it should support resize function, according iab mraid? 

and what about useCustomClose? 
is there any data i can provide to help?

Eric Leichtenschlag

unread,
Oct 17, 2014, 9:52:34 PM10/17/14
to google-adm...@googlegroups.com
I think the fact that getVersion() is showing 2.0 is a bug; I'll have to ask around and follow up on why that is.

For the useCustomClose issue, can you provide a sample creative, sample app, or sample ad unit ID I can use to get that creative back, so I can try it on my end?

Thanks,
Eric

kuldeep rathore

unread,
Oct 18, 2014, 3:35:42 AM10/18/14
to google-adm...@googlegroups.com
iAb launch mraid 2.0 in 2012, is admob planing to launch mraid 2.0 in near future?

Eric Leichtenschlag

unread,
Oct 20, 2014, 3:33:00 PM10/20/14
to google-adm...@googlegroups.com
MRAID 2.0 support is on the roadmap, but unfortunately I don't have an estimated completion date.

Thanks,
Eric

kuldeep rathore

unread,
Dec 23, 2014, 10:30:51 AM12/23/14
to google-adm...@googlegroups.com, eleich...@google.com
Any update on admob mraid v2.0?

Eric Leichtenschlag (Mobile Ads SDK Team)

unread,
Dec 23, 2014, 11:47:30 AM12/23/14
to google-adm...@googlegroups.com, eleich...@google.com
We hope to be able to announce support by the end of March 2015.

kuldeep rathore

unread,
Mar 24, 2015, 12:11:58 PM3/24/15
to google-adm...@googlegroups.com, eleich...@google.com
Hi Eric,
Do admob started mraid v2.0 support??

Eric Leichtenschlag (Mobile Ads SDK Team)

unread,
Mar 25, 2015, 12:38:07 PM3/25/15
to google-adm...@googlegroups.com
Hello,

Technically, we should be sending back 2.0 for mraid.getVersion() at the moment when using Google Play services 7.0. However, we'd like to get some private beta partners to start using it before we officially announce support for it. Since we haven't officially announced it yet, we reserve the right to revert to returning 1.0 for the mraid version even on 7.0 if there end up being major issues in the SDK.

Since you've been heavily interested for some time now, I'll request that we add you to the private beta, which would give you more contacts and up-to-date information on the status of MRAID 2. In the meantime, you should be able to test it right now.

Thanks,
Eric

kuldeep rathore

unread,
Mar 26, 2015, 6:24:55 AM3/26/15
to google-adm...@googlegroups.com
Hi Eric,
Thanks for reply,
I check for mraid.getVerison() , I am still getting 1.0 and resize function is still missing.
on my phone i have google play services version 7.0.97, which i guess is latest version.

And it will be really helpful if you can add me to private beta.

Thanks,
Kuldeep

Eric Leichtenschlag (Mobile Ads SDK Team)

unread,
Mar 26, 2015, 6:42:12 PM3/26/15
to google-adm...@googlegroups.com
Hi Kuldeep,

You may also need to compile against the 7.0.0 SDK as well when building the app.

Thanks,
Eric

kuldeep rathore

unread,
Mar 27, 2015, 12:46:08 PM3/27/15
to google-adm...@googlegroups.com
Hi Eric,
In my build.gradle  dependencies i added following line,

compile 'com.google.android.gms:play-services:7.0.0'

to compile with 7.0.0 SDK, But still i am getting mraid version 1.0

Thanks,
Kuldeep

Eric Leichtenschlag (Mobile Ads SDK Team)

unread,
Mar 27, 2015, 9:20:03 PM3/27/15
to google-adm...@googlegroups.com
Hmm, I'll have to circle back and ask what the status is. It sounds like we still aren't serving the MRAID 2 stuff yet then.

kuldeep rathore

unread,
Apr 1, 2015, 2:50:53 PM4/1/15
to google-adm...@googlegroups.com
Hi Eric,
Can you confirm whether mraid 2.0 is live?
I can see some of code for mraid 2.0 in js libraray.

and is it possible to add me in private beta?

Eric Leichtenschlag (Mobile Ads SDK Team)

unread,
Apr 1, 2015, 9:13:00 PM4/1/15
to google-adm...@googlegroups.com
Some code is there, but we aren't quite ready to turn it on yet. I'll let you know when we're ready to start the beta program and provide a list of known issues/our interpretation of the spec.

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