> ## Documentation Index
> Fetch the complete documentation index at: https://docs.cloud.cdata.com/llms.txt
> Use this file to discover all available pages before exploring further.

# eBay Analytics

export const title_1 = "eBay Analytics";

export const title_0 = "eBay Analytics";

## Prerequisites

Before you connect eBay Analytics to Connect AI, you must join the eBay Developers Program and create an application to obtain OAuth credentials.

<Steps>
  <Step>
    If you have not already done so, join the [eBay Developers Program](https://developer.ebay.com/).
  </Step>

  <Step>
    On the eBay Developers Program dashboard, navigate to **My Account** > **Application Access Keys**.
  </Step>

  <Step>
    On the **Application Keys** page, create an OAuth application and request credentials for either the **Production** or **Sandbox** environment, depending on whether you need access to real store data or a testing environment.
  </Step>

  <Step>
    Copy down the values for **App ID (Client ID)** and **Cert ID (Client Secret)**.
  </Step>

  <Step>
    Next to your App ID, click **User Tokens**, then select **Get a Token from eBay via Your Application**. Make sure **OAuth enabled** is selected.
  </Step>

  <Step>
    Configure a Redirect URL (RuName) for your application. Set the accepted URL to *[https://oauth.cdata.com/oauth/](https://oauth.cdata.com/oauth/)* and copy down the **RuName** value generated by eBay.
  </Step>
</Steps>

## Setup Guide

Follow these steps to connect eBay Analytics to your Connect AI account:

<Steps>
  <Step>
    Open the **Sources** page of the Connect AI navigation menu.
  </Step>

  <Step>
    Click **+ Add Connection** in the upper-right corner.
  </Step>

  <Step>
    Type *eBay Analytics* into the search field, then click the data source name.
  </Step>

  <Step>
    On the **Basic Settings** tab of the new connection, enter a connection name or keep the default name.
  </Step>

  <Step>
    Enter the **Ru Name**, which is the Redirect URL name used for validation (obtained in the prerequisites).
  </Step>

  <Step>
    (Optional) Select a **Marketplace Id** for the eBay Marketplace you want to connect to. Supported values are `DEFAULT`, `EBAY_AU`, `EBAY_CA`, `EBAY_FR`, `EBAY_DE`, `EBAY_GB`, `EBAY_IT`, `EBAY_ES`, and `EBAY_US`. The default value is `DEFAULT`.
  </Step>

  <Step>
    Select an **Auth Scheme** and follow the relevant instructions below.
  </Step>
</Steps>

## Authentication Methods

<Tabs>
  <Tab title="OAuth">
    <Steps>
      <Step>
        Enter the following information:

        * **OAuth Client Id**—the App ID you obtained from the **Application Access Keys** page.
        * **OAuth Client Secret**—the Cert ID you obtained from the **Application Access Keys** page.
      </Step>

      <Step>
        Click **Sign in** to connect securely through OAuth. This action opens the eBay sign-in page in a new tab.
      </Step>

      <Step>
        Log in to your eBay account and grant the requested permissions.
      </Step>

      <Step>
        At the top of the Connect AI **Add {title_0} Connection** page, click **Save & Test**.

        * If the connection test succeeds, a **Connection successfully saved** message appears, indicating that your connection has been created. The **Status** on the **Edit Connection** page also changes to **Authenticated**. View the data model of your successful connection in the right pane of the **Edit Connection** page, in the **Data Model** tab.
        * If the connection test fails, ensure that you entered your login information correctly with no stray spaces or other characters. Connect AI displays error messages under the required fields with missing data. Some data sources require that you sign in directly to the source website. If you did not, an error message appears under the **Sign in** button. Correct the errors and try again.
        * Unsuccessful connections are saved as drafts and have a **Status** of **Not Authenticated**. You can return to the connection and authenticate it later.
      </Step>
    </Steps>
  </Tab>

  <Tab title="OAuthClient">
    <Steps>
      <Step>
        Enter the following information:

        * **OAuth Client Id**—the App ID you obtained from the **Application Access Keys** page in Ebay Analytics.
        * **OAuth Client Secret**—the Cert ID you obtained from the **Application Access Keys** page in Ebay Analytics.
      </Step>

      <Step>
        At the top of the Connect AI **Add {title_1} Connection** page, click **Save & Test**.

        * If the connection test succeeds, a **Connection successfully saved** message appears, indicating that your connection has been created. The **Status** on the **Edit Connection** page also changes to **Authenticated**. View the data model of your successful connection in the right pane of the **Edit Connection** page, in the **Data Model** tab.
        * If the connection test fails, ensure that you entered your login information correctly with no stray spaces or other characters. Connect AI displays error messages under the required fields with missing data. Some data sources require that you sign in directly to the source website. If you did not, an error message appears under the **Sign in** button. Correct the errors and try again.
        * Unsuccessful connections are saved as drafts and have a **Status** of **Not Authenticated**. You can return to the connection and authenticate it later.
      </Step>
    </Steps>
  </Tab>
</Tabs>

## More Information

For more information about interactions between Connect AI and eBay Analytics, see [this information page](https://cdn.cdata.com/help/JJM/cloud/default.htm#default).
