> For the complete documentation index, see [llms.txt](https://docs.candy-smith.com/main/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.candy-smith.com/main/general-info/add-rewarded-ads-to-a-button.md).

# Add rewarded ads to a button

1. Enable **IsRewarded** flag to make the button show rewarded ad and execute the function attached to **OnClick**<br>

   <figure><img src="/files/2TBnkjr2v6QXCtusT2pn" alt=""><figcaption></figcaption></figure>
