Get campaigns

GET /accounts/{account_id}/campaigns

Fetch all campaigns protected and optimized by ClickGUARD

Available on: AuditGUARD AlertGUARD PremiumGUARD EliteGUARD

Path parameters

Query parameters

  • query string

    Search campaigns by the given query

  • ids[] array[string]

    Fetch all campaigns for the given array of campaign IDs.

Responses

  • Successful operation

    Hide response attributes Show response attributes array[object]
    • id string

      Campaign ID from Google Ads

    • name string

      Campaign name from Google Ads

GET /accounts/{account_id}/campaigns
curl \
 -X GET https://api.clickguard.com/accounts/{account_id}/campaigns \
 -H "X-API-KEY: $API_KEY"
Response examples (200)
"[\n  {\n    \"id\": \"14519401\",\n    \"name\": \"Search Main Website\"\n  },\n  {\n    \"id\": \"14519341\",\n    \"name\": \"Remarketing\"\n  },\n  ...\n]"
Response examples (200)
[
  {
    "id": "string",
    "name": "string"
  }
]