removed ip method from advertisement model