Personalized ad regarding issue?

I created a switch for ad. It saves the value in tinydb. So, when the screen initialize it will get tinydb value and set the personalized mode accordingly.
But when I searched for interstitial and reward based ads for admob I didn’t find any component to set personalized ad true or false.
Pls help and tell how to do so