Getting Notified of Leads

Checking Transaction History

Your application can be notified of when a user completes an offer in one of two ways: by receiving postback notifications to a server you use to track your user activity, or by calling a function within the SDK which will call our server and retrieve the latest updates as to which offers have been completed.

To check for completed offers using the function you can call within the app follow the instructions below.

You can get the list of your user's newly completed offers from within the SDK by calling the getCompletedOffers method from your application. It will return list of new offers which were not credited to you. Following is the sample code for this :

string publisherId = "32740";
string adwallId = "2074";
string subId1 = "demo_subid1";  

//you cannot pass anything but the internal property 'name' as first parameter otherwise callbacks won't work
AdscendMedia.getCompletedOffers (name, publisherId, adwallId, subId1);

Callbacks

To get the callbacks you need to implement the interface methods:

public void getCompletedOffersResponseSuccess (string result)
{
  Debug.Log ("getCompletedOffersResponseSuccess => " + result);
}

The result will be json string of completed offers. It is a list of dictionaries with each dictionary having following format:

{
  OfferName : “Test Offer”,
  CurrencyAdjustment : “0.25”,
  TransactionID = “123456”
}
public void getCompletedOffersResponseFailure (string failureMsg)
{
  Debug.Log ("getCompletedOffersResponseFailure =>” + failureMsg);
}

You can call getCompletedOffers method on application launch or periodically depending upon your needs and do the necessary processing for the completed offers, such as awarding your user. All the completed offers will be removed from the list of clicked offers after the completion of this method.