title: Google Map Geocode API when API key given returns REQUEST_DENIED
body: <p>When i remove the API key part, it works fine </p>
  
  <pre><code>$details_url = "http://maps.googleapis.com/maps/api/geocode/json?address=" . $string."&amp;sensor=false";
  </code></pre>
  
  <p>When add the api key, it says REQUEST_DENIED.</p>
  
  <pre><code>$apiKey = 'AIzaSyCy2C82dDZlHkwGZ_fCfgh5gBdo50Q8cE0';
  $string = str_replace(" ", "+", urlencode($string));
  $details_url = "http://maps.googleapis.com/maps/api/geocode/json?address=" . $string."&amp;sensor=false&amp;key=".$apiKey;
  $ch = curl_init();
  
  curl_setopt($ch, CURLOPT_URL, $details_url);
  curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  $response = json_decode(curl_exec($ch), true);
  </code></pre>
  
  <p>This is the first time i am using the geocode API and i need to work based on a API key, because once we dont find enough of the 2500 queries per day we will purchase the pay as you go plan. (google map for business)</p>
  
  <p>The API key i created was a new server key at console panel.</p>
  
  <p>what wrong am i doing to not accept my api key? however when i add the API key and try via browser it works fine like below and i could see the usage reports and used quota at google console.</p>
  
  <pre><code>https://maps.googleapis.com/maps/api/geocode/json?address=2140+Amphitheatre+Parkway,+Mountain+View,+IN&amp;key=AIzaSyCUDSJ2GBE1DHupbAZT4u8gZqclkIhmb0M
  </code></pre>