PHP code example of rabol / laravel-adsense
1. Go to this page and download the library: Download rabol/laravel-adsense 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/ */
rabol / laravel-adsense example snippets
return [
'client_id' => 'YOUR_CLIENT_ID', //Your Adsense client ID e.g. ca-pub-9508939161510421
'ads' => [
'responsive' => [
'ad_unit_id' => 12345678901,
'ad_format' => 'auto'
'ad_full_width_responsive' => true
],
'rectangle' => [
'ad_unit_id' => 1234567890,
'ad_style' => 'display:inline-block;width:300px;height:250px',
'ad_format' => 'auto'
]
]
];