- Jun 16, 2010
- 955
- 102
I am not sure if there is something wrong with my code or not. The issue is, ad network 1 always reports conversions back 99.99 percent of the time. However, ad network 2, ad network 3, and etc partially report back. I was thinking it was ad network 2, but then after adding postback for ad network 3 as well and having issue there. I am thinking something is causing my code to halt/not report back after ad network 1?
Does anyone see any problems here?
Does anyone see any problems here?
PHP:
//ad network 1
$url = "https://adnetwork1.com?aclid=$clickid";
$ch = curl_init();
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_HEADER, false);
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_POST, true);
$response = curl_exec($ch);
curl_close($ch);
//ad network 2
$url = "https://adnetwork2.com?aclid=$clickid";
$ch = curl_init();
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_HEADER, false);
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_POST, true);
$response = curl_exec($ch);
curl_close($ch);
//ad network 3
$url = "https://adnetwork3.com?aclid=$clickid";
$ch = curl_init();
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_HEADER, false);
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_POST, true);
$response = curl_exec($ch);
curl_close($ch);
//ad network 4
$url = "https://adnetwork4.com?aclid=$clickid";
$ch = curl_init();
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_HEADER, false);
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_POST, true);
$response = curl_exec($ch);
curl_close($ch);