Google Marketing Platform Admin API

  • The Google Marketing Platform Admin API provides programmatic access to Google Marketing Platform configuration data.

  • You can manage the connection between your Google Marketing Platform organization and Google Analytics using this API.

  • Client libraries are recommended for interacting with the API, but detailed information is available for custom integrations.

  • The API uses a RESTful architecture and has a specific service endpoint for making requests.

  • It offers functionality for creating, deleting, listing, and updating the service level of links between Google Marketing Platform and Google Analytics accounts.

The Google Marketing Platform Admin API allows for programmatic access to the Google Marketing Platform configuration data. You can use the Google Marketing Platform Admin API to manage links between your Google Marketing Platform organization and Google Analytics accounts, and to set the service level of your GA4 properties.

Service: marketingplatformadmin.googleapis.com

To call this service, we recommend that you use the Google-provided client libraries. If your application needs to use your own libraries to call this service, use the following information when you make the API requests.

Discovery document

A Discovery Document is a machine-readable specification for describing and consuming REST APIs. It is used to build client libraries, IDE plugins, and other tools that interact with Google APIs. One service may provide multiple discovery documents. This service provides the following discovery document:

Service endpoint

A service endpoint is a base URL that specifies the network address of an API service. One service might have multiple service endpoints. This service has the following service endpoint and all URIs below are relative to this service endpoint:

  • https://marketingplatformadmin.googleapis.com

REST Resource: v1alpha.organizations

Methods
findSalesPartnerManagedClients POST /v1alpha/{organization=organizations/*}:findSalesPartnerManagedClients
Returns a list of clients managed by the sales partner organization.
get GET /v1alpha/{name=organizations/*}
Looks up a single organization.
list GET /v1alpha/organizations
Returns a list of organizations that the user has access to.
reportPropertyUsage POST /v1alpha/{organization=organizations/*}:reportPropertyUsage
Gets the usage and billing data for properties within the organization for the specified month.

REST Resource: v1alpha.organizations.adminAccessBindings

Methods
create POST /v1alpha/{parent=organizations/*}/adminAccessBindings
Creates an admin access binding in the specified GMP organization.
get GET /v1alpha/{name=organizations/*/adminAccessBindings/*}
Looks up a single admin access binding.
list GET /v1alpha/{parent=organizations/*}/adminAccessBindings
Returns a list of admin access bindings in the specified GMP organization.
patch PATCH /v1alpha/{adminAccessBinding.name=organizations/*/adminAccessBindings/*}
Updates an admin access binding in the specified GMP organization.

REST Resource: v1alpha.organizations.userGroups

Methods
create POST /v1alpha/{parent=organizations/*}/userGroups
Creates a user group in the specified GMP organization.
delete DELETE /v1alpha/{name=organizations/*/userGroups/*}
Deletes a user group in the specified GMP organization.
get GET /v1alpha/{name=organizations/*/userGroups/*}
Looks up a single user group.
list GET /v1alpha/{parent=organizations/*}/userGroups
Returns a list of user groups in the specified GMP organization.
patch PATCH /v1alpha/{userGroup.name=organizations/*/userGroups/*}
Updates a user group in the specified GMP organization.

REST Resource: v1alpha.organizations.userGroups.members

Methods
create POST /v1alpha/{parent=organizations/*/userGroups/*}/members
Adds a member to the specified GMP user group.
delete DELETE /v1alpha/{name=organizations/*/userGroups/*/members/*}
Deletes a member in the specified GMP user group.
get GET /v1alpha/{name=organizations/*/userGroups/*/members/*}
Looks up a single user group member.
list GET /v1alpha/{parent=organizations/*/userGroups/*}/members
Returns a list of members in the specified user group.
patch PATCH /v1alpha/{userGroupMember.name=organizations/*/userGroups/*/members/*}
Updates a member in the specified GMP user group.