Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
LTPhantom committed Dec 13, 2023
1 parent 94e872b commit 03159b5
Show file tree
Hide file tree
Showing 27 changed files with 10 additions and 376 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<application android:name="${applicationName}" android:label="google_mobile_ads_example" android:icon="@mipmap/ic_launcher">
<meta-data
android:name="com.google.android.gms.ads.APPLICATION_ID"
android:value="ca-app-pub-3212738706492790~5949485661"/>
android:value="ca-app-pub-3940256099942544~3347511713"/>
<activity android:name="io.flutter.plugins.googlemobileadsexample.MainActivity"
android:theme="@android:style/Theme.Black.NoTitleBar"
android:configChanges="orientation|keyboardHidden|keyboard|screenSize|locale|layoutDirection|fontScale"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ class _AnchoredAdaptiveExampleState extends State<AnchoredAdaptiveExample> {

_anchoredAdaptiveAd = BannerAd(
adUnitId: Platform.isAndroid
? 'ca-app-pub-7319269804560504/3526292527'
? 'ca-app-pub-3940256099942544/6300978111'
: 'ca-app-pub-3940256099942544/2934735716',
size: size,
request: AdRequest(),
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-7319269804560504/2213210851',
adUnitId: 'ca-app-pub-3940256099942544/9214589741',
sizes: [size],
request: AdManagerAdRequest(),
listener: AdManagerBannerAdListener(
Expand Down
9 changes: 3 additions & 6 deletions packages/google_mobile_ads/example/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ import 'dart:io' show Platform;

import 'package:flutter/material.dart';
import 'package:google_mobile_ads/google_mobile_ads.dart';
import 'package:gma_mediation_unity/unity_adapter.dart';
import 'dart:developer';

import 'anchored_adaptive_example.dart';
Expand Down Expand Up @@ -75,8 +74,6 @@ class _MyAppState extends State<MyApp> {
super.initState();
MobileAds.instance.updateRequestConfiguration(
RequestConfiguration(testDeviceIds: [testDevice]));
UnityAdapter.setGDPRConsent(false);
UnityAdapter.setCCPAConsent(false);
_createInterstitialAd();
_createRewardedAd();
_createRewardedInterstitialAd();
Expand All @@ -85,7 +82,7 @@ class _MyAppState extends State<MyApp> {
void _createInterstitialAd() {
InterstitialAd.load(
adUnitId: Platform.isAndroid
? 'ca-app-pub-3212738706492790/2245868040'
? 'ca-app-pub-3940256099942544/1033173712'
: 'ca-app-pub-3940256099942544/4411468910',
request: request,
adLoadCallback: InterstitialAdLoadCallback(
Expand Down Expand Up @@ -132,7 +129,7 @@ class _MyAppState extends State<MyApp> {
void _createRewardedAd() {
RewardedAd.load(
adUnitId: Platform.isAndroid
? 'ca-app-pub-7319269804560504/9900129189'
? 'ca-app-pub-3940256099942544/5224354917'
: 'ca-app-pub-3940256099942544/1712485313',
request: request,
rewardedAdLoadCallback: RewardedAdLoadCallback(
Expand Down Expand Up @@ -183,7 +180,7 @@ class _MyAppState extends State<MyApp> {
void _createRewardedInterstitialAd() {
RewardedInterstitialAd.load(
adUnitId: Platform.isAndroid
? 'ca-app-pub-7319269804560504/4158649975'
? 'ca-app-pub-3940256099942544/5354046379'
: 'ca-app-pub-3940256099942544/6978759866',
request: request,
rewardedInterstitialAdLoadCallback: RewardedInterstitialAdLoadCallback(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ class _NativeTemplateExampleExampleState extends State<NativeTemplateExample> {
super.didChangeDependencies();
// Create the ad objects and load ads.
_nativeAd = NativeAd(
adUnitId: 'ca-app-pub-7319269804560504/8587047512',
adUnitId: '/6499/example/native',
request: AdRequest(),
listener: NativeAdListener(
onAdLoaded: (Ad ad) {
Expand Down
4 changes: 0 additions & 4 deletions packages/google_mobile_ads/example/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,6 @@ dependencies:
sdk: flutter
google_mobile_ads:
path: ../
# meta_audience_network:
# path: ../mediation/meta_audience_network
# gma_mediation_unity:
# path: ../mediation/gma_mediation_unity
webview_flutter_android: ^3.7.0
webview_flutter: ^4.0.5

Expand Down
2 changes: 1 addition & 1 deletion packages/google_mobile_ads/lib/src/ad_containers.dart
Original file line number Diff line number Diff line change
Expand Up @@ -1555,4 +1555,4 @@ class VideoOptions {
customControlsRequested == other.customControlsRequested &&
startMuted == other.startMuted;
}
}
}
2 changes: 1 addition & 1 deletion packages/google_mobile_ads/lib/src/ad_listeners.dart
Original file line number Diff line number Diff line change
Expand Up @@ -316,4 +316,4 @@ class RewardedInterstitialAdLoadCallback
required GenericAdEventCallback<RewardedInterstitialAd> onAdLoaded,
required FullScreenAdLoadErrorCallback onAdFailedToLoad,
}) : super(onAdLoaded: onAdLoaded, onAdFailedToLoad: onAdFailedToLoad);
}
}
Original file line number Diff line number Diff line change
@@ -1 +1 @@
rootProject.name = 'unity'
rootProject.name = 'gma_mediation_unity'

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Loading

0 comments on commit 03159b5

Please sign in to comment.