Instantsearch google adsense

Hello,
I would be interested in implementing banner ads in the search results of algolia.
I found this script from the official repository.

Is it still valid or deprecated?
Thank you