Destroys the given slots, removing all related objects and references ofthose slots from GPT. This API does not support passback slots andcompanion slots. Calling this API on a slot clears the ad and removes the slot object fromthe internal state maintained by GPT. Calling any more functions on theslot object will result in undefined behavior. Note the browser may stillnot free the memory associated with that slot if a reference to it ismaintained by the publisher page.
Calling this API makes the div associatedwith that slot available for reuse. In particular, destroying a slot removes the ad from GPT’s long livedpageview, so future requests will not be influenced by roadblocks orcompetitive exclusions involving this ad. Failure to call this functionbefore removing a slot’s div from the page will result in undefinedbehavior. Configures whether all ads on the page should be forced to be renderedusing a SafeFrame container. Please keep the following things in mind while using this API: This setting will only take effect for subsequent ad requests made for the respective slots. The slot level setting, if specified, will always override the page level setting.
If set to true at slot level or page level, the ad will always be rendered using a SafeFrame container independent of the choice made in the Google Ad Manager UI. However, if set to false or left unspecified, the ad will be rendered using a SafeFrame container depending on the type of creative and the selection made in the Google Ad Manager UI. This API should be used with caution as it could impact the behaviour of creatives that attempt to break out of their iFrames or rely on them being rendered directly in a publishers page. Configures whether ads in this slot should be forced to be rendered usinga SafeFrame container. Please keep the following things in mind while using this API: This setting will only take effect for subsequent ad requests made for the respective slots.
The slot level setting, if specified, will always override the page level setting. If set to true at slot level or page level, the ad will always be rendered using a SafeFrame container independent of the choice made in the Google Ad Manager UI. However, if set to false or left unspecified, the ad will be rendered using a SafeFrame container depending on the type of creative and the selection made in the Google Ad Manager UI. This API should be used with caution as it could impact the behaviour of creatives that attempt to break out of their iFrames or rely on them being rendered directly in a publishers page.