aspectRatio

The aspect ratio of the ad, if available. Especially useful for banner format, you can easily compute the correct height of your banner by dividing your desired width by this aspectRatio.

Possible values:

  • Positive Double: The actual aspectRatio of the ad to use.

  • '-1': The best fit for your ad is to use the WRAP_CONTENT facilities of Android.

  • null: The SDK does not have any information about the aspectRatio of the ad. We advise you to set a default hardcoded height to your ad.