Skip to main content

web_apps__config

Overview

Nameweb_apps__config
TypeResource
Idfirebase.firebase.web_apps__config

Fields

NameDatatypeDescription
databaseURLstringThe default Firebase Realtime Database URL.
apiKeystringThe keyString of the API key associated with the WebApp. Note that this value is not the apiKeyId (the UID) of the API key associated with the WebApp.
projectIdstringImmutable. A user-assigned unique identifier for the FirebaseProject.
storageBucketstringThe default Cloud Storage for Firebase storage bucket name.
measurementIdstringThe unique Google-assigned identifier of the Google Analytics web stream associated with the WebApp. Firebase SDKs use this ID to interact with Google Analytics APIs. This field is only present if the WebApp is linked to a web stream in a Google Analytics App + Web property. Learn more about this ID and Google Analytics web streams in the Analytics documentation. To generate a measurementId and link the WebApp with a Google Analytics web stream, call AddGoogleAnalytics. For apps using the Firebase JavaScript SDK v7.20.0 and later, Firebase dynamically fetches the measurementId when your app initializes Analytics. Having this ID in your config object is optional, but it does serve as a fallback in the rare case that the dynamic fetch fails.
authDomainstringThe domain Firebase Auth configures for OAuth redirects, in the format: PROJECT_ID.firebaseapp.com
locationIdstringThe ID of the Project's default GCP resource location. The location is one of the available GCP resource locations. This field is omitted if the default GCP resource location has not been finalized yet. To set a Project's default GCP resource location, call FinalizeDefaultLocation after you add Firebase resources to the Project.
appIdstringImmutable. The globally unique, Firebase-assigned identifier for the WebApp.
messagingSenderIdstringThe sender ID for use with Firebase Cloud Messaging.

Methods

NameAccessible byRequired Params
projects_webApps_getConfigSELECTprojectsId, webAppsId