-
Make sure there is a mongodb instance running locally.
-
First export the environment variables.
export CLIENT_ID=your-client-id
export CLIENT_SECRET=your-client-secret
export DOMAIN_URL=your-domain-url| <?php | |
| public function fire() | |
| { | |
| // See the Placeholder reference page for a list of all the placeholder types and fields. | |
| // https://developers.google.com/adwords/api/docs/appendix/placeholders.html | |
| define('PLACEHOLDER_SITELINKS', 1); | |
| define('PLACEHOLDER_FIELD_SITELINK_LINK_TEXT', 1); | |
| define('PLACEHOLDER_FIELD_SITELINK_URL', 2); |
| <?php | |
| /* | |
| +----------------------------------------------------------------------+ | |
| | PHP Version 5 | | |
| +----------------------------------------------------------------------+ | |
| | Copyright (c) 1997-2004 The PHP Group | | |
| +----------------------------------------------------------------------+ | |
| | This source file is subject to version 3.0 of the PHP license, | | |
| | that is bundled with this package in the file LICENSE, and is | | |
| | available through the world-wide-web at the following url: | |
| /** | |
| * | |
| * Duplicate Ad Detector | |
| * This script will find ads with identical text and URLs, and label | |
| * one to keep and the rest to pause according to performance. | |
| * | |
| * Version: 1.0 | |
| * Google AdWords Script maintained by brainlabsdigital.com | |
| * | |
| **/ |
| /** | |
| * | |
| * Change in Campaign Spending Alert | |
| * | |
| * This script uses the current hour to calculate how much has been spent on | |
| * individual campaigns on the day of running. The average spend up to the | |
| * current hour in a specified numbers of days previously is averaged. If the | |
| * spend today is higher by a specified percentage threshold an alert email | |
| * is sent. | |
| * |
| /** | |
| * | |
| * Extended Devices, Locations and Audiences Bidding | |
| * | |
| * Automatically apply modifiers to your devices, locations, in-market and remarketing audiences based on performance. | |
| * It analyses search and display campaigns only. | |
| * | |
| * Version: 1.0 | |
| * Google Ads Script maintained on brainlabsdigital.com | |
| * |
| /** | |
| * Ad Copy Length Analysis | |
| * | |
| * Download an ad performance report for the account and break up the | |
| * information and aggregate by component lengths. This will create a sheet for | |
| * Headline1, Headline2, Headline3, Description1, Description2, Path1, Path2 | |
| * and Headline/Description/Path, which concatenates the respective components. | |
| * | |
| * Google Ads Script | |
| * @author Brainlabs |
| /** | |
| * | |
| * Campaign Budget Overspend Monitoring | |
| * | |
| * This script labels campaigns whose spend today is more than their daily | |
| * budgets. Optionally, it also pauses campaigns whose spend exceeds the | |
| * budget by too much. An email is then sent, listing the newly labelled | |
| * and paused campaigns. | |
| * When spend no longer exceeds budget, the campaigns are reactivated and | |
| * labels are removed. |
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="utf-8"> | |
| <meta name="viewport" content="width=device-width, user-scalable=yes, minimum-scale=1.0"> | |
| <title>And your phone number is...</title> | |
| <style> | |
| body { | |
| font: 17px sans-serif; | |
| color: #444; |
| #301 Redirects for .htaccess | |
| #Redirect a single page: | |
| Redirect 301 /pagename.php http://www.domain.com/pagename.html | |
| #Redirect an entire site: | |
| Redirect 301 / http://www.domain.com/ | |
| #Redirect an entire site to a sub folder | |
| Redirect 301 / http://www.domain.com/subfolder/ |