Skip to end of metadata
Go to start of metadata

Resize the Banner Ad View to the Size of the Winning Creative

When you win a bid, you may want to resize the banner ad view to the size of the winning creative.

On This Page

iOS

To retrieve the height and width of the winning creative, use the loadedAdSize method.

loadedAdSize

ParameterDescription
width
The width of the creative for the banner ad view.
height
The height of the creative for the banner ad view.

Example

Android

To retrieve the height and width of the winning creative, use the getCreativeHeight and getCreativeWidth methods.

Methods

MethodDescription
getCreativeWidth()

Retrieve the width of the creative for the banner ad view.

getCreativeHeight()

Retrieve the height of the creative for the banner ad view.

Example

 

Related Topics