before get ads from rest