Overview
TheClientAccounts service manages client account resources that represent a MeasurementConsumer’s identity within a DataProvider’s ecosystem. These resources enable EventGroup registration within the EDP Aggregator by providing a mapping between MeasurementConsumer IDs and DataProvider-specific account references.
Resource
ClientAccount
AClientAccount belongs to a MeasurementConsumer within a DataProvider’s ecosystem. Each account is owned and managed by the operator on behalf of the MeasurementConsumer.
Resource name following the pattern:
measurementConsumers/{measurement_consumer}/clientAccounts/{client_account}Resource name of the
DataProvider whose ecosystem this account exists within.Immutable - Cannot be changed after creation.Reference ID for the account in the DataProvider’s ecosystem. Must not exceed 36 characters.The combination of
data_provider and client_account_reference_id must be unique.A given MeasurementConsumer may have more than one ClientAccount for the same DataProvider.
Methods
CreateClientAccount
Creates a newClientAccount.
Request:
Resource name of the parent
MeasurementConsumer.Format: measurementConsumers/{measurement_consumer}The ClientAccount to create. The
name field will be ignored, and the system will assign an ID.ClientAccount resource.
Example:
BatchCreateClientAccounts
Batch createsClientAccounts. Results in an error if any of the specified accounts fail to be created.
Request:
Resource name of the parent
MeasurementConsumer.The requests specifying the ClientAccounts to create. A maximum of 1000 accounts can be created in a single batch.Either all requests must have the same parent (matching the top-level parent), or all requests must leave the parent unset.
GetClientAccount
Returns theClientAccount with the specified resource name.
Request:
Resource name of the ClientAccount to retrieve.Format:
measurementConsumers/{measurement_consumer}/clientAccounts/{client_account}ClientAccount resource.
ListClientAccounts
ListsClientAccounts for a parent resource.
Request:
Resource name of the parent.Format:
dataProviders/{data_provider} or measurementConsumers/{measurement_consumer}The maximum number of resources to return. The service may return fewer than this value.If unspecified, at most 50 resources will be returned. The maximum value is 1000; values above this will be coerced to the maximum.
A token from a previous call, specified to retrieve the next page.
Filter criteria for this request. Each field represents a term in a conjunction.
The ClientAccount resources.
A token that can be specified in a subsequent call to retrieve the next page.
DeleteClientAccount
Deletes an existingClientAccount.
Request:
Resource name of the ClientAccount to delete.Format:
measurementConsumers/{measurement_consumer}/clientAccounts/{client_account}BatchDeleteClientAccounts
Batch deletesClientAccounts. Results in an error if any of the specified accounts fail to be deleted.
Request:
Resource name of the parent MeasurementConsumer.
The resource names of the ClientAccounts to delete. A maximum of 1000 accounts can be deleted in a single batch.
Usage Examples
Creating a Client Account
Listing Client Accounts
Batch Operations
Best Practices
Unique Reference IDs
Ensure that the combination of
data_provider and client_account_reference_id is unique across all ClientAccounts for a given MeasurementConsumer.Reference ID Management
The
reference_id should be known by the DataProvider and shared with the operator out of band. Keep these IDs under 36 characters.Batch Operations
Use batch operations when creating or deleting multiple ClientAccounts to improve performance. Maximum batch size is 1000 accounts.
