Creating a postback with OGADS
2018-04-03, 04:42 AM, (This post was last modified: 2018-04-03, 04:44 AM by OPEarner.)
#1
Inside of my postback URL form on there site i have this: https://www.mysite.com/beta/index.php (Thats the link to my postback)
And then i also have this as my postback code:



PHP Code:
<?php

$servername 
"localhost";
$dbusername "";
$dbpassword ";
$dbname = "";

session_start();

$conn = new mysqli($servername$dbusername$dbpassword$dbname);
// Check connection
if (
$conn->connect_error) {
    die("
Connection failed" . $conn->connect_error);
}

$app_secret = "";

$id = $_GET['offer_id'];
$subid = $_GET['aff_sub'];
$campaign_name =  $_GET['offer_name'];
$vc_value = $_GET['payout'];


       
    
$text = $campaign_name;
    
$type = "Offer";
    mysqli_query(
$conn, "INSERT INTO `logs`(usernamepointsVALUES('$subid''$vc_value')");
    ///mysqli_query(
$conn, "UPDATE `usersSET `points`=`points`+'".$vc_value."', `daily_offers`=`daily_offers`+'1' WHERE `user_id`='{$u['user_id']}'");




echo "
OK";

?>


This works manually but whenever someone completes an offer it wont work for them, Why is this? Am i supposed to have something else in my postbackURL box?

(2018-04-03, 04:42 AM)OPEarner Wrote: Inside of my postback URL form on there site i have this: https://www.mysite.com/beta/index.php (Thats the link to my postback)
And then i also have this as my postback code:



PHP Code:
<?php

$servername 
"localhost";
$dbusername "";
$dbpassword ";
$dbname = "";

session_start();

$conn = new mysqli($servername$dbusername$dbpassword$dbname);
// Check connection
if (
$conn->connect_error) {
    die("
Connection failed" . $conn->connect_error);
}

$app_secret = "";

$id = $_GET['offer_id'];
$subid = $_GET['aff_sub'];
$campaign_name =  $_GET['offer_name'];
$vc_value = $_GET['payout'];


       
    
$text = $campaign_name;
    
$type = "Offer";
    mysqli_query(
$conn, "INSERT INTO `logs`(usernamepointsVALUES('$subid''$vc_value')");
    ///mysqli_query(
$conn, "UPDATE `usersSET `points`=`points`+'".$vc_value."', `daily_offers`=`daily_offers`+'1' WHERE `user_id`='{$u['user_id']}'");




echo "
OK";

?>


This works manually but whenever someone completes an offer it wont work for them, Why is this? Am i supposed to have something else in my postbackURL box?
Note: I dont have much knowledge with OGAds postback system.
Reply
Share This Thread :

2018-04-03, 05:18 AM, (This post was last modified: 2018-04-03, 05:19 AM by g3lux.)
#2
From your code you seem to want to get
OfferID
sub_id
offer_name
payout

So in your postback url inside ogads set:
Code:
https://www.mysite.com/beta/index.php?offer_id={offer_id}&aff_sub={aff_sub}&offer_name={offer_name}&payout={payout}

{aff_sub} -> on OGAds means your content locker ID
use {aff_sub4} OR {aff_sub5} -> to get SubID from content locker.
Example:
Code:
https://www.rabbitfiles.com/cl.php?id=7121105a4f7158d851ea2537c3498392&aff_sub4=DynamicUser

Payout goes as float. Either use round or abs. to compare floats.
Latest Thanks - View all

OPEarner(2018-04-03 07:01 PM) 
Reply
2018-04-03, 05:22 AM,
#3
(2018-04-03, 05:18 AM)g3lux Wrote: From your code you seem to want to get
OfferID
sub_id
offer_name
payout

So in your postback url inside ogads set:
Code:
https://www.mysite.com/beta/index.php?offer_id={offer_id}&aff_sub={aff_sub}&offer_name={offer_name}&payout={payout}

{aff_sub} -> on OGAds means your content locker ID
use {aff_sub4} OR {aff_sub5} -> to get SubID from content locker.
Example:
Code:
https://www.rabbitfiles.com/cl.php?id=7121105a4f7158d851ea2537c3498392&aff_sub4=DynamicUser

Payout goes as float. Either use round or abs. to compare floats.

Im not using a content locker im using the offer API, Does it make a differance? P.S: Thanks, your helps been amazing.
Reply


Related Threads
Thread Author Replies Views Last Post
  OGAds - Weekly Payments - Landing Pages - Mentor - Hot Offers OGAds 462 80,257 Today, 07:02 AM
Last Post: joyo
  OGads help Givenchy 4 230 2018-09-21, 10:00 AM
Last Post: Givenchy
  CPABuild/ogads Iframe button immart247 2 483 2018-07-16, 07:19 AM
Last Post: immart247
  Can I receive the payment from ogads if I use fake addreses ? james1200 5 502 2018-06-27, 03:20 AM
Last Post: sreemons2010
  OGads Registration thexamx 20 5,600 2018-06-12, 04:55 PM
Last Post: wilhb81





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

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