I’m using a plugin called Ad Inserter (https://wordpress.org/plugins/ad-inserter/) with the setup of automatic insertion Between Posts. Ads will appear after 1 and 4 posts in Homepage, Category, Tags, and Search pages.
It works fine when using the default blog setup. I hope you can make it work in a masonry grid setup. π