I tried taking a look at adflow's dynamic image support, but it looks like most of the documentation/tutorials are in German (and my last name isn't helping me here...).
From the code snippet you showed, it appears that they might be doing server-side replacement of images?
Hype doesn't have any server-side components; it isn't an ad serving platform.
You'd have to build or use your own, and use JavaScript calls to make any replacements. (There's definitely a lot of solutions/posts on the forums on how to do data driven documents like this more manually).
Who sanctioned to use Adflow.io?
Dutch company. As a Dutch person I am shocked. Something like that exists for META's products.
You need a data driven add-on in your Hype File, so you can call the other image.
Newer problem and Johnathan wrote it, is the hosting of these files. I don't know how many impressions and clicks are calculated for this add. But it will be high traffic.
@MaxZieb do you have something lying around on your magic carpet to simplify this for @cartimundi?
To have multiple data driven ads is possible with Hype Data Magic but the idea is hindered somewhat because of the disability to deselect files. This is a long standing bug (feature request). Last time I checked it was still there.
Apart of that you can just create and ad an replace asset in the exported version (resource folder). Text content can be replaced in the JS file, but that wouldn’t be directly visual. You could preview it in the browser, though.