[[["容易理解","easyToUnderstand","thumb-up"],["確實解決了我的問題","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["難以理解","hardToUnderstand","thumb-down"],["資訊或程式碼範例有誤","incorrectInformationOrSampleCode","thumb-down"],["缺少我需要的資訊/範例","missingTheInformationSamplesINeed","thumb-down"],["翻譯問題","translationIssue","thumb-down"],["其他","otherDown","thumb-down"]],["上次更新時間:2025-07-30 (世界標準時間)。"],[],[],null,["# Add a Google Maps API key\n\n\u003e **NOTE** : This article is for creators of highly trafficked embedded reports that contain Google Maps. To complete the tasks described here, you should be (or work with someone who is) familiar with working in Google Cloud Console.\n\nWhen embedding is enabled, a Looker Studio report supports up to 30,000 free Google Map loads per month. Map loads are counted for both embedded and non-embedded views of the report, as well as for PDF download and email views. If your report exceeds the free quota, Google Maps in the report display an error.\n\nYou can increase the number of map loads allowed by adding a Google Maps API key to the report.\n\n**IMPORTANT:** Reports that use an API key are no longer subject to the free quota of 30,000 map loads. Each map load counts against your API key pricing tier.\n\nCreate a Google Maps API key\n----------------------------\n\nTo create and manage Google Maps API keys, see [Using API Keys](https://developers.google.com/maps/documentation/javascript/get-api-key) (opens in the Google Maps Platform documentation). You'll need to have a Google Cloud [billing project](https://pantheon.corp.google.com/projectselector2/google/maps-apis/credentials?_ga=2.185007785.1036907152.1627424416-1520454904.1626384426) set up to complete this step.\n\n1. On the *Using API Keys* page, click **Go to the Credentials page**.\n2. If prompted, select your billing project.\n3. In the top left, click **+ CREATE CREDENTIALS**.\n4. (Optional but recommended) Click **RESTRICT KEY**.\n\n### Restrict the API key to your reports\n\nWe recommend that you restrict the API key to just the reports that need to use it by adding the report URLs to the Cloud Console.\n\n1. Under *Application restrictions* , select **HTTP referrers (web sites)**.\n2. Under *Website restrictions* , click **Add an item**.\n3. Enter the URL of the Looker Studio report that will use this API key.\n4. Add additional URLs to allow multiple reports to use this key.\n\nYou can use wildcards so that multi page reports will work with your API key. If you are embedding your report, you need to include the embed URL of the report as well.\n\nFor example, to include multiple pages, use a URL like this:\n\n`https://lookerstudio.google.com/reporting/\u003csome-report-id\u003e/*`\n\nTo include an embedded report, use a URL like this:\n\n`https://lookerstudio.google.com/embed/reporting/\u003csome-report-id\u003e/*`\n\u003e **Tip** : You should remove any multi login portions of the URL, if present. For example, if the URL looks like this: `https://lookerstudio.google.com/u/0/reporting/...` then you should remove the `/u/0` portion so that it appears like this: `https://lookerstudio.google.com/reporting/...`\n\nAdd your Google Maps API key to your reports\n--------------------------------------------\n\n1. [Edit your report](/looker/docs/studio/edit-a-report).\n2. Select **File \\\u003e Report settings**.\n3. Enter the API key in the **Google Maps API key** field.\n\nPricing\n-------\n\nYour billing account will be charged for using the API key. The following [pricing tiers](https://cloud.google.com/maps-platform/pricing/) apply:\n\n- Dynamic Maps \\\u003e Maps Javascript API for map loads\n- Dynamic Street View \\\u003e Maps Javascript API for street view usage"]]