Answer

According to Google documents, it takes up to 24 hours for Google to activate the API, however, it usually works right away. Please give it some time, and publish the site, then test it, it may not show up in if you preview locally, but it will work when the site is up and running.
Comment actions