I have traveled internationally extensively for the past 15 years.
I've had my electronics confiscated under the claim that I may try to sell them while in country. I'm allowed to get them back from Customs at the airport on my way back out of the country. After of course, payment of a storage fee.
The electronics (ham radio, metal detector, GPS and the like) can be brought in if I choose to pay an 'Expediting Fee', which varies from place to place.
Simply being an American, it's assumed that I possess untold wealth and resources.
Be prepared to pay expediting fees, or individual custom entry fees and you can bring your electronics in. Don't call it a bribe- funny, but they don't like that word, because they are charging a fee which is different than a bribe. If you get it in without the bribe, oops, I mean fee, bonus. You will have some extra fun cash on the trip.
Just have the extra money with you if you want to take your detector with you.
Additionally, be aware that your detector may represent a years wages for a local. Depending on where you are, it may target you for theft.
Now go and ENJOY!