Developers

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
SolveLLC
Visitor

ROKU_ADS_CONTENT_ID

What does this macro actually return?  I assumed it would be the content id that we've set for the currently playing video, but it's actually returning the channel name.

ROKU_ADS_CONTENT_LENGTH doesn't get replaced as a macro at all.
Tags (1)
0 Kudos
1 REPLY 1
NB_
Roku Guru

Re: ROKU_ADS_CONTENT_ID

"SolveLLC" wrote:
What does this macro actually return?  I assumed it would be the content id that we've set for the currently playing video, but it's actually returning the channel name.

That's a fallback, since you haven't called raf.setContentId(). Do that and it will return whatever you set. You said you set content id already but apparently by some other means... how?

ROKU_ADS_CONTENT_LENGTH doesn't get replaced as a macro at all.

Call raf.setContentLength() first.
See enableAdMeasurements() for shortlist of methods
https://sdkdocs.roku.com/display/sdkdoc/Integrating+the+Roku+Advertising+Framework#IntegratingtheRok...
Tags (1)
0 Kudos
Community is Being Upgraded!

We’re upgrading Roku Community to bring you a faster, more mobile-friendly experience. You may notice limited functionality or read-only access during this time. Read more here.

Planned Downtime:
Community will be unavailable for up to 24–48 hours during the upgrade window during the week of May 19th and you may notice reduced functionality. In the meantime, for additional assistance, visit our Support Site.

We're sorry for this disruption — we’re excited to share what’s next!