ad merging