didUpdateRatio abstract method
Called when the Teads SDK needs you to resize your adView the creative inform us of its new adRatio
.
@override
void didUpdateRatio(TeadsInReadAd ad, TeadsAdRatio adRatio) {
double width = MediaQuery.of(context).size.width;
double height = await adRatio.calculateHeight(width);
setState(() {
yourAdViewHeight = height;
});
}
Implementation
void didUpdateRatio(TeadsInReadAd ad, TeadsAdRatio adRatio);