# 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="https://2423037410-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FixseEfHbM88cpcinnJo4%2Fuploads%2FotVALGklZXh2kKaqQ3Ma%2Fimage.png?alt=media&#x26;token=c7e1dfe5-d828-4698-a8c6-9fe83a49ccaf" alt=""><figcaption></figcaption></figure>
