Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated Adaptive Banner Ad Units #990

Merged
merged 4 commits into from
Jan 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@ class _AnchoredAdaptiveExampleState extends State<AnchoredAdaptiveExample> {

_anchoredAdaptiveAd = BannerAd(
adUnitId: Platform.isAndroid
? 'ca-app-pub-3940256099942544/6300978111'
: 'ca-app-pub-3940256099942544/2934735716',
? 'ca-app-pub-3940256099942544/9214589741'
: 'ca-app-pub-3940256099942544/2435281174',
size: size,
request: AdRequest(),
listener: BannerAdListener(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ class _InlineAdaptiveExampleState extends State<InlineAdaptiveExample> {
_adWidth.truncate());

_inlineAdaptiveAd = AdManagerBannerAd(
adUnitId: 'ca-app-pub-3940256099942544/9214589741',
adUnitId: '/6499/example/banner',
sizes: [size],
request: AdManagerAdRequest(),
listener: AdManagerBannerAdListener(
Expand Down
4 changes: 2 additions & 2 deletions samples/admob/adaptive_banner_example/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ class AdaptiveBannerExampleState extends State<AdaptiveBannerExample> {
Orientation? _currentOrientation;

final String _adUnitId = Platform.isAndroid
? 'ca-app-pub-3940256099942544/6300978111'
: 'ca-app-pub-3940256099942544/2934735716';
? 'ca-app-pub-3940256099942544/9214589741'
: 'ca-app-pub-3940256099942544/2435281174';

@override
Widget build(BuildContext context) {
Expand Down