Skip to main content
Skip table of contents

Ad Project Functions in Ad Management

JavaScript Functions

Here is a list of available JavaScript functions for on-page wrapper controls:

Function

Description

disableSlotRefresh(slot_name)

Disable ad refresh for a specific ad slot

refreshSlotByName(slot_name)

Force event-based refresh for a specific ad slot*


*Time based refresh can be set in the UI

properSpaNewPage()

Initiate new pageview for Single Page App


*Starts new auction and removes expired bids


*Rebuild/Refresh existing ad slots in DOM


*Counts a new pageview

properSpaNewPageReset()

Initiate new pageview for Single Page App


*Starts new auction and removes expired bids


*Deletes dynamic slots. Resets dynamic slot numbers


*Counts a new pageview

properSpaNewPageView()

Counts a new pageview for Single Page App


*Does not refresh auction or slots

properInfNewPage()

Counts a new pageview


Builds new slots that have been added to the page

properSpaNewSection(ArrayOfSlotNamesToNotRefresh)

The same as properSpaNewPage but doesn?t count a pageview AND takes optional argument for slots to not refresh. This argument should be an array of strings.

properBuildSlots()

Builds new slots that have been added to the page

properDeleteSlot(slot_name)

Deletes a specific ad slot from the page and ad code

properDestroyDfpSlot(slot_name)

Destroys a specific slot, removing all related objects and references of the slot from GPT


*Similar to the GPT function googletag.destroySlots

disableRefreshByAdvertiserId= [ID];

Disable refresh for Direct campaigns by GAM Advertiser ID

runNewAuction();

Initiates new page level auction

Need more help? 

If you still have questions, please reach out to admanagement@sovrn.com

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.