Dynamic Load
In addition to the two primary styles of integration fully dynamic ad units are possible. This setup support Single Page Applications (SPAs), React, Vue, etc.
Note, due to certain limitations with Codepen and JSFiddle, this example is only functional on the CodePen debug view.
See the Pen Fully Dynamic AdUnits by Stephen Johnston (@glstephen) on CodePen.