# Tune

### Snapshot

| Features                        | Details                                    |
| ------------------------------- | ------------------------------------------ |
| Release Status                  | Released                                   |
| Source API Version              | v2                                         |
| Table Selection                 | Yes                                        |
| Column Selection                | Yes                                        |
| Edit Integration                | Yes                                        |
| Replication Type Selection      | No                                         |
| Authentication Parameters       | <p>Tune networkId<br>Tune networkToken</p> |
| Replication Type                | Key based Replication                      |
| Replication Key                 | DATE                                       |
| Suggested Replication Frequency | 24 hrs                                     |

| Tables/APIs Supported    |                   |
| ------------------------ | ----------------- |
| ManagerCommissionsReport | ConversionsReport |
| ReferralsReport          | StatsReport       |
| Affliate                 | Conversions       |
| Offers                   | SummaryLogsReport |

ManuallyUpdatedConversions

### Integrate Tune with Daton

1. Signin to Daton
2. Select Tune from Integrations page
3. Provide Integration Name Replication Frequency and History. Integration name would be used in creating tables for the integration and cannot be changed later
4. Provide your Tune networkId and networkToken.
5. After providing the networkId and networkToken to authorize Daton to periodically extract data from Tune.
6. Post successful authentication you will be prompted to choose from the list of available tables
7. Then select all required fields for each table
8. Submit the integration.

### Workflow

1. Integrations would be in Pending state initially and will be moved to Active state as soon as the first job loads data successfully on to the configured warehouse
2. Users would be able to edit/pause/re-activate/delete integration anytime
3. Users can view job status and process logs from the integration details page by clicking on the integration name from the active list

### Tune Data

**ManagerCommissionsReport**

Purpose: Get affiliate manager commission report.

Source API Documentation  <https://developers.tune.com/network/report-getmanagercommissions/>

Replication: Key-Based Replication

Replication Key: lastRunDate

**Fields**

| Name             | Target Datatype |
| ---------------- | --------------- |
| Stat             | RECORD          |
| AffiliateManager | RECORD          |

**ConversionsReport**

Purpose: Get a conversion report.

Source API Documentation <https://developers.tune.com/network/report-getconversions/>

Replication: Key-Based Replication

Replication Key: lastRunDate

**Fields**

| Name              | Target Datatype |
| ----------------- | --------------- |
| Stat              | RECORD          |
| RevenueGroup      | RECORD          |
| Region            | RECORD          |
| PayoutGroup       | RECORD          |
| OfferUrl          | RECORD          |
| Offer             | RECORD          |
| Goal              | RECORD          |
| Customer          | RECORD          |
| Country           | RECORD          |
| ConversionsMobile | RECORD          |
| ConversionMeta    | RECORD          |
| Browser           | RECORD          |
| AffiliateManager  | RECORD          |
| Affiliate         | RECORD          |
| AdvertiserManager | RECORD          |
| Advertiser        | RECORD          |

**ReferralsReport**

Purpose: Get traffic referrals report.

Source API Documentation  <https://developers.tune.com/network/report-getreferrals/>

Replication: Key-Based Replication

Replication Key: lastRunDate

**Fields**

| Name              | Target Datatype |
| ----------------- | --------------- |
| Stat              | RECORD          |
| Offer             | RECORD          |
| AffiliateManager  | RECORD          |
| AdvertiserManager | RECORD          |
| Advertiser        | RECORD          |
| Affiliate         | RECORD          |

**StatsReport**

Purpose: Retrieve a stats report that contains aggregated stats for clicks, conversions, and other data points.

Source API Documentation  <https://developers.tune.com/network/report-getstats/>

Replication: Key-Based Replication

Replication Key: lastRunDate

**Fields**

| Name                 | Target Datatype |
| -------------------- | --------------- |
| Stat                 | RECORD          |
| Region               | RECORD          |
| OfferVertical        | RECORD          |
| OfferUrl             | RECORD          |
| OfferTag             | RECORD          |
| OfferOperatingSystem | RECORD          |
| OfferMediaPlacement  | RECORD          |
| OfferIncentive       | RECORD          |
| OfferFile            | RECORD          |
| OfferConversionType  | RECORD          |
| OfferChannel         | RECORD          |
| Offer                | RECORD          |
| Goal                 | RECORD          |
| Country              | RECORD          |
| Category             | RECORD          |
| Browser              | RECORD          |
| AffiliateTag         | RECORD          |
| AffiliateManager     | RECORD          |
| Affiliate            | RECORD          |
| AdvertiserTag        | RECORD          |
| AdvertiserManager    | RECORD          |
| Advertiser           | RECORD          |
| AdCampaign           | RECORD          |

**Affliate**

Purpose: Returns one or more affiliates, optionally filtered and sorted by specified parameters.

Source API Documentation  <https://developers.tune.com/network/affiliate-findall/>

Replication: Key-Based Replication

Replication Key: lastRunDate

**Fields**

| Name                              | Target Datatype |
| --------------------------------- | --------------- |
| id                                | NUMERIC         |
| account\_manager\_id              | NUMERIC         |
| company                           | STRING          |
| address1                          | STRING          |
| address2                          | STRING          |
| city                              | STRING          |
| region                            | STRING          |
| country                           | STRING          |
| other                             | STRING          |
| zipcode                           | NUMERIC         |
| phone                             | STRING          |
| fax                               | STRING          |
| website                           | STRING          |
| signup\_ip                        | STRING          |
| date\_added                       | TIMESTAMP       |
| status                            | STRING          |
| wants\_alerts                     | NUMERIC         |
| payment\_method                   | STRING          |
| method\_data                      | STRING          |
| payment\_terms                    | STRING          |
| w9\_filed                         | NUMERIC         |
| referral\_id                      | STRING          |
| affiliate\_tier\_id               | STRING          |
| fraud\_activity\_score            | STRING          |
| fraud\_activity\_alert\_threshold | STRING          |
| fraud\_activity\_block\_threshold | STRING          |
| fraud\_profile\_alert\_threshold  | STRING          |
| fraud\_profile\_block\_threshold  | STRING          |
| fraud\_risk\_tier                 | STRING          |
| scrub\_offer\_pixels              | NUMERIC         |
| ref\_id                           | STRING          |
| modified                          | TIMESTAMP       |

**Conversions**

Purpose: List of Conversion model objects.

Source API Documentation <https://developers.tune.com/network/conversion-findall/>

Replication: Key-Based Replication

Replication Key: lastRunDate

**Fields**

| Name              | Target Datatype |
| ----------------- | --------------- |
| Conversion        | RECORD          |
| Offer             | RECORD          |
| Country           | RECORD          |
| ConversionMeta    | STRING          |
| Browser           | STRING          |
| AffiliateManager  | RECORD          |
| Affiliate         | RECORD          |
| AdvertiserManager | RECORD          |
| Advertiser        | RECORD          |

**Offers**

Purpose: Returns one or more offers, optionally filtered and sorted by specified parameters.

Source API Documentation  <https://developers.tune.com/network/offer-findall/>

Replication: Full Replication

Replication Key: NA

**Fields**

| Name                                 | Target Datatype |
| ------------------------------------ | --------------- |
| id                                   | NUMERIC         |
| display\_advertiser                  | NUMERIC         |
| advertiser\_id                       | NUMERIC         |
| name                                 | STRING          |
| description                          | STRING          |
| require\_approval                    | NUMERIC         |
| require\_terms\_and\_conditions      | NUMERIC         |
| terms\_and\_conditions               | STRING          |
| preview\_url                         | STRING          |
| offer\_url                           | STRING          |
| currency                             | STRING          |
| default\_payout                      | NUMERIC         |
| max\_payout                          | NUMERIC         |
| protocol                             | STRING          |
| status                               | STRING          |
| expiration\_date                     | TIMESTAMP       |
| is\_private                          | NUMERIC         |
| payout\_type                         | STRING          |
| tiered\_payout                       | NUMERIC         |
| tiered\_revenue                      | NUMERIC         |
| percent\_payout                      | STRING          |
| revenue\_type                        | STRING          |
| max\_percent\_payout                 | STRING          |
| redirect\_offer\_id                  | NUMERIC         |
| converted\_offer\_type               | STRING          |
| converted\_offer\_id                 | STRING          |
| converted\_offer\_url                | STRING          |
| conversion\_ratio\_threshold         | STRING          |
| featured                             | STRING          |
| is\_subscription                     | NUMERIC         |
| subscription\_duration               | STRING          |
| subscription\_frequency              | STRING          |
| customer\_list\_id                   | NUMERIC         |
| ref\_id                              | STRING          |
| rating                               | NUMERIC         |
| disable\_click\_macro                | NUMERIC         |
| click\_macro\_url                    | STRING          |
| conversion\_cap                      | NUMERIC         |
| monthly\_conversion\_cap             | NUMERIC         |
| payout\_cap                          | NUMERIC         |
| monthly\_payout\_cap                 | NUMERIC         |
| revenue\_cap                         | NUMERIC         |
| monthly\_revenue\_cap                | NUMERIC         |
| target\_browsers                     | NUMERIC         |
| approve\_conversions                 | NUMERIC         |
| allow\_multiple\_conversions         | NUMERIC         |
| allow\_website\_links                | NUMERIC         |
| allow\_direct\_links                 | NUMERIC         |
| show\_custom\_variables              | NUMERIC         |
| session\_hours                       | NUMERIC         |
| session\_impression\_hours           | NUMERIC         |
| set\_session\_on\_impression         | NUMERIC         |
| is\_seo\_friendly\_301               | NUMERIC         |
| show\_mail\_list                     | NUMERIC         |
| dne\_list\_id                        | NUMERIC         |
| email\_instructions                  | NUMERIC         |
| email\_instructions\_from            | STRING          |
| email\_instructions\_subject         | STRING          |
| enforce\_geo\_targeting              | NUMERIC         |
| enforce\_secure\_tracking\_link      | NUMERIC         |
| hostname\_id                         | STRING          |
| has\_goals\_enabled                  | NUMERIC         |
| default\_goal\_name                  | STRING          |
| enforce\_encrypt\_tracking\_pixels   | NUMERIC         |
| modified                             | NUMERIC         |
| enable\_offer\_whitelist             | NUMERIC         |
| note                                 | STRING          |
| use\_target\_rules                   | NUMERIC         |
| use\_payout\_groups                  | NUMERIC         |
| use\_revenue\_groups                 | NUMERIC         |
| website\_links\_copy\_static\_params | NUMERIC         |
| create\_date\_utc                    | TIMESTAMP       |
| lifetime\_revenue\_cap               | NUMERIC         |
| lifetime\_conversion\_cap            | NUMERIC         |
| lifetime\_payout\_cap                | NUMERIC         |
| proactive\_click\_fraud\_prevention  | STRING          |
| non\_unique\_click\_attribution      | STRING          |
| is\_expired                          | NUMERIC         |
| dne\_download\_url                   | STRING          |
| dne\_unsubscribe\_url                | STRING          |
| dne\_third\_party\_list              | BOOLEAN         |

**SummaryLogsReport**

Purpose: Get mod summary logs report.

Source API Documentation  <https://developers.tune.com/network/report-getmodsummarylogs/>

Replication: Key-Based Replication

Replication Key: lastRunDate

**Fields**

| Name          | Target Datatype |
| ------------- | --------------- |
| Offer         | RECORD          |
| ModSummaryLog | RECORD          |
| Affiliate     | RECORD          |

**ManuallyUpdatedConversions**

Purpose: Find Conversions which were manually updated within a specific date range.

Source API Documentation  <https://developers.tune.com/network/conversion-findupdatedconversions/>

Replication: Key-Based Replication

Replication Key: lastRunDate

**Fields**

| Name                       | Target Datatype |
| -------------------------- | --------------- |
| startDate                  | DATE            |
| endDate                    | DATE            |
| id                         | NUMERIC         |
| affiliate\_id              | NUMERIC         |
| offer\_id                  | NUMERIC         |
| datetime                   | TIMESTAMP       |
| batch\_date\_utc           | DATE            |
| batch\_timestamp           | TIMESTAMP       |
| payout                     | NUMERIC         |
| revenue                    | NUMERIC         |
| ad\_id                     | STRING          |
| tune\_event\_id            | STRING          |
| advertiser\_manager\_id    | NUMERIC         |
| advertiser\_id             | NUMERIC         |
| affiliate\_manager\_id     | NUMERIC         |
| goal\_id                   | NUMERIC         |
| creative\_url\_id          | NUMERIC         |
| customer\_id               | NUMERIC         |
| source                     | STRING          |
| affiliate\_info1           | STRING          |
| affiliate\_info2           | STRING          |
| affiliate\_info3           | STRING          |
| affiliate\_info4           | STRING          |
| affiliate\_info5           | STRING          |
| advertiser\_info           | STRING          |
| session\_datetime          | TIMESTAMP       |
| refer                      | STRING          |
| pixel\_refer               | STRING          |
| ip                         | STRING          |
| session\_ip                | STRING          |
| status                     | STRING          |
| status\_code               | NUMERIC         |
| sale\_amount               | NUMERIC         |
| user\_agent                | STRING          |
| country\_code              | STRING          |
| event\_city                | STRING          |
| event\_region              | STRING          |
| browser\_id                | NUMERIC         |
| is\_adjustment             | NUMERIC         |
| ad\_campaign\_id           | NUMERIC         |
| ad\_campaign\_creative\_id | NUMERIC         |
| offer\_file\_id            | NUMERIC         |
| payout\_type               | STRING          |
| revenue\_type              | STRING          |
| currency                   | STRING          |
| promo\_code                | STRING          |
| adv\_unique1               | STRING          |
| adv\_unique2               | STRING          |
| adv\_unique3               | STRING          |
| adv\_unique4               | STRING          |
| adv\_unique5               | STRING          |
| order\_id                  | STRING          |
| sku\_id                    | STRING          |
| product\_category          | STRING          |
| app\_version               | STRING          |


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://daton-sarasanalytics.gitbook.io/daton/integrations/data-sources/saas-integrations/tune.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
