GET api/campaign/{id}

Retrieves the information for a given campaign."

Request Information

Authentication Method

Partner/Account Authentication

URI Parameters

NameDescriptionTypeAdditional information
id

integer

Required

Body Parameters

None.

Response Information

Successful Response:

Resource Description

Campaign
NameDescriptionTypeAdditional information
id

The campaign Id. Used for any action taken on the campaign or its subscritption.

integer

 

name

The name by which the user knows the campaign

string

 

status

The current Campaign Status

string

 

type

The campaign type

string

 

landingUrl

Default landing Url for ads

string

 

Response Formats

application/json, text/json

Sample:
{
  "id": 111,
  "name": "My campaign",
  "status": "Active",
  "type": "Search",
  "landingUrl": "https://www.domain.com"
}

application/xml, text/xml

Sample:
<Campaign xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SiteWit.PartnerAPI.Models.ReturnModels">
  <id>111</id>
  <landingUrl>https://www.domain.com</landingUrl>
  <name>My campaign</name>
  <status>Active</status>
  <type>Search</type>
</Campaign>