added setting of the ad size by ad format parameter