Difference between revisions of "GetConversionsDetails"
From Ad4Game Developers
(Created page with "==Description== Returns details for all offers or a result set with optional filters. Results can display a set of fields for all matching offers: <ul> <li>- Id : the offer ...") |
|||
Line 1: | Line 1: | ||
==Description== | ==Description== | ||
− | Returns details for | + | Returns the conversions details for a given period. |
− | Results can display a set of fields for | + | Results can display a set of fields for conversions: |
<ul> | <ul> | ||
− | <li>- | + | <li>- TransactionType : lead, sale ... |
− | + | <li>- Status : Approved or Disaproved | |
− | + | <li>- OfferName : the offer name | |
− | + | <li>- OfferId : the offer id. | |
− | + | <li>- TrackingDateTime : the tracking date. | |
− | <li>- | + | <li>- TrackerId : the tracker id. |
− | <li>- | + | |
− | <li>- | + | |
− | + | ||
− | + | ||
− | <li>- | + | |
− | <li>- | + | |
</ul> | </ul> | ||
==URL== | ==URL== | ||
− | https://traffic.ad4game.com/www/admin/offers-api.php?apiKey=[YOUR API KEY | + | https://traffic.ad4game.com/www/admin/offers-api.php?apiKey=[YOUR API KEY]&affiliateId=[YOUR AFFILIATE ID]&method=getConversionsDetails&format=[xml OR json]&period_start=[yyyy-mm-dd]&period_end=[yyyy-mm-dd] |
− | + | ||
− | == | + | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
==Reponses types== | ==Reponses types== | ||
Line 43: | Line 19: | ||
<dd> | <dd> | ||
{"error":"Success", | {"error":"Success", | ||
− | " | + | "Conversions": |
− | {" | + | {"1030":{ |
− | " | + | "transaction_type":"lead", |
− | " | + | "status":"Approved", |
− | " | + | "offer_name":"Travian", |
− | " | + | "offer_id":"325", |
− | " | + | "tracking_date_time":"2014-11-12 08:26:29", |
− | " | + | "TrackerId":"711", |
− | " | + | "Commission":"2.5", |
− | " | + | "Curency":"$", |
− | " | + | "subid":"125482", |
− | + | "subid2":"0", | |
− | + | "subid3":"0", | |
− | + | "subid4":"0", | |
+ | "affid":"125482HjUGH", | ||
} | } | ||
} | } | ||
Line 62: | Line 39: | ||
===XML=== | ===XML=== | ||
<dd> | <dd> | ||
− | < | + | <Conversions> |
− | + | <Conversion> | |
− | + | <TransactionType>lead</TransactionType> | |
− | + | <Status>Approved</Status> | |
− | + | <OfferName>Travian</OfferName> | |
− | + | <OfferId>325</OfferId> | |
− | + | <TrackingDateTime>2014-11-12 08:26:29</TrackingDateTime> | |
− | + | <TrackerId>711</TrackerId> | |
− | + | <Commission>2.5</Commission> | |
− | + | <Currency>$</Currency> | |
− | + | <subid>125482</subid> | |
− | + | <subid2>0</subid2> | |
− | + | <subid3>0</subid3> | |
− | + | <subid4>0</subid4> | |
− | + | <AffId>125482HjUGH</AffId> | |
− | + | </Conversion> | |
− | </ | + | </Conversions> |
Revision as of 07:36, 21 November 2014
Contents |
Description
Returns the conversions details for a given period. Results can display a set of fields for conversions:
- - TransactionType : lead, sale ...
- - Status : Approved or Disaproved
- - OfferName : the offer name
- - OfferId : the offer id.
- - TrackingDateTime : the tracking date.
- - TrackerId : the tracker id.
URL
https://traffic.ad4game.com/www/admin/offers-api.php?apiKey=[YOUR API KEY]&affiliateId=[YOUR AFFILIATE ID]&method=getConversionsDetails&format=[xml OR json]&period_start=[yyyy-mm-dd]&period_end=[yyyy-mm-dd]
Reponses types
JSON
{"error":"Success", "Conversions": {"1030":{ "transaction_type":"lead", "status":"Approved", "offer_name":"Travian", "offer_id":"325", "tracking_date_time":"2014-11-12 08:26:29", "TrackerId":"711", "Commission":"2.5", "Curency":"$", "subid":"125482", "subid2":"0", "subid3":"0", "subid4":"0", "affid":"125482HjUGH", } } }
XML
<Conversions> <Conversion> <TransactionType>lead</TransactionType> <Status>Approved</Status> <OfferName>Travian</OfferName> <OfferId>325</OfferId> <TrackingDateTime>2014-11-12 08:26:29</TrackingDateTime> <TrackerId>711</TrackerId> <Commission>2.5</Commission> <Currency>$</Currency> <subid>125482</subid> <subid2>0</subid2> <subid3>0</subid3> <subid4>0</subid4> <AffId>125482HjUGH</AffId> </Conversion> </Conversions>