Running in a Docker Container

You can also execute the examples and develop your Google Ads API application inside a Docker container, built using the provided Dockerfile.

To do so (provided that you have a Docker environment installed), you can run the following command in the directory where you cloned this repository:

docker-compose up --build -d

This will provide a Docker container instance with all the required dependencies already installed.

To open a BASH shell inside the Docker container, you can run docker ps to get the container ID and then run:

docker exec -it <YOUR_CONTAINER_ID> bash

This will allow you to run code examples and other applications inside the container.

As a shorthand, in case you only have a single Docker container running on your machine, you can also run:

docker exec -it $(docker ps -a -q) bash