support referenceId and also YoutubeId (YoutubeId is overriding
referencId if both exist)