Skip to content

Commit

Permalink
[Sample] Updated test ad unit id for Android inline adaptive banner (#…
Browse files Browse the repository at this point in the history
…1119)

* Updated ad id for banner sample

* Updated android only

---------

Co-authored-by: Justin Malandruccolo <jmalandruccolo@google.com>
  • Loading branch information
malandr2 and Justin Malandruccolo authored Jul 1, 2024
1 parent 0baba2e commit ad4f3b2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
4 changes: 2 additions & 2 deletions packages/google_mobile_ads/example/android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ apply plugin: 'com.android.application'
apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"

android {
compileSdkVersion 33
compileSdkVersion 34

namespace 'io.flutter.plugins.googlemobileadsexample'

Expand All @@ -36,7 +36,7 @@ android {
defaultConfig {
applicationId "io.flutter.plugins.googlemobileadsexample"
minSdkVersion 21
targetSdkVersion 33
targetSdkVersion 34
versionCode flutterVersionCode.toInteger()
versionName flutterVersionName
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@

// ignore_for_file: public_member_api_docs

import 'dart:io';

import 'package:flutter/material.dart';
import 'package:google_mobile_ads/google_mobile_ads.dart';
import 'constants.dart';
Expand Down Expand Up @@ -55,7 +57,9 @@ class _InlineAdaptiveExampleState extends State<InlineAdaptiveExample> {
_adWidth.truncate());

_inlineAdaptiveAd = AdManagerBannerAd(
adUnitId: '/6499/example/adaptive-banner',
adUnitId: Platform.isAndroid
? '/21775744923/example/banner'
: '/6499/example/adaptive-banner',
sizes: [size],
request: AdManagerAdRequest(),
listener: AdManagerBannerAdListener(
Expand Down

0 comments on commit ad4f3b2

Please sign in to comment.