Download the PHP package marshmallow/google-ads-lead-extension without Composer

On this page you can find all versions of the php package marshmallow/google-ads-lead-extension. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package google-ads-lead-extension

Issues Forks Stars License

Google Ads Lead Extension

This module will make it very easy to handle leads that come in from the Lead Extension in Google Ads. You will be able to do whatever you want to do with the data that is sent to you by Google Ads.

Installing

Run the installer so everything is setup correctly

The installer will generate a Google Key for you. This will be shown in your console while running the installer. You will need this key for setting up your lead extension. This key will be used to validate the request is allowed. If you've lost your key, we store the generated key in your .env file so you can always find it there under GOOGLE_ADS_LEAD_EXTENTION_KEY=....

Make sure Google Ads can reach you!

Update your App\Http\Middleware\VerifyCsrfToken.php file so Google will be allowed to do a POST request to your system.

Set up the notifier

By default this package will sent you an email when a new lead is available. The only thing you need to do is adding your emailaddress to the config. Go to the config file config/google-ads-lead-extension.php and setup your emailadress.

Do your magic with the lead

After you've run the installer and made sure Google can reach this URL by making the nessesary adjustments in VerifyCsrfToken.php you are ready to work your magic. The installer has generated a new class in you app directory. You can find this class in app/GoogleAdsLeadExtension.php. This class has 2 methods for you to work with.

handle()

In this method you can do what you need to do with the available data. The available methods to retreive data from the Lead are available in the documentation in the app/GoogleAdsLeadExtension.php file. Use this function to add to lead to your database, to your CRM. What ever you need.

Method Description
$this->getLeadId() Unique ID generated by Google Ads.
$this->getClickId() The Google Ads Click ID if available.
$this->getGclId() The same as getClickId(), just a different name.
$this->getFormId() The form id in your Google Ads account.
$this->getCampaignId() Your Google Ads Campaign ID.
$this->getApiVersion() The API version used by the Google Ads Extension.
$this->isTest() Is it a test request by Google or a real one.
$this->getFullName() Get the name provided by the user.
$this->getPhoneNumber() Get the phonenumber provided by the user.
$this->getEmail() Get the emailaddress provided by the user.
$this->getPostalCode() Get the postalcode provided by the user.

notify()

This method is commented out. This is because we have a default notify method available which will sent you an email with the lead data. If you want to change this behaviour, you can uncomment the notify method and work your own magic.


All versions of google-ads-lead-extension with dependencies

PHP Build Version
Package Version
Requires php Version >=7.0.0
marshmallow/commands Version ^1.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package marshmallow/google-ads-lead-extension contains the following files

Loading the files please wait ....