# Deeplinking Routes

**Min SDK version required: v1.1.4**

The Tyrads SDK supports deeplinking to specific sections of the offerwall. When initializing or interacting with the SDK, you can specify a route to open a particular page. For campaign-specific routes, you'll need to provide the campaignID as well.

Available routes and their usage:

* `offers` - opens the Campaigns Page
* `active-offers` - opens the Activated Campaigns Page
* offers/\[id] - opens the Campaign Details Page (requires campaignID)
* `support` - opens the Campaign Tickets Page (requires campaignID)

```javascript

// Note: CAMPAIGNS is the default route when no specific route is provided
Tyrads.showOffers();

// Explicitly specifying the Campaigns Page
Tyrads.showOffers({route: "offers"});

// Activated Campaigns Page
Tyrads.showOffers({route: "active-offers"});

// Campaign Details Page (requires campaignID)
Tyrads.showOffers({route: "offer", campaignID: "your_campaign_id_here"});

// Campaign Tickets Page (requires campaignID)
Tyrads.showOffers({route: "support", campaignID: "your_campaign_id_here"});


```

**Basic Usage**

Here is an example of how to use the `@tyrads.com/tyrads-sdk` package:

```javascript
import  Tyrads  from  '@tyrads.com/tyrads-sdk';
const  TYR_SDK_API_KEY  =  'YOUR_API_KEY';
const  TYR_SDK_API_SECRET  =  'YOUR_API_SECRET';
const  initializeTyrSDK  = async () => {
  await Tyrads.init(TYR_SDK_API_KEY, TYR_SDK_API_SECRET);
  await Tyrads.loginUser(userId);
};

const  initializeAndShowOffers  = async () => {
 await initializeTyrSDK();
 await Tyrads.showOffers();
};
```


---

# 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://sdk-doc.tyrads.com/v3.0/react-native/initialization/deeplinking-routes.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.
