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 499 91,223 2019-02-18, 05:43 AM
Last Post: OGAds
  Fall In Conversion In OGADS/CPAGrip? Royal_Wolf 2 228 2019-02-04, 10:28 AM
Last Post: Royal_Wolf
  IG Account Creating martek 7 404 2019-01-17, 05:07 PM
Last Post: MyLead
  Types of Ogads offers to promote on IG? yehsin 1 218 2019-01-13, 01:24 AM
Last Post: TheCpaMaster
  OGAds and instagram? ZeshanButt 4 406 2019-01-07, 09:17 AM
Last Post: lust





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

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