Forum Discussion
NB_
9 years agoRoku Guru
"tim_beynart" wrote:
I am integrating RAF for apps that use server side ad insertion. Once I provide the ad data structure to RAF using importAds(), am I then required to manually call fireTrackingEvents() for each beacon event?
No - see at the end of "Requirements for Server Side Ad Insertion" section in the documentation.
In short, you import them with `raf.stitchedAdsInit(adPods)` and then during play periodically call `raf.stitchedAdHandledEvent(msg, player)` with messages (e.g. position) from the player.
Umm, and if you are playing the stitched content in a Video node, then there is a caveat (the documentation needs update): When doing stitchedAdHandledEvent() for native RSG integration, the 2nd param `player` should be:
{ sgNode: video, port: port }
where sgNode is the Video (or subclass thereof) node that is playing the stitched content
and port is a roMessagePort observing the position and state attributes of said sgNode.