Questa guida illustra come configurare OAuth2 per l'accesso API utilizzando
le proprie credenziali utilizzando account di servizio.
Questi passaggi devono essere eseguiti una sola volta, a meno che non revochi o elimini il protocollo OAuth2
e credenziali.
Configura le seguenti chiavi in App.config / Web.config. Consulta le
guida alla configurazione per ulteriori
i dettagli.
<add key="OAuth2Mode" value="SERVICE_ACCOUNT" />
<add key="OAuth2SecretsJsonPath" value="INSERT_OAUTH2_SECRETS_JSON_FILE_PATH_HERE" />
<!-- Supply the email address of the user to impersonate. -->
<add key="OAuth2PrnEmail" value="INSERT_OAUTH2_USER_EMAIL_HERE" />
[null,null,["Ultimo aggiornamento 2024-09-12 UTC."],[[["The Google Ads API client library for .NET will no longer support .NET 5.0 starting with version 19.0.0, and upgrading before the end of 2024 is recommended."],["This guide explains how to set up OAuth2 for API access using service accounts, requiring a Google Workspace domain and domain-wide delegation access granted to the service account."],["Users need to generate a service account ID and JSON file before proceeding with client library configuration."],["Configuration involves setting keys in `App.config` or `Web.config`, including OAuth2Mode, OAuth2SecretsJsonPath, and OAuth2PrnEmail."]]],[]]