--- title: "Connection Configuration for X Ads (Formerly Twitter Ads)" slug: "connection-configuration-twitter-ads" updated: 2024-09-10T11:31:34Z published: 2024-09-10T11:31:34Z canonical: "documents.trocco.io/connection-configuration-twitter-ads" --- > ## Documentation Index > Fetch the complete documentation index at: https://documents.trocco.io/llms.txt > Use this file to discover all available pages before exploring further. # Connection Configuration for X Ads (Formerly Twitter Ads) ## summary This is the help page for Connection Configuration for X Ads (Formerly Twitter Ads). ## Application for Advertising API To create a connection setup for X Ads (Formerly Twitter Ads), you will need a "developer account", a "Twitter application", and an "Ads API license (developer)". Approval from X (formerly Twitter) may take several days to several weeks to complete. If you have any questions about the application, please contact our support. ### 1. create a developer account Create a [developer account](https://developer.twitter.com/en/application/use-case) from [the developer account application screen](https://developer.twitter.com/en/application/use-case). ![image.png](https://cdn.document360.io/3a3bae1e-f157-487f-8798-01e9d820e760/Images/Documentation/connection-configuration-twitter-ads-2024-08-29-0-18-0.png) ![image.png](https://cdn.document360.io/3a3bae1e-f157-487f-8798-01e9d820e760/Images/Documentation/connection-configuration-twitter-ads-2024-08-29-0-18-1.png) ![image.png](https://cdn.document360.io/3a3bae1e-f157-487f-8798-01e9d820e760/Images/Documentation/connection-configuration-twitter-ads-2024-08-29-0-18-2.png) ![image.png](https://cdn.document360.io/3a3bae1e-f157-487f-8798-01e9d820e760/Images/Documentation/connection-configuration-twitter-ads-2024-08-29-0-18-3.png) ### Create a Twitter application Once a developer account has been applied for, create it from [the Twitter application creation screen](https://developer.twitter.com/en/apps/create). ### 3. apply for an advertising API license agreement Once the Twitter application is created, go to the [Ad API license application screen](https://developer.twitter.com/en/docs/ads/general/overview/adsapi-application) and fill out the form to apply. ### Generate an access token Go to the [Twitter application dashboard](https://developer.twitter.com/en/apps) and select the application you created. Select **Keys and tokens at** the top. Click **Create** under **Access token & access token secret** to generate tokens. ![image.png](https://cdn.document360.io/3a3bae1e-f157-487f-8798-01e9d820e760/Images/Documentation/connection-configuration-twitter-ads-2024-08-29-0-18-4.png) ### 5. register TROCCO's URL Go to the [Twitter application dashboard](https://developer.twitter.com/en/apps) and select the application you created. Select **App details at** the top. Go to the edit screen **from Edit** and `go to https://trocco.io/connections/twitter_ads_analytics/callbackと入力し保存します`**for Callback URLs**`.` ![image.png](https://cdn.document360.io/3a3bae1e-f157-487f-8798-01e9d820e760/Images/Documentation/connection-configuration-twitter-ads-2024-08-29-0-18-5.png) ### 6. grant access to X Ads (Formerly Twitter Ads) ![image.png](https://cdn.document360.io/3a3bae1e-f157-487f-8798-01e9d820e760/Images/Documentation/connection-configuration-twitter-ads-2024-08-29-0-18-6.png) ![image.png](https://cdn.document360.io/3a3bae1e-f157-487f-8798-01e9d820e760/Images/Documentation/connection-configuration-twitter-ads-2024-08-29-0-18-7.png) ![image.png](https://cdn.document360.io/3a3bae1e-f157-487f-8798-01e9d820e760/Images/Documentation/connection-configuration-twitter-ads-2024-08-29-0-18-8.png) ## Creating Connection Settings ### 1. check ConsumerKey and ConsumerSecret Go to the [Twitter application dashboard](https://developer.twitter.com/en/apps) and select the application you created. Select **Keys and tokens at** the top. Note `(API key)` and `(API secret key)` under **Consumer API keys**. ![image.png](https://cdn.document360.io/3a3bae1e-f157-487f-8798-01e9d820e760/Images/Documentation/connection-configuration-twitter-ads-2024-08-29-0-18-9.png) ### Enter Connection Configuration Go to TROCCO's [X Ads (Formerly Twitter Ads) Connection Configuration](http://trocco.io/connections/twitter_ads_analytics/new). Enter the name of the connection setting and the `ConsumerKey` and `ConsumerSecret` found in 1. Click **Save**. ![image.png](https://cdn.document360.io/3a3bae1e-f157-487f-8798-01e9d820e760/Images/Documentation/connection-configuration-twitter-ads-2024-08-29-0-18-10.png) ### 3. authenticate the Twitter application You will be taken to a screen on the X (formerly Twitter) side, so click on " **Authenticate linked apps** ".