Video Ads API

From Ad4Game Developers
Revision as of 11:08, 3 April 2015 by Mostapha (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Contents

Description

This API is specific to reward video ads
Returns the reward transactions details for a given period.
Results can display a set of fields for reward transactions:

  • - TransactionId : The transaction id (unique)
  • - Date : the transaction date
  • - User : the user id
  • - ZoneId : the zone id.
  • - CampaignId : the campaign id.

URL

https://traffic.ad4game.com/www/admin/reward-video-api.php?apiKey=[YOUR API KEY]&affiliateId=[YOUR AFFILIATE ID]&zoneId=[YOUR ZONE ID]&method=getRewardVideos&format=[xml OR json]&period_start=[yyyy-mm-dd]&period_end=[yyyy-mm-dd]

Reponses types

JSON

 {"error":"Success",
   "Transactions":
   {"goaogNzky8PckHOBfX+grYWJrH+g0piGm2h6g3t8m4I=":{
     "transactionid":"goaogNzky8PckHOBfX+grYWJrH+g0piGm2h6g3t8m4I=",
     "date":"2015-04-01 10:30:34",
     "userid":"1544sqdqs",
     "zoneid":"325200",
     "campaignid":"15268" 
     }
   }
 }

XML

 <Transactions>
    <Transaction>
        <TransactionId>goaogNzky8PckHOBfX+grYWJrH+g0piGm2h6g3t8m4I=</TransactionId>
        <Date>2015-04-01 10:30:34</Date>
        <User>1544sqdqs</User>
        <ZoneId>325200</ZoneId>
        <CampaignId>15268</CampaignId>
    </Transaction>
 </Transactions>
Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox