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 getCompletedOffersWithPubId: method from your application. It will return list of new offers which were not credited to you. Following is the sample code for this :

static NSString* const publisher_Id = @"32740";
static NSString* const adwall_Id = @"2074";
static NSString* const subId_1 = @"demo_subid1";  

[AdscendMediaWrapper getCompletedOffersWithPubId:publisher_Id profileId:adwall_Id subId1:subId_1 success:^(NSArray *completedOffers) {
        
        for(NSDictionary *offerDict in completedOffers)
        {
            // Do the necessary processing for each completed offer
        }
        
    } failure:^{
        //Failure :
    }];

The completedOffers array will have the list of offers marked as completed by your user on our servers. It is a list of dictionaries with each dictionary having following format:


{
    OfferName : “Test Offer”,
    CurrencyAdjustment : “0.25”
}

You can call this 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.