Generate embed code for client websites
Open the Google Cloud Console and sign in with the client's Google account.
Open Google Cloud ConsoleClick the project dropdown at the top, then either select an existing project or click "New Project" to create one. Name it something like "Company Website Maps".
Go to APIs & Services → Library, search for "Maps Embed API", and click Enable.
Direct link to Maps Embed APIGo to APIs & Services → Credentials, click "Create Credentials" → "API Key". Copy the key that appears.
Open Credentials pageClick on the API key to edit it. Under "Application restrictions", select "HTTP referrers" and add the client's website domain (e.g., *.example.com/*). Under "API restrictions", select "Restrict key" and choose only "Maps Embed API".
Map Preview
Enter an API key and location to see preview
Complete the configuration to generate embed code