1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

CPA Postback

Discussion in 'PHP & Perl' started by peanutz, Sep 29, 2011.

  1. peanutz

    peanutz Registered Member

    Joined:
    Jun 19, 2011
    Messages:
    73
    Likes Received:
    36
    Might sound noobish but I am trying to make a GPT script and I am having a little trouble setting up the postback script

    I am signed up at adscend media, redfirenetwork and adwork media

    My problem is getting a custom variable (User ID) to be forwarded to the postback script, I want to identify who completed the survey by the user ID's (that is in my database) and not their IP since they might change it. How do I do that? I asked support at redfirenetwork and adsncend media and they are totally useless when it comes to php so I am asking here if anyone knows.

    I was hoping it would be as easy as just adding ?uid=<?php echo $UserID; ?> to the survey URL but it seems thats not the case :p
    How do other gpt scripts do this?
    I was thinking maybe comparing the IP to last logged in IPs (since I am tracking that) and get the user ID from there but I am not sure how well that would be..

    I am sure there someone here that can help me!
     
  2. nesterdwarf

    nesterdwarf Regular Member

    Joined:
    May 30, 2008
    Messages:
    276
    Likes Received:
    539
    Location:
    State of Misery...er, Missouri...
    Not sure about the other networks as I'm not a member, but for Adscendmedia, it looks like you'd be able to pass the $UserId variable as the sid, and then reference that through your postback script.

    HTH
    ND
     
  3. peanutz

    peanutz Registered Member

    Joined:
    Jun 19, 2011
    Messages:
    73
    Likes Received:
    36
    Isn't sid at adscend media used to pass on the postback prefix? So it should always be the same otherwise it wont know what postback url to use
     
  4. nesterdwarf

    nesterdwarf Regular Member

    Joined:
    May 30, 2008
    Messages:
    276
    Likes Received:
    539
    Location:
    State of Misery...er, Missouri...
    You would append the ?sid=$UserId to the survey URL, your base postback url will always be the same, but would include the ?sid=$UserId when completion is processed.

    Survey Link would look like this -
    Code:
    http://SURVEYLINK?sid=USERID
    Postback link would look like this -
    Code:
    http://POSTBACKLINK?sid=USERID
    ND