The ruling requires the advertisements to be removed from official government websites and social media platforms, including YouTube and Instagram.