Difference between revisions of "Video Ads API"

From Ad4Game Developers
Jump to: navigation, search
 
Line 1: Line 1:
 
==Description==
 
==Description==
 
+
This API is specific to '''reward video ads'''
Returns the reward transactions details for a given period.
+
<br>Returns the reward transactions details for a given period.
 
<br>Results can display a set of fields for reward transactions:  
 
<br>Results can display a set of fields for reward transactions:  
 
<ul>
 
<ul>
<li>- TransactionId : The transaction id
+
<li>- TransactionId : The transaction id ('''unique''')
 
<li>- Date : the transaction date
 
<li>- Date : the transaction date
 
<li>- User : the user id  
 
<li>- User : the user id  

Latest revision as of 12:08, 3 April 2015

Contents

[edit] 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.

[edit] 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]

[edit] Reponses types

[edit] JSON

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

[edit] 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