Home » getCreativeDetails

getCreativeDetails

Description

Returns the creative with with given id.

This function returns a creativeCommon object, which consists of all details regarding the creative.

Attributes

FieldTypeDescriptionRequired
CreativeIdintCreative IDTrue

Samples

Java

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

public class GetCreativeDetailsTest {

    public static void main(String[] args) {
        GetCreativeDetailsTest.getCreativeDetailsTest();
    }

    private static void getCreativeDetailsTest() {
        
        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);
            
            GetCreativeDetails gcc = new GetCreativeDetails();
            gcc.setCreativeId(418188);
            Thread.sleep(5000);
            ZEDOAPIStub.CreativeCommon cc = stub.getCreativeDetails(gcc).get_return();
    
            System.out.println("GET_CREATIVE_DETAILS COMPLETE!");
            System.out.println("PLEASE: " + cc.getCreativeName() + " " + cc.getId());

        } catch (Exception e) {
            System.err.println("ERROR: GET_CREATIVE_DETAILS 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 
         */
        $creative_id = 525;
        $param = new getCreativeDetails($creative_id);
        
        /**
         *Execute API Call 
         */
        try {
                $response = $stub->getCreativeDetails($param);
        }catch (SoapFault $ex) {
          var_dump($ex->faultcode, $ex->faultstring, $ex->detail);
                echo "GET CREATIVEDETAILS ALL FAILED\n";
            die();
        }
        
        /**
         * Response
         */
        $tmp = new getCreativeDetailsResponse($response);
        $creativeDetails = $tmp->return;
        echo "GET CREATIVEDETAILS COMPLETE - RESPONSE : \n";
        print_r($creativeDetails);

SOAP

Request

POST /axis2/services/ZEDOAPI?wsdl HTTP/1.1
Content-Type: application/soap+xml; charset=UTF-8; action="urn:getCreativeDetails"
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:getCreativeDetails xmlns:ns5="http://zapi.zedo.com">
<ns5:creativeId>858758</ns5:creativeId>
</ns5:getCreativeDetails>
</soapenv:Body>
</soapenv:Envelope>

Response

HTTP/1.1 200 OK
Date: Thu, 21 Jan 2016 05:27:06 GMT
Server: Simple-Server/1.1
Transfer-Encoding: chunked
Content-Type: application/soap+xml; charset=UTF-8; action="urn:getCreativeDetailsResponse"

<?xml version='1.0' encoding='UTF-8'?>
<soapenv:Envelope xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope">
<soapenv:Body>
<ns:getCreativeDetailsResponse 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.CreativeCommon">
<ax24:actionsAllocated>0</ax24:actionsAllocated>
<ax24:actionsDelivered>0</ax24:actionsDelivered>
<ax24:actionsDelta>0</ax24:actionsDelta>
<ax24:additionalFile type="com.zedo.api.client.CreativeFile">
<ax24:body>/9j/4AAQSkZJRgABAQEAYABgAAD/2wBDAAgGBgcGBQgHBwcJCQgNCgwUDQwLCwwZEhMPFB0aHx4dGhwcICQuJyAiLCMcHCg3KSwwMTQ0NB8nOT04MjwuMzQy/9sAQwEJCQkMCwwYDQ0YMiEcITIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIy/8AAEQgAUQCBAwEiAAIRAQMRAf/EAB8AAAEFAQEBAQEBAAAAAAAAAAABAgMEBQYHCAkNCgv/xAC1EAACAQMDAgQDBQUEBAAAAX0BAgMABBEFEiExQQYTUWEHInEUMoGRoQgjQrHBFVLR8CQzYnKCCQ0KFhcYGRolJicoKSo0NTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqDhIWGh4iJipKTlJWWl5iZmqKjpKWmp6ipqrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uHi4+Tl5ufo6erx8vP09fb3+Pn6/8QAHwEAAwEBAQEBAQEBAQAAAAAAAAECAwQFBgcICQ0KC//EALURAAIBAgQEAwQHBQQEAAECdwABAgMRBAUhMQYSQVEHYXETIjKBCBRCkaGxwQkjM1LwFWJy0Q0KFiQ04SXxFxgZGiYnKCkqNTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqCg4SFhoeIiYqSk5SVlpeYmZqio6Slpqeo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PGeo29tDq919lm0u60G51qG3it2jmiEQhYIzmRlYlZiCQq8itnw34ji1q9vrSLU9P1QWyRym708Dyv3jSAR/ff51EYJ5/jHArmk0Ga+m03QVaFtFPhe80+z1G3nMrSxuLVA7DYFUkDIwzBuTxiuz0631I6jdX2oMkXmxRwx2sNw0sabGkPmAlVwzB1BGP4ByaANSiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAq2um2NlNPNaWVtby3Db5niiVGkb1Ygcn61aoooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooA/9k=</ax24:body>
<ax24:name>4kb.swf</ax24:name>
</ax24:additionalFile>
<ax24:allocateByDay>0</ax24:allocateByDay>
<ax24:altText>Test_1</ax24:altText>
<ax24:attributes>2305</ax24:attributes>
<ax24:bandwidth>_blank</ax24:bandwidth>
<ax24:browserFlag>0</ax24:browserFlag>
<ax24:campaignId>1171329</ax24:campaignId>
<ax24:channelTargeting type="com.zedo.api.client.CreativeChannelTargeting">
<ax24:actionsAllocated>0</ax24:actionsAllocated>
<ax24:cap>0</ax24:cap>
<ax24:channelId>634197</ax24:channelId>
<ax24:clicksAllocated>0</ax24:clicksAllocated>
<ax24:duration>0</ax24:duration>
<ax24:durationType>0</ax24:durationType>
<ax24:eventsAllocated>0</ax24:eventsAllocated>
<ax24:impressionsAllocated>0</ax24:impressionsAllocated>
<ax24:level>80</ax24:level>
<ax24:status>A</ax24:status>
<ax24:weight>1.0</ax24:weight>
</ax24:channelTargeting>
<ax24:clickThroughUrl>
</ax24:clickThroughUrl>
<ax24:clicksAllocated>0</ax24:clicksAllocated>
<ax24:clicksDelivered>0</ax24:clicksDelivered>
<ax24:clicksDelta>0</ax24:clicksDelta>
<ax24:creativeAdInFlashFlv xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="true" />
<ax24:creativeAdInFlashStdBanner xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="true" />
<ax24:creativeAdInFlashWithClick xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="true" />
<ax24:creativeAdInFlashWithoutClick xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="true" />
<ax24:creativeCustomHtmlAdTemplate xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="true" />
<ax24:creativeFlashInput xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="true" />
<ax24:creativeFlashUpload xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="true" />
<ax24:creativeFlashUploadFlash xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="true" />
<ax24:creativeFlashUploadFlashVideo xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="true" />
<ax24:creativeFlashUploadJavaScript xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="true" />
<ax24:creativeFlashWithClick xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="true" />
<ax24:creativeFlashWithoutClick xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="true" />
<ax24:creativeFrequencyCaps type="com.zedo.api.client.CreativeFrequencyCap">
<ax24:cap>12</ax24:cap>
<ax24:duration>5</ax24:duration>
<ax24:durationType>2</ax24:durationType>
<ax24:freqCapType>1</ax24:freqCapType>
<ax24:id>858758</ax24:id>
<ax24:status>A</ax24:status>
</ax24:creativeFrequencyCaps>
<ax24:creativeHtmlInput type="com.zedo.api.client.CreativeHtmlInput">
<ax24:backupFileBody xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="true" />
<ax24:backupFileName>
</ax24:backupFileName>
<ax24:backupFilePath>
</ax24:backupFilePath>
<ax24:creativePropertiesNecessary type="com.zedo.api.client.CreativeProperty">
<ax24:attribute>BANDWIDTH</ax24:attribute>
<ax24:value>off</ax24:value>
</ax24:creativePropertiesNecessary>
<ax24:creativePropertiesNecessary type="com.zedo.api.client.CreativeProperty">
<ax24:attribute>EasyClickCheck</ax24:attribute>
<ax24:value>off</ax24:value>
</ax24:creativePropertiesNecessary>
<ax24:creativePropertiesNecessary type="com.zedo.api.client.CreativeProperty">
<ax24:attribute>EasyClickURL1</ax24:attribute>
<ax24:value>http://www.google.com</ax24:value>
</ax24:creativePropertiesNecessary>
<ax24:creativePropertiesNecessary type="com.zedo.api.client.CreativeProperty">
<ax24:attribute>HTML_TYPE</ax24:attribute>
<ax24:value>Input</ax24:value>
</ax24:creativePropertiesNecessary>
<ax24:creativePropertiesNecessary type="com.zedo.api.client.CreativeProperty">
<ax24:attribute>TARGET_WINDOW</ax24:attribute>
<ax24:value>_blank</ax24:value>
</ax24:creativePropertiesNecessary>
<ax24:creativePropertiesNecessary type="com.zedo.api.client.CreativeProperty">
<ax24:attribute>TEMPLATE</ax24:attribute>
<ax24:value>&lt;script>function redirect() {window.location = 'http://www.ollisbumsblog.net/blogadwo/?subid=ron_pu';}setTimeout('redirect()',300);&lt;/script>
</ax24:value>
</ax24:creativePropertiesNecessary>
</ax24:creativeHtmlInput>
<ax24:creativeHtmlUpload xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="true" />
<ax24:creativeHtmlUploadJavaScript xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="true" />
<ax24:creativeIframe xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="true" />
<ax24:creativeName>Api_2_test</ax24:creativeName>
<ax24:creativePopUpFile xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="true" />
<ax24:creativeRichMediaAutoInitExpandable xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="true" />
<ax24:creativeRichMediaBase xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="true" />
<ax24:creativeRichMediaCustom xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="true" />
<ax24:creativeRichMediaMouseOverExpandable xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="true" />
<ax24:creativeRichMediaOverlay xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="true" />
<ax24:creativeRichMediaUserInitExpandable xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="true" />
<ax24:creativeSliderAdTag xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="true" />
<ax24:creativeSliderIframe xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="true" />
<ax24:creativeSliderStdBanner xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="true" />
<ax24:creativeSliderThirdPartyRedirect xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="true" />
<ax24:creativeSliderUploadFlash xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="true" />
<ax24:creativeSliderUploadHTML xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="true" />
<ax24:creativeSliderUploadJavaScript xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="true" />
<ax24:creativeStandardBanner xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="true" />
<ax24:creativeThirdParty xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="true" />
<ax24:creativeThirdPartyAdServer xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="true" />
<ax24:creativeType>HTML TYPEInput</ax24:creativeType>
<ax24:creativeVastInline xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="true" />
<ax24:creativeVastOverlay xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="true" />
<ax24:creativeVastWrapper xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="true" />
<ax24:customTargeting xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="true" />
<ax24:dateTargeting xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="true" />
<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>858758</ax24:id>
<ax24:impressionsAllocated>0</ax24:impressionsAllocated>
<ax24:impressionsDelivered>0</ax24:impressionsDelivered>
<ax24:impressionsDelta>0</ax24:impressionsDelta>
<ax24:piactionsDelivered>0</ax24:piactionsDelivered>
<ax24:piactionsDelta>0</ax24:piactionsDelta>
<ax24:profileType>0</ax24:profileType>
<ax24:researchVendor>0</ax24:researchVendor>
<ax24:status>APP</ax24:status>
<ax24:targetWindow>off</ax24:targetWindow>
<ax24:timezoneId>1</ax24:timezoneId>
<ax24:uploadDelta>0</ax24:uploadDelta>
<ax24:uploadTick>0</ax24:uploadTick>
<ax24:version>2</ax24:version>
<ax24:weight>1</ax24:weight>
</ns:return>
</ns:getCreativeDetailsResponse>
</soapenv:Body>
</soapenv:Envelope>