Home » createCampaign

createCampaign

Description

Creates a new campaign.

To create a Campaign set the required values in the Campaign object. This Campaign object can be set in the Campaign field of the createCampaign call.

Attributes

FieldTypeRequired
CampaignCampaignTrue

Campaign

FieldTypeDescriptionRequiredAccepted Value
idintA unique number to identify the campaign. falseThis is set by default when campaign is created
name stringCampaign Nametrue
notesstringDisplays information pertaining to the campaignfalse
statusstringStatus of the campaign. trueAccepted values are "A" for active and "I" inactive.
advertiserIdintId of the advertiser under which the campaign has to be createdtrue
createdByintShows who created the campaign. falseThis is set by default when campaign is created.
createDatestringDate when the campaign was created. falseThis is set by default when campaign is created
modifiedByintShow who last modified the campaign . falseThis is set by default when campaign is modified.
modifiedDatestringShows the date when the campaign was last modified. falseThis is set by default when campaign is modified.
IoReferencestringCampaign IO number.false
startDatestringThe start date of the campaign. Accepted in yyyy-mm-dd format.trueMinimum start date should be today-5 years
endDatestringThe end date of the campaign. Accepted in yyyy-mm-dd format.true
startTimestringThe start time of the campaign. falseAccepted in hh:mm 24 hour format. Default value is 00:00
endTimestringThe start time of the campaign. falseAccepted in hh:mm 24 hour format. Default value is 23:59
levelintThe order or priority in which the ads will serve.false
exclusiveintA sponsorship campaign which has the highest priority. falseAccepted values are 0 for NORMAL or 1 for EXCLUSIVE. If the value is set to 1, then inventoryType must be set to "Premium".
categoryTypestringCompeting category type of the campaign. trueAccepted values are 0 for OFF, 1 for SELF and 2 for ON.
inventoryTypestringType of inventory.trueAccepted values are "FOC" for Free of cost campaign, "Excess" for Excess campaigns and "Premium" for premium campaigns.
deliveryTypestringSpeedy or even or ASAP or Accelerated delivery . trueAccepted values are "E" for even , "S" for speedy , "A" for ASAP and "ACC" for Accelerated. Note: For accelerated delivery type, the per day limit type are not allowed. So following values should not be used for Limit Type field:- impressions per day,click per day,action per day,events per day.
revenueTypestringMetrics by which revenue is calculated.true Accepted values are "CPM", "CPC", "CPA", "FOC" (Free of Cost), "HSE" (House ads), "HRD" (House redirects), and "BRT" (Barter).
limitTypeintSet Limit for the ad. trueAccepted values are 0 for Impressions, 1 for click, 2 for action, 3 for impressions per day, 4 for clicks per day and 5 for actions per day, 6 for events and 7 for events per day.
allocateTypestringDistributes the total number of impressions, clicks or actions to be served by channel or by ad.true Accepted values are "ad" for allocate by ad or "adchan" for allocate by channel
limitAtstringDefines whether limit is at Ad level or at Campaign Level. falseAllowable values are 'AT_AD_LEVEL', 'AT_CAMPAIGN_LEVEL'. This field is required if AllocateType is set to 'ad'
allocationAtCampaignstringSets Limit on number of impressions, clicks or actions(selected Limit Type) to be delivered at Campaign Level. This field is required if limitAt is set to 'AT_CAMPAIGN_LEVEL'. The value should be 'UNLIMITED' or greater than or equal to 10000 but less than 2000000000(2 billion).false
distributeBystringSets distribution type for allocationAtCampaign. falseAllowable values are 'R' for Randomly and 'P' for Performance based.
actionsAllocatedintSets a limit on the number of actions to be delivered.false
actionsDeliveredintNumber of actions recorded by the campaign.false
timezoneIdintTimezone in which your account is created in the system. falseThis value is set by default when the campaign is created.
costfloatThe cost set for the campaign.false
oldCostfloatCost value while creating the campaign.false
actionTypeintSpecifies type of actiontrueAccepted values are 0 for 'Tracking Off', 1 for 'Post Click', 2 for 'Post Impression', 3 for 'Post Impression + Post Click'.
actionsActions[ ]Actions for the campaignfalse
clicksAllocatedlongSets a limit on the number of clicks to be delivered.false
clicksDeliveredlongNumber of clicks recorded by the campaign.false
impressionsAllocatedlongAllocates impressions to a campaign - currently unavailable.false
impressionsDeliveredlongNumber of impressions recorded by the campaign.false
allocateByDayintImpressions, clicks or actions allocated on a daily basis.false
weightdoubleThe proportion in which ads within the same level should serve. This also helps to determine the priority of the ad.false
autooptimizationAutoOptimizationAutoOptimization properties for Campaign.false
updateFlagintUpdate flagfalseAccepted values are 1 for 'ON' or 0 for 'OFF'.
recomputeEarningsFlagintRecompute earnings flagfalseAccepted values are 1 for ON or 0 for OFF
frequencyCapEnabledBooleanDefines whether Frequency Capping is enabled at campaign level or not.falseAccepted values are true or false.
campaignFrequencyCapCampaignFrequencyCap Sets a frequency limit for the campaign.true if frequencyCapEnabled is set to true.
tagsTags[ ]Sets the tags for the campaignfalseMaximum no. of tags allowed are 5.

Samples

Java

Normal Campaign

import javax.xml.namespace.QName;
import org.apache.axis2.AxisFault;
import com.zedo.zapi.ZEDOAPIStub;

public class CreateCampaignTest {

    public static void main(String[] args) {
        CreateCampaignTest.createCampaignTest();
    }

    private static void createCampaignTest() {

        try {

            ZEDOAPIStub stub = new ZEDOAPIStub("http://api.zedo.com/v8/?wsdl&java");

            stub._getServiceClient().addStringHeader(new QName("http://api.zedo.com", "user", "zedoapi"),     "example@example.com");
            stub._getServiceClient().addStringHeader(new QName("http://api.zedo.com", "password", "zedoapi"),     "password");
            stub._getServiceClient().addStringHeader(new QName("http://api.zedo.com", "network", "zedoapi"),  "525");
            stub._getServiceClient().getOptions().setTimeOutInMilliSeconds(10 * 60 * 1000);

            ZEDOAPIStub.Campaign c = new ZEDOAPIStub.Campaign();

            c.setActionType(0); //0 for Action Tracking Off, 1 for Post Click, 2 for Post Impression and 3 for Post Click + Post Impression
            ZEDOAPIStub.Action[] action1 = new ZEDOAPIStub.Action[2];
            action1[0] = new ZEDOAPIStub.Action();
            action1[0].setItemNumber(1);
            action1[0].setMaxLifeTime(13);
            action1[0].setName("myNameZedo1");
            action1[0].setRate(0.0);
            action1[0].setStatus("A");
            action1[0].setUrl("http://www.myTest.com");
            action1[1] = new ZEDOAPIStub.Action();
            action1[1].setItemNumber(5);
            action1[1].setMaxLifeTime(14);
            action1[1].setName("myNameZedo2");
            action1[1].setRate(0.0);
            action1[1].setStatus("A");
            action1[1].setUrl("http://www.myTest.com");
            c.setActions(action1);
            
            c.setName("TestZedo");
            c.setAdvertiserId(173865);
            c.setStartDate("2007-12-30");
            c.setEndDate("2008-12-12");
            c.setStatus("A");
            c.setCost(0);
            c.setOldCost(0);
            c.setDeliveryType("E");
            c.setNotes("");
            c.setLevel(30);
            c.setWeight(20);
            c.setIoReference("121212");
             
            c.setActionsAllocated(0);
            c.setClicksAllocated(0);
            c.setImpressionsAllocated(0);
            
            //Campaign Type Settings
            c.setExclusive(0);
            c.setInventoryType("Excess");
            c.setRevenueType("BRT");
            
            //Advanced Delivery Options
            c.setLimitType(0);
            c.setAllocateType("ad");
            c.setLimitAt("AT_AD_LEVEL");
            
            c.setAllocateByDay(0);
            c.setCategoryType("0");
            
            c.setRecomputeEarningsFlag(0);
            
            //Following variables are set when Campaign is created by the system
            c.setActionsDelivered(0);
            c.setClicksDelivered(0);
            c.setImpressionsDelivered(0);
            c.setCreatedDate("");
            c.setModifiedDate("");

ZEDOAPIStub.Tag[] tag= new ZEDOAPIStub.Tag[3];
 tag[0] = new ZEDOAPIStub.Tag();
 tag[0].setName("tag5");
 tag[0].setValue("value5");
 tag[1] = new ZEDOAPIStub.Tag();
 tag[1].setName("tag6");
 tag[1].setValue("value6");
 tag[2] = new ZEDOAPIStub.Tag();
 tag[2].setName("tag1");
 tag[2].setValue("value1");
 c.setTags(tag);

ZEDOAPIStub.CreateCampaign cc = new ZEDOAPIStub.CreateCampaign(); cc.setCampaign(c); 
Thread.sleep(1000); 
ZEDOAPIStub.CreateCampaignResponse ccr = stub.createCampaign(cc); System.out.println("CREATE_CAMPAIGN COMPLETE!"); System.out.println("PLEASE: " + ccr.get_return().getId() + " " + ccr.get_return().getName()); } catch (Exception e) { System.err.println("ERROR: CREATE_CAMPAIGN FAILED!"); System.err.println("Exception: " + e.getMessage()); 
if (e instanceof AxisFault) { 
AxisFault af = (AxisFault) e; 
System.err.println("AxisFault's detail: " + af.getDetail()); af.printStackTrace(); 
} else { e.printStackTrace(); 
} 
} 
} 
}

Exclusive Campaign

import javax.xml.namespace.QName;
import org.apache.axis2.AxisFault;
import com.zedo.zapi.ZEDOAPIStub;

public class CreateCampaignTest {

    public static void main(String[] args) {
        CreateCampaignTest.createCampaignTest();
    }

    private static void createCampaignTest() {

        try {

            ZEDOAPIStub stub = new ZEDOAPIStub("http://api.zedo.com/v8/?wsdl&java");

            stub._getServiceClient().addStringHeader(new QName("http://api.zedo.com", "user", "zedoapi"),     "example@example.com");
            stub._getServiceClient().addStringHeader(new QName("http://api.zedo.com", "password", "zedoapi"),     "password");
            stub._getServiceClient().addStringHeader(new QName("http://api.zedo.com", "network", "zedoapi"),  "525");
            stub._getServiceClient().getOptions().setTimeOutInMilliSeconds(10 * 60 * 1000);

            ZEDOAPIStub.Campaign c = new ZEDOAPIStub.Campaign();

            c.setActionType(0); //0 for Action Tracking Off, 1 for Post Click, 2 for Post Impression and 3 for Post Click + Post Impression
            ZEDOAPIStub.Action[] action1 = new ZEDOAPIStub.Action[2];
            action1[0] = new ZEDOAPIStub.Action();
            action1[0].setItemNumber(1);
            action1[0].setMaxLifeTime(13);
            action1[0].setName("myNameZedo1");
            action1[0].setRate(0.0);
            action1[0].setStatus("A");
            action1[0].setUrl("http://www.myTest.com");
            action1[1] = new ZEDOAPIStub.Action();
            action1[1].setItemNumber(5);
            action1[1].setMaxLifeTime(14);
            action1[1].setName("myNameZedo2");
            action1[1].setRate(0.0);
            action1[1].setStatus("A");
            action1[1].setUrl("http://www.myTest.com");
            c.setActions(action1);
            
            c.setName("TestZedo");
            c.setAdvertiserId(173865);
            c.setStartDate("2007-12-30");
            c.setEndDate("2008-12-12");
            c.setStatus("A");
            c.setCost(0);
            c.setOldCost(0);
            c.setDeliveryType("E");
            c.setNotes("");
            c.setLevel(30);
            c.setWeight(20);
            c.setIoReference("121212");
             
            c.setActionsAllocated(0);
            c.setClicksAllocated(0);
            c.setImpressionsAllocated(0);
            
            //Campaign Type Settings
            c.setExclusive(1);
            c.setInventoryType("Premium");      //If $exclusive is set to 1, $inventoryType should be set to Premium
            c.setRevenueType("CPC");
            
            //Advanced Delivery Options
            c.setLimitType(0);
            c.setAllocateType("ad");
            c.setLimitAt("AT_AD_LEVEL");
            
            c.setAllocateByDay(0);
            c.setCategoryType("0");
            
            c.setRecomputeEarningsFlag(0);
            
            //Following variables are set when Campaign is created by the system
            c.setActionsDelivered(0);
            c.setClicksDelivered(0);
            c.setImpressionsDelivered(0);
            c.setCreatedDate("");
            c.setModifiedDate("");

            ZEDOAPIStub.CreateCampaign cc = new ZEDOAPIStub.CreateCampaign();
            cc.setCampaign(c);
            Thread.sleep(1000);
            ZEDOAPIStub.CreateCampaignResponse ccr = stub.createCampaign(cc);

            System.out.println("CREATE_CAMPAIGN COMPLETE!");
            System.out.println("PLEASE: " + ccr.get_return().getId() + " " + ccr.get_return().getName());

        } catch (Exception e) {
            System.err.println("ERROR: CREATE_CAMPAIGN FAILED!");
            System.err.println("Exception: " + e.getMessage());
            if (e instanceof AxisFault) {
                AxisFault af = (AxisFault) e;
                System.err.println("AxisFault's detail: " + af.getDetail());
                af.printStackTrace();
            } else {
                e.printStackTrace();
            }
        }
    }
}

CPD Campaign

import javax.xml.namespace.QName;
import org.apache.axis2.AxisFault;
import com.zedo.zapi.ZEDOAPIStub;

public class CreateCampaignTest {

    public static void main(String[] args) {
        CreateCampaignTest.createCampaignTest();
    }

    private static void createCampaignTest() {

        try {

            ZEDOAPIStub stub = new ZEDOAPIStub("http://api.zedo.com/v8/?wsdl&java");

            stub._getServiceClient().addStringHeader(new QName("http://api.zedo.com", "user", "zedoapi"),     "example@example.com");
            stub._getServiceClient().addStringHeader(new QName("http://api.zedo.com", "password", "zedoapi"),     "password");
            stub._getServiceClient().addStringHeader(new QName("http://api.zedo.com", "network", "zedoapi"),  "525");
            stub._getServiceClient().getOptions().setTimeOutInMilliSeconds(10 * 60 * 1000);

            ZEDOAPIStub.Campaign c = new ZEDOAPIStub.Campaign();

            c.setActionType(0); //0 for Action Tracking Off, 1 for Post Click, 2 for Post Impression and 3 for Post Click + Post Impression
            ZEDOAPIStub.Action[] action1 = new ZEDOAPIStub.Action[2];
            action1[0] = new ZEDOAPIStub.Action();
            action1[0].setItemNumber(1);
            action1[0].setMaxLifeTime(13);
            action1[0].setName("myNameZedo1");
            action1[0].setRate(0.0);
            action1[0].setStatus("A");
            action1[0].setUrl("http://www.myTest.com");
            action1[1] = new ZEDOAPIStub.Action();
            action1[1].setItemNumber(5);
            action1[1].setMaxLifeTime(14);
            action1[1].setName("myNameZedo2");
            action1[1].setRate(0.0);
            action1[1].setStatus("A");
            action1[1].setUrl("http://www.myTest.com");
            c.setActions(action1);
            
            c.setName("TestZedo");
            c.setAdvertiserId(173865);
            c.setStartDate("2007-12-30");
            c.setEndDate("2008-12-12");
            c.setStatus("A");
            c.setCost(0);
            c.setOldCost(0);
            c.setDeliveryType("E");
            c.setNotes("");
            c.setLevel(30);
            c.setWeight(20);
            c.setIoReference("121212");
             
            c.setActionsAllocated(0);
            c.setClicksAllocated(0);
            c.setImpressionsAllocated(0);
            
            //Campaign Type Settings
            c.setExclusive(0);
            c.setInventoryType("Excess");
            c.setRevenueType("CPD");
            c.setMinimumThreshold("25");
            c.setRevenueDistributionMethod("EVEN");
            c.setDaysTargeted("5");
            
            //Advanced Delivery Options
            c.setLimitType(0);
            c.setAllocateType("ad");
            c.setLimitAt("AT_AD_LEVEL");
                        
            c.setAllocateByDay(0);
            c.setCategoryType("0");
            
            c.setRecomputeEarningsFlag(0);
            
            //Following variables are set when Campaign is created by the system
            c.setActionsDelivered(0);
            c.setClicksDelivered(0);
            c.setImpressionsDelivered(0);
            c.setCreatedDate("");
            c.setModifiedDate("");

            ZEDOAPIStub.CreateCampaign cc = new ZEDOAPIStub.CreateCampaign();
            cc.setCampaign(c);
            Thread.sleep(1000);
            ZEDOAPIStub.CreateCampaignResponse ccr = stub.createCampaign(cc);

            System.out.println("CREATE_CAMPAIGN COMPLETE!");
            System.out.println("PLEASE: " + ccr.get_return().getId() + " " + ccr.get_return().getName());

        } catch (Exception e) {
            System.err.println("ERROR: CREATE_CAMPAIGN FAILED!");
            System.err.println("Exception: " + e.getMessage());
            if (e instanceof AxisFault) {
                AxisFault af = (AxisFault) e;
                System.err.println("AxisFault's detail: " + af.getDetail());
                af.printStackTrace();
            } else {
                e.printStackTrace();
            }
        }
    }
}

Allocate Type Channel

import javax.xml.namespace.QName;
import org.apache.axis2.AxisFault;
import com.zedo.zapi.ZEDOAPIStub;

public class CreateCampaignTest {

    public static void main(String[] args) {
        CreateCampaignTest.createCampaignTest();
    }

    private static void createCampaignTest() {

        try {

            ZEDOAPIStub stub = new ZEDOAPIStub("http://api.zedo.com/v8/?wsdl&java");

            stub._getServiceClient().addStringHeader(new QName("http://api.zedo.com", "user", "zedoapi"),     "example@example.com");
            stub._getServiceClient().addStringHeader(new QName("http://api.zedo.com", "password", "zedoapi"),     "password");
            stub._getServiceClient().addStringHeader(new QName("http://api.zedo.com", "network", "zedoapi"),  "525");
            stub._getServiceClient().getOptions().setTimeOutInMilliSeconds(10 * 60 * 1000);

            ZEDOAPIStub.Campaign c = new ZEDOAPIStub.Campaign();

            c.setActionType(0); //0 for Action Tracking Off, 1 for Post Click, 2 for Post Impression and 3 for Post Click + Post Impression
            ZEDOAPIStub.Action[] action1 = new ZEDOAPIStub.Action[2];
            action1[0] = new ZEDOAPIStub.Action();
            action1[0].setItemNumber(1);
            action1[0].setMaxLifeTime(13);
            action1[0].setName("myNameZedo1");
            action1[0].setRate(0.0);
            action1[0].setStatus("A");
            action1[0].setUrl("http://www.myTest.com");
            action1[1] = new ZEDOAPIStub.Action();
            action1[1].setItemNumber(5);
            action1[1].setMaxLifeTime(14);
            action1[1].setName("myNameZedo2");
            action1[1].setRate(0.0);
            action1[1].setStatus("A");
            action1[1].setUrl("http://www.myTest.com");
            c.setActions(action1);
            
            c.setName("TestZedo");
            c.setAdvertiserId(173865);
            c.setStartDate("2007-12-30");
            c.setEndDate("2008-12-12");
            c.setStatus("A");
            c.setCost(0);
            c.setOldCost(0);
            c.setDeliveryType("E");
            c.setNotes("");
            c.setLevel(30);
            c.setWeight(20);
            c.setIoReference("121212");
             
            c.setActionsAllocated(0);
            c.setClicksAllocated(0);
            c.setImpressionsAllocated(0);
            
            //Campaign Type Settings
            c.setExclusive(0);
            c.setInventoryType("Excess");
            c.setRevenueType("BRT");
            
            //Advanced Delivery Options
            c.setLimitType(0);
            c.setAllocateType("adchan");
            
            c.setAllocateByDay(0);
            c.setCategoryType("0");
            
            c.setRecomputeEarningsFlag(0);
            
            //Following variables are set when Campaign is created by the system
            c.setActionsDelivered(0);
            c.setClicksDelivered(0);
            c.setImpressionsDelivered(0);
            c.setCreatedDate("");
            c.setModifiedDate("");

            ZEDOAPIStub.CreateCampaign cc = new ZEDOAPIStub.CreateCampaign();
            cc.setCampaign(c);
            Thread.sleep(1000);
            ZEDOAPIStub.CreateCampaignResponse ccr = stub.createCampaign(cc);

            System.out.println("CREATE_CAMPAIGN COMPLETE!");
            System.out.println("PLEASE: " + ccr.get_return().getId() + " " + ccr.get_return().getName());

        } catch (Exception e) {
            System.err.println("ERROR: CREATE_CAMPAIGN FAILED!");
            System.err.println("Exception: " + e.getMessage());
            if (e instanceof AxisFault) {
                AxisFault af = (AxisFault) e;
                System.err.println("AxisFault's detail: " + af.getDetail());
                af.printStackTrace();
            } else {
                e.printStackTrace();
            }
        }
    }
}

Limit at Campaign Level

import javax.xml.namespace.QName;
import org.apache.axis2.AxisFault;
import com.zedo.zapi.ZEDOAPIStub;

public class CreateCampaignTest {

    public static void main(String[] args) {
        CreateCampaignTest.createCampaignTest();
    }

    private static void createCampaignTest() {

        try {

            ZEDOAPIStub stub = new ZEDOAPIStub("http://api.zedo.com/v8/?wsdl&java");

            stub._getServiceClient().addStringHeader(new QName("http://api.zedo.com", "user", "zedoapi"),     "example@example.com");
            stub._getServiceClient().addStringHeader(new QName("http://api.zedo.com", "password", "zedoapi"),     "password");
            stub._getServiceClient().addStringHeader(new QName("http://api.zedo.com", "network", "zedoapi"),  "525");
            stub._getServiceClient().getOptions().setTimeOutInMilliSeconds(10 * 60 * 1000);

            ZEDOAPIStub.Campaign c = new ZEDOAPIStub.Campaign();

            c.setActionType(0); //0 for Action Tracking Off, 1 for Post Click, 2 for Post Impression and 3 for Post Click + Post Impression
            ZEDOAPIStub.Action[] action1 = new ZEDOAPIStub.Action[2];
            action1[0] = new ZEDOAPIStub.Action();
            action1[0].setItemNumber(1);
            action1[0].setMaxLifeTime(13);
            action1[0].setName("myNameZedo1");
            action1[0].setRate(0.0);
            action1[0].setStatus("A");
            action1[0].setUrl("http://www.myTest.com");
            action1[1] = new ZEDOAPIStub.Action();
            action1[1].setItemNumber(5);
            action1[1].setMaxLifeTime(14);
            action1[1].setName("myNameZedo2");
            action1[1].setRate(0.0);
            action1[1].setStatus("A");
            action1[1].setUrl("http://www.myTest.com");
            c.setActions(action1);
            
            c.setName("TestZedo");
            c.setAdvertiserId(173865);
            c.setStartDate("2007-12-30");
            c.setEndDate("2008-12-12");
            c.setStatus("A");
            c.setCost(0);
            c.setOldCost(0);
            c.setDeliveryType("E");
            c.setNotes("");
            c.setLevel(30);
            c.setWeight(20);
            c.setIoReference("121212");
             
            c.setActionsAllocated(0);
            c.setClicksAllocated(0);
            c.setImpressionsAllocated(0);
            
            //Campaign Type Settings
            c.setExclusive(0);
            c.setInventoryType("Excess");
            c.setRevenueType("BRT");
            
            //Advanced Delivery Options
            c.setLimitType(0);
            c.setAllocateType("ad");
            c.setLimitAt("AT_CAMPAIGN_LEVEL");
            c.setAllocationAtCampaign("20000");
            c.setDistributeBy("P");
            
            c.setAllocateByDay(0);
            c.setCategoryType("0");
            
            c.setRecomputeEarningsFlag(0);
            
            //Following variables are set when Campaign is created by the system
            c.setActionsDelivered(0);
            c.setClicksDelivered(0);
            c.setImpressionsDelivered(0);
            c.setCreatedDate("");
            c.setModifiedDate("");

            ZEDOAPIStub.CreateCampaign cc = new ZEDOAPIStub.CreateCampaign();
            cc.setCampaign(c);
            Thread.sleep(1000);
            ZEDOAPIStub.CreateCampaignResponse ccr = stub.createCampaign(cc);

            System.out.println("CREATE_CAMPAIGN COMPLETE!");
            System.out.println("PLEASE: " + ccr.get_return().getId() + " " + ccr.get_return().getName());

        } catch (Exception e) {
            System.err.println("ERROR: CREATE_CAMPAIGN FAILED!");
            System.err.println("Exception: " + e.getMessage());
            if (e instanceof AxisFault) {
                AxisFault af = (AxisFault) e;
                System.err.println("AxisFault's detail: " + af.getDetail());
                af.printStackTrace();
            } else {
                e.printStackTrace();
            }
        }
    }
}

 

PHP

Normal Campaign

        include_once './zlib/ZEDOAPI.php';
        
        /**
         *Create Client Stub
         */
        $config = Array();
        $config['location'] = 'http://api.zedo.com/v8/?wsdl&php';       //URL of the SOAP server to send the request to
        $config['exceptions'] = true;                                                                                                   //Enable Exception Handling
        
        $stub = new ZEDOAPI($config);
        
        $header = Array();
        $header[0] = new SoapHeader('http://api.zedo.com','user', 'example@example.com');
        $header[1] = new SoapHeader('http://api.zedo.com','password', 'password');
        $header[2] = new SoapHeader('http://api.zedo.com','network','525');
        $header[3] = new SoapHeader('http://api.zedo.com','callinfo','zapiCall');
        
        $stub->__setSoapHeaders($header);
        
        /**
         *Define Call Parameters 
         */
        $campaign = new Campaign();
        
        $campaign->actionType=2;        //0 for Action Tracking Off, 1 for Post Click, 2 for Post Impression and 3 for Post Click + Post Impression
        $actions = Array();
        $actions[0] = new Action();
        $actions[0]->itemNumber=1;
        $actions[0]->maxLifeTime=15;
        $actions[0]->name="name";
        $actions[0]->rate=4;
        $actions[0]->status="A";
        $actions[0]->url="http://we.ru";
        $actions[1] = new Action();
        $actions[1]->itemNumber=2;
        $actions[1]->maxLifeTime=10;
        $actions[1]->name="qwerty";
        $actions[1]->rate=0;
        $actions[1]->status="A";
        $actions[1]->url="http://we.ru";
        $actions[2] = new Action();
        $actions[2]->itemNumber=3;
        $actions[2]->maxLifeTime=12;
        $actions[2]->name="name2";
        $actions[2]->rate=99;
        $actions[2]->status="A";
        $actions[2]->url="http://we.ru";
        $campaign->actions=$actions;
        
        $campaign->name="TestCampaignNormal";
        $campaign->advertiserId=1350859; //1350182
        $campaign->startDate="2012-12-25";
        $campaign->startTime="00:00";
        $campaign->endDate="2012-12-31";
        $campaign->endTime="00:00";
        $campaign->status="A";
        $campaign->oldCost=null;
        $campaign->cost="2";
        $campaign->deliveryType="E";
        $campaign->notes="";
        $campaign->level=30;
        $campaign->weight=20;
        $campaign->ioReference=null;    //Optional. Sets IO Reference Number used to group various Campaigns together
                
        $campaign->actionsAllocated=0;
        $campaign->impressionsAllocated=10000;
        $campaign->clicksAllocated=0;
        
        //Campaign Type Settings
        $campaign->exclusive=0;         //Sets Campaign Type. 0 for Normal and 1 for Exclusive
        $campaign->inventoryType="Excess"; //If $exclusive is set to 1, $inventoryType should be set to Premium
        $campaign->revenueType="BRT";
        $campaign->minimumThreshold=null;
        $campaign->revenueDistributionMethod=null;
        $campaign->daysTargeted=null;
        
        //Advanced Delivery Options
        $campaign->limitType=0;
        $campaign->allocateType="ad";   //"ad" for Allocate by Ad and "adchan" for Allocate by Channel
        $campaign->limitAt="AT_AD_LEVEL";
        $campaign->allocationAtCampaign=null;
        $campaign->distributeBy=null;
        
        $campaign->allocateByDay=0;
        $campaign->categoryType="0";
        $campaign->autoOptimization=null; //Set Campaign Auto Optimisation Properties
        
        $campaign->recomputeEarningsFlag=0;
        $campaign->updateFlag=0;

$tag=Array();
 $tag[0]=new Tag();
 $tag[0]->name="tag1";
 $tag[0]->value="value1";
 $tag[1]=new Tag();
 $tag[1]->name="tag2";
 $tag[1]->value="value2";
 $campaign->tags=$tag;
        
        $param = new createCampaign($campaign);
        
        /**
         *Execute API Call 
         */
        try {
                $response = $stub->createCampaign($param);
        }catch (SoapFault $ex) {
          var_dump($ex->faultcode, $ex->faultstring, $ex->detail);
                        echo "CREATE CAMPAIGN FAILED\n";
                        die();
        }
        
        /**
         * Response
         */
        echo "CREATE CAMPAIGN COMPLETE\n\n";
        echo "\nReponse:\n";
        echo $stub->__getLastResponse();

Exclusive Campaign

        include_once './zlib/ZEDOAPI.php';
        
        /**
         *Create Client Stub
         */
        $config = Array();
        $config['location'] = 'http://api.zedo.com/v8/?wsdl&php';       //URL of the SOAP server to send the request to
        $config['exceptions'] = true;                                                                                                   //Enable Exception Handling
        
        $stub = new ZEDOAPI($config);
        
        $header = Array();
        $header[0] = new SoapHeader('http://api.zedo.com','user', 'example@example.com');
        $header[1] = new SoapHeader('http://api.zedo.com','password', 'password');
        $header[2] = new SoapHeader('http://api.zedo.com','network','525');
        $header[3] = new SoapHeader('http://api.zedo.com','callinfo','zapiCall');
        
        $stub->__setSoapHeaders($header);
        
        /**
         *Define Call Parameters 
         */
        $campaign = new Campaign();
        
        $campaign->actionType=0;        //0 for Action Tracking Off, 1 for Post Click, 2 for Post Impression and 3 for Post Click + Post Impression
        $actions = Array();
        $actions[0] = new Action();
        $actions[0]->itemNumber=1;
        $actions[0]->maxLifeTime=15;
        $actions[0]->name="name";
        $actions[0]->rate=4;
        $actions[0]->status="A";
        $actions[0]->url="http://we.ru";
        $actions[1] = new Action();
        $actions[1]->itemNumber=2;
        $actions[1]->maxLifeTime=10;
        $actions[1]->name="qwerty";
        $actions[1]->rate=0;
        $actions[1]->status="A";
        $actions[1]->url="http://we.ru";
        $actions[2] = new Action();
        $actions[2]->itemNumber=3;
        $actions[2]->maxLifeTime=12;
        $actions[2]->name="name2";
        $actions[2]->rate=99;
        $actions[2]->status="A";
        $actions[2]->url="http://we.ru";
        $campaign->setActions=$actions;
        
        $campaign->name="TestCampaignExclusive";
        $campaign->advertiserId=1350859;//1350182;
        $campaign->startDate="2012-12-25";
        $campaign->startTime="00:00";
        $campaign->endDate="2012-12-31";
        $campaign->endTime="00:00";
        $campaign->status="A";
        $campaign->oldCost=null;
        $campaign->cost="2";
        $campaign->deliveryType="E";
        $campaign->notes="";
        $campaign->level=30;
        $campaign->weight=20;
        $campaign->ioReference=null;    //Optional. Sets IO Reference Number used to group various Campaigns together
                
        $campaign->actionsAllocated=0;
        $campaign->impressionsAllocated=0;
        $campaign->clicksAllocated=1000;
        
        //Campaign Type Settings
        $campaign->exclusive=1;         //Sets Campaign Type. 0 for Normal and 1 for Exclusive
        $campaign->inventoryType="Premium"; //If $exclusive is set to 1, $inventoryType should be set to Premium
        $campaign->revenueType = "CPC";
        $campaign->updateFlag=0;
        $campaign->minimumThreshold=null;
        $campaign->revenueDistributionMethod=null;
        $campaign->daysTargeted=null;
        
        //Advanced Delivery Options
        $campaign->limitType=0;
        $campaign->allocateType="ad";   //"ad" for Allocate by Ad and "adchan" for Allocate by Channel
        $campaign->limitAt="AT_AD_LEVEL";
        $campaign->allocationAtCampaign=null;
        $campaign->distributeBy=null;
        
        $campaign->allocateByDay=0;
        $campaign->categoryType="0";
        $campaign->autoOptimization=null; //Set Campaign Auto Optimisation Properties
        
        $campaign->recomputeEarningsFlag=0;
        $campaign->updateFlag=0;
        
        $param = new createCampaign($campaign);
        
        /**
         *Execute API Call 
         */
        try {
                $response = $stub->createCampaign($param);
        }catch (SoapFault $ex) {
            var_dump($ex->faultcode, $ex->faultstring, $ex->detail);
                        echo "CREATE CAMPAIGN FAILED\n";
                        die();
        }
        
        /**
         * Response
         */
        echo "CREATE CAMPAIGN COMPLETE\n\n";
        echo "\nReponse:\n";
        echo $stub->__getLastResponse();

CPD Campaign

        include_once './zlib/ZEDOAPI.php';
        
        /**
         *Create Client Stub
         */
        $config = Array();
        $config['location'] = 'http://api.zedo.com/v8/?wsdl&php';       //URL of the SOAP server to send the request to
        $config['exceptions'] = true;                                                                                                   //Enable Exception Handling
        
        $stub = new ZEDOAPI($config);
        
        $header = Array();
        $header[0] = new SoapHeader('http://api.zedo.com','user', 'example@example.com');
        $header[1] = new SoapHeader('http://api.zedo.com','password', 'password');
        $header[2] = new SoapHeader('http://api.zedo.com','network','525');
        $header[3] = new SoapHeader('http://api.zedo.com','callinfo','zapiCall');
        
        $stub->__setSoapHeaders($header);
        
        /**
         *Define Call Parameters 
         */
        $campaign = new Campaign();
        
        $campaign->actionType=0;        //0 for Action Tracking Off, 1 for Post Click, 2 for Post Impression and 3 for Post Click + Post Impression
        $actions = Array();
        $actions[0] = new Action();
        $actions[0]->itemNumber=1;
        $actions[0]->maxLifeTime=15;
        $actions[0]->name="name";
        $actions[0]->rate=4;
        $actions[0]->status="A";
        $actions[0]->url="http://we.ru";
        $actions[1] = new Action();
        $actions[1]->itemNumber=2;
        $actions[1]->maxLifeTime=10;
        $actions[1]->name="qwerty";
        $actions[1]->rate=0;
        $actions[1]->status="A";
        $actions[1]->url="http://we.ru";
        $actions[2] = new Action();
        $actions[2]->itemNumber=3;
        $actions[2]->maxLifeTime=12;
        $actions[2]->name="name2";
        $actions[2]->rate=99;
        $actions[2]->status="A";
        $actions[2]->url="http://we.ru";
        $campaign->setActions=$actions;
        
        $campaign->name="TestCampaignCPD";
        $campaign->advertiserId=1350859;//1350182;
        $campaign->startDate="2012-12-25";
        $campaign->startTime="00:00";
        $campaign->endDate="2012-12-31";
        $campaign->endTime="00:00";
        $campaign->status="A";
        $campaign->oldCost=null;
        $campaign->cost="2";
        $campaign->deliveryType="E";
        $campaign->notes="";
        $campaign->level=30;
        $campaign->weight=20;
        $campaign->ioReference=null;    //Optional. Sets IO Reference Number used to group various Campaigns together
                
        $campaign->actionsAllocated=0;
        $campaign->impressionsAllocated=10000;
        $campaign->clicksAllocated=0;

        //Campaign Type Settings
        $campaign->exclusive=0;         //Sets Campaign Type. 0 for Normal and 1 for Exclusive
        $campaign->inventoryType="Excess"; //If $exclusive is set to 1, $inventoryType should be set to Premium
        $campaign->revenueType="CPD";
        $campaign->minimumThreshold=25;
        $campaign->revenueDistributionMethod="EVEN";
        $campaign->daysTargeted=5;

        //Advanced Delivery Options
        $campaign->limitType=0;
        $campaign->allocateType="ad";   //"ad" for Allocate by Ad and "adchan" for Allocate by Channel
        $campaign->limitAt="AT_AD_LEVEL";
        $campaign->allocationAtCampaign=null;
        $campaign->distributeBy=null;
        
        $campaign->allocateByDay=0;
        $campaign->categoryType="0";
        $campaign->autoOptimization=null; //Set Campaign Auto Optimisation Properties
        
        $campaign->recomputeEarningsFlag=0;
        $campaign->updateFlag=0;
        
        $param = new createCampaign($campaign);
        
        /**
         *Execute API Call 
         */
        try {
                $response = $stub->createCampaign($param);
        }catch (SoapFault $ex) {
          var_dump($ex->faultcode, $ex->faultstring, $ex->detail);
                        echo "CREATE CAMPAIGN FAILED\n";
                        die();
        }
        
        /**
         * Response
         */
        echo "CREATE CAMPAIGN COMPLETE\n\n";
        echo "\nReponse:\n";
        echo $stub->__getLastResponse();

Allocate Type Channel

        include_once './zlib/ZEDOAPI.php';
        
        /**
         *Create Client Stub
         */
        $config = Array();
        $config['location'] = 'http://api.zedo.com/v8/?wsdl&php';       //URL of the SOAP server to send the request to
        
        $config['exceptions'] = true;                                                                                                   //Enable Exception Handling
        
        $stub = new ZEDOAPI($config);
        
        $header = Array();
        $header[0] = new SoapHeader('http://api.zedo.com','user', 'example@example.com');
        $header[1] = new SoapHeader('http://api.zedo.com','password', 'password');
        $header[2] = new SoapHeader('http://api.zedo.com','network','525');
        $header[3] = new SoapHeader('http://api.zedo.com','callinfo','zapiCall');
        
        $stub->__setSoapHeaders($header);
        
        /**
         *Define Call Parameters 
         */
        $campaign = new Campaign();
        
        $campaign->actionType=2;        //0 for Action Tracking Off, 1 for Post Click, 2 for Post Impression and 3 for Post Click + Post Impression
        $actions = Array();
        $actions[0] = new Action();
        $actions[0]->itemNumber=1;
        $actions[0]->maxLifeTime=15;
        $actions[0]->name="name";
        $actions[0]->rate=4;
        $actions[0]->status="A";
        $actions[0]->url="http://we.ru";
        $actions[1] = new Action();
        $actions[1]->itemNumber=2;
        $actions[1]->maxLifeTime=10;
        $actions[1]->name="qwerty";
        $actions[1]->rate=0;
        $actions[1]->status="A";
        $actions[1]->url="http://we.ru";
        $actions[2] = new Action();
        $actions[2]->itemNumber=3;
        $actions[2]->maxLifeTime=12;
        $actions[2]->name="name2";
        $actions[2]->rate=99;
        $actions[2]->status="A";
        $actions[2]->url="http://we.ru";
        $campaign->setActions=$actions;
        
        $campaign->name="TestCampaign1";
        $campaign->advertiserId=1350859;//1350182;
        $campaign->startDate="2012-12-25";
        $campaign->startTime="00:00";
        $campaign->endDate="2012-12-31";
        $campaign->endTime="00:00";
        $campaign->status="A";
        $campaign->oldCost=null;
        $campaign->cost="2";
        $campaign->deliveryType="E";
        $campaign->notes="";
        $campaign->level=30;
        $campaign->weight=20;
        $campaign->ioReference=null;    //Optional. Sets IO Reference Number used to group various Campaigns together
        
        $campaign->actionsAllocated=0;
        $campaign->impressionsAllocated=10000;
        $campaign->clicksAllocated=0;
        
        //Campaign Type Settings
        $campaign->exclusive=0;         //s Campaign Type. 0 for Normal and 1 for Exclusive
        $campaign->inventoryType="Excess"; //If $exclusive is set to 1, $inventoryType should be set to Premium
        $campaign->revenueType="BRT";
        $campaign->minimumThreshold=null;
        $campaign->revenueDistributionMethod=null;
        $campaign->daysTargeted=null;
        
        //Advanced Delivery Options
        $campaign->limitType=0;
        $campaign->allocateType="adchan";       //"ad" for Allocate by Ad and "adchan" for Allocate by Channel
        $campaign->limitAt=null;
        $campaign->allocationAtCampaign=null;
        $campaign->distributeBy=null;
        
        $campaign->allocateByDay=0;     
        $campaign->categoryType="0";
        $campaign->autoOptimization=null; //Set Campaign Auto Optimisation Properties
        
        $campaign->recomputeEarningsFlag=0;
        $campaign->updateFlag=0;
        
        $param = new createCampaign($campaign);
        
        /**
         *Execute API Call 
         */
        try {
                $response = $stub->createCampaign($param);
        }catch (SoapFault $ex) {
          var_dump($ex->faultcode, $ex->faultstring, $ex->detail);
                        echo "CREATE CAMPAIGN FAILED\n";
                        die();
        }
        
        /**
         * Response
         */
        echo "CREATE CAMPAIGN COMPLETE\n\n";
        echo "\nReponse:\n";
        echo $stub->__getLastResponse();

Limit at Campaign Level

        include_once './zlib/ZEDOAPI.php';
        
        /**
         *Create Client Stub
         */
        $config = Array();
        $config['location'] = 'http://api.zedo.com/v8/?wsdl&php';       //URL of the SOAP server to send the request to
        $config['exceptions'] = true;                                                                                                   //Enable Exception Handling
        
        $stub = new ZEDOAPI($config);
        
        $header = Array();
        $header[0] = new SoapHeader('http://api.zedo.com','user', 'example@example.com');
        $header[1] = new SoapHeader('http://api.zedo.com','password', 'password');
        $header[2] = new SoapHeader('http://api.zedo.com','network','525');
        $header[3] = new SoapHeader('http://api.zedo.com','callinfo','zapiCall');
        
        $stub->__setSoapHeaders($header);
        
        /**
         *Define Call Parameters 
         */
        $campaign = new Campaign();
        
        $campaign->actionType=0;        //0 for Action Tracking Off, 1 for Post Click, 2 for Post Impression and 3 for Post Click + Post Impression
        $actions = Array();
        $actions[0] = new Action();
        $actions[0]->itemNumber=1;
        $actions[0]->maxLifeTime=15;
        $actions[0]->name="name";
        $actions[0]->rate=4;
        $actions[0]->status="A";
        $actions[0]->url="http://we.ru";
        $actions[1] = new Action();
        $actions[1]->itemNumber=2;
        $actions[1]->maxLifeTime=10;
        $actions[1]->name="qwerty";
        $actions[1]->rate=0;
        $actions[1]->status="A";
        $actions[1]->url="http://we.ru";
        $actions[2] = new Action();
        $actions[2]->itemNumber=3;
        $actions[2]->maxLifeTime=12;
        $actions[2]->name="name2";
        $actions[2]->rate=99;
        $actions[2]->status="A";
        $actions[2]->url="http://we.ru";
        $campaign->actions=$actions;
        
        $campaign->name="TestCampaignLimitCampaign";
        $campaign->advertiserId=1350859;//1350182;
        $campaign->startDate="2012-12-25";
        $campaign->startTime="00:00";
        $campaign->endDate="2012-12-31";
        $campaign->endTime="00:00";
        $campaign->status="A";
        $campaign->oldCost=null;
        $campaign->cost="2";
        $campaign->deliveryType="E";
        $campaign->notes="";
        $campaign->level=30;
        $campaign->weight=20;
        $campaign->ioReference=null;    //Optional. Sets IO Reference Number used to group various Campaigns together
                
        $campaign->actionsAllocated=0;
        $campaign->impressionsAllocated=10000;
        $campaign->clicksAllocated=0;
        
        //Campaign Type Settings
        $campaign->exclusive=0;         //Sets Campaign Type. 0 for Normal and 1 for Exclusive
        $campaign->inventoryType="Excess"; //If $exclusive is set to 1, $inventoryType should be set to Premium
        $campaign->revenueType="BRT";
        $campaign->minimumThreshold=null;
        $campaign->revenueDistributionMethod=null;
        $campaign->daysTargeted=null;
        
        //Advanced Delivery Options
        $campaign->limitType=0;
        $campaign->allocateType="ad";   //"ad" for Allocate by Ad and "adchan" for Allocate by Channel
        $campaign->limitAt="AT_CAMPAIGN_LEVEL";
        $campaign->allocationAtCampaign=20000;
        $campaign->distributeBy="P";
        
        $campaign->allocateByDay=0;
        $campaign->categoryType="0";
        $campaign->autoOptimization=null; //Set Campaign Auto Optimisation Properties
        
        $campaign->recomputeEarningsFlag=0;
        $campaign->updateFlag=0;
        
        $param = new createCampaign($campaign);
        
        /**
         *Execute API Call 
         */
        try {
                $response = $stub->createCampaign($param);
        }catch (SoapFault $ex) {
          var_dump($ex->faultcode, $ex->faultstring, $ex->detail);
                        echo "CREATE CAMPAIGN FAILED\n";
                        die();
        }
        
        /**
         * Response
         */
        echo "CREATE CAMPAIGN COMPLETE\n\n";
        echo "\nReponse:\n";
        echo $stub->__getLastResponse();

 

SOAP

Request

POST /axis2/services/ZEDOAPI?wsdl HTTP/1.1
Content-Type: application/soap+xml; charset=UTF-8; action="urn:createCampaign"
User-Agent: Axis2
Host: dev08.juhu.zedo.com:2000
Transfer-Encoding: chunked
<?xml version='1.0' encoding='UTF-8'?><soapenv:Envelope xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope"><soapenv:Header><zedoapi:user xmlns:zedoapi="http://api.zedo.com">example@example.com</zedoapi:user><zedoapi:password xmlns:zedoapi="http://api.zedo.com">ozocom</zedoapi:password><zedoapi:network xmlns:zedoapi="http://api.zedo.com">525</zedoapi:network></soapenv:Header><soapenv:Body><ns5:createCampaign xmlns:ns5="http://zapi.zedo.com"><ns5:campaign><ns1:actionType xmlns:ns1="http://client.api.zedo.com/xsd">1</ns1:actionType><actions xmlns="http://client.api.zedo.com/xsd"><itemNumber>1</itemNumber><maxLifeTime>13</maxLifeTime><name>myNameZedo1</name><rate>0.0</rate><status>A</status><url>http://www.myTest.com</url></actions><ns1:actionsAllocated xmlns:ns1="http://client.api.zedo.com/xsd">0</ns1:actionsAllocated><ns1:advertiserId xmlns:ns1="http://client.api.zedo.com/xsd">1173688</ns1:advertiserId><ns1:allocateType xmlns:ns1="http://client.api.zedo.com/xsd">ad</ns1:allocateType><ns1:categoryType xmlns:ns1="http://client.api.zedo.com/xsd">0</ns1:categoryType><ns1:clicksAllocated xmlns:ns1="http://client.api.zedo.com/xsd">1000</ns1:clicksAllocated><ns1:cost xmlns:ns1="http://client.api.zedo.com/xsd">1.0</ns1:cost><ns1:deliveryType xmlns:ns1="http://client.api.zedo.com/xsd">S</ns1:deliveryType><ns1:endDate xmlns:ns1="http://client.api.zedo.com/xsd">2016-5-05</ns1:endDate><ns1:exclusive xmlns:ns1="http://client.api.zedo.com/xsd">1</ns1:exclusive><ns1:impressionsAllocated xmlns:ns1="http://client.api.zedo.com/xsd">1000</ns1:impressionsAllocated><ns1:inventoryType xmlns:ns1="http://client.api.zedo.com/xsd">Premium</ns1:inventoryType><ns1:limitAt xmlns:ns1="http://client.api.zedo.com/xsd">AT_AD_LEVEL</ns1:limitAt><ns1:limitType xmlns:ns1="http://client.api.zedo.com/xsd">0</ns1:limitType><ns1:name xmlns:ns1="http://client.api.zedo.com/xsd">20131234augtesting</ns1:name><ns1:notes xmlns:ns1="http://client.api.zedo.com/xsd"></ns1:notes><ns1:revenueType xmlns:ns1="http://client.api.zedo.com/xsd">CPA</ns1:revenueType><ns1:startDate xmlns:ns1="http://client.api.zedo.com/xsd">2015-07-29</ns1:startDate><ns1:startTime xmlns:ns1="http://client.api.zedo.com/xsd">18:00</ns1:startTime><ns1:status xmlns:ns1="http://client.api.zedo.com/xsd">A</ns1:status>
<tags xmlns="http://client.api.zedo.com/xsd">
<name>camtag1</name>
<value>value5</value>
</tags>
<tags xmlns="http://client.api.zedo.com/xsd">
<name>camptag2</name>
<value>value6</value>
</tags>
</ns5:campaign></ns5:createCampaign>
</soapenv:Body></soapenv:Envelope>




Response

HTTP/1.1 200 OK
Date: Wed, 20 Jan 2016 12:28:22 GMT
Server: Simple-Server/1.1
Transfer-Encoding: chunked
Content-Type: application/soap+xml; charset=UTF-8; action="urn:createCampaignResponse"
<?xml version='1.0' encoding='UTF-8'?><soapenv:Envelope xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope"><soapenv:Body><ns:createCampaignResponse xmlns:ns="http://zapi.zedo.com"><ns:return xmlns:ax21="http://base.zedo.com/xsd" xmlns:ax22="http://util.zedo.com/xsd" xmlns:ax25="http://soap.reportengine.zedo.com/xsd" xmlns:ax24="http://client.api.zedo.com/xsd" type="com.zedo.api.client.Campaign"><ax24:actionType>1</ax24:actionType><ax24:actionsAllocated>0</ax24:actionsAllocated><ax24:actionsDelivered>0</ax24:actionsDelivered><ax24:advertiserId>1173688</ax24:advertiserId><ax24:allocateByDay>0</ax24:allocateByDay><ax24:allocateType>ad</ax24:allocateType><ax24:allocationAtCampaign xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="true" /><ax24:autoOptimization xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="true" /><ax24:categoryType>0</ax24:categoryType><ax24:clicksAllocated>1000</ax24:clicksAllocated><ax24:clicksDelivered>0</ax24:clicksDelivered><ax24:cost>1.0</ax24:cost><ax24:createdBy>41107</ax24:createdBy><ax24:createdDate>2016-01-20 04:28:20</ax24:createdDate><ax24:daysTargeted xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="true" /><ax24:deliveryType>S</ax24:deliveryType><ax24:distributeBy xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="true" /><ax24:endDate>2016-05-05 23:59:59</ax24:endDate><ax24:endTime>23:59</ax24:endTime><ax24:eventAssigned xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="true" /><ax24:eventsDelivered>0</ax24:eventsDelivered><ax24:exclusive>1</ax24:exclusive><ax24:id>1173689</ax24:id><ax24:impressionsAllocated>1000</ax24:impressionsAllocated><ax24:impressionsDelivered>0</ax24:impressionsDelivered><ax24:inventoryType>Premium</ax24:inventoryType><ax24:ioReference></ax24:ioReference><ax24:level>60</ax24:level><ax24:limitAt>AT_AD_LEVEL</ax24:limitAt><ax24:limitType>0</ax24:limitType><ax24:minimumThreshold xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="true" /><ax24:modifiedBy>41107</ax24:modifiedBy><ax24:modifiedDate>2016-01-20 04:28:20</ax24:modifiedDate><ax24:name>20131234augtesting</ax24:name><ax24:notes></ax24:notes><ax24:oldCost>0.0</ax24:oldCost><ax24:recomputeEarningsFlag>0</ax24:recomputeEarningsFlag><ax24:revenueDistributionMethod xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="true" /><ax24:revenueType>CPA</ax24:revenueType><ax24:startDate>2015-07-29 18:00:00</ax24:startDate><ax24:startTime>00:00</ax24:startTime><ax24:status>A</ax24:status>
<ax24:tags type="com.zedo.api.client.Tag">
 <ax24:name>camtag1</ax24:name>
 <ax24:value>value5</ax24:value>
 </ax24:tags>
 <ax24:tags type="com.zedo.api.client.Tag">
 <ax24:name>camptag2</ax24:name>
 <ax24:value>value6</ax24:value>
 </ax24:tags>
<ax24:timezoneId>1</ax24:timezoneId><ax24:updateFlag>1</ax24:updateFlag><ax24:weight>100.0</ax24:weight></ns:return></ns:createCampaignResponse></soapenv:Body></soapenv:Envelope>