BTGREPGEN-2752

Code changes for Ad refresh feature