Getting Started - Unity SDK

Getting Started with Unity SDK

The Unity SDK allows you to integrate RTB Stack into your Unity project seamlessly. Follow the steps below to install and configure the SDK in your Unity environment.

Step 1: Download RtbStackSDK.unitypackage

First, download the Unity package file from our repository using the following link.

Step 2: Import the Package into Your Unity Project

Once downloaded, follow these steps to import the package into Unity:

  1. Open your Unity project.
  2. Go to AssetsImport PackageCustom Package…
  3. Select the downloaded RtbStackSDK.unitypackage file.
  4. When the Import Unity Package window appears, ensure all files are selected and click the Import button.

Next Steps: Create and Load Your First Ad

Now that you have successfully integrated the RTB-Stack SDK into your Unity application, you are ready to create and load your first ad. Explore the various ad formats available to find the best fit for your app’s design and user experience. Proceed to the Ad Formats section for detailed instructions on implementing and optimizing each type of ad:

  • Banner Ad: Ideal for consistent visibility without interrupting the user experience.
  • Interstitial Ad: Best for transitional moments, offering full-screen engagement.
  • Rewarded Video Ad: Offers incentives to users for watching videos, enhancing engagement.
  • Native Ad: Seamlessly integrates with the app’s layout for a cohesive look.
General Information on Parameters Needed for Format Setup:

The "Endpoint Request URL" and "Tag ID" are crucial configurations passed into the SDK to control ad behavior and track placements across all formats.

  • ENDPOINT_REQUEST_URL: This URL specifies where the SSP (Supply-Side Platform) should send ad requests. You can retrieve it from the Edit Endpoint section in the RTB-Stack interface. Each app is associated with a single Endpoint.
  • TAG_ID: This is a randomly assigned string used for tracking and reporting. It can help you differentiate ad placements. Example for an interstitial ad: "Interstitial_Homepage_Promo".

Updated on March 14, 2025