Skip to main content

Quickly stop all Google Ads advertising

Reason this release was yanked:

This version is broken, do not use.

Project description

sem-emergency-stop

Logo

Stop all Google Ads marketing. This utility will pause all marketing campaigns on Google Ads (presumably across many accounts) as fast as possible. The main use case is emergency response during incidents where all landing pages are temporarily unavailable, thereby incurring cost without revenue. Unpausing the paused campaigns (and only those) is also supported.

Usage

In case of emergency, do this:

sem-emergency-stop pause --no-dry-run

A hash will be printed at the end of the process. Use this hash to unpause when the incident is over (the exact instructions are displayed when you run.)

One-time setup (for end users)

Install the tool (requires Python 3.7 or higher; on Ubuntu 18.04 install python3.7-minimal):

pip3 install --user sem-emergency-stop

You can then run sem-emergency-stop setup to authenticate the tool against the API using your Google account. This will request two pieces of information from you:

  1. An organization token. How you get this token depends on your organization's process. See the next section if you are the person to set this up for your organization.
  2. A token specific to your Google account. Follow instructions on screen. Note that you need to have access to your Ads accounts with your Google account.

Deployment at organizations

Authentication uses Google's OAuth2 flow. This app does not come with client secrets, so you will have to generate these and distribute them in your organization through a suitable channel (e.g. using password manager). The client id/secret together with your login customer id and your developer token are packaged in a compact organization token for distribution purposes.

After installing the app, you can generate a token by running ses-create-org-token. It will ask the following information:

  • Login customer id - this is the customer id (without dashes) of your root Google Ads account.
  • Developer token - find it in your root account under "API Center".
  • Client id/secret - follow this guide how to obtain a pair.

Development and contributing

For development pipenv is required on your system. Set up the development environment with make develop, run with pipenv run sem-emergency-stop ... as needed.

We welcome pull requests; if you are planning to perform bigger changes then it makes sense to file an issue first. Make sure make lint comes back clean.

Security

For sensitive security matters please contact security@getyourguide.com.

Legal

Copyright 2021 GetYourGuide GmbH.

sem-emergency-stop is licensed under the Apache License, Version 2.0. See LICENSE for the full text.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sem-emergency-stop-1.3.7.tar.gz (13.0 kB view details)

Uploaded Source

Built Distribution

sem_emergency_stop-1.3.7-py3-none-any.whl (13.5 kB view details)

Uploaded Python 3

File details

Details for the file sem-emergency-stop-1.3.7.tar.gz.

File metadata

  • Download URL: sem-emergency-stop-1.3.7.tar.gz
  • Upload date:
  • Size: 13.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.9

File hashes

Hashes for sem-emergency-stop-1.3.7.tar.gz
Algorithm Hash digest
SHA256 c755459e4563bc06a4b6b53882176046ab423f00fe6f2b931b40075c0c50fc66
MD5 f3728111a8ac770a5bee31d81e825936
BLAKE2b-256 876e7a96527f4cd72905f9eb03b0a450a8b14aa5c349534b9fd5aea731ce166d

See more details on using hashes here.

File details

Details for the file sem_emergency_stop-1.3.7-py3-none-any.whl.

File metadata

File hashes

Hashes for sem_emergency_stop-1.3.7-py3-none-any.whl
Algorithm Hash digest
SHA256 7c35ff4bb1564b407ef82eb6a1d20774075e3724dc3be15e2a3d84744301dd47
MD5 f703ac35f2ed5957326afc7d87992b0c
BLAKE2b-256 10261db5d53d3ba58c591894a6af6021d10e635643f9ed91a3f535dac8e05e0b

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page