Audit logging for Firebase Cloud Messaging

This document describes audit logging for Firebase Notifications Console. Google Cloud services generate audit logs that record administrative and access activities within your Google Cloud resources. For more information about Cloud Audit Logs, see the following:

Service name

Firebase Notifications Console audit logs use the service name gcmcontextualcampaign-pa.googleapis.com. Filter for this service:

    protoPayload.serviceName="gcmcontextualcampaign-pa.googleapis.com"
  

Methods by permission type

Each IAM permission has a type property, whose value is an enum that can be one of four values: ADMIN_READ, ADMIN_WRITE, DATA_READ, or DATA_WRITE. When you call a method, Firebase Notifications Console generates an audit log whose category is dependent on the type property of the permission required to perform the method. Methods that require an IAM permission with the type property value of DATA_READ, DATA_WRITE, or ADMIN_READ generate Data Access audit logs. Methods that require an IAM permission with the type property value of ADMIN_WRITE generate Admin Activity audit logs.

Permission type Methods
DATA_READ google.internal.gcm.contextual.campaign.v1.CampaignService.GetAnalytics
google.internal.gcm.contextual.campaign.v1.CampaignService.GetAudiences
google.internal.gcm.contextual.campaign.v1.CampaignService.GetFcmStats
google.internal.gcm.contextual.campaign.v1.CampaignService.GetProjectTrackingInfo
google.internal.gcm.contextual.campaign.v1.CampaignService.GetTopicList
google.internal.gcm.contextual.campaign.v2.FirebaseNotificationApiService.GetAnalyticsLabelList
google.internal.gcm.contextual.campaign.v2.FirebaseNotificationApiService.ListCampaigns
DATA_WRITE google.internal.gcm.contextual.campaign.v2.FirebaseNotificationApiService.LegacyCreateRollout

API interface audit logs

For information about how and which permissions are evaluated for each method, see the Cloud Identity and Access Management documentation for Firebase Notifications Console.

google.internal.gcm.contextual.campaign.v1.CampaignService

The following audit logs are associated with methods belonging to google.internal.gcm.contextual.campaign.v1.CampaignService.

GetAnalytics

  • Method: google.internal.gcm.contextual.campaign.v1.CampaignService.GetAnalytics
  • Audit log type: Data access
  • Permissions:
    • firebasenotifications.messages.list - DATA_READ
  • Method is a long-running or streaming operation: No.
  • Filter for this method: protoPayload.methodName="google.internal.gcm.contextual.campaign.v1.CampaignService.GetAnalytics"

GetAudiences

  • Method: google.internal.gcm.contextual.campaign.v1.CampaignService.GetAudiences
  • Audit log type: Data access
  • Permissions:
    • firebasenotifications.messages.list - DATA_READ
  • Method is a long-running or streaming operation: No.
  • Filter for this method: protoPayload.methodName="google.internal.gcm.contextual.campaign.v1.CampaignService.GetAudiences"

GetFcmStats

  • Method: google.internal.gcm.contextual.campaign.v1.CampaignService.GetFcmStats
  • Audit log type: Data access
  • Permissions:
    • firebasenotifications.messages.list - DATA_READ
  • Method is a long-running or streaming operation: No.
  • Filter for this method: protoPayload.methodName="google.internal.gcm.contextual.campaign.v1.CampaignService.GetFcmStats"

GetProjectTrackingInfo

  • Method: google.internal.gcm.contextual.campaign.v1.CampaignService.GetProjectTrackingInfo
  • Audit log type: Data access
  • Permissions:
    • firebasenotifications.messages.list - DATA_READ
  • Method is a long-running or streaming operation: No.
  • Filter for this method: protoPayload.methodName="google.internal.gcm.contextual.campaign.v1.CampaignService.GetProjectTrackingInfo"

GetTopicList

  • Method: google.internal.gcm.contextual.campaign.v1.CampaignService.GetTopicList
  • Audit log type: Data access
  • Permissions:
    • firebasenotifications.messages.list - DATA_READ
  • Method is a long-running or streaming operation: No.
  • Filter for this method: protoPayload.methodName="google.internal.gcm.contextual.campaign.v1.CampaignService.GetTopicList"

google.internal.gcm.contextual.campaign.v2.FirebaseNotificationApiService

The following audit logs are associated with methods belonging to google.internal.gcm.contextual.campaign.v2.FirebaseNotificationApiService.

GetAnalyticsLabelList

  • Method: google.internal.gcm.contextual.campaign.v2.FirebaseNotificationApiService.GetAnalyticsLabelList
  • Audit log type: Data access
  • Permissions:
    • firebasenotifications.messages.list - DATA_READ
  • Method is a long-running or streaming operation: No.
  • Filter for this method: protoPayload.methodName="google.internal.gcm.contextual.campaign.v2.FirebaseNotificationApiService.GetAnalyticsLabelList"

LegacyCreateRollout

  • Method: google.internal.gcm.contextual.campaign.v2.FirebaseNotificationApiService.LegacyCreateRollout
  • Audit log type: Data access
  • Permissions:
    • firebasenotifications.messages.create - DATA_WRITE
  • Method is a long-running or streaming operation: No.
  • Filter for this method: protoPayload.methodName="google.internal.gcm.contextual.campaign.v2.FirebaseNotificationApiService.LegacyCreateRollout"

ListCampaigns

  • Method: google.internal.gcm.contextual.campaign.v2.FirebaseNotificationApiService.ListCampaigns
  • Audit log type: Data access
  • Permissions:
    • firebasenotifications.messages.list - DATA_READ
  • Method is a long-running or streaming operation: No.
  • Filter for this method: protoPayload.methodName="google.internal.gcm.contextual.campaign.v2.FirebaseNotificationApiService.ListCampaigns"