Новый API отчетов Search Ads 360 теперь доступен. Присоединяйтесь к группе Google searchads-api-announcements , чтобы быть в курсе предстоящих улучшений и выпусков.
Оптимизируйте свои подборки
Сохраняйте и классифицируйте контент в соответствии со своими настройками.
Библиотека ищет файл конфигурации в System.getProperty("user.home") + "/searchads360.properties" .
Формат файла конфигурации соответствует файлу свойств Java, состоящему из пар «ключ-значение». Поддерживаемые ключи различаются в зависимости от выбранного процесса аутентификации.
Поддерживаемые ключи для потоков настольных и веб-приложений
Если вы используете поток настольных или веб -приложений, поддерживаются следующие клавиши:
# Credential for accessing Google's OAuth servers.# Provided by console.cloud.google.com.
api.searchads360.clientId=INSERT_CLIENT_ID_HERE
# Credential for accessing Google's OAuth servers.# Provided by console.cloud.google.com.
api.searchads360.clientSecret=INSERT_CLIENT_SECRET_HERE
# Renewable OAuth credential associated with 1 or more Search Ads accounts.
api.searchads360.refreshToken=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.## api.searchads360.loginCustomerId=INSERT_LOGIN_CUSTOMER_ID_HERE
Комбинирование подходов к конфигурации
SearchAds360Client и его конструктор поддерживают комбинирование различных стратегий настройки. Например, вы можете использовать файл свойств для настройки учётных данных экземпляра и других атрибутов, используя следующий фрагмент кода.
[[["Прост для понимания","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-07-14 UTC."],[[["The Search Ads 360 API uses a configuration file located at `System.getProperty(\"user.home\") + \"/searchads360.properties\"` to store essential settings like client ID, client secret, and refresh token."],["This configuration file follows the Java Properties file format and supports different keys based on the authentication method, such as desktop, web, or service application flows."],["Developers can combine configuration approaches, using the properties file for credentials and then further customizing the client using builder methods."],["When authenticating as a manager account, you need to specify the `api.searchads360.loginCustomerId` in the configuration file or during client initialization."],["OAuth refresh tokens required for authentication can be generated using the provided user credential generation script or the OAuth Playground utility."]]],["The library utilizes a configuration file located at `user.home/searchads360.properties`, formatted as key-value pairs. For desktop/web flows, required keys include `api.searchads360.clientId`, `api.searchads360.clientSecret`, and `api.searchads360.refreshToken`. Manager accounts also need `api.searchads360.loginCustomerId`. An OAuth refresh token can be generated via a provided script or the OAuth Playground. Configurations can be combined using the `SearchAds360Client` builder, which allows file-based configuration and runtime modifications.\n"]]