Prebid.js icon indicating copy to clipboard operation
Prebid.js copied to clipboard

Keywords Issue with appnexusAst

Open Midgorn opened this issue 10 years ago • 9 comments

Hello,

I use appnexusAst adapter (in order to have no iframe creative), but it seems when i pass keywords (in order to add query string targeting), query param targeting doesn't work .

Midgorn avatar Aug 12 '16 09:08 Midgorn

@Midgorn Can you show the bidder configuration you are using? You most likely need to add the keywords object into the params for it to work.

mkendall07 avatar Aug 12 '16 13:08 mkendall07

For example :

{ code: 'pave_passback', sizes: [[300,250], [300, 600],[300,1000]], bids: [{ bidder: 'appnexusAst', params: { placementId: '5687329', keywords : {'myc':'46025827'} } }] }

Midgorn avatar Aug 12 '16 13:08 Midgorn

@Midgorn Are you using the latest build from master? We pushed an update yesterday that would have temporally removed this functionality. It should be back in master shortly.

mkendall07 avatar Aug 12 '16 14:08 mkendall07

Yes i use the last from master and i saw that this functionality was removed, so i built my own from master, added

tag.keywords = bid.params.keywords;

In appnexusAst adapter, in callBids function.

I can see the keyword object pass in the post request but it seems that it not work.

with this configuration

{ code: 'pave_passback', sizes: [[300,250], [300, 600],[300,1000]], bids: [{ bidder: 'appnexusAst', params: { placementId: '5687329', keywords : {'myc':'46025827'} } }] }

I should have a creative, but the prebid return nothing :/

(you can see that it here : http://ib.adnxs.com/tt?id=5687329&size=300x600&myc=46025827)

Midgorn avatar Aug 12 '16 14:08 Midgorn

Ok sorry about that. We will fix it in a day or so. If you really want to roll your own implementation - they should be passed like this:

"keywords": [{
                    "key": "key1",
                    "value": ["value1", "value2", "value3"]
                }, {
                    "key": "key2",
                    "value":  ["abc123"]
                }]

mkendall07 avatar Aug 12 '16 14:08 mkendall07

I try to passed it like it but doesn't work , even keyword param passed in request : capture d ecran 2016-08-12 a 16 46 21

Midgorn avatar Aug 12 '16 14:08 Midgorn

You have to actually pass key and value - see above example.

mkendall07 avatar Aug 12 '16 14:08 mkendall07

Yes sorry. But didn't work too :

capture d ecran 2016-08-12 a 17 07 10

capture d ecran 2016-08-12 a 17 08 50

Midgorn avatar Aug 12 '16 15:08 Midgorn

This should be working in master now. Usage is:

params : {
  keywords : { 
    key : 'value',
    key2 : 'value2'
  }
}

mkendall07 avatar Aug 13 '16 20:08 mkendall07