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

[Sample] Updated test ad unit id for Android inline adaptive banner #1119

Merged
merged 2 commits into from
Jul 1, 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
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