---
updatedAt: 2026-08-01T11:27:33.000Z
agentTools:
  projectIndex: https://dev.kevel.com/llms.txt
---

# List Ads For Network

## Why List Ads for a Network?

It can sometimes be helpful to retrieve an array of all ads that are part of a specific network. By returning a list of all ads for a network, you can add, update, and/or delete ads for that network.

The List Ads for Network API call returns an array of all ads for a given network.

> 📘 Note
>
> In the response, depending on the settings of the ad, not all of these properties will be present (such as `IsGoalOverride`).

## API Syntax

When using the List Ads for Network API call, it is important to understand the syntax required to make the request. Because the Kevel API is a RESTful API, there is a specific request format that must be followed to ensure the endpoint can process the request. The format is:

`GET https://api.kevel.co/v1/ad`

Where:

* `GET` - the type of API request being made.
* `https://api.kevel.co` - the URL for the request.
* `v1` - the API version.
* `ad` - the API endpoint being called in the request.

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "management-api-2",
    "version": "1.0"
  },
  "servers": [
    {
      "url": "https://api.kevel.co"
    }
  ],
  "components": {
    "securitySchemes": {
      "sec0": {
        "type": "apiKey",
        "name": "X-Adzerk-ApiKey",
        "in": "header"
      }
    }
  },
  "security": [
    {
      "sec0": []
    }
  ],
  "paths": {
    "/v1/ad": {
      "get": {
        "summary": "List Ads For Network",
        "description": "",
        "operationId": "list-ads-for-network",
        "responses": {
          "200": {
            "description": "200",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n  \"page\": 1,\n  \"items\": [\n    {\n      \"Id\": 123456,\n      \"CampaignId\": 123456,\n      \"FlightId\": 123456,\n      \"ZoneId\": null,\n      \"SiteId\": null,\n      \"Impressions\": 100,\n      \"Percentage\": 0,\n      \"DistributionType\": 1,\n      \"IsDeleted\": false,\n      \"IsActive\": true,\n      \"Creative\": {\n        \"Id\": 12345,\n        \"Title\": \"Adzerk Blue Creative\",\n        \"ImageName\": \"\",\n        \"Url\": \"https://adzerk.com\",\n        \"Body\": \"\",\n        \"AdvertiserId\": 12345,\n        \"IsActive\": true,\n        \"AdTypeId\": 5,\n        \"Alt\": \"Adzerk - Native Ads\",\n        \"IsDeleted\": false,\n        \"IsSync\": false,\n        \"IsHTMLJS\": true,\n        \"ScriptBody\": \"JS or HTML content\",\n        \"Metadata\": \"{\\\"something\\\":true}\",\n        \"ImageLink\": \"httpss://static.adzerk.net/Advertisers/\",\n        \"IsNoTrack\": true,\n        \"IsNetworkAd\": false\n      },\n      \"CustomTargeting\": \"$keywords contains \\\"dean\\\"\",\n      \"FreqCap\": 5,\n      \"FreqCapDuration\": 1,\n      \"FreqCapType\": 2,\n      \"DontAffectParentFreqCap\": true,\n      \"StartDate\": null,\n      \"EndDate\": null,\n      \"StartDateISO\": \"2017-01-01T00:00:00.0000000\",\n      \"EndDateISO\": \"2015-12-05T00:00:00.0000000\",\n      \"GoalType\": 1,\n      \"Price\": 1,\n      \"IsGoalOverride\": true,\n      \"IsStartEndDateOverride\": true,\n      \"ActiveKeywords\": [\"kittens\",\"cats\"]\n    }\n  ]\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "page": {
                      "type": "integer",
                      "example": 1,
                      "default": 0
                    },
                    "items": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "Id": {
                            "type": "integer",
                            "example": 123456,
                            "default": 0
                          },
                          "CampaignId": {
                            "type": "integer",
                            "example": 123456,
                            "default": 0
                          },
                          "FlightId": {
                            "type": "integer",
                            "example": 123456,
                            "default": 0
                          },
                          "ZoneId": {},
                          "SiteId": {},
                          "Impressions": {
                            "type": "integer",
                            "example": 100,
                            "default": 0
                          },
                          "Percentage": {
                            "type": "integer",
                            "example": 0,
                            "default": 0
                          },
                          "DistributionType": {
                            "type": "integer",
                            "example": 1,
                            "default": 0
                          },
                          "IsDeleted": {
                            "type": "boolean",
                            "example": false,
                            "default": true
                          },
                          "IsActive": {
                            "type": "boolean",
                            "example": true,
                            "default": true
                          },
                          "Creative": {
                            "type": "object",
                            "properties": {
                              "Id": {
                                "type": "integer",
                                "example": 12345,
                                "default": 0
                              },
                              "Title": {
                                "type": "string",
                                "example": "Adzerk Blue Creative"
                              },
                              "ImageName": {
                                "type": "string",
                                "example": ""
                              },
                              "Url": {
                                "type": "string",
                                "example": "https://adzerk.com"
                              },
                              "Body": {
                                "type": "string",
                                "example": ""
                              },
                              "AdvertiserId": {
                                "type": "integer",
                                "example": 12345,
                                "default": 0
                              },
                              "IsActive": {
                                "type": "boolean",
                                "example": true,
                                "default": true
                              },
                              "AdTypeId": {
                                "type": "integer",
                                "example": 5,
                                "default": 0
                              },
                              "Alt": {
                                "type": "string",
                                "example": "Adzerk - Native Ads"
                              },
                              "IsDeleted": {
                                "type": "boolean",
                                "example": false,
                                "default": true
                              },
                              "IsSync": {
                                "type": "boolean",
                                "example": false,
                                "default": true
                              },
                              "IsHTMLJS": {
                                "type": "boolean",
                                "example": true,
                                "default": true
                              },
                              "ScriptBody": {
                                "type": "string",
                                "example": "JS or HTML content"
                              },
                              "Metadata": {
                                "type": "string",
                                "example": "{\"something\":true}"
                              },
                              "ImageLink": {
                                "type": "string",
                                "example": "httpss://static.adzerk.net/Advertisers/"
                              },
                              "IsNoTrack": {
                                "type": "boolean",
                                "example": true,
                                "default": true
                              },
                              "IsNetworkAd": {
                                "type": "boolean",
                                "example": false,
                                "default": true
                              }
                            }
                          },
                          "CustomTargeting": {
                            "type": "string",
                            "example": "$keywords contains \"dean\""
                          },
                          "FreqCap": {
                            "type": "integer",
                            "example": 5,
                            "default": 0
                          },
                          "FreqCapDuration": {
                            "type": "integer",
                            "example": 1,
                            "default": 0
                          },
                          "FreqCapType": {
                            "type": "integer",
                            "example": 2,
                            "default": 0
                          },
                          "DontAffectParentFreqCap": {
                            "type": "boolean",
                            "example": true,
                            "default": true
                          },
                          "StartDate": {},
                          "EndDate": {},
                          "StartDateISO": {
                            "type": "string",
                            "example": "2017-01-01T00:00:00.0000000"
                          },
                          "EndDateISO": {
                            "type": "string",
                            "example": "2015-12-05T00:00:00.0000000"
                          },
                          "GoalType": {
                            "type": "integer",
                            "example": 1,
                            "default": 0
                          },
                          "Price": {
                            "type": "integer",
                            "example": 1,
                            "default": 0
                          },
                          "IsGoalOverride": {
                            "type": "boolean",
                            "example": true,
                            "default": true
                          },
                          "IsStartEndDateOverride": {
                            "type": "boolean",
                            "example": true,
                            "default": true
                          },
                          "ActiveKeywords": {
                            "type": "array",
                            "items": {
                              "type": "string",
                              "example": "kittens"
                            }
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "deprecated": false,
        "x-readme": {
          "code-samples": [
            {
              "language": "curl",
              "code": "curl -X GET -H \"X-Adzerk-ApiKey:<APIKEY>\" \"https://api.kevel.co/v1/ad\""
            },
            {
              "language": "javascript",
              "code": "const Adzerk = require('@adzerk/management-sdk');\nconst apiKey = process.env.ADZERK_API_KEY;\n\nasync function listAdsForNetwork() {\n  let specifications = await Adzerk.fetchSpecifications();\n  let client = await Adzerk.buildClient({apiKey, specifications});\n\n  let ads = await client.run(\"ad\", \"listForNetwork\");\n  console.log(ads);\n}\nlistAdsForNetwork();"
            },
            {
              "language": "ruby",
              "code": "require \"adzerk\"\n\ndef list_ads_for_network()\n    client = Adzerk::Client.new(ENV[\"ADZERK_API_KEY\"])\n    pp client.ads.list_for_network()\nend\nlist_ads_for_network()"
            }
          ],
          "samples-languages": [
            "curl",
            "javascript",
            "ruby"
          ]
        }
      }
    }
  },
  "x-readme": {
    "headers": [
      {
        "key": "X-Adzerk-Sdk-Version",
        "value": "Readme.io:ManagementAPI2"
      }
    ],
    "explorer-enabled": false,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true
}
```