WebSite-PHP Framework PHP
Multi language
Simple Ajax mode
No HTML, no JavaScript
URL rewriting
Mail sending
Sitemap - RSS - Web service
Download WebSite-PHP FrameWork now
 


Loading
 


Tutorial Ads

Tutorials

>

Tutorial Ads




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"300250);

        
// 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"300250);

        
// Enable third party cookies filter
        
$this->enableThirdPartyCookiesFilter();
    }
}
?>



Share

 


Copyright © 2009-2024 WebSite-PHP Framework PHP
Home Documentation Download Quick start Tutorials Wiki Issue Tracker