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)
// Note: CAMPAIGNS is the default route when no specific route is providedTyrads.showOffers();// Explicitly specifying the Campaigns PageTyrads.showOffers({route:"offers"});// Activated Campaigns PageTyrads.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: