ইনস্টলেশন
সেভ করা পৃষ্ঠা গুছিয়ে রাখতে 'সংগ্রহ' ব্যবহার করুন
আপনার পছন্দ অনুযায়ী কন্টেন্ট সেভ করুন ও সঠিক বিভাগে রাখুন।
আপনি PyPI থেকে লাইব্রেরি ইনস্টল করছেন বা GitHub থেকে ক্লোন করছেন, আমরা আপনাকে একটি সক্রিয় ভার্চুয়াল পরিবেশ ব্যবহার করে নীচের পদক্ষেপগুলি পরিচালনা করার পরামর্শ দিচ্ছি। কিভাবে একটি ভার্চুয়াল পরিবেশ তৈরি এবং সক্রিয় করতে হয় সে সম্পর্কে তথ্যের জন্য, ভার্চুয়াল এনভায়রনমেন্ট ডকুমেন্টেশন দেখুন।
PyPI থেকে মডিউল ইনস্টল করুন
লাইব্রেরিটি PyPI তে বিতরণ করা হয় এবং নিম্নলিখিত কমান্ডের সাহায্যে পিপ ব্যবহার করে ইনস্টল করা যেতে পারে:
python -m pip install google-ads
GitHub থেকে লাইব্রেরি ইনস্টল করুন
লাইব্রেরির সোর্স কোড গিটহাব থেকে আপনার স্থানীয় মেশিনে ক্লোন করা যেতে পারে। সহজে উদাহরণগুলি চালানোর জন্য বা লাইব্রেরি নিজেই বিকাশ করার জন্য সোর্স কোড ক্লোন করা দরকারী। রেফারেন্সের জন্য, ব্যবহারের জন্য লাইব্রেরি কনফিগার করার জন্য একটি প্রমাণীকরণ উদাহরণ চালানো একটি প্রয়োজনীয় পদক্ষেপ।
নিশ্চিত করুন যে python3.8
বা তার পরে আপনার পরিবেশে উপস্থিত রয়েছে। সবচেয়ে সহজ উপায় হল pyenv
ব্যবহার করা:
pyenv local 3.8
GitHub থেকে ক্লায়েন্ট লাইব্রেরি ক্লোন করুন:
git clone git@github.com:googleads/google-ads-python.git
সংগ্রহস্থল লিখুন এবং এটি ইনস্টল করুন:
cd google-ads-python
python -m pip install .
আপনি যদি লাইব্রেরিটি বিকাশ করতে চান তবে কোনও পরিবর্তন করার আগে এবং পরে ইউনিট পরীক্ষা চালান:
আপনার পরিবেশে পাইথন ভাষার সমস্ত সমর্থিত সংস্করণ উপলব্ধ রয়েছে তা নিশ্চিত করুন। pyenv
ব্যবহার করে ::
pyenv local 3.8 3.9 3.10 3.11 3.12
লাইব্রেরির পরীক্ষা-নির্দিষ্ট নির্ভরতা ইনস্টল করুন:
python -m pip install .[tests]
লাইব্রেরি সঠিকভাবে কাজ করছে তা নিশ্চিত করতে ইউনিট পরীক্ষা চালান:
nox
ঐচ্ছিক: ইউনিট পরীক্ষাগুলি ডকার ব্যবহার করেও চালানো যেতে পারে। প্রথমত, আপনাকে অবশ্যই ডকার ইনস্টল করতে হবে। তারপর, google-ads-python
ডিরেক্টরি থেকে, নিম্নলিখিতগুলি চালান:
docker build -t google-ads-python:test .
docker run -it google-ads-python:test nox
অন্য কিছু উল্লেখ না করা থাকলে, এই পৃষ্ঠার কন্টেন্ট Creative Commons Attribution 4.0 License-এর অধীনে এবং কোডের নমুনাগুলি Apache 2.0 License-এর অধীনে লাইসেন্স প্রাপ্ত। আরও জানতে, Google Developers সাইট নীতি দেখুন। Java হল Oracle এবং/অথবা তার অ্যাফিলিয়েট সংস্থার রেজিস্টার্ড ট্রেডমার্ক।
2025-08-26 UTC-তে শেষবার আপডেট করা হয়েছে।
[null,null,["2025-08-26 UTC-তে শেষবার আপডেট করা হয়েছে।"],[[["\u003cp\u003eThe Google Ads Python library can be installed from PyPI using pip with the command \u003ccode\u003epython -m pip install google-ads\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eTo install from GitHub, clone the repository, navigate into it, and run \u003ccode\u003epython -m pip install .\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eEnsure you have Python 3.8 or later installed in your environment, potentially using pyenv.\u003c/p\u003e\n"],["\u003cp\u003eDevelopers should run unit tests before and after making changes, utilizing nox or Docker for execution.\u003c/p\u003e\n"],["\u003cp\u003eFor library setup and usage, refer to the Virtual Environment and authentication example documentation.\u003c/p\u003e\n"]]],[],null,["# Installation\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\nWhether you're installing the library from PyPI or cloning it from GitHub, we\nrecommended that you conduct the below steps using an active virtual\nenvironment. For information on how to create and activate a virtual\nenvironment, see the [Virtual Environment](//docs.python.org/3/tutorial/venv.html) documentation.\n\nInstall the module from PyPI\n----------------------------\n\nThe library is distributed on [PyPI](//pypi.org/project/google-ads/) and can\nbe installed using [pip](//pip.pypa.io/en/stable/installing) with the\nfollowing command: \n\n python -m pip install google-ads\n\nInstall the library from GitHub\n-------------------------------\n\nThe source code for the library can be cloned from [GitHub](https://github.com/googleads/google-ads-python/)\nonto your local machine. It's useful to clone the source code in order to easily\nexecute the examples or to develop the library itself. For reference, running\none of the authentication examples is a required step in configuring the library\nfor use.\n\n1. Ensure that `python3.8` or later is present in your environment.\n The simplest way is to use [`pyenv`](//github.com/pyenv/pyenv-installer):\n\n pyenv local 3.8\n\n2. Clone the client library from GitHub:\n\n git clone git@github.com:googleads/google-ads-python.git\n\n3. Enter the repository and install it:\n\n cd google-ads-python\n python -m pip install .\n\n4. If you intend to develop the library, run the unit tests before and after\n making any changes:\n\n 1. Ensure you have all supported versions of the Python language available in\n your environment. Using `pyenv`::\n\n pyenv local 3.8 3.9 3.10 3.11 3.12\n\n 2. Install the test-specific dependencies of the library:\n\n python -m pip install .[tests]\n\n 3. Run the unit tests to ensure the library is functioning properly:\n\n nox\n\n 4. Optional: the unit tests can also be run using Docker. First, you must\n have [Docker installed](https://docs.docker.com/get-docker/). Then, from\n the `google-ads-python` directory, run the following:\n\n docker build -t google-ads-python:test .\n docker run -it google-ads-python:test nox"]]