-
Notifications
You must be signed in to change notification settings - Fork 9.7k
Change requestAgent to "flutter-alpha" #334
Conversation
collinjackson
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this change doesn't actually do what you want, because there's no default MobileAdTargetingInfo if the user doesn't specify one. We should have MobileAd use a default MobileAdTargetingInfo if there isn't one specified, and make sure to test this behavior.
collinjackson
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
| /// Default constructor, used by subclasses. | ||
| MobileAd({@required this.unitId, this.targetingInfo, this.listener}) { | ||
| MobileAd({@required this.unitId, MobileAdTargetingInfo targetingInfo, this.listener}) | ||
| : _targetingInfo = targetingInfo ?? const MobileAdTargetingInfo(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove semicolon
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
YES
The AdMob team advised us to not make the
requestAgenta public part of theMobileAdTargetingInfoclass but to set it to "flutter-version".