diff --git a/src/Document.php b/src/Document.php index f669a76..d417338 100644 --- a/src/Document.php +++ b/src/Document.php @@ -156,7 +156,7 @@ public function getAdSections() $type = $node->tagName; // create ad section - $adTypeClassName = '\\Sokil\\Vast\\AbstractAdNode\\' . $type; + $adTypeClassName = '\\Sokil\\Vast\\Ad\\' . $type; if (!class_exists($adTypeClassName)) { throw new \Exception('Ad type ' . $type . ' not supported'); }