How to convert dip to px?

Hello everyone! I integrated mopub banner ads in my cocos2d-x game. The banner ad has the height 50 dip, I need to convert this to pixel. Does anyone know how to do this using cocos2d-x? Thanks! :smiley:

Hi,

Can you please share the code for the same ?

It would be of great help to me

Thanks in advance