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

# Marketing spend

> Ad spend, impressions, clicks, orders and sales the marketing channels report, with return on ad spend and cost per order.

Ad spend, impressions, clicks, orders and sales the marketing channels report, with return on ad spend and cost per order.

## Example

```sql theme={null}
FROM marketing_spend
  SHOW ad_spend, impressions
  GROUP BY marketing_activity_title
  SINCE startOfMonth(-1m) UNTIL today
  ORDER BY ad_spend DESC
```

## Metrics

| Metric | Type | Description |
| - | - | - |
| `ad_spend` | Currency | What the marketing channels report spending. |
| `impressions` | Number | Times the ads were shown. |
| `clicks` | Number | Clicks on the ads. |
| `marketing_orders` | Number | Orders the channels report for their activity. |
| `marketing_sales` | Currency | Sales the channels report for their activity. |
| `roas` | Number | Sales for each unit of ad spend. |
| `cost_per_order` | Currency | Ad spend for each order. |
| `campaign_return` | Currency | Sales minus ad spend: what the activity made or lost before the cost of goods. |
| `click_through_rate` | Percent | Clicks as a share of impressions. |

## Dimensions

| Dimension | Description |
| - | - |
| `marketing_activity_title` | The marketing activity's name. |
| `channel_handle` | The channel or app that ran it. |

## Filters

| Filter | Type | Description |
| - | - | - |
| `marketing_activity_title` | Text | The marketing activity's name. |
| `channel_handle` | Text | The channel or app that ran it. |

## Linked records

Fields of the records this dataset reaches can be shown, grouped by and filtered on, written with a dot after the record (for example `shop.name`). Each record's page lists its fields.

| Write | Record | Reached through |
| - | - | - |
| `shop.<field>` | [Store](https://docs.queryful.app/queryfulql/records/shop.md) | Store |

## Related datasets

* [Marketing attribution](https://docs.queryful.app/queryfulql/datasets/marketing_attribution.md)
* [Marketing performance](https://docs.queryful.app/queryfulql/datasets/marketing_performance.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.