أصبحت Search Ads 360 Reporting API الجديدة متاحة الآن. يمكنك الانضمام إلى مجموعة Google searchads-api-announcements لتبقى على اطّلاع على التحسينات والإصدارات القادمة.
تنظيم صفحاتك في مجموعات
يمكنك حفظ المحتوى وتصنيفه حسب إعداداتك المفضّلة.
تثبيت مكتبة برامج Python
لتثبيت مكتبة Python للعملاء في بيئتك المحلية:
استخرِج حِزمة tar الخاصة بمكتبة برامج Python.
نفِّذ الأمر التالي في الدليل نفسه:
python-mpipinstall.
اتّبِع التعليمات الواردة في وحدة التحكّم الطرفية لإكمال عملية التثبيت.
الضبط باستخدام ملف YAML
يمكنك تحديد ملف YAML لاستخدامه عند بدء تشغيل العميل الذي يحتوي على
معلومات المصادقة اللازمة لتقديم الطلبات. يتم
الوصول إلى هذا الملف عند إعداد عميل باستخدام طريقة load_from_file.
اتّبِع المثال الوارد أدناه عند إنشاء ملف YAML
لتحديد رمز إعادة التحديث
ورقم تعريف العميل وسر العميل.
لتحديد الموقع الجغرافي لملف search-ads-360.yaml، يمكنك
تمرير المسار كسلسلة إلى الطريقة عند استدعائها:
# Credential for accessing Google's OAuth servers.# Provided by console.cloud.google.com.
client_id:INSERT_CLIENT_ID_HERE
# Credential for accessing Google's OAuth servers.# Provided by console.cloud.google.com.
client_secret:INSERT_CLIENT_SECRET_HERE
# Renewable OAuth credential associated with 1 or more Search Ads accounts.
refresh_token:INSERT_REFRESH_TOKEN_HERE
# Required for manager accounts only: Specify the login customer ID used to# authenticate API calls. This will be the customer ID of the authenticated# manager account. You can also specify this later in code if your application# uses multiple manager account + OAuth pairs.## login_customer_id: INSERT_LOGIN_CUSTOMER_ID_HERE
تاريخ التعديل الأخير: 2025-06-04 (حسب التوقيت العالمي المتفَّق عليه)
[[["يسهُل فهم المحتوى.","easyToUnderstand","thumb-up"],["ساعَدني المحتوى في حلّ مشكلتي.","solvedMyProblem","thumb-up"],["غير ذلك","otherUp","thumb-up"]],[["لا يحتوي على المعلومات التي أحتاج إليها.","missingTheInformationINeed","thumb-down"],["الخطوات معقدة للغاية / كثيرة جدًا.","tooComplicatedTooManySteps","thumb-down"],["المحتوى قديم.","outOfDate","thumb-down"],["ثمة مشكلة في الترجمة.","translationIssue","thumb-down"],["مشكلة في العيّنات / التعليمات البرمجية","samplesCodeIssue","thumb-down"],["غير ذلك","otherDown","thumb-down"]],["تاريخ التعديل الأخير: 2025-06-04 (حسب التوقيت العالمي المتفَّق عليه)"],[[["Install the Python client library using `python -m pip install .` after extracting the tarball, avoiding `python setup.py`."],["Configure authentication using a YAML file containing refresh token, client ID, client secret, and optionally, login customer ID."],["Initialize the client by specifying the YAML file path using `SearchAds360Client.load_from_file()`, which defaults to your `$HOME` directory if no path is provided."],["The configuration supports general fields like `refresh_token`, `client_id`, `client_secret`, and `login_customer_id` for authentication and account access."],["Desktop and web application flows use specific keys like `client_id`, `client_secret`, `refresh_token`, and optionally, `login_customer_id` within the YAML file."]]],["To install the Python client library, extract the tarball and run `python -m pip install .`. Avoid using `python setup.py`. Configure the client using a YAML file, specifying `refresh_token`, `client_id`, and `client_secret`. Load the configuration with `load_from_file`, providing a file path or letting the library check the `$HOME` directory. Additional fields like `login_customer_id` are supported. Web application flows need the `client_id`, `client_secret`, and `refresh_token` keys.\n"]]