ko2ic / flutter_google_ad_manager

Flutter plugin for Google Ad Manager(DFP).
https://pub.dartlang.org/packages/flutter_google_ad_manager
MIT License
55 stars 27 forks source link

IDFA support and updated Google Mobile Ads SDK #46

Open adrianlogue opened 3 years ago

adrianlogue commented 3 years ago

Are there any plans for an update to support the latest Google Mobile Ads SDK and specifically IDFA considerations for iOS 14? Also somewhat related the current version generates quite a lot of deprecation warnings when compiling in xcode.

update (2021-02-03): With the new version of flutter my app no longer compiles with numerous errors relating to this package. Any assistance from the original author would be greatly appreciated

pixelgroup-israel commented 3 years ago

+1 This has became a critical issue.

adrianlogue commented 3 years ago

For anyone looking for a fix to help their app compile under the new Google Mobile Ads SDK (v8.0.0). Many of the classes, functions, constants, enums etc... have all changed in the new SDK. e.g. DFPBannerView is now GAMBannerView and so on...

(NOTE: "DFP - Doubleclick For Publishers" is being consigned to history. Everything is now GAM - Google AdManager or GAD - Google AdMob)

To get some reuse out of this package consider forking it and point to your fork in pubspec.yaml.

You'll get a few dozen compiler errors but go through one by one and update the class names, constants, etc... to the new names (reference: https://developers.google.com/admob/ios/api/reference/Classes) and it should compile again.

vtisnado commented 3 years ago

Hi @adrianlogue I found your fork and is working fine, great work!

I forked your project because I need the GAM Interstitial Ad, however, after few days trying I can not make it work. I fixed many errors using the link of the classes you provided, but, since I don't know Swift its hard to understand the errors or what I have to fix.

Could you take a look? This is my fork: https://github.com/vtisnado/flutter_admanager

swapnilsinha17 commented 3 years ago

I am getting null pointer error in this Google Add manager. Can you @vtisnado or @adrianlogue provide me latest working code.