Skip to end of banner
Go to start of banner

Functions for React Single-Pages

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Version History

Version 1 Next »

Resetting ad units counter

In ATF SDK there is a public method to reset the ad units counter on demand.

atf.resetCounter()

Destroying ad slots removed from DOM

In ATF SDK there is a feature which automatically destroys ad slots in GAM when it is detected that they are removed from the DOM. It can be turned on/off in PPTM.

NOTE! This feature is only implemented when automated ad slot detection is turned on.

Mapping new ad slots on a function call

In ATF SDK there is a possibility to map a new ad slot on a function call.

To register new ad slots manually call atf.registerSlots() with array of slot ids to register:

atf.registerSlots(['adSlotId1', 'adSlotId2', '...'])

To unregister new ad slots manually call atf.unregisterSlots() with array of slot ids to register:

atf.unregisterSlots(['adSlotId1', 'adSlotId2', '...'])

Add atf-targeting as attribute

This attribute is optional and build by request. It is possible to define targetings like attributes in the ad slot via atf-targeting-<key>="<value>"

Example:
<atf-ad-slot id="my_site_ad_slot_4" atf-format="content" atf-formatSize="1000x250" atf-targeting-topic="health">
</atf-ad-slot>
  • No labels