according to the nature of the OSSN site I wonder if it can be approved by Google AdSense and is there the possibility of inserting Google Adsense advertisements in the news feed. Thx
As for the first part: How should we answer a question like that if we don't know nothing about the 'nature' of your site? I'd suggest to simply ask Google instead.
As for the coding part: There's an example component available in my repository at https://comz.z-mans.net/group/359/about