---
title: get_campaign
description: 'One campaign of the site''s Meta ad account: whether it runs, its `fields`
  as update_campaign takes them (amounts in the account''s currency, times in its
  time zone), its numbers over the last `range` days, and its ad sets with theirs.'
sidebar:
  order: 82
---

One campaign of the site's Meta ad account: whether it runs, its `fields` as update_campaign takes them (amounts in the account's currency, times in its time zone), its numbers over the last `range` days, and its ad sets with theirs. Typed inside `bash`, where `help get_campaign` prints the same.

```text
Usage: get_campaign ID [options]

One campaign of the site's Meta ad account: whether it runs, its
`fields` as update_campaign takes them (amounts in the account's
currency, times in its time zone), its numbers over the last `range`
days, and its ad sets with theirs.

Options:
  --id TEXT (required)
      The campaign's id, from list_campaigns.
  --range N
      How many days of numbers, ending yesterday. Defaults to 28.
  --json OBJECT
      Every argument at once, as one JSON object; --json - reads it from stdin.
```
