> ## Documentation Index
> Fetch the complete documentation index at: https://docs.almedia.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Show the Link Button

> How to integrate the Almedia SDK — synced from the source repository.

The simplest integration is dropping one of the four prebuilt button prefabs into a Canvas. With the integration keys in **Almedia → Settings**, that is the whole integration. The button [initializes the SDK](https://docs.almedia.dev/technical/integration-guide/initialize-the-sdk.md) by itself when nothing else has and **Auto-Initialize From Prefabs** is on.

1. From the package, drag one of these into the scene's Canvas:
   * `Packages/com.almedia.sdk/Runtime/Prefabs/LinkButtonA.prefab`
   * `LinkButtonB.prefab`
   * `LinkButtonC.prefab`
   * `LinkButtonD.prefab`
2. Position it as desired.
3. Press Play. The button is two-state and stays visible as much as possible:

| Player status | Button | Tapping it |
| - | - | - |
| `Eligible` | visible - linking entry | opens the `LinkPopup` (which starts linking) |
| `Linked`, reward hub available | visible - rewards entry | opens the reward hub |
| `Linked`, no reward hub | hidden | - |
| anything else | hidden | - |

A linked player whose reward hub the backend has withdrawn gets no button rather than one that opens nothing, and the button reappears by itself if the hub comes back - it tracks [`CanShowRewardHub`](https://docs.almedia.dev/technical/integration-guide/status-and-lifecycle#what-can-actually-be-shown) live. Promo analytics follow what the player saw, so that case reports `promo_load` with `Hidden`.

The bundled UI needs an active `EventSystem` in the scene to receive taps. A bundled prefab shown without one logs a warning through `OnLog` that names the prefab and the scene.

For full control, ignore the prefabs and drive it yourself - see [Trigger linking programmatically](https://docs.almedia.dev/technical/integration-guide/the-linking-flow.md#trigger-linking-programmatically) and [Reward hub](https://docs.almedia.dev/technical/integration-guide/reward-hub.md).

***


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.