<!--
{
  "availability" : [
    "Apple Ads Platform API: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Apple-Ads-Platform-API",
  "identifier" : "/documentation/Apple-Ads-Platform-API/ActivityDetail",
  "metadataVersion" : "0.1.0",
  "role" : "Object",
  "symbol" : {
    "kind" : "Object",
    "modules" : [
      "Apple Ads Platform API"
    ],
    "preciseIdentifier" : "data:apple-ads-platform-api:ActivityDetail"
  },
  "title" : "ActivityDetail"
}
-->

# ActivityDetail

A group of field-level changes that occurred within a single activity context in a change details record.

```
object ActivityDetail
```

## Discussion

### Locate ActivityDetail in the response hierarchy

Change history detail responses use a three-level nesting:

```
ChangeDetails
 └── details: ActivityDetail[]
 └── changes: [{ field, oldValues, newValues }]
```

Each [`ChangeDetails`](/documentation/Apple-Ads-Platform-API/ChangeDetails) record has one or more `ActivityDetail` entries in its `details` array. Each `ActivityDetail` groups the field-level changes that share a common activity context within the transaction. In most cases, a single `ActivityDetail` contains all field changes for the entity.

### Iterate over field changes

To access individual field changes, iterate the `changes` array on each `ActivityDetail`:

```json
"details": [
  {
    "transactionId": "txn_abc123def456",
    "changes": [
      { "field": "status", "oldValues": ["PAUSED"], "newValues": ["ENABLED"] },
      { "field": "dailyBudget", "oldValues": ["50.00"], "newValues": ["100.00"] }
    ]
  }
]
```

The API encodes all values in `oldValues` and `newValues` as strings, regardless of the underlying field type. Parse them according to the field’s expected type.

### Example

```json
{
  "transactionId": "txn_abc123def456",
  "changes": [
    {
      "field": "status",
      "oldValues": ["PAUSED"],
      "newValues": ["ENABLED"]
    },
    {
      "field": "dailyBudget",
      "oldValues": ["50.00"],
      "newValues": ["100.00"]
    }
  ]
}
```

## Topics

### Dictionaries

[`object ActivityDetail.Changes`](/documentation/Apple-Ads-Platform-API/ActivityDetail/Changes-data.dictionary)

A single field change entry, capturing the field name and its before and after values.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)