The reason for this is because for each ads zone, we will display the fine print text with the word "advertisement" on top of the designated ads zone. Ideally, we don't want the "advertisement" text to be visible if the ads zone below it is not serving any ads at the particular time instance.
We were thinking if there is an API where can call to check the ads visibility status where we can then show / hide the "advertisement" text accordingly.
If there is no API for this, I would appreciate any workaround solution for this.
Listen for "adplugg:renderStart" events and show your "advertisement" text in the callback function. We don't have much for documentation for the AdPlugg.on() feature yet but you can see an example of how to use it in our AMP implementation (https://github.com/ampproject/amphtml/blob/master/ads/adplugg.js).
Note that for AMP we are doing the following:
Also note that AdPlugg.on() is based on jQuery's on function, we just added a selector parameter as the first parameter. For this parameter you can pass in a jQuery object, jQuery selector string or a DOMElement.
AdPlugg.on() currently supports the following events: