Twitter Ads¶
The Twitter Ads connector is a Palantir-provided driver for Twitter Ads.
To create a new Twitter Ads source, follow the standard setup flow for Palantir-provided drivers, then use the sections below for Twitter Ads-specific configuration and networking. For the complete property reference, see the official Twitter Ads driver documentation ↗.
Configuration¶
The properties below are mandatory or recommended.
| Property | Required? | Description | Default |
|---|---|---|---|
OAuthClientId ↗ |
Mandatory | Specifies the client Id that was assigned when the custom OAuth application was created. (Also known as the consumer key.) This ID registers the custom application with the OAuth authorization server. | — |
OAuthClientSecret ↗ |
Mandatory | Specifies the client secret that was assigned when the custom OAuth application was created. (Also known as the consumer secret). This secret registers the custom application with the OAuth authorization server. | — |
AccountId ↗ |
Recommended | Identifier of the advertising account. This Id is used to get analytic stats for the account that is identified by this Id. The AddAccounts view can be used to list available accounts with their specific Ids. | — |
InitiateOAuth ↗ |
Recommended | Specifies the process for obtaining or refreshing the OAuth access token, which maintains user access while an authenticated, authorized user is working. | GETANDREFRESH |
UseAppOnlyAuthentication ↗ |
Recommended | A boolean that indicates whether or not you would like to use app-only authentication. | TRUE |
Networking¶
The table below lists the domains that the source needs to be able to access in order to successfully run.
For each domain, add a corresponding egress policy. If the source is hosted on-premises and not directly reachable from Foundry, use an agent proxy egress policy instead; the agent host itself must also be able to reach the listed domains. See using an agent as a proxy for details.
| Domain | Required |
|---|---|
| api.twitter.com | Always |
| ads-api.twitter.com | Always |
中文翻译¶
Twitter Ads¶
Twitter Ads 连接器是 Palantir 提供的用于 Twitter Ads 的驱动程序。
要创建新的 Twitter Ads 数据源,请遵循Palantir 提供驱动程序的标准设置流程,然后使用以下各节进行 Twitter Ads 特定的配置和网络设置。有关完整的属性参考,请参阅官方 Twitter Ads 驱动程序文档 ↗。
配置¶
以下属性为必填或推荐项。
| 属性 | 是否必填 | 描述 | 默认值 |
|---|---|---|---|
OAuthClientId ↗ |
必填 | 指定创建自定义 OAuth 应用程序时分配的客户端 ID(也称为消费者密钥)。此 ID 将自定义应用程序注册到 OAuth 授权服务器。 | — |
OAuthClientSecret ↗ |
必填 | 指定创建自定义 OAuth 应用程序时分配的客户端密钥(也称为消费者密钥)。此密钥将自定义应用程序注册到 OAuth 授权服务器。 | — |
AccountId ↗ |
推荐 | 广告账户的标识符。此 ID 用于获取由该 ID 标识的账户的分析统计数据。可使用 AddAccounts 视图列出可用账户及其特定 ID。 | — |
InitiateOAuth ↗ |
推荐 | 指定获取或刷新 OAuth 访问令牌的过程,该令牌在已认证、已授权的用户工作时维持其访问权限。 | GETANDREFRESH |
UseAppOnlyAuthentication ↗ |
推荐 | 一个布尔值,指示是否要使用仅应用程序身份验证。 | TRUE |
网络设置¶
下表列出了数据源为成功运行而需要能够访问的域名。
对于每个域名,请添加相应的出站策略。如果数据源部署在本地且无法直接从 Foundry 访问,请改用代理出站策略;代理主机本身也必须能够访问所列出的域名。有关详细信息,请参阅使用代理作为代理服务器。
| 域名 | 必需条件 |
|---|---|
| api.twitter.com | 始终需要 |
| ads-api.twitter.com | 始终需要 |