File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed
packages/google_mobile_ads/example Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ apply plugin: 'com.android.application'
25
25
apply from : " $flutterRoot /packages/flutter_tools/gradle/flutter.gradle"
26
26
27
27
android {
28
- compileSdkVersion 33
28
+ compileSdkVersion 34
29
29
30
30
namespace ' io.flutter.plugins.googlemobileadsexample'
31
31
@@ -36,7 +36,7 @@ android {
36
36
defaultConfig {
37
37
applicationId " io.flutter.plugins.googlemobileadsexample"
38
38
minSdkVersion 21
39
- targetSdkVersion 33
39
+ targetSdkVersion 34
40
40
versionCode flutterVersionCode. toInteger()
41
41
versionName flutterVersionName
42
42
testInstrumentationRunner " androidx.test.runner.AndroidJUnitRunner"
Original file line number Diff line number Diff line change 14
14
15
15
// ignore_for_file: public_member_api_docs
16
16
17
+ import 'dart:io' ;
18
+
17
19
import 'package:flutter/material.dart' ;
18
20
import 'package:google_mobile_ads/google_mobile_ads.dart' ;
19
21
import 'constants.dart' ;
@@ -55,7 +57,9 @@ class _InlineAdaptiveExampleState extends State<InlineAdaptiveExample> {
55
57
_adWidth.truncate ());
56
58
57
59
_inlineAdaptiveAd = AdManagerBannerAd (
58
- adUnitId: '/6499/example/adaptive-banner' ,
60
+ adUnitId: Platform .isAndroid
61
+ ? '/21775744923/example/banner'
62
+ : '/6499/example/adaptive-banner' ,
59
63
sizes: [size],
60
64
request: AdManagerAdRequest (),
61
65
listener: AdManagerBannerAdListener (
You can’t perform that action at this time.
0 commit comments