PHP code example of onlineactivitybv / php-advertiserpostback

1. Go to this page and download the library: Download onlineactivitybv/php-advertiserpostback library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

onlineactivitybv / php-advertiserpostback example snippets




use OnlineActivityBV\AdvertiserPostback\AdvertiserPostback; 

$oa = new AdvertiserPostback(
	 'abdddsdsdsjhdshjshj33jhhjdshjc', /* Here credentials provided by OA **/ 
     'oa6.nl', /* tracking domain, provided by OA */
     'oa_clickid' /* $_GET variable name used to send click id to lander **/); 

$oa->landingPage(); 

$clickId = $oa->getClickId(); 

// first outout thank you HTML.
fastcgi_finish_request(); // optional, recommended not to delay output of thank you HTML.
$conversionStatus = $oa->addConversion($lead_id = 376, $eventId, $clickId);