How to get banner ad height in design resolution size


I want to use banner ad (320X50) in my game but the problem is it overlap game contents in some devices. I want to convert the banner ad height (50dp) in to my design resolution size and place all content above that. can some one help me to come up with an formula or something.