fb-instant-articles
fb-instant-articles copied to clipboard
Recirculation ads
Steps required to reproduce the problem
- Publish article
Expected Result
- Instant article with recirculation ads at footer
Actual Result
- No recirculation ads
The problem is that it appears nobody knows how to add simple code inside wordpress to make recirculation ads automatically inserted inside the articles. - Right now the only working solution is to add the code manually on every single instant article.
Anyone?!
Could you please be a little bit more specific about the input. What part of your post would you like to have converted to recirculation ads? How do you do it manually?
Hello ,
Right now this code circulate around the web ( filter to insert inside wp file functions.php ) This is the code that suppose to make your recirculation ads inserted automatically on every instant article you publish.
add_filter( 'instant_articles_transformed_element','m_add_recirculation_ad' ); function m_add_recirculation_ad ($instant_article) { $instant_article->addMetaProperty('fb:op-recirculation-ads', 'placement_id=YOUR_PLACEMENT_ID'); return $instant_article; }
But the problem is that this code is not working. Nothing happen when applied.
Instead the only working solution is to add manually this
<meta property="fb:op-recirculation-ads" content="placement_id=YOUR-PLACEMENT-ID">
inside an instant article markup ( located in your fb page> publishing tools> instant articles> production articles)
So my original question was can someone help me out with making recirculation ad units visible on every instant article to avoid add the above code on every single article manually.
Thank you for clarifying this. Sorry to hear you're having a bad time getting this integrated. We don't currently support this but I will add it to the list of feature requests and we will prioritise it next time we triage the list.
Thanks a lot! All the best! :)
Hey @mrgrupbg - we are still going to take a look at this feature request, but if your goal is to add the recirculation units to ALL articles, then we have good news: Instant Articles Introduces “Monetization Tab”, With Simpler, One-Click Control for Turning on Recirculation Ads
Basically, you don't need to modify the Instant Articles markup to get the recirculation units.
I had the filter enabled and after this last update I started getting this error:
Wrong recirculation ads placement id: Please check if you set placement_id correctly for recirculation ads.
I disabled the filter on the functions.php file, we'll see of that fixes it.
This issue has been marked stale because it has been open for 30 days with no activity. If there is no activity within 7 days, it will be closed. This is an automation to keep issues manageable and actionable and is not a comment on the quality of this issue nor on the work done so far. Closed issues are still valuable to the project and are available to be searched.