-
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| /** | |
| * | |
| * 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; |
| <?php | |
| /** | |
| * Send a Message to a Slack Channel. | |
| * | |
| * Get the API Token visit: https://api.slack.com/custom-integrations/legacy-tokens | |
| * The token will look like this `xoxo-250000090-0000000000-0000000000-dbssg`. | |
| * | |
| * @param string $message The message to post in channel. | |
| * @param string $channel The name of the channel prefixed with # | |
| * @return boolean |
| #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/ |