Google Marketing Platform Admin API
The Google Marketing Platform Admin API allows for programmatic access to the Google Marketing Platform configuration data. You can use the Google Marketing…
Fork copies the collection into your workspace, without the publisher's secrets, so you can add your own key and send requests. Star saves it to your starred APIs (Account › Marketplace) and helps others find it.
Overview
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.
Endpoints 15
organizations
- POSTReturns a list of clients managed by the sales partner organization
/v1alpha/:organization:findSalesPartnerManagedClientsReturns a list of clients managed by the sales partner organization. User needs to be an OrgAdmin/BillingAdmin on the sales partner organization in order to… - GETReturns a list of organizations that the user has access to.
/v1alpha/organizations?pageSize=0&pageToken=stringReturns a list of organizations that the user has access to. - POSTGets the usage and billing data for properties within the organization for the specified month
/v1alpha/:organization:reportPropertyUsageGets the usage and billing data for properties within the organization for the specified month. Per direct client org, user needs to be OrgAdmin/BillingAdmin…
organizations.userGroups.members
- GETLooks up a single user group member.
/v1alpha/:nameLooks up a single user group member. - DELETEDeletes a member in the specified GMP user group.
/v1alpha/:nameDeletes a member in the specified GMP user group. - PATCHUpdates a member in the specified GMP user group.
/v1alpha/:name?updateMask=stringUpdates a member in the specified GMP user group. - GETReturns a list of members in the specified user group.
/v1alpha/:parent/members?pageSize=0&pageToken=stringReturns a list of members in the specified user group. - POSTAdds a member to the specified GMP user group.
/v1alpha/:parent/membersAdds a member to the specified GMP user group.
organizations.adminAccessBindings
- GETReturns a list of admin access bindings in the specified GMP organization.
/v1alpha/:parent/adminAccessBindings?pageSize=0&pageToken=stringReturns a list of admin access bindings in the specified GMP organization. - POSTCreates an admin access binding in the specified GMP organization.
/v1alpha/:parent/adminAccessBindingsCreates an admin access binding in the specified GMP organization.
organizations.analyticsAccountLinks
- GETLists the Google Analytics accounts link to the specified Google Marketing Platform organization.
/v1alpha/:parent/analyticsAccountLinks?pageSize=0&pageToken=stringLists the Google Analytics accounts link to the specified Google Marketing Platform organization. - POSTCreates the link between the Analytics account and the Google Marketing Platform organization
/v1alpha/:parent/analyticsAccountLinksCreates the link between the Analytics account and the Google Marketing Platform organization. User needs to be an org user, and admin on the Analytics… - POSTUpdates the service level for an Analytics property.
/v1alpha/:analyticsAccountLink:setPropertyServiceLevelUpdates the service level for an Analytics property.
organizations.userGroups
- GETReturns a list of user groups in the specified GMP organization.
/v1alpha/:parent/userGroups?pageSize=0&pageToken=stringReturns a list of user groups in the specified GMP organization. - POSTCreates a user group in the specified GMP organization.
/v1alpha/:parent/userGroupsCreates a user group in the specified GMP organization.
API details
- Base URL
https://marketingplatformadmin.googleapis.com- Authentication
- OAuth 2.0 (authorization code flow) with 2 scopes
An API key in the key query parameter - Operations
- 15 operations on 9 pathsPOST 7GET 6PATCH 1DELETE 1
- Main resources
- organizations.userGroups.members 5organizations 3organizations.analyticsAccountLinks 3organizations.adminAccessBindings 2organizations.userGroups 2
- Response formats
application/json- Description format
- Google API Discovery, API version
v1alpha - Links
- Documentation · OpenAPI document
- Listed from
- Google API Discovery document (googleapis/discovery-artifact-manager) (Apache-2.0)
How to test the Google Marketing Platform Admin API in Swastik Codes
- Open the APISelect “Fork & run in Swastik Codes” on this page. Sign in or create a free account if asked.
- Fork it into your workspaceChoose a workspace. You get your own copy of the Google Marketing Platform Admin API collection, without the publisher's secrets.
- Add your credentialsThis API uses OAuth 2.0 (authorization code flow) with 2 scopes. Add yours in the collection's variables or an environment; the requests already reference it.
- Send a requestPick an endpoint, for example “Returns a list of clients managed by the sales partner organization” (POST /v1alpha/:organization:findSalesPartnerManagedClients), and press Send. Check the response, add tests and run the whole collection with the runner.
Frequently asked questions
What is the Google Marketing Platform Admin API?
The Google Marketing Platform Admin API allows for programmatic access to the Google Marketing Platform configuration data. You can use the Google Marketing… It is listed under Developer tools and has 15 endpoints.
Who publishes the Google Marketing Platform Admin API?
It is listed from Google's public API description (an OpenAPI document), not published by Google on Swastik Codes. Anyone who controls googleapis.com can claim the profile by adding a DNS TXT record.
What is the base URL of the Google Marketing Platform Admin API?
Requests go to https://marketingplatformadmin.googleapis.com. Endpoint paths are added to this base URL.
How do I authenticate with the Google Marketing Platform Admin API?
It accepts 2 methods: OAuth 2.0 (authorization code flow) with 2 scopes; an API key in the key query parameter.
How many endpoints does the Google Marketing Platform Admin API have?
15 operations on 9 paths (7 POST, 6 GET, 1 PATCH, 1 DELETE). The largest groups are organizations.userGroups.members, organizations, organizations.analyticsAccountLinks, organizations.adminAccessBindings.
Is forking the Google Marketing Platform Admin API free?
Yes. Forking copies the collection into your workspace for free. It has been starred 0 times and forked 0 times.