While this couldn't have been your issue when you asked this, if anyone is getting this issue now it is because the Places API is in Legacy and can't be used for new usage. It's been replaced by the Places API (new).