News Break · Arazzo Workflow

Report on a NewsBreak ad account and pause underperforming campaigns

Version 1.0.0

Pull a last-7-days performance report for an ad account, list its campaigns, and pause a chosen campaign by toggling its status to OFF. Read-only steps are safe to retry; the status toggle is not idempotent in the sense that it has no dedup key, but it IS naturally convergent.

1 workflow 2 source APIs 1 provider
View Spec View on GitHub CompanyAdvertisingAdTechNewsMediaLocal NewsPublishingMonetizationCampaign ManagementReportingAnalyticsContentArazzoWorkflows

Provider

news-break

Workflows

report-and-pause-campaign
Run a report for an ad account, then pause a campaign.
3 steps inputs: adAccountId, campaignIdToPause, reportName, timezone outputs: campaignTotal, pausedCampaignId, pausedStatus, reportRows
1
run-report
Synchronous report. dataSource HOURLY is the official basis for income settlement; REALTIME is monitoring only. The DATE dimension is limited to a 30-day FIXED range.
2
list-campaigns
Page through the ad account's campaigns. pageNo and pageSize are both REQUIRED; pageSize is a closed enum (5, 10, 20, 50, 100, 200, 500).
3
pause-campaign
Toggle the campaign OFF. Prefer this over deleteCampaign, which is destructive and sets onlineStatus to DELETED.

Source API Descriptions

Arazzo Workflow Specification

Raw ↑
arazzo: 1.0.1
info:
  title: Report on a NewsBreak ad account and pause underperforming campaigns
  version: 1.0.0
  description: >-
    Pull a last-7-days performance report for an ad account, list its campaigns, and pause a chosen
    campaign by toggling its status to OFF. Read-only steps are safe to retry; the status toggle is
    not idempotent in the sense that it has no dedup key, but it IS naturally convergent.
  x-realizes-capability-ids:
  - BC-3760.60
  x-capability-derivation:
    method: 'deterministic join: sourceDescriptions -> per-tag OpenAPI -> tag/capability edge. No classification at this step.'
    min_confidence: 0.7
    sources:
    - capability_id: BC-3760.60
      capability_name: Advertising Revenue Reporting
      spec: news-break-report-api-openapi.yml
      confidence: 0.8
    model: Turbo EA Capabilities by Vincent Verdet — Turbo EA, https://github.com/vincentmakes/turbo-ea-capabilities, CC BY 4.0
sourceDescriptions:
- name: campaignApi
  url: ../openapi/news-break-campaign-api-openapi.yml
  type: openapi
- name: reportApi
  url: ../openapi/news-break-report-api-openapi.yml
  type: openapi
workflows:
- workflowId: report-and-pause-campaign
  summary: Run a report for an ad account, then pause a campaign.
  inputs:
    type: object
    required:
    - adAccountId
    properties:
      adAccountId:
        type: string
        description: The ad account to report on.
      reportName:
        type: string
        default: Last 7 days by campaign
      timezone:
        type: string
        description: IANA timezone string. The API default is PDT, so always set this explicitly.
        default: UTC
      campaignIdToPause:
        type: string
        description: Campaign to switch OFF. Omit to run report-only.
  steps:
  - stepId: run-report
    description: >-
      Synchronous report. dataSource HOURLY is the official basis for income settlement;
      REALTIME is monitoring only. The DATE dimension is limited to a 30-day FIXED range.
    operationId: runSynchronousReport
    requestBody:
      contentType: application/json
      payload:
        name: $inputs.reportName
        timezone: $inputs.timezone
        dateRange: LAST_7_DAYS
        dataSource: HOURLY
        filter: AD_ACCOUNT
        filterIds:
        - $inputs.adAccountId
        dimensions:
        - DATE
        - CAMPAIGN
        metrics:
        - COST
        - IMPRESSION
        - CLICK
        - CONVERSION
    successCriteria:
    - condition: $statusCode == 200
    - context: $response.body
      condition: $.code == 0
      type: jsonpath
    outputs:
      rows: $response.body#/data/rows
  - stepId: list-campaigns
    description: >-
      Page through the ad account's campaigns. pageNo and pageSize are both REQUIRED; pageSize
      is a closed enum (5, 10, 20, 50, 100, 200, 500).
    operationId: getCampaigns
    parameters:
    - name: adAccountId
      in: query
      value: $inputs.adAccountId
    - name: onlineStatus
      in: query
      value: ACTIVE
    - name: pageNo
      in: query
      value: 1
    - name: pageSize
      in: query
      value: 50
    successCriteria:
    - context: $response.body
      condition: $.code == 0
      type: jsonpath
    outputs:
      campaigns: $response.body#/data/rows
      hasNext: $response.body#/data/hasNext
      total: $response.body#/data/total
  - stepId: pause-campaign
    description: >-
      Toggle the campaign OFF. Prefer this over deleteCampaign, which is destructive and sets
      onlineStatus to DELETED.
    operationId: updateCampaignStatus
    parameters:
    - name: campaignId
      in: path
      value: $inputs.campaignIdToPause
    requestBody:
      contentType: application/json
      payload:
        status: 'OFF'
    successCriteria:
    - context: $response.body
      condition: $.code == 0
      type: jsonpath
    - context: $response.body
      condition: $.data.status == 'OFF'
      type: jsonpath
    outputs:
      campaignId: $response.body#/data/id
      status: $response.body#/data/status
      onlineStatus: $response.body#/data/onlineStatus
  outputs:
    reportRows: $steps.run-report.outputs.rows
    campaignTotal: $steps.list-campaigns.outputs.total
    pausedCampaignId: $steps.pause-campaign.outputs.campaignId
    pausedStatus: $steps.pause-campaign.outputs.status

Work with this as data

Every workflow here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for arazzo workflows

4 MCP tools reach this
  • find_arazzoBrowse and filter every workflow in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This workflow
curl "https://apis.io/api/v1/arazzo/news-break-pause-and-report"
All arazzo workflows
curl "https://apis.io/api/v1/arazzo?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.