Power BI Connector for Twitter Ads

Build 24.0.9060

Creating a Custom OAuth Application

Creating a Custom OAuth Application

The procedure for creating a custom OAuth application registers a new application in the Twitter Ads portal and obtains the OAuth client credentials.

We assume you have already signed up for a developer account, as described at sign up for a developer account. To access the Twitter API v1.1, you must apply for additional access within the developer portal. For details, see the Twitter API documentation.

Procedure

  1. Log in to https://developer.twitter.com/en/portal/projects-and-apps.
  2. Create a new Project in the Developer Portal.
  3. At the project you just created, click Add App.
  4. Set a name for the Application. Twitter Ads displays your keys and tokens.
  5. Record the values of your new keys and tokens. You will need them later for authentication.
  6. Navigate to the Application settings.
  7. At User authentication settings, click Set up.
  8. Turn on the 'OAuth 1.0a' authentication.
  9. From the available Application permissions, select Read and write and Direct message.
  10. Specify the URL of the website and other optional information to be displayed to users when they connect.
  11. Define the Callback URL setting:

    • If this is a Web application, set the Callback URL to the URL you would like users to be returned to after they have granted your application privileges.
    • If this is a Desktop application, set the Callback URL to http://localhost:33333/.

  12. To request access to the Ads API, fill out the form at: https://developer.twitter.com/en/docs/twitter-ads-api/apply.

Generating Access Tokens

If you intend to communicate with Twitter only as the currently authenticated user, then you can obtain the OAuthAccessToken and OAuthAccessTokenSecret directly from the Developer Portal on Twitter:

  1. Navigate to the Application you just created.
  2. Go to Keys and tokens.
  3. At the Access Token and Secret option, click Generate.

You can then connect by setting the OAuthAccessToken and OAuthAccessTokenSecret connection properties.

If you need to generate access tokens for other user accounts besides the one you used to create the application on Twitter, use the consumer key and consumer secret.

Copyright (c) 2024 CData Software, Inc. - All rights reserved.
Build 24.0.9060