Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Request to AdTech responds with 403 (Forbidden) #290

Closed
joyofdata opened this issue Mar 31, 2016 · 5 comments
Closed

Request to AdTech responds with 403 (Forbidden) #290

joyofdata opened this issue Mar 31, 2016 · 5 comments

Comments

@joyofdata
Copy link
Contributor

Hello!

prebid.js initiates a request to AdTech which looks as follows:

https://adserver.adtechus.com/pubapi/3.0/[placement-ID]/[network-ID]/0/0/ADTECH;cors=yes;cmd=bid;alias=[14 hexadecimal numbers];grp=[integer < 1000];misc=[large integer]

The only parameters set are placement and network and their values are those used in the URL above. So everything seems to be legitimate.

What might be the issue here?

Kind Regards

@mkendall07
Copy link
Member

Hi @joyofdata
Can you post your full configuration for AdTech please?

@Deimos01
Copy link

Deimos01 commented Apr 1, 2016

Hi,

Maybe it's linked to my problem here : #260 .
If you are using the european Adtech network, you have to change the JS version in the code (US by default).

I hope it could help :)

@joyofdata
Copy link
Contributor Author

@Deimos01
Thanks for your input. That does not seem to resolve the issue, though. What I did is I took the minified prebid.js and customized it by exchanging the string (window.location.protocol) + '//aka-cdn.adtechus.com/dt/common/DAC.js'

  • once with 'https://secure-ads.pictela.net/rm/marketplace/pubtaglib/0_4_0/pubtaglib_0_4_0.js' (as suggested by 4277d8b)
  • and then with (window.location.protocol) + '//aka-cdn.adtech.de/dt/common/DAC.js' (as suggested by you - AOL Adapter ADTECH_URI #260)

I could confirm that those JS-files where loaded but neither resolved the issue.

@joyofdata
Copy link
Contributor Author

@mkendall07

I should maybe also mention that the setup is supposed to implement post-bidding. The code which is served by DFP as a third-party creative is as follows:

<script type="text/javascript" src="//acdn.adnxs.com/prebid/prebid.js" async></script>
<script>
  var tagWidth = 300;
  var tagHeight = 250;

  var bids = [
    {
      bidder: 'aol',
      params: {
        placement: '4538',
        network: '5620600'
      }
    }
  ];

  var bidTimeOut = 5000;

  var passbackTagHtml = '<iframe src="#test"></iframe>';

  var pbjs = pbjs || {};
    pbjs.que = pbjs.que || [];

    var doNotChange = 'doNotChange';

    pbjs.que.push(function() {
        console.log("pbjs.que.push worked!");
        var adUnits = [{
            code: doNotChange,
            sizes: [[tagWidth, tagHeight]],
            bids: bids
        }];

        pbjs.addAdUnits(adUnits);

        pbjs.requestBids({
            timeout: bidTimeOut,
            bidsBackHandler: function() {
                var iframe = document.getElementById('postbid_if');
                var iframeDoc = iframe.contentWindow.document;
                var params = pbjs.getAdserverTargetingForAdUnitCode(doNotChange);

                // If any bidders return any creatives
                if(params && params['hb_adid']){
                    pbjs.renderAd(iframeDoc, params['hb_adid']);
                } else {
                    // If no bidder return any creatives,
                    // Passback 3rd party tag in Javascript
                    iframe.width = tagWidth;
                    iframe.height = tagHeight;
                    iframeDoc.write(passbackTagHtml);
                }
            }
        });
    });

    pbjs.que.push(function() {
      console.log("finalized");
      console.log(pbjs);
    });
</script>
<iframe id='postbid_if' FRAMEBORDER="0" SCROLLING="no" MARGINHEIGHT="0" MARGINWIDTH="0" TOPMARGIN="0" LEFTMARGIN="0" ALLOWTRANSPARENCY="true" WIDTH="0" HEIGHT="0"></iframe>

Both pbjs.que.push worked! and finalized are logged in the console. Then I get the error message in question:

DAC.js:3 
GET http://adserver.adtech.de/pubapi/3.0/5620600/4538/0/0/ADTECH;cors=yes;cmd=bid;alias=190ab28c6a7768;grp=416;misc=1459501251922 
403 (Forbidden)```

@joyofdata joyofdata reopened this Apr 1, 2016
@mkendall07
Copy link
Member

@joyofdata
You may need to contact AOL to enable header bidding on your account. I believe that should resolve the issue. Please open a new thread if you need further assistance.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants