xamarin / GoogleApisForiOSComponents

MIT License
225 stars 161 forks source link

[MobileAds] Wrong parameter type for Get*AnchoredAdaptiveBannerAdSize #422

Open tipa opened 4 years ago

tipa commented 4 years ago

GetPortraitAnchoredAdaptiveBannerAdSize (and the other two similar methods) are accepting CGFloat parameter in the native library, but for the Xamarin bindings, we need to provide CGSize (and not float) - why? And what CGSize are we supposed to provide? https://github.com/xamarin/GoogleApisForiOSComponents/blob/master/source/Google/MobileAds/Extensions.cs#L66

dmariogatto commented 3 years ago

@tipa I've answered this question in #448.

Essentially, just pass in a CGSize with the correct width and a dummy value for height.