CEAdSize
CEAdSize defines three different ad size for the layout of ad.
Public constructors
Constants
int
int
Public static methods
CEAdSize
CEAdSize
Public methods
int
int
Public constructors
CEAdSize
CEAdSize(Context context, int width, int height)
Create specific width and height size for the ad.
Parameters
context
Context: the context.
width
int: the specific width.
height
int: the specific height.
Constants
FULL
int FULL
Constant that will cause the width/height of the ad to match the width of the device.
Constant Value: -1
AUTO
int AUTO
SDK determine the width/height of the ad. example: new CEAdSize(context, 300, AUTO).
Constant Value: -2
Public static methods
getSmartAuto
CEAdSize getSmartAuto()
Gets the ad view. You should call this method after onAdLoaded().
Parameters
context
Context: the context.
Returns
the CEAdSize.
getSmartFullWidth
CEAdSize getSmartFullWidth()
Method that will cause the width of the ad to match the width of the device.
Parameters
context
Context: the context.
Returns
the CEAdSize.
Public methods
getHeight
int getHeight()
Returns the height of this CEAdSize in physical pixels.
Parameters
context
Context: the context.
Returns
int
int: the height.
getWidth
int getWidth()
Returns the width of this CEAdSize in physical pixels.
Parameters
context
Context: the context.
Returns
int
int: the width.
Last updated