use partial for ads in generator