Home » getCreativeAllIncludeHidden

getCreativeAllIncludeHidden

Description

Gets the list of Creatives with access control privileges and includes Creative ‘HID’ status

Attributes

Function doesn’t accept attributes

Samples

Java

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

public class GetCreativeAllIncludeHiddenTest {

    public static void main(String[] args) {
        GetCreativeAllIncludeHiddenTest.getCreativeAllIncludeHiddenTest();
    }

    private static void getCreativeAllIncludeHiddenTest() {
        
        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);
            
            Thread.sleep(5000);
            Creative[] creativeAll = stub.getCreativeAllIncludeHidden().get_return();
     
            System.out.println("GET_CREATIVE_ALL_INCLUDE_HIDDEN COMPLETE!");
            for (Creative creative:  creativeAll) {
                System.out.println(creative.getId() + " " + creative.getName());
            }

        } catch (Exception e) {
            System.err.println("ERROR: GET_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 
         */
        
        /**
         *Execute API Call 
         */
        try {
                $response = $stub->getCreativeAllIncludeHidden();
        }catch (SoapFault $ex) {
          var_dump($ex->faultcode, $ex->faultstring, $ex->detail); 
                echo "GET CREATIVEALLINCLUDEHIDDEN FAILED\n";
            die();
        }
        
        /**
         * Response
         */
        $tmp = new getCreativeAllIncludeHiddenResponse($response);
        $creativeAllIncludeHidden = $tmp->return;
        echo "GET CREATIVEALLINCLUDEHIDDEN COMPLETE - RESPONSE : \n";
        print_r($creativeAllIncludeHidden);


SOAP

Request

POST /axis2/services/ZEDOAPI?wsdl HTTP/1.1
Content-Type: application/soap+xml; charset=UTF-8; action="urn:getCreativeAllIncludeHidden"
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 />
</soapenv:Envelope>

Response

HTTP/1.1 200 OK
Date: Wed, 20 Jan 2016 06:49:11 GMT
Server: Simple-Server/1.1
Transfer-Encoding: chunked
Content-Type: application/soap+xml; charset=UTF-8; action="urn:getCreativeAllIncludeHiddenResponse"
<?xml version='1.0' encoding='UTF-8'?>
<soapenv:Envelope xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope">
<soapenv:Body>
<ns:getCreativeAllIncludeHiddenResponse 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>StdBanUnLtdWroldNoFC</ax24:altText>
<ax24:attributes>0</ax24:attributes>
<ax24:booked>0</ax24:booked>
<ax24:campaignId>173885</ax24:campaignId>
<ax24:clickThroughURL>http://asds.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>129530</ax24:id>
<ax24:impressionsAllocated>20000000</ax24:impressionsAllocated>
<ax24:impressionsDelivered>50</ax24:impressionsDelivered>
<ax24:impressionsDelta>0</ax24:impressionsDelta>
<ax24:name>StdBanUnLtd</ax24:name>
<ax24:piactionsDelivered>0</ax24:piactionsDelivered>
<ax24:piactionsDelta>0</ax24:piactionsDelta>
<ax24:profileType>0</ax24:profileType>
<ax24:status>APP</ax24:status>
<ax24:timezoneId>1</ax24:timezoneId>
<ax24:type>Std Banner</ax24:type>
<ax24:uploadDelta>0</ax24:uploadDelta>
<ax24:uploadTick>48572</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>0</ax24:allocateByDay>
<ax24:altText>StdBanUnLtdUsFc</ax24:altText>
<ax24:attributes>0</ax24:attributes>
<ax24:booked>0</ax24:booked>
<ax24:campaignId>173887</ax24:campaignId>
<ax24:clickThroughURL>http://asds.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>3</ax24:frequency>
<ax24:genQueuePosition>0</ax24:genQueuePosition>
<ax24:geoPriority>1</ax24:geoPriority>
<ax24:geoType>Country</ax24:geoType>
<ax24:id>129532</ax24:id>
<ax24:impressionsAllocated>-1</ax24:impressionsAllocated>
<ax24:impressionsDelivered>0</ax24:impressionsDelivered>
<ax24:impressionsDelta>0</ax24:impressionsDelta>
<ax24:name>StdBanUnLtdUS</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>1</ax24:weight>
</ns:return>
</ns:getCreativeAllIncludeHiddenResponse>
</soapenv:Body>
</soapenv:Envelope>