PHP Code Help

AdCombo

abdoshaik

Super Contributor
Joined
Apr 10, 2019
Messages
99
hello,
I have created a custom LP to promote Adcombo offer using their API.
I used this code to send orders to adcombo and its works with me but I can't track my conversions
I have used $clickid = $_GET['clickid']; but didn't work.
I use bemob tracker
<?php
session_start();
$name= $_POST['name'];
$phone = $_POST['phone'];
$offer_id = '#'; //ID of offer*
$api_key = '#'; //API key*
$country_code = '#'; //GEO*
$base_url = '#'; //url of your landing page
$price = '#'; //Price of product (it can be found on landing page in AdCombo)*
$referrer = '#'; //Link from where visitor came to your landing page
$ip = $_SERVER['REMOTE_ADDR']; //IP address of visitor of the landing page
$subacc = $_POST['subacc'];
$clickid = $_GET['clickid'];

//test
/*value from subaccount fileds -
if you want to add something there --> add a hidden field to your form*/


const API_URL = "https://api.adcombo.com/api/v2/order/create/";
const API_KEY = "";
$isCurlEnabled = function(){
return function_exists('curl_version');
};
if (!$isCurlEnabled) {
echo "<pre>";
echo "pls install curl\n";
echo "For *unix open terminal and type this:\n";
echo 'sudo apt-get install curl && apt-get install php-curl';
die;
}




$args = [
'api_key' =>$api_key,
'name' => $name,
'phone' => $phone,
'offer_id' => $offer_id,
'country_code' => $country_code,
'price' => $price,
'base_url' => $base_url,
'ip' => $ip,
'referrer' => $referrer ,
'subacc' => $subacc,


];
$url =
 
To view the premium content in our affiliate marketing forum (including this awesome thread), you must first register and upgrade your account. Register today and become a part of our amazing community!
Top