This is a Python web application that allows a quick and simple creation of click tracking ads in DCM. It exposes a simple webpage with a backend meant to be hosted on Google AppEngine Standard environment.
- Create a GCP project with AppEngine enabled (https://cloud.google.com/appengine/docs/standard/python/quickstart)
- Set your local env to use the newly created project in CLI
- Change to the directory with the source code
- Install google-api-python-client to lib directory
pip install -t lib/ google-api-python-client
(or on Linuxpip install --system --install-option="--prefix=" -t lib/ google-api-python-client
) - Enable DCM API (https://developers.google.com/doubleclick-advertisers/getting_started) and download credentials for API Client (https://developers.google.com/api-client-library/python/guide/aaa_oauth)
- Try running the app locally:
dev_appserver.py .
and check that it works as intended - Deploy the app to AppEngine
gcloud app deploy
and press yes - Verify the deployed app works:
gcloud app browse