startRevenueAttributionAllocationsTask
inline suspend fun PartnerCentralRevenueMeasurementClient.startRevenueAttributionAllocationsTask(crossinline block: StartRevenueAttributionAllocationsTaskRequest.Builder.() -> Unit): StartRevenueAttributionAllocationsTaskResponse
Submits a batch of up to 250 allocation changes (CREATE and/or UPDATE) for asynchronous processing. Returns a TaskId for tracking.
Samples
// Example for StartRevenueAttributionAllocationsTask
val resp = partnerCentralRevenueMeasurementClient.startRevenueAttributionAllocationsTask {
catalog = CatalogName.fromValue("AWS")
revenueAttributionIdentifier = "ra-0a1b2c3d4e5f6"
revenueAttributionRevision = "1"
revenueShareAllocations = listOf<RevenueShareAllocation>(
RevenueShareAllocation {
action = RevenueAttributionAllocationAction.fromValue("CREATE")
entityType = EntityType.fromValue("OFFER")
entityIdentifier = "offer-abc123"
customerAwsAccountId = "123456789012"
revenueSharePercent = "15.50"
effectiveFrom = "2026-07-01"
effectiveUntil = "2026-07-31"
}
)
clientToken = "unique-token-123"
}Content copied to clipboard