# Outbrain Amplify

> Run Outbrain Amplify campaigns: manage budgets, campaigns and ads, find locations to target, and report performance by day, campaign, ad, publisher, location and device.

App · 25 actions. Web page: https://docs.lodol.com/docs/integrations/outbrain-amplify

## Actions

### Archive campaign

Archive a campaign, which stops it and hides it from campaign lists.

**Inputs**

- Campaign (`campaign_id`, text, required): The campaign.

**Outputs**

- `data` (object): The response from Outbrain Amplify.

**Example output**

```json
{
  "data": {
    "amountSpent": 1,
    "autoArchived": true,
    "budget": {
      "amount": 1,
      "amountRemaining": 1,
      "amountSpent": 1,
      "creationTime": "example",
      "currency": "example",
      "dailyTarget": 1,
      "endDate": "example",
      "id": "example",
      "lastModified": "example",
      "maximumAmount": 1,
      "name": "example",
      "pacing": "example",
      "runForever": true,
      "shared": true,
      "startDate": "example",
      "type": "example"
    },
    "contentType": "example",
    "cpc": 1,
    "creationTime": "example",
    "currency": "example",
    "enabled": true,
    "id": "example",
    "lastModified": "example",
    "liveStatus": {
      "amountSpent": 1,
      "campaignOnAir": true,
      "onAirModificationTime": "example",
      "onAirReason": "example"
    },
    "marketerId": "example",
    "minimumCpc": 1,
    "name": "example",
    "objective": "example",
    "onAirReason": "example",
    "suffixTrackingCode": "example",
    "targeting": {
      "browsers": [
        "example"
      ],
      "operatingSystems": [
        "example"
      ],
      "platform": [
        "example"
      ]
    }
  }
}
```

### Create ad

Add a promoted link (ad) to a campaign. Outbrain fills in a headline and image from the page when you leave them out.

**Inputs**

- Campaign (`campaign_id`, text, required): The campaign.
- URL (`url`, text, required): The page the ad links to.
- Run when approved (`enabled`, true/false): Run the ad once it's approved. Leave off to add it paused.
- Headline (`text`, text): The headline. Leave empty to use the page's title.
- Description (`description`, text): A description shown with the ad, where the placement has room.
- Section name (`section_name`, text): The section name shown as the source.
- Image URL (`image_url`, text): A link to the ad's image. Leave empty to use the page's.
- Format (`ad_format`, text): The ad's format. Leave empty for native. One of: `NATIVE`, `VIDEO`, `DISPLAY`.

**Outputs**

- `data` (object): The response from Outbrain Amplify.

**Example output**

```json
{
  "data": {
    "adFormat": "example",
    "approvalStatus": {
      "isEditable": true,
      "reasons": [
        "example"
      ],
      "status": "example"
    },
    "archived": true,
    "baseUrl": "example",
    "campaignId": "example",
    "creationTime": "example",
    "description": "example",
    "documentLanguage": "example",
    "enabled": true,
    "id": "example",
    "lastModified": "example",
    "onAirStatus": {
      "onAir": true,
      "reason": "example"
    },
    "sectionName": "example",
    "status": "example",
    "text": "example",
    "url": "example"
  }
}
```

### Create budget

Create a budget for a marketer's campaigns.

**Inputs**

- Marketer (`marketer_id`, text, required): The marketer (advertiser account).
- Name (`name`, text, required): The budget's name, unique for the marketer, up to 100 characters.
- Amount (`amount`, number, required): The amount to spend. At least 0.
- Starts (`start_date`, date, required): The day spending starts.
- Ends (`end_date`, date): The day spending stops. Leave empty to run until stopped.
- Renews (`budget_type`, text): How often the amount renews. Leave empty for once. One of: `CAMPAIGN` (Once, for the whole campaign), `MONTHLY` (Every month), `DAILY` (Every day).
- Pacing (`pacing`, text): How fast to spend it. Leave empty to let Outbrain pace it. One of: `SPEND_ASAP` (As fast as possible), `AUTOMATIC` (Let Outbrain pace it), `DAILY_TARGET` (Up to a daily target).
- Daily target (`daily_target`, number): The most to spend a day, for daily-target pacing. At least 0.

**Outputs**

- `data` (object): The response from Outbrain Amplify.

**Example output**

```json
{
  "data": {
    "amount": 1,
    "amountRemaining": 1,
    "amountSpent": 1,
    "creationTime": "example",
    "currency": "example",
    "dailyTarget": 1,
    "endDate": "example",
    "id": "example",
    "lastModified": "example",
    "maximumAmount": 1,
    "name": "example",
    "pacing": "example",
    "runForever": true,
    "shared": true,
    "startDate": "example",
    "type": "example"
  }
}
```

### Create campaign

Create a campaign on a budget. It starts paused unless you turn it on.

**Inputs**

- Name (`name`, text, required): The campaign's name, unique for the marketer, up to 100 characters.
- Budget (`budget_id`, text, required): The budget the campaign spends.
- Cost per click (`cpc`, number, required): The cost per click to bid, in the budget's currency. At least 0.
- Start now (`enabled`, true/false): Start the campaign now. Leave off to create it paused.
- Platforms (`platforms`, list): The devices to show ads on. Leave empty for all of them. One or more of: `DESKTOP`, `MOBILE`, `TABLET`.
- Location IDs (`location_ids`, list): The locations to target, by the IDs Search locations returns. Leave empty for everywhere.
- Objective (`objective`, text): What the campaign is for. One of: `Awareness`, `Traffic`, `Conversions`, `AppInstalls` (App installs).
- Tracking parameters (`suffix_tracking_code`, text): Parameters added to every ad's link, such as utm_source=outbrain.

**Outputs**

- `data` (object): The response from Outbrain Amplify.

**Example output**

```json
{
  "data": {
    "amountSpent": 1,
    "autoArchived": true,
    "budget": {
      "amount": 1,
      "amountRemaining": 1,
      "amountSpent": 1,
      "creationTime": "example",
      "currency": "example",
      "dailyTarget": 1,
      "endDate": "example",
      "id": "example",
      "lastModified": "example",
      "maximumAmount": 1,
      "name": "example",
      "pacing": "example",
      "runForever": true,
      "shared": true,
      "startDate": "example",
      "type": "example"
    },
    "contentType": "example",
    "cpc": 1,
    "creationTime": "example",
    "currency": "example",
    "enabled": true,
    "id": "example",
    "lastModified": "example",
    "liveStatus": {
      "amountSpent": 1,
      "campaignOnAir": true,
      "onAirModificationTime": "example",
      "onAirReason": "example"
    },
    "marketerId": "example",
    "minimumCpc": 1,
    "name": "example",
    "objective": "example",
    "onAirReason": "example",
    "suffixTrackingCode": "example",
    "targeting": {
      "browsers": [
        "example"
      ],
      "operatingSystems": [
        "example"
      ],
      "platform": [
        "example"
      ]
    }
  }
}
```

### Delete budget

Delete a budget that no campaign uses and that has never spent.

**Inputs**

- Budget (`budget_id`, text, required): The budget.

**Outputs**

- `data` (object): The response from Outbrain Amplify.

**Example output**

```json
{
  "data": {
    "deleted": true,
    "id": "example"
  }
}
```

### Get ad

Get a promoted link (ad): its headline, link, review status and whether it is on air.

**Inputs**

- Campaign (`campaign_id`, text): The ad's campaign.
- Ad (`promoted_link_id`, text, required): The promoted link (ad).

**Outputs**

- `data` (object): The response from Outbrain Amplify.

**Example output**

```json
{
  "data": {
    "adFormat": "example",
    "approvalStatus": {
      "isEditable": true,
      "reasons": [
        "example"
      ],
      "status": "example"
    },
    "archived": true,
    "baseUrl": "example",
    "campaignId": "example",
    "creationTime": "example",
    "description": "example",
    "documentLanguage": "example",
    "enabled": true,
    "id": "example",
    "lastModified": "example",
    "onAirStatus": {
      "onAir": true,
      "reason": "example"
    },
    "sectionName": "example",
    "status": "example",
    "text": "example",
    "url": "example"
  }
}
```

### Get ad performance

Get each promoted link's (ad's) impressions, clicks, spend and conversions over a period.

**Inputs**

- Marketer (`marketer_id`, text, required): The marketer (advertiser account).
- From (`start_date`, date, required): The first day of the report.
- To (`end_date`, date, required): The last day of the report.
- Campaign (`report_campaign_id`, text): Only this campaign. Leave empty for every campaign.
- Budget (`report_budget_id`, text): Only campaigns on this budget.
- Include archived campaigns (`include_archived`, true/false): Also count archived campaigns.
- Conversion details (`include_conversion_details`, true/false): Break conversions down by conversion event.
- Limit (`limit`, number): How many to return, up to 500. Leave empty for 10. From 1 to 500.
- Offset (`offset`, number): How many to skip, for the next page. At least 0.

**Outputs**

- `data` (object): The response from Outbrain Amplify.

**Example output**

```json
{
  "data": {
    "results": [
      {
        "metadata": {
          "campaignId": "example",
          "campaignName": "example",
          "enabled": true,
          "id": "example",
          "title": "example",
          "url": "example"
        },
        "metrics": {
          "clicks": 1,
          "conversionRate": 1,
          "conversions": 1,
          "cpa": 1,
          "ctr": 1,
          "ecpc": 1,
          "impressions": 1,
          "roas": 1,
          "spend": 1,
          "sumValue": 1,
          "totalConversions": 1,
          "viewConversions": 1
        }
      }
    ],
    "totalResults": 1
  }
}
```

### Get budget

Get a budget's amount, what it has spent and has left, its dates and pacing.

**Inputs**

- Budget (`budget_id`, text, required): The budget.

**Outputs**

- `data` (object): The response from Outbrain Amplify.

**Example output**

```json
{
  "data": {
    "amount": 1,
    "amountRemaining": 1,
    "amountSpent": 1,
    "creationTime": "example",
    "currency": "example",
    "dailyTarget": 1,
    "endDate": "example",
    "id": "example",
    "lastModified": "example",
    "maximumAmount": 1,
    "name": "example",
    "pacing": "example",
    "runForever": true,
    "shared": true,
    "startDate": "example",
    "type": "example"
  }
}
```

### Get campaign

Get a campaign's settings, budget and whether it is on air, and why not.

**Inputs**

- Campaign (`campaign_id`, text, required): The campaign.

**Outputs**

- `data` (object): The response from Outbrain Amplify.

**Example output**

```json
{
  "data": {
    "amountSpent": 1,
    "autoArchived": true,
    "budget": {
      "amount": 1,
      "amountRemaining": 1,
      "amountSpent": 1,
      "creationTime": "example",
      "currency": "example",
      "dailyTarget": 1,
      "endDate": "example",
      "id": "example",
      "lastModified": "example",
      "maximumAmount": 1,
      "name": "example",
      "pacing": "example",
      "runForever": true,
      "shared": true,
      "startDate": "example",
      "type": "example"
    },
    "contentType": "example",
    "cpc": 1,
    "creationTime": "example",
    "currency": "example",
    "enabled": true,
    "id": "example",
    "lastModified": "example",
    "liveStatus": {
      "amountSpent": 1,
      "campaignOnAir": true,
      "onAirModificationTime": "example",
      "onAirReason": "example"
    },
    "marketerId": "example",
    "minimumCpc": 1,
    "name": "example",
    "objective": "example",
    "onAirReason": "example",
    "suffixTrackingCode": "example",
    "targeting": {
      "browsers": [
        "example"
      ],
      "operatingSystems": [
        "example"
      ],
      "platform": [
        "example"
      ]
    }
  }
}
```

### Get campaign locations

Get the locations a campaign targets and the ones it excludes.

**Inputs**

- Campaign (`campaign_id`, text, required): The campaign.

**Outputs**

- `data` (object): The response from Outbrain Amplify.

**Example output**

```json
{
  "data": {
    "excludedGeoLocations": [
      {
        "canonicalName": "example",
        "code": "example",
        "geoType": "example",
        "id": "example",
        "name": "example"
      }
    ],
    "geoLocations": [
      {
        "canonicalName": "example",
        "code": "example",
        "geoType": "example",
        "id": "example",
        "name": "example"
      }
    ]
  }
}
```

### Get campaign performance

Get each campaign's impressions, clicks, spend and conversions over a period.

**Inputs**

- Marketer (`marketer_id`, text, required): The marketer (advertiser account).
- From (`start_date`, date, required): The first day of the report.
- To (`end_date`, date, required): The last day of the report.
- Campaign (`report_campaign_id`, text): Only this campaign. Leave empty for every campaign.
- Budget (`report_budget_id`, text): Only campaigns on this budget.
- Include archived campaigns (`include_archived`, true/false): Also count archived campaigns.
- Conversion details (`include_conversion_details`, true/false): Break conversions down by conversion event.
- Limit (`limit`, number): How many to return, up to 500. Leave empty for 10. From 1 to 500.
- Offset (`offset`, number): How many to skip, for the next page. At least 0.

**Outputs**

- `data` (object): The response from Outbrain Amplify.

**Example output**

```json
{
  "data": {
    "results": [
      {
        "metadata": {
          "campaignOnAir": true,
          "cpc": 1,
          "enabled": true,
          "id": "example",
          "name": "example",
          "onAirReason": "example"
        },
        "metrics": {
          "clicks": 1,
          "conversionRate": 1,
          "conversions": 1,
          "cpa": 1,
          "ctr": 1,
          "ecpc": 1,
          "impressions": 1,
          "roas": 1,
          "spend": 1,
          "sumValue": 1,
          "totalConversions": 1,
          "viewConversions": 1
        }
      }
    ],
    "totalResults": 1
  }
}
```

### Get device performance

Get impressions, clicks, spend and conversions for each device, operating system or browser.

**Inputs**

- Marketer (`marketer_id`, text, required): The marketer (advertiser account).
- From (`start_date`, date, required): The first day of the report.
- To (`end_date`, date, required): The last day of the report.
- Group by (`platform_breakdown`, text): How to group devices. Leave empty for platforms. One of: `platform`, `os` (Operating system), `browser`.
- Campaign (`report_campaign_id`, text): Only this campaign. Leave empty for every campaign.
- Budget (`report_budget_id`, text): Only campaigns on this budget.
- Include archived campaigns (`include_archived`, true/false): Also count archived campaigns.
- Conversion details (`include_conversion_details`, true/false): Break conversions down by conversion event.
- Limit (`limit`, number): How many to return, up to 500. Leave empty for 10. From 1 to 500.
- Offset (`offset`, number): How many to skip, for the next page. At least 0.

**Outputs**

- `data` (object): The response from Outbrain Amplify.

**Example output**

```json
{
  "data": {
    "results": [
      {
        "metadata": {
          "breakdown": "example",
          "name": "example",
          "platform": "example"
        },
        "metrics": {
          "clicks": 1,
          "conversionRate": 1,
          "conversions": 1,
          "cpa": 1,
          "ctr": 1,
          "ecpc": 1,
          "impressions": 1,
          "roas": 1,
          "spend": 1,
          "sumValue": 1,
          "totalConversions": 1,
          "viewConversions": 1
        }
      }
    ],
    "totalResults": 1
  }
}
```

### Get location performance

Get impressions, clicks, spend and conversions for each country, region or DMA.

**Inputs**

- Marketer (`marketer_id`, text, required): The marketer (advertiser account).
- From (`start_date`, date, required): The first day of the report.
- To (`end_date`, date, required): The last day of the report.
- Group by (`geo_breakdown`, text): How to group locations. Leave empty for countries. One of: `country`, `region`, `dma`.
- Campaign (`report_campaign_id`, text): Only this campaign. Leave empty for every campaign.
- Budget (`report_budget_id`, text): Only campaigns on this budget.
- Include archived campaigns (`include_archived`, true/false): Also count archived campaigns.
- Conversion details (`include_conversion_details`, true/false): Break conversions down by conversion event.
- Limit (`limit`, number): How many to return, up to 500. Leave empty for 10. From 1 to 500.
- Offset (`offset`, number): How many to skip, for the next page. At least 0.

**Outputs**

- `data` (object): The response from Outbrain Amplify.

**Example output**

```json
{
  "data": {
    "results": [
      {
        "metadata": {
          "code": "example",
          "countryCode": "example",
          "countryName": "example",
          "id": "example",
          "name": "example"
        },
        "metrics": {
          "clicks": 1,
          "conversionRate": 1,
          "conversions": 1,
          "cpa": 1,
          "ctr": 1,
          "ecpc": 1,
          "impressions": 1,
          "roas": 1,
          "spend": 1,
          "sumValue": 1,
          "totalConversions": 1,
          "viewConversions": 1
        }
      }
    ],
    "totalResults": 1
  }
}
```

### Get marketer

Get a marketer's name, status and dates.

**Inputs**

- Marketer (`marketer_id`, text, required): The marketer (advertiser account).

**Outputs**

- `data` (object): The response from Outbrain Amplify.

**Example output**

```json
{
  "data": {
    "creationTime": "example",
    "enabled": true,
    "id": "example",
    "lastModified": "example",
    "name": "example"
  }
}
```

### Get performance by day

Get impressions, clicks, spend and conversions for each day, week or month of a period.

**Inputs**

- Marketer (`marketer_id`, text, required): The marketer (advertiser account).
- From (`start_date`, date, required): The first day of the report.
- To (`end_date`, date, required): The last day of the report.
- Split by (`breakdown`, text): How to split the period. Leave empty for days. One of: `daily` (Day), `weekly` (Week), `monthly` (Month), `hourOfDay` (Hour of the day), `dayOfWeek` (Day of the week).
- Campaign (`report_campaign_id`, text): Only this campaign. Leave empty for every campaign.
- Budget (`report_budget_id`, text): Only campaigns on this budget.
- Include archived campaigns (`include_archived`, true/false): Also count archived campaigns.
- Conversion details (`include_conversion_details`, true/false): Break conversions down by conversion event.
- Limit (`limit`, number): How many to return, up to 500. Leave empty for 10. From 1 to 500.
- Offset (`offset`, number): How many to skip, for the next page. At least 0.

**Outputs**

- `data` (object): The response from Outbrain Amplify.

**Example output**

```json
{
  "data": {
    "results": [
      {
        "metadata": {
          "fromDate": "example",
          "id": "example",
          "toDate": "example"
        },
        "metrics": {
          "clicks": 1,
          "conversionRate": 1,
          "conversions": 1,
          "cpa": 1,
          "ctr": 1,
          "ecpc": 1,
          "impressions": 1,
          "roas": 1,
          "spend": 1,
          "sumValue": 1,
          "totalConversions": 1,
          "viewConversions": 1
        }
      }
    ],
    "totalResults": 1
  }
}
```

### Get publisher performance

Get impressions, clicks, spend and conversions for each publisher site your ads ran on.

**Inputs**

- Marketer (`marketer_id`, text, required): The marketer (advertiser account).
- From (`start_date`, date, required): The first day of the report.
- To (`end_date`, date, required): The last day of the report.
- Campaign (`report_campaign_id`, text): Only this campaign. Leave empty for every campaign.
- Budget (`report_budget_id`, text): Only campaigns on this budget.
- Include archived campaigns (`include_archived`, true/false): Also count archived campaigns.
- Conversion details (`include_conversion_details`, true/false): Break conversions down by conversion event.
- Limit (`limit`, number): How many to return, up to 500. Leave empty for 10. From 1 to 500.
- Offset (`offset`, number): How many to skip, for the next page. At least 0.

**Outputs**

- `data` (object): The response from Outbrain Amplify.

**Example output**

```json
{
  "data": {
    "results": [
      {
        "metadata": {
          "blockStatus": "example",
          "id": "example",
          "name": "example",
          "url": "example"
        },
        "metrics": {
          "clicks": 1,
          "conversionRate": 1,
          "conversions": 1,
          "cpa": 1,
          "ctr": 1,
          "ecpc": 1,
          "impressions": 1,
          "roas": 1,
          "spend": 1,
          "sumValue": 1,
          "totalConversions": 1,
          "viewConversions": 1
        }
      }
    ],
    "totalResults": 1
  }
}
```

### List ads

List a campaign's promoted links (ads), with their review and on-air status.

**Inputs**

- Campaign (`campaign_id`, text, required): The campaign.
- Running (`enabled`, true/false): Only running (on) or only paused (off) ads. Leave empty for both.
- Review status (`statuses`, list): Only ads with these review statuses. One or more of: `APPROVED`, `PENDING` (Under review), `REJECTED`.
- Limit (`limit`, number): How many to return, up to 500. Leave empty for 100. From 1 to 500.
- Offset (`offset`, number): How many to skip, for the next page. At least 0.

**Outputs**

- `data` (object): The response from Outbrain Amplify.

**Example output**

```json
{
  "data": {
    "count": 1,
    "promotedLinks": [
      {
        "adFormat": "example",
        "approvalStatus": {
          "isEditable": true,
          "reasons": [
            "example"
          ],
          "status": "example"
        },
        "archived": true,
        "baseUrl": "example",
        "campaignId": "example",
        "creationTime": "example",
        "description": "example",
        "documentLanguage": "example",
        "enabled": true,
        "id": "example",
        "lastModified": "example",
        "onAirStatus": {
          "onAir": true,
          "reason": "example"
        },
        "sectionName": "example",
        "status": "example",
        "text": "example",
        "url": "example"
      }
    ],
    "totalCount": 1
  }
}
```

### List budgets

List a marketer's budgets, with what each has spent and has left.

**Inputs**

- Marketer (`marketer_id`, text, required): The marketer (advertiser account).
- Unused only (`unused_only`, true/false): Only budgets no campaign uses.

**Outputs**

- `data` (object): The response from Outbrain Amplify.

**Example output**

```json
{
  "data": {
    "budgets": [
      {
        "amount": 1,
        "amountRemaining": 1,
        "amountSpent": 1,
        "creationTime": "example",
        "currency": "example",
        "dailyTarget": 1,
        "endDate": "example",
        "id": "example",
        "lastModified": "example",
        "maximumAmount": 1,
        "name": "example",
        "pacing": "example",
        "runForever": true,
        "shared": true,
        "startDate": "example",
        "type": "example"
      }
    ],
    "count": 1
  }
}
```

### List campaigns

List a marketer's campaigns, with their status, cost per click, budget and spend.

**Inputs**

- Marketer (`marketer_id`, text, required): The marketer (advertiser account).
- Include archived (`include_archived`, true/false): Also list archived campaigns.
- Changed in the last days (`changed_in_last_days`, number): Only campaigns changed in this many days. At least 1.
- Limit (`limit`, number): How many to return, up to 50. Leave empty for 25. From 1 to 50.
- Offset (`offset`, number): How many to skip, for the next page. At least 0.

**Outputs**

- `data` (object): The response from Outbrain Amplify.

**Example output**

```json
{
  "data": {
    "campaigns": [
      {
        "amountSpent": 1,
        "autoArchived": true,
        "budget": {
          "amount": 1,
          "amountRemaining": 1,
          "amountSpent": 1,
          "creationTime": "example",
          "currency": "example",
          "dailyTarget": 1,
          "endDate": "example",
          "id": "example",
          "lastModified": "example",
          "maximumAmount": 1,
          "name": "example",
          "pacing": "example",
          "runForever": true,
          "shared": true,
          "startDate": "example",
          "type": "example"
        },
        "contentType": "example",
        "cpc": 1,
        "creationTime": "example",
        "currency": "example",
        "enabled": true,
        "id": "example",
        "lastModified": "example",
        "liveStatus": {
          "amountSpent": 1,
          "campaignOnAir": true,
          "onAirModificationTime": "example",
          "onAirReason": "example"
        },
        "marketerId": "example",
        "minimumCpc": 1,
        "name": "example",
        "objective": "example",
        "onAirReason": "example",
        "suffixTrackingCode": "example",
        "targeting": {
          "browsers": [
            "example"
          ],
          "operatingSystems": [
            "example"
          ],
          "platform": [
            "example"
          ]
        }
      }
    ],
    "count": 1,
    "totalCount": 1
  }
}
```

### List conversion events

List the marketer's conversion events, with whether each is tracking.

**Inputs**

- Marketer (`marketer_id`, text, required): The marketer (advertiser account).

**Outputs**

- `data` (object): The response from Outbrain Amplify.

**Example output**

```json
{
  "data": {
    "conversionEvents": [
      {
        "category": "example",
        "conversionWindow": 1,
        "creationTime": "example",
        "enabled": true,
        "id": "example",
        "includeInConversions": true,
        "lastModified": "example",
        "name": "example",
        "trackingStatus": "example",
        "type": "example"
      }
    ],
    "count": 1
  }
}
```

### List marketers

List the marketers (advertiser accounts) your login can reach.

**Inputs**: None.

**Outputs**

- `data` (object): The response from Outbrain Amplify.

**Example output**

```json
{
  "data": {
    "count": 1,
    "marketers": [
      {
        "creationTime": "example",
        "enabled": true,
        "id": "example",
        "lastModified": "example",
        "name": "example"
      }
    ]
  }
}
```

### Pause or run ad

Pause a promoted link (ad), or set it running again.

**Inputs**

- Campaign (`campaign_id`, text): The ad's campaign.
- Ad (`promoted_link_id`, text, required): The promoted link (ad).
- Running (`enabled`, true/false, required): On to run the ad, off to pause it.

**Outputs**

- `data` (object): The response from Outbrain Amplify.

**Example output**

```json
{
  "data": {
    "enabled": true,
    "id": "example"
  }
}
```

### Search locations

Find countries, regions, cities and postal codes to target, and their IDs.

**Inputs**

- Search for (`term`, text, required): A place name or postal code.
- Country code (`country`, text): Only places in this country, by its 2-letter code.
- Limit (`limit`, number): How many to return. Leave empty for 300. From 1 to 300.

**Outputs**

- `data` (object): The response from Outbrain Amplify.

**Example output**

```json
{
  "data": {
    "geoLocations": [
      {
        "canonicalName": "example",
        "code": "example",
        "geoType": "example",
        "id": "example",
        "name": "example"
      }
    ]
  }
}
```

### Update budget

Change a budget's amount, dates or pacing. Fields left empty stay as they are.

**Inputs**

- Budget (`budget_id`, text, required): The budget.
- Amount (`amount`, number): The new amount. At least 0.
- Starts (`start_date`, date): The new start day, if the budget hasn't started.
- Ends (`end_date`, date): The new end day.
- Run until stopped (`run_forever`, true/false): Remove the end date, so the budget runs until stopped.
- Renews (`budget_type`, text): How often the amount renews. One of: `CAMPAIGN` (Once, for the whole campaign), `MONTHLY` (Every month), `DAILY` (Every day).
- Pacing (`pacing`, text): How fast to spend it. One of: `SPEND_ASAP` (As fast as possible), `AUTOMATIC` (Let Outbrain pace it), `DAILY_TARGET` (Up to a daily target).
- Daily target (`daily_target`, number): The most to spend a day, for daily-target pacing. At least 0.

**Outputs**

- `data` (object): The response from Outbrain Amplify.

**Example output**

```json
{
  "data": {
    "amount": 1,
    "amountRemaining": 1,
    "amountSpent": 1,
    "creationTime": "example",
    "currency": "example",
    "dailyTarget": 1,
    "endDate": "example",
    "id": "example",
    "lastModified": "example",
    "maximumAmount": 1,
    "name": "example",
    "pacing": "example",
    "runForever": true,
    "shared": true,
    "startDate": "example",
    "type": "example"
  }
}
```

### Update campaign

Pause or start a campaign, or change its name, cost per click, platforms, locations or tracking parameters.

**Inputs**

- Campaign (`campaign_id`, text, required): The campaign.
- Name (`name`, text): The new name.
- Running (`enabled`, true/false): On to run the campaign, off to pause it.
- Cost per click (`cpc`, number): The new cost per click, above the campaign's minimum. At least 0.
- Platforms (`platforms`, list): The devices to show ads on. One or more of: `DESKTOP`, `MOBILE`, `TABLET`.
- Location IDs (`location_ids`, list): The locations to target, by the IDs Search locations returns.
- Tracking parameters (`suffix_tracking_code`, text): Parameters added to every ad's link. EMPTY_SUFFIX removes them.

**Outputs**

- `data` (object): The response from Outbrain Amplify.

**Example output**

```json
{
  "data": {
    "amountSpent": 1,
    "autoArchived": true,
    "budget": {
      "amount": 1,
      "amountRemaining": 1,
      "amountSpent": 1,
      "creationTime": "example",
      "currency": "example",
      "dailyTarget": 1,
      "endDate": "example",
      "id": "example",
      "lastModified": "example",
      "maximumAmount": 1,
      "name": "example",
      "pacing": "example",
      "runForever": true,
      "shared": true,
      "startDate": "example",
      "type": "example"
    },
    "contentType": "example",
    "cpc": 1,
    "creationTime": "example",
    "currency": "example",
    "enabled": true,
    "id": "example",
    "lastModified": "example",
    "liveStatus": {
      "amountSpent": 1,
      "campaignOnAir": true,
      "onAirModificationTime": "example",
      "onAirReason": "example"
    },
    "marketerId": "example",
    "minimumCpc": 1,
    "name": "example",
    "objective": "example",
    "onAirReason": "example",
    "suffixTrackingCode": "example",
    "targeting": {
      "browsers": [
        "example"
      ],
      "operatingSystems": [
        "example"
      ],
      "platform": [
        "example"
      ]
    }
  }
}
```
