Why not using google optimize? That's one of the easiest way to customize your site's content according to "querystrings". for example, you can ahave adgroup=xxx based on adgroup=xxx, display targeted content. and it's integrated in google analytics / google ads and co. makes it very simple and streamline the data across your stack.