> ## Documentation Index
> Fetch the complete documentation index at: https://docs.markifact.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Get Report

> Retrieves Apple Ads reporting data with customizable metrics, dimensions, filters, date ranges, and sorting options

Retrieves Apple Ads reporting data with customizable metrics, dimensions, filters, date ranges, and sorting options. Supports campaign, ad group, ad, keyword, and search term report levels.

|                      |                        |
| -------------------- | ---------------------- |
| **App**              | Apple Ads              |
| **Operation ID**     | `apple_ads_get_report` |
| **Type**             | Action                 |
| **Connection**       | `apple_ads` (required) |
| **Credits per run**  | 1                      |
| **Agent / MCP tool** | Yes                    |

## Inputs

| Field        | Type                                          | Required | Default | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |
| ------------ | --------------------------------------------- | -------- | ------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `accounts`   | array (also accepts a comma-separated string) | Yes      | -       | A list of accounts to query. Ask the user for it if not provided, or use other tools to fetch the accounts details first. You can select multiple accounts in one go, and if you want to break down the data by account, add 'accountName' to fields.                                                                                                                                                                                                                                  |
| `date_range` | DateRange                                     | Yes      | -       | Date range for the report. Options: - Use preset='FIXED' with start/end dates (YYYY-MM-DD) for specific date ranges - Use preset='CUSTOM' with start/end dynamic values (\{\{nodeId\_\_data.start\_date}}) for dates from other nodes - Use other presets (TODAY, YESTERDAY, LAST\_7\_DAYS, etc.) for predefined ranges When using 'FIXED' or 'CUSTOM' presets, both start and end fields are required. For other presets, start and end will be ignored and calculated automatically. |
| `metrics`    | array of string or SelectableOption           | Yes      | -       | List of metrics to query. Don't try to guess metric names, use the relevant tool to discover available metrics or prompt user to browse metrics in the UI.                                                                                                                                                                                                                                                                                                                             |
| `dimensions` | array of string or SelectableOption           | No       | -       | List of dimensions to query. Don't try to guess dimension names, use the relevant tool to discover available dimensions or prompt user to browse dimensions in the UI.                                                                                                                                                                                                                                                                                                                 |
| `filters`    | array of FilterItem                           | No       | -       | List of filters to apply to the report. Each filter must have a field, operator, and value. Filters are combined using AND logic. If you want to use OR logic, use relevant operators like REGEXP\_MATCH or IN\_LIST.                                                                                                                                                                                                                                                                  |
| `orders`     | array of OrderItem                            | No       | -       | List of fields to sort the report by. Each order must have a `field` and `direction`. The field must be one of the current selected metrics or dimensions.                                                                                                                                                                                                                                                                                                                             |
| `limit`      | integer                                       | No       | -       | The maximum number of rows to return.                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| `options`    | AppleAdsReportOptions                         | No       | -       | Additional options for the report.                                                                                                                                                                                                                                                                                                                                                                                                                                                     |

### AppleAdsReportOptions

| Field                      | Type            | Required | Default | Description                                                                                                                      |
| -------------------------- | --------------- | -------- | ------- | -------------------------------------------------------------------------------------------------------------------------------- |
| `pretty_column_names`      | boolean         | No       | -       | whether to use pretty column names in the report (e.g., 'Clicks' instead of 'clicks').                                           |
| `show_percent_sign`        | boolean         | No       | -       | whether to show percent sign for percentage metrics (e.g., '58%' instead of '0.58').                                             |
| `currency_symbol`          | string          | No       | -       | the currency symbol to use for monetary values (e.g., '\$').                                                                     |
| `compact_numbers`          | boolean         | No       | -       | whether to use compact number format (e.g., '1K') and round decimals. Takes priority over thousand\_separators.                  |
| `thousand_separators`      | boolean         | No       | -       | whether to format numbers with thousand separators (e.g., '105,878') and round decimals. Ignored if compact\_numbers is enabled. |
| `pivot_dimensions`         | array of string | No       | -       | the dimensions to pivot the report on. Must be one of the current selected dimensions.                                           |
| `include_zero_impressions` | boolean         | No       | -       | Whether to include records with no metrics in the Apple Ads report.                                                              |

### DateRange

| Field     | Type           | Required | Default | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
| --------- | -------------- | -------- | ------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `start`   | string         | No       | -       | The start date of the date range to query, format: YYYY-MM-DD or dynamic node reference like \{\{nodeId\_\_data.start\_date}}. Required when preset is 'FIXED' or 'CUSTOM'.                                                                                                                                                                                                                                                                                                   |
| `end`     | string         | No       | -       | The end date of the date range to query, format: YYYY-MM-DD or dynamic node reference like \{\{nodeId\_\_data.end\_date}}. Required when preset is 'FIXED' or 'CUSTOM'.                                                                                                                                                                                                                                                                                                       |
| `preset`  | string         | No       | -       | Predefined date ranges or input modes: - Use 'FIXED' or leave empty when you want to specify exact dates (YYYY-MM-DD format) in start/end fields - Use 'CUSTOM' when you want to use dynamic values from other nodes (\{\{nodeId\_\_data.start\_date}} format) in start/end fields - Use other presets (TODAY, YESTERDAY, LAST\_7\_DAYS, etc.) for predefined date ranges (start/end will be ignored) When using 'FIXED' or 'CUSTOM', both start and end fields are required. |
| `compare` | CompareOptions | No       | -       | Optional comparison date range settings. ALWAYS use this field for comparisons; DO NOT create additional requests or nodes, as the backend returns current, comparison, and delta metrics in a single call.                                                                                                                                                                                                                                                                   |

### FilterItem

| Field      | Type                       | Required | Default | Description                                                                                                                                                   |
| ---------- | -------------------------- | -------- | ------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `field`    | string or SelectableOption | Yes      | -       | The field to filter on, must be one of the current selected metrics or dimensions.                                                                            |
| `operator` | string                     | Yes      | -       | The operator to use for filtering. Must be one of the supported values. Use REGEXP\_MATCH to search/filter by multiple OR values like '.*(summer\|holiday).*' |
| `value`    | string                     | Yes      | -       | The value to filter by. Can be a string, number, regex, or a list of strings.                                                                                 |

### OrderItem

| Field       | Type                       | Required | Default | Description                                                                      |
| ----------- | -------------------------- | -------- | ------- | -------------------------------------------------------------------------------- |
| `field`     | string or SelectableOption | Yes      | -       | The field to sort by. must be one of the current selected metrics or dimensions. |
| `direction` | string                     | Yes      | -       | The order to sort by, must be one of 'ASC', 'DESC'                               |

### SelectableOption

| Field   | Type   | Required | Default | Description |
| ------- | ------ | -------- | ------- | ----------- |
| `value` | string | Yes      | -       |             |
| `label` | string | Yes      | -       |             |

### CompareOptions

| Field                   | Type   | Required | Default      | Description                                                                                                                                                                                                                                               |
| ----------------------- | ------ | -------- | ------------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `start`                 | string | No       | -            | The start date of the comparison range, format: YYYY-MM-DD. Optional if preset is provided.                                                                                                                                                               |
| `end`                   | string | No       | -            | The end date of the comparison range, format: YYYY-MM-DD. Optional if preset is provided.                                                                                                                                                                 |
| `preset`                | string | No       | -            | Predefined comparison ranges. When provided, start and end will be ignored.                                                                                                                                                                               |
| `comparison_format`     | string | No       | `rows`       | Comparison output layout: 'rows' returns separate rows for current, comparison, and delta along with date ranges; 'columns' returns a single row with delta values only as additional \*\_pct or \*\_change columns depending on comparison\_value\_type. |
| `comparison_value_type` | string | No       | `percentage` | Value type: 'percentage' or 'absolute'                                                                                                                                                                                                                    |

## Output

**Type**: `List[Dict]`

Returns list of rows. Each row is a dict with keys matching selected metrics/dimensions. If 'pretty\_column\_names' is enabled, keys are formatted.

**Fields**: dynamic (depend on the inputs)

**Example**:

```json theme={"dark"}
[
  {
    "campaignName": "Brand Search",
    "impressions": 15000,
    "taps": 300,
    "localSpend": 95.0
  }
]
```
