public class BannerAdUnit extends AdUnit
| Constructor and Description |
|---|
BannerAdUnit(java.lang.String code,
java.lang.String configId)
Creates an ad unit object to fetch banner ads with the specified identifier
|
| Modifier and Type | Method and Description |
|---|---|
void |
addSize(int width,
int height)
Adds an ad size with width and height as specified
|
AdType |
getAdType()
Gets the type that how the ad will be displayed
Choices are banner, interstitial, native
|
equals, getAuctionId, getCode, getConfigId, getSizes, hashCode, toStringpublic BannerAdUnit(java.lang.String code,
java.lang.String configId)
code - Unique identifier for an adUnitpublic AdType getAdType()
AdUnitpublic void addSize(int width,
int height)
width - width of the ad containerheight - height of the ad container