Admob GDPR consent value

My application correctly displays the Admob GDPR consent window.

However, I need to check what consent the user has given, whether they have given consent or not.

I need it so that in the IOS version of the application, after displaying the Admob consent window, if the user does not give consent, the ATT (App Tracking Transparency) message is not displayed.

Apple rejected my update, claiming that if the user does not agree to Admob GDPR, I should not display the ATT (App Tracking Transparency) message.

Does anyone have an idea how to do this and how to read the value of the granted Admob GDPR consent.

I do it the other way around. I check if the user granted ATT permission, if so I will load the AdMob consent window.

whether such action will be correct as far as Google is concerned, however I would prefer the Google window to be first and then ATT

See this post from this old thread on how to read the tc string: