added code changes to return adaction along with admodel, and full ad