I experience some difficulty with google DFP with safeFrame, let me explain
I need to make an expandable ad, and i manage to do it with safeframe but when the user doesn't scroll enought, ad don't want to expand because $sf.ext.geom() limit depend of position of ad in user window.
Is there a way to force this expand from my main frame ?
Here my code :
$sf.ext.register(width, height);
function expand()
{
var expandHeight = Math.min(img.height - height, maxHeight);
var config = {push: true,t: 0,l: 0,r: 0,b: expandHeight};
$sf.ext.expand(config);
};
function collapse(){
$sf.ext.collapse();
};