.collapse()

ad.collapse(callback)

Initiates the ad to collapse if in the expanded state

// Initiates the ad to expand if in collapsed state
ad.collapse(function() {
	//Callback
});

Arguments

ArugmentValueExample ValueDescription
callbackfunction() { }function() { stopVideo(); }A function to execute at the time the ad is collapsed.