Millennial Media Android Ad SDK Public Documentation  6.6.1
Public Member Functions | Static Public Attributes | List of all members
InlineAd.AdSize Class Reference

Public Member Functions

 AdSize (int width, int height)
 

Static Public Attributes

static final int AUTO_HEIGHT = 0
 
static final int AUTO_WIDTH = 0
 
static final AdSize BANNER = new AdSize(320, 50)
 
static final AdSize FULL_BANNER = new AdSize(468, 60)
 
static final AdSize LARGE_BANNER = new AdSize(320, 100)
 
static final AdSize LEADERBOARD = new AdSize(728, 90)
 
static final AdSize MEDIUM_RECTANGLE = new AdSize(300, 250)
 
static final AdSize SMART_BANNER = new AdSize(AUTO_WIDTH, AUTO_HEIGHT)
 

Detailed Description

Defines the size of an InlineAd in density-independent pixels.

Constructor & Destructor Documentation

◆ AdSize()

AdSize ( int  width,
int  height 
)

Creates a new AdSize with the given dimensions in density-independent pixels.

Parameters
widththe width of the ad in density-independent pixels
heightthe height of the ad in density-independent pixels

Member Data Documentation

◆ AUTO_HEIGHT

final int AUTO_HEIGHT = 0
static

A flag used to denote that an ad's height will be determined automatically when the ad request is made. The height that is requested will match the measurable height of the container at the time of request.

◆ AUTO_WIDTH

final int AUTO_WIDTH = 0
static

A flag used to denote that an ad's width will be determined automatically when the ad request is made. The width that is requested will match the measurable width of the container at the time of request.

◆ BANNER

final AdSize BANNER = new AdSize(320, 50)
static

Mobile Marketing Association (MMA) banner ad size (320x50 density-independent pixels).

◆ FULL_BANNER

final AdSize FULL_BANNER = new AdSize(468, 60)
static

Interactive Advertising Bureau (IAB) full banner ad size (468x60 density-independent pixels).

◆ LARGE_BANNER

final AdSize LARGE_BANNER = new AdSize(320, 100)
static

Large banner ad size (320x100 density-independent pixels).

◆ LEADERBOARD

final AdSize LEADERBOARD = new AdSize(728, 90)
static

Interactive Advertising Bureau (IAB) leaderboard ad size (728x90 density-independent pixels).

◆ MEDIUM_RECTANGLE

final AdSize MEDIUM_RECTANGLE = new AdSize(300, 250)
static

Interactive Advertising Bureau (IAB) medium rectangle ad size (300x250 density-independent pixels).

◆ SMART_BANNER

final AdSize SMART_BANNER = new AdSize(AUTO_WIDTH, AUTO_HEIGHT)
static

A dynamically sized banner that is auto-width and auto-height.