# SourceBingAds


## Fields

| Field                                                                                                                                                                                                                                                                                                            | Type                                                                                                                                                                                                                                                                                                             | Required                                                                                                                                                                                                                                                                                                         | Description                                                                                                                                                                                                                                                                                                      |
| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `client_id`                                                                                                                                                                                                                                                                                                      | *str*                                                                                                                                                                                                                                                                                                            | :heavy_check_mark:                                                                                                                                                                                                                                                                                               | The Client ID of your Microsoft Advertising developer application.                                                                                                                                                                                                                                               |
| `developer_token`                                                                                                                                                                                                                                                                                                | *str*                                                                                                                                                                                                                                                                                                            | :heavy_check_mark:                                                                                                                                                                                                                                                                                               | Developer token associated with user. See more info <a href="https://docs.microsoft.com/en-us/advertising/guides/get-started?view=bingads-13#get-developer-token"> in the docs</a>.                                                                                                                              |
| `refresh_token`                                                                                                                                                                                                                                                                                                  | *str*                                                                                                                                                                                                                                                                                                            | :heavy_check_mark:                                                                                                                                                                                                                                                                                               | Refresh Token to renew the expired Access Token.                                                                                                                                                                                                                                                                 |
| `account_names`                                                                                                                                                                                                                                                                                                  | List[[models.AccountNames](../models/accountnames.md)]                                                                                                                                                                                                                                                           | :heavy_minus_sign:                                                                                                                                                                                                                                                                                               | Predicates that will be used to sync data by specific accounts.                                                                                                                                                                                                                                                  |
| `auth_method`                                                                                                                                                                                                                                                                                                    | [Optional[models.AuthMethod]](../models/authmethod.md)                                                                                                                                                                                                                                                           | :heavy_minus_sign:                                                                                                                                                                                                                                                                                               | N/A                                                                                                                                                                                                                                                                                                              |
| `client_secret`                                                                                                                                                                                                                                                                                                  | *Optional[str]*                                                                                                                                                                                                                                                                                                  | :heavy_minus_sign:                                                                                                                                                                                                                                                                                               | The Client Secret of your Microsoft Advertising developer application.                                                                                                                                                                                                                                           |
| `custom_reports`                                                                                                                                                                                                                                                                                                 | List[[models.CustomReportConfig](../models/customreportconfig.md)]                                                                                                                                                                                                                                               | :heavy_minus_sign:                                                                                                                                                                                                                                                                                               | You can add your Custom Bing Ads report by creating one.                                                                                                                                                                                                                                                         |
| `lookback_window`                                                                                                                                                                                                                                                                                                | *Optional[int]*                                                                                                                                                                                                                                                                                                  | :heavy_minus_sign:                                                                                                                                                                                                                                                                                               | Also known as attribution or conversion window. How far into the past to look for records (in days). If your conversion window has an hours/minutes granularity, round it up to the number of days exceeding. Used only for performance report streams in incremental mode without specified Reports Start Date. |
| `reports_start_date`                                                                                                                                                                                                                                                                                             | [datetime](https://docs.python.org/3/library/datetime.html#datetime-objects)                                                                                                                                                                                                                                     | :heavy_minus_sign:                                                                                                                                                                                                                                                                                               | The start date from which to begin replicating report data. Any data generated before this date will not be replicated in reports. This is a UTC date in YYYY-MM-DD format. If not set, data from previous and current calendar year will be replicated.                                                         |
| `source_type`                                                                                                                                                                                                                                                                                                    | [models.SourceBingAdsBingAds](../models/sourcebingadsbingads.md)                                                                                                                                                                                                                                                 | :heavy_check_mark:                                                                                                                                                                                                                                                                                               | N/A                                                                                                                                                                                                                                                                                                              |
| `tenant_id`                                                                                                                                                                                                                                                                                                      | *Optional[str]*                                                                                                                                                                                                                                                                                                  | :heavy_minus_sign:                                                                                                                                                                                                                                                                                               | The Tenant ID of your Microsoft Advertising developer application. Set this to "common" unless you know you need a different value.                                                                                                                                                                              |