{
  "opencollection": "1.0.0",
  "info": {
    "name": "Reddit Ads Account Ad Groups API",
    "version": "3"
  },
  "request": {
    "auth": {
      "type": "oauth2",
      "flow": "authorization_code",
      "authorizationUrl": "https://www.reddit.com/api/v1/authorize",
      "accessTokenUrl": "https://www.reddit.com/api/v1/access_token",
      "credentials": {
        "clientId": "{{clientId}}",
        "clientSecret": "{{clientSecret}}"
      }
    }
  },
  "items": [
    {
      "info": {
        "name": "Ad Groups",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "List Ad Groups",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://ads-api.reddit.com/api/v3/accounts/:account_id/ad_groups",
            "params": [
              {
                "name": "account_id",
                "value": "",
                "type": "path",
                "description": "The unique identifier of the Reddit Ads account."
              },
              {
                "name": "page_size",
                "value": "",
                "type": "query",
                "description": "The maximum number of items to return per page (default 25, max 100)."
              },
              {
                "name": "cursor",
                "value": "",
                "type": "query",
                "description": "A pagination cursor for retrieving the next page of results."
              },
              {
                "name": "campaign_id",
                "value": "",
                "type": "query",
                "description": "Filter ad groups by campaign ID."
              }
            ]
          },
          "docs": "Lists ad groups in a Reddit Ads account or campaign, with ad groups containing targeting settings and grouping related ads."
        },
        {
          "info": {
            "name": "Create an Ad Group",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://ads-api.reddit.com/api/v3/accounts/:account_id/ad_groups",
            "params": [
              {
                "name": "account_id",
                "value": "",
                "type": "path",
                "description": "The unique identifier of the Reddit Ads account."
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Creates a new ad group within a campaign with targeting and bidding configuration."
        },
        {
          "info": {
            "name": "Get an Ad Group",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://ads-api.reddit.com/api/v3/accounts/:account_id/ad_groups/:ad_group_id",
            "params": [
              {
                "name": "account_id",
                "value": "",
                "type": "path",
                "description": "The unique identifier of the Reddit Ads account."
              },
              {
                "name": "ad_group_id",
                "value": "",
                "type": "path",
                "description": "The unique identifier of the ad group."
              }
            ]
          },
          "docs": "Fetches detailed information about a specific ad group including targeting settings, bid configuration, and schedule."
        },
        {
          "info": {
            "name": "Update an Ad Group",
            "type": "http"
          },
          "http": {
            "method": "PUT",
            "url": "https://ads-api.reddit.com/api/v3/accounts/:account_id/ad_groups/:ad_group_id",
            "params": [
              {
                "name": "account_id",
                "value": "",
                "type": "path",
                "description": "The unique identifier of the Reddit Ads account."
              },
              {
                "name": "ad_group_id",
                "value": "",
                "type": "path",
                "description": "The unique identifier of the ad group."
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Updates an existing ad group's configuration, including targeting, bidding, and scheduling."
        },
        {
          "info": {
            "name": "Delete an Ad Group",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://ads-api.reddit.com/api/v3/accounts/:account_id/ad_groups/:ad_group_id",
            "params": [
              {
                "name": "account_id",
                "value": "",
                "type": "path",
                "description": "The unique identifier of the Reddit Ads account."
              },
              {
                "name": "ad_group_id",
                "value": "",
                "type": "path",
                "description": "The unique identifier of the ad group."
              }
            ]
          },
          "docs": "Deletes an ad group from a campaign."
        }
      ]
    }
  ],
  "bundled": true
}