To use Ads, you need to connect to the admin interface of the framework WebSite-PHP.
Once connected you will go to the menu Configuration -> Configure modules and enable the module Ads.
Tutorial 1 :
Google Adsense
File: /pages/tutorials/ads/ads-01.php
<?php
class Ads01 extends Page {
public function InitializeComponent() {
parent::$PAGE_TITLE = "Tutorial : Google Adsense";
$this->render = new Adsense("ca-pub-5482260287865035", "5748217309", 300, 250);
// Enable third party cookies filter
$this->enableThirdPartyCookiesFilter();
}
}
?>
Tutorial 2 :
Criteo
File: /pages/tutorials/ads/ads-02.php
<?php
class Ads02 extends Page {
public function InitializeComponent() {
parent::$PAGE_TITLE = "Tutorial : Criteo";
$this->render = new Criteo("210740", 300, 250);
// Enable third party cookies filter
$this->enableThirdPartyCookiesFilter();
}
}
?>