Automatic placement of multiple ads
-
How would I go about doing this? So far I have it showing up as a single ad and would like it to display a couple more using the section op-ad-template.
use Facebook\InstantArticles\Elements\Ad; add_action( 'instant_articles_after_transform_post', 'place_ad'); function place_ad($ia_post) { $ia = $ia_post->instant_article; $ia->addChild(Ad::create()->withSource('urlhere')); }
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Automatic placement of multiple ads’ is closed to new replies.