Reddit · Capability

Reddit Ads API — Ad Groups

Reddit Ads API — Ad Groups. 5 operations. Lead operation: List Ad Groups. Self-contained Naftiko capability covering one Reddit business surface.

Run with Naftiko RedditAd Groups

What You Can Do

GET
Listadgroups — List Ad Groups
/v1/accounts/{account-id}/ad-groups
POST
Createadgroup — Create an Ad Group
/v1/accounts/{account-id}/ad-groups
GET
Getadgroup — Get an Ad Group
/v1/accounts/{account-id}/ad-groups/{ad-group-id}
PUT
Updateadgroup — Update an Ad Group
/v1/accounts/{account-id}/ad-groups/{ad-group-id}
DELETE
Deleteadgroup — Delete an Ad Group
/v1/accounts/{account-id}/ad-groups/{ad-group-id}

MCP Tools

list-ad-groups

List Ad Groups

read-only idempotent
create-ad-group

Create an Ad Group

get-ad-group

Get an Ad Group

read-only idempotent
update-ad-group

Update an Ad Group

idempotent
delete-ad-group

Delete an Ad Group

idempotent

Capability Spec

ads-ad-groups.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Reddit Ads API — Ad Groups
  description: 'Reddit Ads API — Ad Groups. 5 operations. Lead operation: List Ad Groups. Self-contained Naftiko capability
    covering one Reddit business surface.'
  tags:
  - Reddit
  - Ad Groups
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    REDDIT_API_KEY: REDDIT_API_KEY
capability:
  consumes:
  - type: http
    namespace: ads-ad-groups
    baseUri: https://ads-api.reddit.com/api/v3
    description: Reddit Ads API — Ad Groups business capability. Self-contained, no shared references.
    resources:
    - name: accounts-account_id-ad_groups
      path: /accounts/{account_id}/ad_groups
      operations:
      - name: listadgroups
        method: GET
        description: List Ad Groups
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: campaign_id
          in: query
          type: string
          description: Filter ad groups by campaign ID.
      - name: createadgroup
        method: POST
        description: Create an Ad Group
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: accounts-account_id-ad_groups-ad_group_id
      path: /accounts/{account_id}/ad_groups/{ad_group_id}
      operations:
      - name: getadgroup
        method: GET
        description: Get an Ad Group
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: updateadgroup
        method: PUT
        description: Update an Ad Group
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
      - name: deleteadgroup
        method: DELETE
        description: Delete an Ad Group
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    authentication:
      type: bearer
      token: '{{env.REDDIT_API_KEY}}'
  exposes:
  - type: rest
    namespace: ads-ad-groups-rest
    port: 8080
    description: REST adapter for Reddit Ads API — Ad Groups. One Spectral-compliant resource per consumed operation, prefixed
      with /v1.
    resources:
    - path: /v1/accounts/{account-id}/ad-groups
      name: accounts-account-id-ad-groups
      description: REST surface for accounts-account_id-ad_groups.
      operations:
      - method: GET
        name: listadgroups
        description: List Ad Groups
        call: ads-ad-groups.listadgroups
        with:
          campaign_id: rest.campaign_id
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: createadgroup
        description: Create an Ad Group
        call: ads-ad-groups.createadgroup
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/accounts/{account-id}/ad-groups/{ad-group-id}
      name: accounts-account-id-ad-groups-ad-group-id
      description: REST surface for accounts-account_id-ad_groups-ad_group_id.
      operations:
      - method: GET
        name: getadgroup
        description: Get an Ad Group
        call: ads-ad-groups.getadgroup
        outputParameters:
        - type: object
          mapping: $.
      - method: PUT
        name: updateadgroup
        description: Update an Ad Group
        call: ads-ad-groups.updateadgroup
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: deleteadgroup
        description: Delete an Ad Group
        call: ads-ad-groups.deleteadgroup
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: ads-ad-groups-mcp
    port: 9090
    transport: http
    description: MCP adapter for Reddit Ads API — Ad Groups. One tool per consumed operation, routed inline through this capability's
      consumes block.
    tools:
    - name: list-ad-groups
      description: List Ad Groups
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: ads-ad-groups.listadgroups
      with:
        campaign_id: tools.campaign_id
      outputParameters:
      - type: object
        mapping: $.
    - name: create-ad-group
      description: Create an Ad Group
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: ads-ad-groups.createadgroup
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: get-ad-group
      description: Get an Ad Group
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: ads-ad-groups.getadgroup
      outputParameters:
      - type: object
        mapping: $.
    - name: update-ad-group
      description: Update an Ad Group
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: ads-ad-groups.updateadgroup
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: delete-ad-group
      description: Delete an Ad Group
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: ads-ad-groups.deleteadgroup
      outputParameters:
      - type: object
        mapping: $.