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 the execution environment set up.

To open a Bash shell inside the Docker container, run docker ps to get the container ID, 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