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

# Group rows

> Bucket report rows by ad account, status, tag, team member, currency, timezone, placement or campaign — or by custom groups you define yourself.

Grouping buckets the rows of a report into groups. Each group row carries the subtotal for everything inside it, and you can expand it to see its rows. Choose a grouping from the **Group by** control on the toolbar.

![Group by menu for a Taboola campaign report](https://mintcdn.com/theoptimizer/Mog2cU18b_b_X0YO/images/reports-group-by-menu.png?fit=max\&auto=format\&n=Mog2cU18b_b_X0YO\&q=85\&s=43fdf7fe91350e792a8ca3a3af74d922)

***

## What you can group by

The options depend on the [breakdown](https://docs.theoptimizer.io/reports/build-a-report.md#breakdown) — each one only offers the groupings that make sense for its rows.

| Breakdown | Group by options |
| - | - |
| **Campaign**, and a network's own levels | **Ad network** (*All ad networks* only), **Ad account**, **Status**, **Tag**, and group sets — plus the extra options below |
| **Ad account** | **Ad network** (*All ad networks* only), **Tag** (ad account tags), **Team member**, **Currency**, **Timezone**, and group sets |
| **Day** or **Month** | **Ad network** (*All ad networks* only), **Ad account**, **Team member**, **Currency**, **Timezone** |
| **Ad network** | No grouping |

Some breakdowns add options of their own:

* **Ad level** — **Landing page** groups ads that point to the same URL. On Facebook, **Ad name** groups ads that share a name, so you can see how one creative performs across every ad set it runs in
* **Any level below campaign** — **Campaign** rolls ad sets, ads, sites or widgets up into the campaign they belong to
* **Campaign on a native network** — the network's placement level, such as **Site** on Taboola. See [Group by placement](#group-by-placement)

Pick **No grouping** to go back to a flat list.

**Ad network** groups rows by the ad network they come from. It's only offered with **All ad networks** selected, since a single-network report has just one.

> [!NOTE]
>
> **Team member** appears only when your plan includes [team members](https://docs.theoptimizer.io/account-settings/team-members.md). It groups ad accounts by the team members who have access to them — an account several members share appears in each of their groups.

***

## Group by tag

Choosing **Tag** opens a picker listing every tag in use at the current breakdown — campaign tags for campaigns, ad account tags for ad accounts, and so on. Each tag you select becomes one group.

![Tag picker with four tags selected](https://mintcdn.com/theoptimizer/Mog2cU18b_b_X0YO/images/reports-tag-picker.png?fit=max\&auto=format\&n=Mog2cU18b_b_X0YO\&q=85\&s=aaf4b3e78f91ac37b0126292806549a3)

* Search the list, or use **Select all** and **Clear**
* Select up to 20 tags. The counter at the top shows how many you've picked
* Leave everything unselected to group by every tag — the counter then reads *None selected: shows all tags*
* Click **Apply** to group the report

A row with several tags appears in the group of each selected tag, so groups can overlap.

**Team member**, **Currency** and **Timezone** open the same kind of picker, so you can group by only the members, currencies or timezones you care about.

> [!TIP]
>
> Grouping by the same tags again and again? Click **Save as group set…** in the tag picker to save your selection as a [group set](#custom-groups), with one group per tag. It then appears in the **Group by** menu for every report.

***

## Group by placement

On native networks, a campaign's traffic comes from sites, publishers or widgets — whatever the network calls its placements. To see which placements carry your campaigns:

**1. Pick a single native network**

Choose the network, for example Taboola, from the ad network control.

**2. Choose the Campaign breakdown**

Set **Breakdown** to **Campaign**.

**3. Group by the placement level**

Open **Group by** and choose the network's placement level, for example **Site**.

Each group is now one site, with its total across every campaign it runs in and a count such as *4 campaigns* underneath. Click the arrow on a site to see the campaigns it appears in, and what it delivered for each one.

![Taboola campaigns grouped by site, with one site expanded to its campaigns](https://mintcdn.com/theoptimizer/Mog2cU18b_b_X0YO/images/reports-group-by-site.png?fit=max\&auto=format\&n=Mog2cU18b_b_X0YO\&q=85\&s=7eb30fd4bb20fce39ba315ed146c0274)

***

## Custom groups

Custom groups let you define your own buckets with conditions, for when tags or statuses don't match how you think about your campaigns. Typical examples are funnel stages, verticals, geos taken from your naming convention, or *testing* versus *scaling* campaigns.

A set of custom groups is called a **group set**. Group sets are available on the **Campaign** breakdown, a network's own levels, and the **Ad account** breakdown.

### Create a group set

**1. Open the group builder**

Open **Group by** and choose **New group set…** under **Group sets**.

**2. Name the set**

Type a name for the group set at the top of the dialog, for example *Funnel stages*. A set needs a name before you can save it, but you can apply it without one.

**3. Define each group**

For each group, give it a name and a color, then click **+ Condition** to add the rules a row must match. Conditions can use a row's **Name**, its **Status** or its **Tags** — for example *Campaign Name starts with US*. The count on the right, such as *2 campaigns*, shows how many rows the group matches right now. A group without a condition reads *Add a condition*.

![Group builder with a group set name, one group and the condition fields](https://mintcdn.com/theoptimizer/Mog2cU18b_b_X0YO/images/reports-group-builder.png?fit=max\&auto=format\&n=Mog2cU18b_b_X0YO\&q=85\&s=ad14906cbce5e94d56e679c120e61c0e)

**4. Add more groups**

Click **Add group** for each additional bucket, up to 20. Use the duplicate icon to copy a group and adjust it.

**5. Apply or save**

Click **Apply** to use the groups in this report right away without keeping them, or **Save group set** to keep the set and reuse it in any report.

> [!NOTE]
>
> Each group is an independent filter over the report's rows, so groups can overlap — a row that matches two groups is counted in both. The **Total** row always shows everything, not the sum of the groups.

### Manage saved group sets

Saved group sets are listed under **Group sets** in the **Group by** menu. Hover a set to reveal its actions:

* **Edit** — change the set's groups. Every report using the set picks up the change
* **Duplicate** — copy the set as the starting point for a new one
* **Delete** — remove the set. The confirmation tells you how many saved reports use it; those reports fall back to no grouping

A group set built on a single network is only offered on that network. A set built with **All ad networks** selected is offered everywhere.

While you're using groups you applied but didn't save, **Group by** reads **Custom**, and the menu lists them as **Custom** with an edit icon. Finish or save those groups before starting a new set.

***

## Related

> [card] [Build a report](https://docs.theoptimizer.io/reports/build-a-report.md)
>
> Ad network, ad accounts, breakdown, filters, dates, currency, chart, columns and export.

> [card] [Share reports](https://docs.theoptimizer.io/reports/sharing.md)
>
> Which groupings a shared link can show.


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