Currently, we do not have an example on creating a
RichMediaAd. However, this is just the same as
creating an expanded text ad (in Java), but you just need to change the object being used. You can use the
ThirdPartyRedirectAd object which is a sub type of RichMediaAd. You can check on the link for the required properties that you need to set.
Let me know if you encounter any issues when doing this.