I recently created a Google developer account, connected my credit card information for billing, turned on the Places API and created a server key and connected my server ip address, but when I try to access the API in my code, I get the answer:
SimpleXMLElement Object
(
[status] => REQUEST_DENIED
[error_message] => The provided API key is expired.
)
The endpoint used to access the API is: https://maps.googleapis.com/maps/api/place/textsearch/xml?query= $ query & type = $ type & sensor = true & key = $ serverkey
Perhaps this error errormessage is a symptom of another problem? Maybe I'm using the wrong endpoint or the wrong type of API key? It seems strange that the new server key will expire ...
source
share