If you are testing your app on actual device then you can try this small android app which gives you the device id:
https://play.google.com/store/apps/details?id=pe.go_com.admobdeviceidfinder&hl=en
You will get the hashed device id directly. Hope this helps.