1

当我在 xCode 中打开我的颤振项目时,我收到以下警告。它正在使用 google_mobile_ads 0.13.0。

 'kGADAdSizeSmartBannerLandscape' is deprecated: Use GADLandscapeAnchoredAdaptiveBannerAdSizeWithWidth

 'kGADAdSizeSmartBannerPortrait' is deprecated: Use GADPortraitAnchoredAdaptiveBannerAdSizeWithWidth.

当我尝试将 kGADAdSizeSmartBannerLandscape 更改为 GADLandscapeAnchoredAdaptiveBannerAdSizeWithWidth 时,出现以下错误:

 Assigning to 'GADAdSize' (aka 'struct GADAdSize') from incompatible type 'GADAdSize (CGFloat)' (aka 'struct GADAdSize (float)')

使用 GADLandscapeAnchoredAdaptiveBannerAdSizeWithWidth 时出错

如何实现最新的调用?我的这个 Flutter 项目的 iOS 客户端目前没有显示广告。

4

0 回答 0