Yeni Search Ads 360 Reporting API kullanıma sunuldu. Yaklaşan geliştirmeler ve sürümlerden haberdar olmak için searchads-api-announcements Google grubuna katılın.
Koleksiyonlar ile düzeninizi koruyun
İçeriği tercihlerinize göre kaydedin ve kategorilere ayırın.
Python istemci kitaplığını yükleme
Python istemci kitaplığını yerel ortamınıza yüklemek için:
Python istemci kitaplığı tarball'unu çıkarın.
Aynı dizinde aşağıdaki komutu çalıştırın:
python-mpipinstall.
Yüklemeyi tamamlamak için terminalde belirtilen talimatları uygulayın.
YAML dosyası kullanarak yapılandırma
İstemciyi başlatırken kullanılacak bir YAML dosyası belirtebilirsiniz. Bu dosya, istekte bulunmak için gereken kimlik doğrulama bilgilerini içerir. Bu dosyaya, load_from_file yöntemi kullanılarak bir istemci başlatıldığında erişilir.
YAML dosyasını oluştururken yenileme
token'ını, istemci
kimliğini ve istemci gizli anahtarını belirtmek için aşağıdaki örneği kullanın.
search-ads-360.yaml dosyasının bulunduğu konumu belirtmek için yöntemi çağırırken yolu dize olarak iletebilirsiniz:
Masaüstü ve web uygulaması akışları için desteklenen anahtarlar
Masaüstü veya web uygulama akışını kullanıyorsanız desteklenen anahtarlar şunlardır:
# 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
[[["Anlaması kolay","easyToUnderstand","thumb-up"],["Sorunumu çözdü","solvedMyProblem","thumb-up"],["Diğer","otherUp","thumb-up"]],[["İhtiyacım olan bilgiler yok","missingTheInformationINeed","thumb-down"],["Çok karmaşık / çok fazla adım var","tooComplicatedTooManySteps","thumb-down"],["Güncel değil","outOfDate","thumb-down"],["Çeviri sorunu","translationIssue","thumb-down"],["Örnek veya kod sorunu","samplesCodeIssue","thumb-down"],["Diğer","otherDown","thumb-down"]],["Son güncelleme tarihi: 2025-07-14 UTC."],[[["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"]]