> [!IMPORTANT]
> **Important:** We have increased the [upload limit](https://developers.google.com/display-video/api/sdf-upload/faq#sdf_upload_limit) for this pilot feature from five to thirty SDFs a day per advertiser.

This pilot provides a way for customers to test the new Display \& Video 360 API beta
feature allowing customers to upload [Structured Data Files
(SDFs)](https://developers.google.com/display-video/api/structured-data-file/format) using the Display \& Video 360 API.

This pilot allows each enrolled Google Cloud project to upload a maximum of
thirty SDFs a day under an advertiser. Each file can contain a maximum of 10,000
entries.

See our [Upload SDFs](https://developers.google.com/display-video/api/sdf-upload/upload-guide/overview) guide for instructions on how to use the
pilot feature.

## Get Started

After you [get started](https://developers.google.com/display-video/api/guides/getting-started/overview) with the Display \& Video 360 API, complete these
steps in order to use pilot features.

### Enroll your Google Cloud project in the pilot

Only customers who have requested and been granted access to the pilot can use
the pilot features.

Contact your Google sales representative for more information on how to have
your Google Cloud project enrolled in the pilot.

### Generate an API key

In addition to [standard Display \& Video 360 API credentials](https://developers.google.com/display-video/api/guides/getting-started/overview#generate_credentials), you must use
an API key. [Generate an API key](https://cloud.google.com/docs/authentication/api-keys#create) for your Google Cloud project
to use in your client configuration.

### Configure your client

Use the [Google API Client Library for Python](https://github.com/google/google-api-python-client) to access these pilot
features.

Here's how to install and configure your client library to make requests to the
pilot features:

### Python

1. **Install the google-api-python-client**

   ```
   pip install --upgrade google-api-python-client
   ```
2. **Import the necessary libraries.**

   ```python
   from google_auth_oauthlib.flow import InstalledAppFlow
   from googleapiclient import discovery
   ```
3. **Load the client secrets file and generate authorization credentials.**

   > [!NOTE]
   > **Note:** The first time you perform this step, you are asked to accept an authorization prompt in your browser. Before accepting, make sure you're signed in with a Google Account that has access to Display \& Video 360. Your app will be authorized to access data on behalf of whichever account is signed in. See our [Authorize Requests](https://developers.google.com/display-video/api/guides/how-tos/authorizing#user_permissions) guide for more details on Display \& Video 360 user permissions.

   ```python
   # Set up a flow object to create the credentials using the
   # client secrets file and OAuth scopes.
   credentials = InstalledAppFlow.from_client_secrets_file(
       path-to-client-secrets-file,
       oauth-scopes).run_local_server()
   ```
4. **Create an authorized service object using the discovery service.**

   ```python
   api_key = "API_KEY"
   api_name = "displayvideo"
   api_url = f"https://{api_name}.googleapis.com"
   api_version = "v4"
   api_label = "SDF_UPLOAD_ALPHA"

   discovery_url = (
       f"{api_url}/$discovery/rest?key={api_key}&version={api_version}&labels={api_label}"
   )

   service = discovery.build(api_name, api_version,
                             discoveryServiceUrl=discovery_url,
                             credentials=credentials)
   ```

### Start uploading SDFs

Follow the instructions in our [feature guide](https://developers.google.com/display-video/api/sdf-upload/upload-guide/overview) to start
uploading Structured Data Files.