Working with postbacks
12-14-2016, 07:43 AM,
#1
Hey guys,

I need to check if an offer (OgAds) has been completed.
I know they have a postback service, but I never played with any kind of postback.

I need to pass a username parameter to the postback url.
The postback url would receive the parameter and do something with it.

But I just can't understand how to pass the username.
Would it be in the offer link? like: hxxp://offerlink.com?aff_sub=username


Thanks for any help!
Reply
12-14-2016, 09:43 AM,
(This post was last modified: 12-14-2016, 10:03 AM by cookiemonster55.)
#2
Postback works like this

1. User completes offer that has a tracking_id that your provide. It could be an ip address, email address, etc.
Code:
https://cpagrip.com/offer/sdlkasdlds?tracking_id=username1234
2. The cpa network pings an url on your site when an offer is completed with the info about that offer
Code:
https://yoursite.com/postback.php?tracking_id=username1234&payout=1.99&offer_id=123
3. You take that info and add it to your database
4. Your locked page constantly checks your database until it finds the completed offer with the tracking id for that user

[Image: nGOgGJJ.png]
Reply
12-18-2016, 01:31 AM,
#3
Just did this myself the other day, just to add what the user above said:

You first have to create a page which assigns a 'username' or subID to the person which will then redirect them to the actual landing page.

Once they are there when they click on an offer, you have to start a function to constantly check your database to see if there has been a server to server post back for that particular username.

If there is a postback, {do some action..}

A much easier way, look into getting prosper 202 and learn how to set up a landingpage tracking(that is if this can assist you)

As for your question how to pass the username, as the first sentence says, you need to first assign the username using a script or if you want to generate one silently inside your page and pass it to your offer feed/locker url so that offers show &tracking_id='username'.
Reply


Possibly Related Threads...
Thread Author Replies Views Last Post
  Any working popunder scripts? Ruriko 0 707 02-18-2016, 12:53 PM
Last Post: Ruriko
  AV Theme Progressbar not working Cpalicous 13 1,006 09-14-2014, 04:17 AM
Last Post: nervo
  [IN PROGRESS] Working Youtube Clone CPA Restricted7 24 3,021 03-22-2014, 07:10 AM
Last Post: Jaysamuel
  SubDomain Issue - Not working [ Help ] lastbencher9 3 459 03-13-2014, 02:24 PM
Last Post: wwatu
  "Working as of" in Wordpress Walker 3 617 06-26-2013, 12:14 AM
Last Post: Walker




About Us | Contact Us | CPA Elites | Advertise | Stats | Staff Team

© 2013-2017 CPA Elites Ltd
Enhanced by MyBB and WallBB
Return to top