PHP code example of marshmallow / google-ads-lead-extension
1. Go to this page and download the library: Download marshmallow/google-ads-lead-extension 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/ */
marshmallow / google-ads-lead-extension example snippets
php artisan googleads:install-lead-extension
namespace App\Http\Middleware;
use Illuminate\Foundation\Http\Middleware\VerifyCsrfToken as BaseVerifier;
class VerifyCsrfToken extends BaseVerifier
{
protected $except = [
...
config('google-ads-lead-extension.prefix') . '/*',
];
}
return [
...
/**
* Emailaddress where new leads will be mailed to.
*/
'conversion-email-address' => 'INSERT YOUR EMAILADDRESS HERE',
...
];