AdMob UMP SDK in Flutter - Implement your GDPR dialog

AdMob UMP SDK in Flutter - Implement your GDPR dialog

David Serrano

1 год назад

5,694 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

@nutrismart_ro
@nutrismart_ro - 01.10.2024 16:36

This helped me too! No I wait to see if it works on the real users xD

Ответить
@palm1032
@palm1032 - 18.07.2024 16:13

@David Serrano it return obtained for both consent and not consent and it load the ads in both case

Ответить
@palm1032
@palm1032 - 16.07.2024 12:25

how to stop the ads or show the ads , it stops but after i come back to page it shows the ads again altho it was denied

Ответить
@Mattias1995
@Mattias1995 - 25.06.2024 17:09

isConsentFormAvailable() returns false; any ideas why? I have saved the form, and also tried enabling the debug to pretend to be within EU (even though I already am).

Ответить
@Mattias1995
@Mattias1995 - 25.06.2024 16:23

It would be a help if you actually shared the code you wrote in initialization_helper.dart

Ответить
@Paul-k2s8o
@Paul-k2s8o - 04.05.2024 00:17

My Like & Subscribe, thx really appreciated

Ответить
@andreashadjithoma1410
@andreashadjithoma1410 - 30.04.2024 17:23

Why there are no ads if the user does not consent?

Ответить
@loot6
@loot6 - 11.04.2024 21:24

Wow so much bs just to show that little popup.

Ответить
@PsychologyMood
@PsychologyMood - 08.04.2024 08:18

You are legend been trying for days, thx really appreciated.

Ответить
@kurdishpotato1707
@kurdishpotato1707 - 07.04.2024 23:54

really appreciated, this was helpful

Ответить
@mmkamal
@mmkamal - 03.04.2024 04:15

If the dialog is not showing up then add your testId in the params like
final params = ConsentRequestParameters(
consentDebugSettings: ConsentDebugSettings(
testIdentifiers: [My test Id Here],
debugGeography: DebugGeography.debugGeographyEea,
),
);

Ответить
@sabrinasalvador1420
@sabrinasalvador1420 - 22.02.2024 14:17

Thank you for a great intro to the GDPR implementation. My question, your example shows how to integrate and display GDPR screen that is created in Privacy & Messaging. However, assuming we also want to cater for iOS 14.x users and enable tracking and consequently show the IDFA explainer to our iOS 14.x users, can you advise how this will be achieved?

Ответить
@warreng1able
@warreng1able - 22.02.2024 14:06

David - Nice explanation and good to see that all of this can be handled with google mobile ads. My question, now that we have the ump plugin for flutter, would it make more sense to use this as it simplifies the code base (Completers are not required).

Secondly - are you saying that for a user to remove ALL ads from an app that they have not bought and they are based in EU, all they need to do is NOT CONSENT and then the ads are removed? Your example shows that this is the case but I think this is incorrect, If CONSENT is not given, I believe PERSONALISED ads should be false, i.e they should still see ADs but not personalised since the user has not consented.

Ответить
@JuanCarlos-ff2rh
@JuanCarlos-ff2rh - 15.01.2024 19:22

Hello, I'm very interested in this tutorial. I believe it explains the process of implementing the AdMob UMP SDK in Flutter with the GDPR dialog quite well. It's the only tutorial I've found, and it explains things clearly. However, being at a medium level, I find it a bit challenging. I've been trying for almost a month, but I always encounter an error. I haven't found the line 'builder: (context) => const MainScreen(),' anywhere. Could you please help me understand where to insert '.. => const InitializeScreen(targetWidget: XXXX()),);' in my main.dart file?. Please.
MAIN.DART
import 'package:flutter/gestures.dart';
import 'package:flutter/material.dart';

import 'package:flutter_localizations/flutter_localizations.dart';
import 'package:flutter_web_plugins/url_strategy.dart';
import 'flutter_flow/flutter_flow_theme.dart';
import 'flutter_flow/flutter_flow_util.dart';
import 'flutter_flow/internationalization.dart';
import 'flutter_flow/nav/nav.dart';
import 'index.dart';

void main() async {
WidgetsFlutterBinding.ensureInitialized();
usePathUrlStrategy();

await FlutterFlowTheme.initialize();

runApp(MyApp());
}

class MyApp extends StatefulWidget {
// This widget is the root of your application.
@override
State<MyApp> createState() => _MyAppState(); ///_MyAppState(); /////////////////////

static _MyAppState of(BuildContext context) =>
context.findAncestorStateOfType<_MyAppState>()!;
}

class _MyAppState extends State<MyApp> {
Locale? _locale;
ThemeMode _themeMode = FlutterFlowTheme.themeMode;

late AppStateNotifier _appStateNotifier;
late GoRouter _router;

@override
void initState() {
super.initState();

_appStateNotifier = AppStateNotifier.instance;
_router = createRouter(_appStateNotifier);
}

void setLocale(String language) {
setState(() => _locale = createLocale(language));
}

void setThemeMode(ThemeMode mode) => setState(() {
_themeMode = mode;
FlutterFlowTheme.saveThemeMode(mode);
});

@override
Widget build(BuildContext context) {
return MaterialApp.router(
title: 'UMP SDK Dialog GDPR PRUEBA D. Serrano',
localizationsDelegates: [
FFLocalizationsDelegate(),
GlobalMaterialLocalizations.delegate,
GlobalWidgetsLocalizations.delegate,
GlobalCupertinoLocalizations.delegate,
],
locale: _locale,
supportedLocales: const [Locale('en', '')],
theme: ThemeData(
brightness: Brightness.light,
scrollbarTheme: ScrollbarThemeData(),
),
darkTheme: ThemeData(
brightness: Brightness.dark,
scrollbarTheme: ScrollbarThemeData(),
),
themeMode: _themeMode,
routerConfig: _router,
);
}
}

Ответить
@deutschhoerenlesen
@deutschhoerenlesen - 15.01.2024 15:10

The dialog doesn't show. Instead, it automatically goes to a new screen. I've tried using a VPN and setting debugGeography to DebugGeography.debugGeographyEea, but nothing has worked; the dialogue still isn't displayed.

Ответить
@cub3608
@cub3608 - 13.01.2024 14:22

beautiful

Ответить
@백선홍-v6l
@백선홍-v6l - 11.01.2024 18:36

very good and thank you so much.

Ответить
@Alexus-ww9iz
@Alexus-ww9iz - 05.01.2024 01:10

Hi bro,
What files did you modify in android, currently I only have the APPLICATION_ID added in AndroidManifest.xml, but it does not show the dialog, I am using google_mobile_ads: ^3.1.0

Ответить
@AbStudioApps
@AbStudioApps - 04.01.2024 02:03

bro its not working... section 3... dailog is not showing...

Ответить
@barnasoba8287
@barnasoba8287 - 01.01.2024 23:42

David Muchas gracias, tras buscar mucho para flutter es la guía más clara.

Ответить
@aplikita_studio
@aplikita_studio - 01.01.2024 21:22

gimme full codes plz

Ответить
@fahedfbk
@fahedfbk - 31.12.2023 22:36

I am trying to force the device to be outside Eea with debugGeographyNotEea but it still appears? I deleted the app but it still showing that I am in Eea? do you have any advice?

Ответить
@hansfritz6026
@hansfritz6026 - 30.12.2023 17:18

any chance you could do a video how to do all of this inside unity 2023 ?

Ответить
@grzegorzsamojedny
@grzegorzsamojedny - 30.12.2023 02:06

Thank you David. Source code would help ;)

Ответить
@CliffordHelsel-w3g
@CliffordHelsel-w3g - 23.12.2023 19:54

Where is admob_consent_dialog? It is referenced in the tutorial for initialization_screen.dart but there no mention of how to add admob_consent_dialog

Ответить
@aclcoy
@aclcoy - 20.12.2023 14:40

How to check whether the user consent to GDPR or not?

Ответить
@elsanchero
@elsanchero - 16.12.2023 08:25

Realmente funciona, muchas gracias👍

Ответить
@EvertonRichardsJAMNEWSLINK
@EvertonRichardsJAMNEWSLINK - 14.12.2023 20:22

i would like you to give access to the code you write

Ответить
@jeremysharpe5467
@jeremysharpe5467 - 07.12.2023 19:13

I was really lost trying to figure out how to implement this dialog in Flutter. This video was absolutely a god send, covering everything I was confused about and packaging it really nicely so it's easy to use in any app. Thank you!

Ответить
@UltraDeepMultimedia
@UltraDeepMultimedia - 19.11.2023 18:35

Nice, actually better than reading documentation 😊 youv'e just earned a sub

Ответить
@Briefly-j1s
@Briefly-j1s - 18.11.2023 22:05

Bravo. So easy to follow!!! And it worked perfectly

Ответить
@KayelGames
@KayelGames - 01.11.2023 04:00

Can you please provide the code base?

Ответить
@rojotv122
@rojotv122 - 18.10.2023 18:56

Me sirvió. Gracias! 😇😇😇

Ответить
@JSquiff
@JSquiff - 05.10.2023 19:42

Videos like these are the ones that get my Like & Subscribe.

Ответить
@engineer6443
@engineer6443 - 03.10.2023 17:32

at last, normal english explanation without "assamaleikum vashmallah shashmallah" ))

Ответить
@kamil_supabase_enjoyer
@kamil_supabase_enjoyer - 14.09.2023 22:46

😍😍😍

Ответить