ecommStats Web Analytics

Home     Services     Forums

ecommStats Web Services API Documentation

campaigns.addCampaign

Adds a new campaign for the site.

Request Parameters

name - Name of campaign.

description (Optional) - Description of campaign.

cost (Optional) - Cost of campaign. Default is 0.0.

costType (Optional) - An integer value: 1 = One time cost; 2 = Monthly; 3 = Cost per click; 4 = Cost per visit. Default is 1.

Response

Returns the newly created Campaign with id.

Method URL Sample

http://api.ecommstats.com/rest/?method=campaigns.addCampaign&username=myusername&password=mypassword&siteId=123&name=MyCampaignName