Home » getCampaignCreativeAll

getCampaignCreativeAll

Description

Gets the creative list with access control privileges for a specific Campaign

Attibutes

FieldTypeDescriptionRequired
CampaignIdintcampaign IDtrue

Samples

Java

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

public class GetCampaignCreativeAllTest {

    public static void main(String[] args) {
        GetCampaignCreativeAllTest.getCampaignCreativeAllTest();
    }

    private static void getCampaignCreativeAllTest() {
        
        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");

          GetCampaignCreativeAll gc= new GetCampaignCreativeAll();
          gc.setCampaignId(1343895);
          stub._getServiceClient().getOptions().setTimeOutInMilliSeconds(10 * 60 * 1000);

            Thread.sleep(1000);
            Creative[] creativeAll = stub.getCampaignCreativeAll(gc).get_return();
     
            System.out.println("GET_CAMPAIGN_CREATIVE_ALL COMPLETE!");
            for (Creative creative : creativeAll) {
                System.out.println(creative.getId() + " " + creative.getName() + creative.getStatus());
            }

        } catch (Exception e) {
            System.err.println("ERROR: GET_CAMPAIGN_CREATIVE_ALL 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

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_id = 1350191;
        $param = new getCampaignCreativeAll($campaign_id);
        
        /**
         *Execute API Call 
         */
        try {
                $response = $stub->getCampaignCreativeAll($param);
        }catch (SoapFault $ex) {
          var_dump($ex->faultcode, $ex->faultstring, $ex->detail);
                echo "GET CAMPAIGNCREATIVE ALL FAILED\n";
            die();
        }
        
        /**
         * Response
         */
        $tmp = new getCampaignCreativeAllResponse($response);
        $campaignCreativeAll = $tmp->return;
        echo "GET CAMPAIGNCREATIVE ALL COMPLETE - RESPONSE : \n";
        print_r($campaignCreativeAll);

SOAP

Request

POST /axis2/services/ZEDOAPI?wsdl HTTP/1.1
Content-Type: application/soap+xml; charset=UTF-8; action="urn:getCampaignCreativeAll"
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">password</zedoapi:password>
<zedoapi:network xmlns:zedoapi="http://api.zedo.com">525</zedoapi:network>
</soapenv:Header>
<soapenv:Body>
<ns5:getCampaignCreativeAll xmlns:ns5="http://zapi.zedo.com">
<ns5:campaignId>1089365</ns5:campaignId>
</ns5:getCampaignCreativeAll>
</soapenv:Body>
</soapenv:Envelope>

Response

HTTP/1.1 200 OK
Date: Wed, 20 Jan 2016 06:39:23 GMT
Server: Simple-Server/1.1
Transfer-Encoding: chunked
Content-Type: application/soap+xml; charset=UTF-8; action="urn:getCampaignCreativeAllResponse"
<?xml version='1.0' encoding='UTF-8'?>
<soapenv:Envelope xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope">
<soapenv:Body>
<ns:getCampaignCreativeAllResponse xmlns:ns="http://zapi.zedo.com" 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">
<ns:return type="com.zedo.api.client.Creative">
<ax24:actionsAllocated>0</ax24:actionsAllocated>
<ax24:actionsDelivered>0</ax24:actionsDelivered>
<ax24:actionsDelta>0</ax24:actionsDelta>
<ax24:allocateByDay>0</ax24:allocateByDay>
<ax24:altText>this a a alt text</ax24:altText>
<ax24:attributes>1536</ax24:attributes>
<ax24:booked>0</ax24:booked>
<ax24:campaignId>1089365</ax24:campaignId>
<ax24:clickThroughURL>http://www.drive-more-leads.com/zedo</ax24:clickThroughURL>
<ax24:clicksAllocated>0</ax24:clicksAllocated>
<ax24:clicksDelivered>0</ax24:clicksDelivered>
<ax24:clicksDelta>0</ax24:clicksDelta>
<ax24:dimensionId>6</ax24:dimensionId>
<ax24:eventsAllocated>0</ax24:eventsAllocated>
<ax24:eventsDelivered>0</ax24:eventsDelivered>
<ax24:eventsDelta>0</ax24:eventsDelta>
<ax24:frequency>0</ax24:frequency>
<ax24:genQueuePosition>0</ax24:genQueuePosition>
<ax24:geoPriority>0</ax24:geoPriority>
<ax24:geoType>NONE</ax24:geoType>
<ax24:id>833033</ax24:id>
<ax24:impressionsAllocated>1000</ax24:impressionsAllocated>
<ax24:impressionsDelivered>0</ax24:impressionsDelivered>
<ax24:impressionsDelta>0</ax24:impressionsDelta>
<ax24:name>abcd</ax24:name>
<ax24:piactionsDelivered>0</ax24:piactionsDelivered>
<ax24:piactionsDelta>0</ax24:piactionsDelta>
<ax24:profileType>0</ax24:profileType>
<ax24:status>PSE</ax24:status>
<ax24:timezoneId>1</ax24:timezoneId>
<ax24:type>Std Banner</ax24:type>
<ax24:uploadDelta>0</ax24:uploadDelta>
<ax24:uploadTick>0</ax24:uploadTick>
<ax24:version>1</ax24:version>
<ax24:weight>1</ax24:weight>
</ns:return>
<ns:return type="com.zedo.api.client.Creative">
<ax24:actionsAllocated>0</ax24:actionsAllocated>
<ax24:actionsDelivered>0</ax24:actionsDelivered>
<ax24:actionsDelta>0</ax24:actionsDelta>
<ax24:allocateByDay>-1</ax24:allocateByDay>
<ax24:altText>
</ax24:altText>
<ax24:attributes>0</ax24:attributes>
<ax24:booked>0</ax24:booked>
<ax24:campaignId>1089365</ax24:campaignId>
<ax24:clickThroughURL>http://www.zedo.com</ax24:clickThroughURL>
<ax24:clicksAllocated>0</ax24:clicksAllocated>
<ax24:clicksDelivered>0</ax24:clicksDelivered>
<ax24:clicksDelta>0</ax24:clicksDelta>
<ax24:dimensionId>0</ax24:dimensionId>
<ax24:eventsAllocated>0</ax24:eventsAllocated>
<ax24:eventsDelivered>0</ax24:eventsDelivered>
<ax24:eventsDelta>0</ax24:eventsDelta>
<ax24:frequency>0</ax24:frequency>
<ax24:genQueuePosition>0</ax24:genQueuePosition>
<ax24:geoPriority>0</ax24:geoPriority>
<ax24:geoType>NONE</ax24:geoType>
<ax24:id>839822</ax24:id>
<ax24:impressionsAllocated>-1</ax24:impressionsAllocated>
<ax24:impressionsDelivered>0</ax24:impressionsDelivered>
<ax24:impressionsDelta>0</ax24:impressionsDelta>
<ax24:name>targeting template </ax24:name>
<ax24:piactionsDelivered>0</ax24:piactionsDelivered>
<ax24:piactionsDelta>0</ax24:piactionsDelta>
<ax24:profileType>0</ax24:profileType>
<ax24:status>NYA</ax24:status>
<ax24:timezoneId>1</ax24:timezoneId>
<ax24:type>Std Banner</ax24:type>
<ax24:uploadDelta>0</ax24:uploadDelta>
<ax24:uploadTick>0</ax24:uploadTick>
<ax24:version>1</ax24:version>
<ax24:weight>0</ax24:weight>
</ns:return>
<ns:return type="com.zedo.api.client.Creative">
<ax24:actionsAllocated>0</ax24:actionsAllocated>
<ax24:actionsDelivered>0</ax24:actionsDelivered>
<ax24:actionsDelta>0</ax24:actionsDelta>
<ax24:allocateByDay>-1</ax24:allocateByDay>
<ax24:altText>
</ax24:altText>
<ax24:attributes>0</ax24:attributes>
<ax24:booked>0</ax24:booked>
<ax24:campaignId>1089365</ax24:campaignId>
<ax24:clickThroughURL>
</ax24:clickThroughURL>
<ax24:clicksAllocated>0</ax24:clicksAllocated>
<ax24:clicksDelivered>0</ax24:clicksDelivered>
<ax24:clicksDelta>0</ax24:clicksDelta>
<ax24:dimensionId>0</ax24:dimensionId>
<ax24:eventsAllocated>0</ax24:eventsAllocated>
<ax24:eventsDelivered>0</ax24:eventsDelivered>
<ax24:eventsDelta>0</ax24:eventsDelta>
<ax24:frequency>0</ax24:frequency>
<ax24:genQueuePosition>0</ax24:genQueuePosition>
<ax24:geoPriority>0</ax24:geoPriority>
<ax24:geoType>NONE</ax24:geoType>
<ax24:id>846551</ax24:id>
<ax24:impressionsAllocated>-1</ax24:impressionsAllocated>
<ax24:impressionsDelivered>0</ax24:impressionsDelivered>
<ax24:impressionsDelta>0</ax24:impressionsDelta>
<ax24:name>road block ad_468X60</ax24:name>
<ax24:piactionsDelivered>0</ax24:piactionsDelivered>
<ax24:piactionsDelta>0</ax24:piactionsDelta>
<ax24:profileType>0</ax24:profileType>
<ax24:status>NYA</ax24:status>
<ax24:timezoneId>1</ax24:timezoneId>
<ax24:type>Std Banner</ax24:type>
<ax24:uploadDelta>0</ax24:uploadDelta>
<ax24:uploadTick>0</ax24:uploadTick>
<ax24:version>1</ax24:version>
<ax24:weight>0</ax24:weight>
</ns:return>
<ns:return type="com.zedo.api.client.Creative">
<ax24:actionsAllocated>0</ax24:actionsAllocated>
<ax24:actionsDelivered>0</ax24:actionsDelivered>
<ax24:actionsDelta>0</ax24:actionsDelta>
<ax24:allocateByDay>-1</ax24:allocateByDay>
<ax24:altText>
</ax24:altText>
<ax24:attributes>256</ax24:attributes>
<ax24:booked>0</ax24:booked>
<ax24:campaignId>1089365</ax24:campaignId>
<ax24:clickThroughURL>
</ax24:clickThroughURL>
<ax24:clicksAllocated>0</ax24:clicksAllocated>
<ax24:clicksDelivered>0</ax24:clicksDelivered>
<ax24:clicksDelta>0</ax24:clicksDelta>
<ax24:dimensionId>1</ax24:dimensionId>
<ax24:eventsAllocated>0</ax24:eventsAllocated>
<ax24:eventsDelivered>0</ax24:eventsDelivered>
<ax24:eventsDelta>0</ax24:eventsDelta>
<ax24:frequency>0</ax24:frequency>
<ax24:genQueuePosition>0</ax24:genQueuePosition>
<ax24:geoPriority>0</ax24:geoPriority>
<ax24:geoType>NONE</ax24:geoType>
<ax24:id>846552</ax24:id>
<ax24:impressionsAllocated>-1</ax24:impressionsAllocated>
<ax24:impressionsDelivered>0</ax24:impressionsDelivered>
<ax24:impressionsDelta>0</ax24:impressionsDelta>
<ax24:name>road block ad_234X60</ax24:name>
<ax24:piactionsDelivered>0</ax24:piactionsDelivered>
<ax24:piactionsDelta>0</ax24:piactionsDelta>
<ax24:profileType>0</ax24:profileType>
<ax24:status>NYA</ax24:status>
<ax24:timezoneId>1</ax24:timezoneId>
<ax24:type>Std Banner</ax24:type>
<ax24:uploadDelta>0</ax24:uploadDelta>
<ax24:uploadTick>0</ax24:uploadTick>
<ax24:version>1</ax24:version>
<ax24:weight>0</ax24:weight>
</ns:return>
<ns:return type="com.zedo.api.client.Creative">
<ax24:actionsAllocated>0</ax24:actionsAllocated>
<ax24:actionsDelivered>0</ax24:actionsDelivered>
<ax24:actionsDelta>0</ax24:actionsDelta>
<ax24:allocateByDay>-1</ax24:allocateByDay>
<ax24:altText xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="true" />
<ax24:attributes>2305</ax24:attributes>
<ax24:booked>0</ax24:booked>
<ax24:campaignId>1089365</ax24:campaignId>
<ax24:clickThroughURL>
</ax24:clickThroughURL>
<ax24:clicksAllocated>0</ax24:clicksAllocated>
<ax24:clicksDelivered>0</ax24:clicksDelivered>
<ax24:clicksDelta>0</ax24:clicksDelta>
<ax24:dimensionId>9</ax24:dimensionId>
<ax24:eventsAllocated>0</ax24:eventsAllocated>
<ax24:eventsDelivered>0</ax24:eventsDelivered>
<ax24:eventsDelta>0</ax24:eventsDelta>
<ax24:frequency>0</ax24:frequency>
<ax24:genQueuePosition>0</ax24:genQueuePosition>
<ax24:geoPriority>0</ax24:geoPriority>
<ax24:geoType>NONE</ax24:geoType>
<ax24:id>849740</ax24:id>
<ax24:impressionsAllocated>-1</ax24:impressionsAllocated>
<ax24:impressionsDelivered>0</ax24:impressionsDelivered>
<ax24:impressionsDelta>0</ax24:impressionsDelta>
<ax24:name>asdsadsadsadsasa</ax24:name>
<ax24:piactionsDelivered>0</ax24:piactionsDelivered>
<ax24:piactionsDelta>0</ax24:piactionsDelta>
<ax24:profileType>0</ax24:profileType>
<ax24:status>NYA</ax24:status>
<ax24:timezoneId>1</ax24:timezoneId>
<ax24:type>VAST</ax24:type>
<ax24:uploadDelta>0</ax24:uploadDelta>
<ax24:uploadTick>0</ax24:uploadTick>
<ax24:version>1</ax24:version>
<ax24:weight>0</ax24:weight>
</ns:return>
</ns:getCampaignCreativeAllResponse>
</soapenv:Body>
</soapenv:Envelope>