I keep getting this error: plesse help me!
Camera Location Search Error: API keys with referer restrictions cannot be used with this API.
Hi @HoangTienDung,
Welcome to Google Cloud Community!
The issue occurs because you're trying to use an API that is restricted based on the referrer (the website or app that is sending the request). This happens when you're working with an API, like Google Maps, and the API key you've provided has restrictions that prevent it from being used on certain websites, specific servers, or mobile applications.
In the Google Cloud Console, try to create a new API key and ensure you don’t set any referrer restrictions (such as HTTP referrers, IP addresses, Android apps, or iOS apps). Instead, restrict the key by API type, limiting its use to only the specific API you’re working with. Note that before you can set an API restriction, the relevant API must be enabled for your project.
Alternatively, you can also try to modify your existing API key by removing the referrer restrictions and adding API restrictions. This will ensure the key can only be used with the specific API you're working with.
Was this helpful? If so, please accept this answer as “Solution”. If you need additional assistance, reply here within 2 business days and I’ll be happy to help.