> For the complete documentation index, see [llms.txt](https://sdk-doc.tyrads.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://sdk-doc.tyrads.com/getting-started/advanced-options/sending-media-source-data.md).

# Sending Media Source Data

Send media data of where you acquired the users to our system, we will use this in our systems to be able to segment the user base and provide media source specific rewards.&#x20;

{% hint style="info" %}
This is related to initialization of the SDK.&#x20;
{% endhint %}

{% hint style="warning" %}
**Other than mediaSourceName which is mandatory, others are optional.** However, it is highly recommended to provide us all these data for us to tailor the rewards journey towards different media sources.&#x20;
{% endhint %}

<table><thead><tr><th width="223">Paramater</th><th width="120">Data Type</th><th>Description</th></tr></thead><tbody><tr><td>mediaSourceName [<strong>Mandatory]</strong></td><td>string</td><td>Can be used to send the source name of where you got the user </td></tr><tr><td>mediaCampaignName</td><td>string</td><td>Can be used to send the campaign name of where you got the user</td></tr><tr><td>mediaSourceId</td><td>string</td><td>Can be used to send the source id of where you got the user</td></tr><tr><td>mediaSubSourceId</td><td>string</td><td>Can be used to send the Sub Source id of where you got the user</td></tr><tr><td>Incentivized</td><td>boolean</td><td>Can be used to send if the user acquisition was done via incent channels or non incent channels.</td></tr><tr><td>mediaAdsetName</td><td>string</td><td>Can be used to send the adset name of where you got the user</td></tr><tr><td>mediaAdsetId</td><td>string</td><td>Can be used to send the adset id of where you got the user</td></tr><tr><td>mediaCreativeName</td><td>string</td><td>Can be used to send the CreativeName of where you got the user</td></tr><tr><td>mediaCreativeId</td><td>string</td><td>Can be used to send the creativeId of where you got the user</td></tr><tr><td>sub1</td><td>string</td><td>Can use this to to store any type of data. <br><br>Currently only used to store data can't be received on the postback</td></tr><tr><td>sub2</td><td>string</td><td>Can use this to to store any type of data. <br><br>Currently only used to store data can't be received on the postback</td></tr><tr><td>sub3</td><td>string</td><td>Can use this to store any type of data. And can be sent back on the postback as well.<br><br><a data-mention href="/pages/wA6KNwNFL96U0Tpn5ZNv">/pages/wA6KNwNFL96U0Tpn5ZNv</a></td></tr><tr><td>sub4</td><td>string</td><td>Can use this to store any type of data. And can be sent back on the postback as well.<br><br><a data-mention href="/pages/wA6KNwNFL96U0Tpn5ZNv">/pages/wA6KNwNFL96U0Tpn5ZNv</a></td></tr><tr><td>sub5</td><td>string</td><td>Can use this to to store any type of data. <br><br>Currently only used to store data can't be received on the postback</td></tr></tbody></table>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://sdk-doc.tyrads.com/getting-started/advanced-options/sending-media-source-data.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
