Enable Google Admob Consent

Good morning friends,

I would like to know if anyone can help me, I’m trying to activate admob consent in my app. It already appears, but it seems like there is something wrong with my blocks because the app closes by itself

I would like to know where the error is in these blocks