ormma's many size()

21 views
Skip to first unread message

carrot...@gmail.com

unread,
Apr 3, 2014, 8:45:36 AM4/3/14
to ormma-di...@googlegroups.com
as a ad html5 dev
i am confused with methods as below
one:getMaxSize():
Use this method to return the maximum size an ad can grow to using the resize() method.
p.s:1.how to verify sdk dev's getMaxSize() is ok?or supply me a scenario to test this method
       2.what is the meaning of "maximum size an ad can grow to using the resize() "?
two:
getMaxSize():getSize();getDefaultPositon();
what are the diff between those?
as ormma api said
"the current size of the ad" and "size of the default ad view" and between these the diff is what??pls explain this with further info

Many thanks

Nathan Carver

unread,
Apr 3, 2014, 9:07:14 AM4/3/14
to ormma-di...@googlegroups.com
Hello,

First, I would recommend using MRAID instead of ORMMA. The ormma group no longer maintains the reference implementation having turned things over to the IAB which renamed it MRAID and created a standards body to maintain it.


MRAID does have two size methods though.
* getScreenSize -- this is the size of the device screen
* getMaxSize -- this is the maximum size an ad can be

Usually getMaxSize and getScreenSize are the same, but for some applications, they always leave a little header or search bar or some other element which they never allow to be covered by "full page" ad unit. Therefore, you would normally use getMaxSize before calling setResizeProperties to know how much real estate is available.

Thanks,
-Nathan





--
You received this message because you are subscribed to the Google Groups "ORMMA-discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ormma-discussi...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

carrot...@gmail.com

unread,
Apr 16, 2014, 6:15:21 AM4/16/14
to ormma-di...@googlegroups.com
getMaxSize() getScreenSize() is the same on my ad,but my ad is beyond my device screen and need to see the complete ad via left slide and up slide
but getScreenSize() is :width=480,height=805 , getSize() is:480,733
what is wrong with this?curren ad size should has be larger than screen size.
在 2014年4月3日星期四UTC+8下午9时07分14秒,Nathan写道:

Nathan Carver

unread,
Apr 16, 2014, 8:39:14 AM4/16/14
to ormma-di...@googlegroups.com
There should be nothing wrong with having an ad unit that is larger than the screen size. This is defined in the IAB mobile rising stars ad unit "Full Page Flex".

The MRAID container is simply providing the information on the size of the container. Your ad can work to fit that size, or be larger. It is a little like changing the size of your browser window -- the container to show the HTML changes, but it is up to the HTML whether or not it adapts to the size including what to do when the browser window is smaller than the HTML content.

Thanks,
-Nathan

carrot...@gmail.com

unread,
Apr 16, 2014, 9:33:07 PM4/16/14
to ormma-di...@googlegroups.com
what you said is: mraid.getSize() is just get size of the container not the ad real size??

在 2014年4月16日星期三UTC+8下午8时39分14秒,Nathan写道:

Nathan Carver

unread,
Apr 17, 2014, 9:35:17 AM4/17/14
to ormma-di...@googlegroups.com
That's right. The ad size is up to the designer and is controlled by CSS and HTML layout rules. MRAID only reports the container size and physical device geometry.

Thanks,
-Nathan

Reply all
Reply to author
Forward
0 new messages