Stay organized with collections
Save and categorize content based on your preferences.
You can also execute the examples and develop your Google Ads API application
inside a Docker container, built using the provided
Dockerfile and
docker-compose.yml.
To do so (provided that you have a Docker environment
installed), 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:
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-25 UTC."],[[["\u003cp\u003eUtilize provided Docker resources to execute Google Ads API application examples and develop your own applications within a Docker container.\u003c/p\u003e\n"],["\u003cp\u003eInitiate the Docker environment by executing \u003ccode\u003edocker-compose up --build -d\u003c/code\u003e after cloning the repository.\u003c/p\u003e\n"],["\u003cp\u003eAccess a Bash shell inside the container using \u003ccode\u003edocker exec -it <YOUR_CONTAINER_ID> bash\u003c/code\u003e to interact with code samples and applications.\u003c/p\u003e\n"],["\u003cp\u003eIf running a single Docker container, \u003ccode\u003edocker exec -it $(docker ps -a -q) bash\u003c/code\u003e can be used as a shortcut for shell access.\u003c/p\u003e\n"]]],[],null,["# Running in a Docker Container\n\nYou can also execute the examples and develop your Google Ads API application\ninside a Docker container, built using the provided\n[Dockerfile](https://github.com/googleads/google-ads-perl/blob/HEAD/Dockerfile) and\n[docker-compose.yml](https://github.com/googleads/google-ads-perl/blob/HEAD/docker-compose.yml).\n\nTo do so (provided that you have a Docker environment\n[installed](//docs.docker.com/install/)), run the following command in the\ndirectory where you cloned this repository: \n\n docker-compose up --build -d\n\nThis will provide a Docker container instance with the execution environment set\nup.\n\nTo open a Bash shell inside the Docker container, run `docker ps` to get\nthe container ID, then run: \n\n docker exec -it \u003cYOUR_CONTAINER_ID\u003e bash\n\nThis will allow you to run code examples and other applications inside the\ncontainer.\n\nAs a shorthand, in case you only have a single Docker container running on your\nmachine, you can also run: \n\n docker exec -it $(docker ps -a -q) bash"]]