v1

latestOpenAPI 3.1.02026-07-26430119.9 KB

Get details of a specific campaign

get/accounts/{account_id}/campaigns/{campaign_id}

Path parameters

account_idstring required

Use 'current' keyword to refer to the Main Workspace or the Integer Workspace Id

campaign_idinteger required

Campaign Id

Response

200

Example response

{
  "_data": {
    "id": 7,
    "name": "Campaign 7",
    "type": "ab",
    "status": "NOT_STARTED",
    "createdOn": 1472036883,
    "percentTraffic": 100,
    "createdBy": {
      "id": 40505,
      "name": "Sample",
      "imageUrl": "*****"
    },
    "urls": [
      {
        "type": "url",
        "value": "http://wingify.com"
      }
    ],
    "primaryUrl": "http://wingify.com",
    "integrations": {
      "ga": {
        "slot": 4
      },
      "ua": {
        "dimension": 1
      }
    },
    "thresholds": {
      "winningPercent": 0.95,
      "losingPercent": 0.05,
      "visitors": 20
    },
    "device": "desktop",
    "variations": [
      {
        "id": 1,
        "name": "Control",
        "isControl": true,
        "heatmapThumbUrl": "<url>",
        "screenshots": {
          "quick": "<url>"
        },
        "percentSplit": 100,
        "isBase": true
      }
    ],
    "goals": [
      {
        "id": 1,
        "isPrimary": true,
        "name": "New goal",
        "type": "visitPage",
        "urls": [
          {
            "type": "url",
            "value": "http://wingify.com"
          }
        ]
      }
    ],
    "stats": {
      "conversionRate": "0.05",
      "liftInConversionRate": "0.05",
      "certaintyMode": "0.01",
      "expectedMonthlyVisitors": 300000,
      "expectedRevenuePerVisitor": "2"
    }
  }
}