This is one of my favorite integrations as it allows web platform owners to monetize by serving their own ads. Serving your own ads is different than serving ads from Google;
If you have a platform with good traffic then this approach could be more profitable for you. Follow these steps to start serving your own Ads through Revive Adserver; a popular opensource Adserver.
Note: This tutorial series guides you through the process of setting up your own Revive Adserver instance using AWS EC2. Revive also provides a hosted version which may be a better fit for some production use cases
Provision your favorite ec2 instance. You would need the LAMP stack on it choose an appropiate instance
sudo yum install -y httpd24 php72 php72-mysqlndStart the webserver
sudo service httpd startUpdate ec2 instance's security group to allow http(s) traffic

At this point make sure that apache is up by entering the instance's DNS name in your browser. Apache's default page should show up
Go back to your terminal and download revive adserver package
wget https://download.revive-adserver.com/revive-adserver-5.0.4.tar.gzAnd then install
tar -xvzf revive-adserver-5.0.4.tar.gz
sudo mv revive-adserver-5.0.4 /var/www/html/reviveInstall MySQL
sudo yum install mysql57-serverStart the server
sudo service mysqld startAnd secure the installation
mysql_secure_installationLogin to MySQL CLI
mysql -u root -pThen from within the CLI setup the database for the ad server
create database revive_adserver;
grant all privileges on revive_adserver.* to 'revive_adserver'@'localhost' identified by '<db-password>';Visit the following link from your browser to start the server setup process
<ec2-instance-dns-name>/reviveFollow the wizard prompts, entering info of the DB that you just created. Once finished your Adserver should be setup. In part 2 of this series I will show how you can create the actual campaigns and start serving ads on your website(s).
Thanks for reading and stay tuned for more content!