<script type="text/javascript" src="http://maps.google.com/map?file=api&v=2&hl=en&key=MY_KEY&sensor=true"></script>
<script type="text/javascript" charset="utf-8">
google.load("maps", "2.x");
</script>
This works well on localhost. On domain it gives error about obtaining key. I followed step given 3-4 times with generating key 3-4 times. But it continues giving error about javascript v2 obtaining key