Difference between revisions of "GetCreatives"

From Ad4Game Help
Jump to: navigation, search
(Created page with "==Description== Return all the creatives files associated to an offer.<br /> Result can display a set of fields for the matching offer. <br /> such as Country Name, file Nam...")
 

Latest revision as of 08:13, 2 October 2013

Contents

Description

Return all the creatives files associated to an offer.
Result can display a set of fields for the matching offer.
such as Country Name, file Name, file width, and file height

URL

https://traffic.ad4game.com/www/admin/offers-api.php?apiKey=[YOUR API KEY]&zoneId=[YOUR ZONE ID]&affiliateId=[YOUR AFFILIATE ID]&method=getCreatives&format=[xml OR json]&offerId=[OFFER ID]

HTTP Method(s)

GET, POST

Reponses types

JSON

 {"error":"Success",
   "OfferId":"3",
   "OfferName":"The West",
   "Creatives":{
     "AT":[
       {"width":"728","height":"90","fileName":"http:\/\/cdn.ad4game.com\/dbae1d612de94e74817735eb51c7e20a.swf"},
       {"width":"160","height":"600","fileName":"http:\/\/cdn.ad4game.com\/9504ec9ee6c94679779dd7621d315052.swf"},
       {"width":"300","height":"250","fileName":"http:\/\/cdn.ad4game.com\/76084ead58673a5f304922b59dd27d2d.swf"}
     ],
     "AU":[
       {"width":"160","height":"600","fileName":"http:\/\/cdn.ad4game.com\/a1163f53d6f49d2fb49c65c3e269e596.swf"},
       {"width":"300","height":"250","fileName":"http:\/\/cdn.ad4game.com\/89d7794a8d54339cf4b43e94b807a8e7.swf"},
       {"width":"728","height":"90","fileName":"http:\/\/cdn.ad4game.com\/4e04f020481de02c6311a9058483666d.swf"}
     ]
   }
 }

XML

 <?xml version='1.0' encoding='UTF-8' ?>
 <Offer Id='3'>
   <Name>The West</Name>
   <Creatives>
     <Country Name='AT'>
       <Banners>
         <File width='300' height='300' >http://cdn.ad4game.com/dd0bd0b0af09e9e17179d4cfa455defd.jpg</File>
         <File width='728' height='728' >http://cdn.ad4game.com/8cb39dd7855d5a170ba11991a72373f2.swf</File>
         <File width='160' height='160' >http://cdn.ad4game.com/84abefe1c89ade028b8b5d5ad689ae56.swf</File>
       </Banners>
     </Country>
     <Country Name='AU'>
       <Banners>
         <File width='300' height='300' >http://cdn.ad4game.com/89d7794a8d54339cf4b43e94b807a8e7.swf</File>
         <File width='160' height='160' >http://cdn.ad4game.com/fd6156cce1914e1e55fc92ee2bd807f1.swf</File>
         <File width='728' height='728' >http://cdn.ad4game.com/6caec43d33a9528bb256f8cde5201547.swf</File>
       </Banners>
     </Country>
   </Creatives>
 </Offer>