meumobi / AMS.Connect

1 stars 0 forks source link

Rubicon adjusting fields (sizeIds 2 and 10) is not occuring #50

Closed vdias38 closed 7 years ago

vdias38 commented 7 years ago

https://github.com/meumobi/AMS.Connect/commit/93fb5d7eb935e26e493a3c6e1abde2da125f49ea#commitcomment-21759041

vdias38 commented 7 years ago

I've checked behavior of 395228-2 on 2017-03-01: date: 2017-03-01 impr. reçues: 17978 impr. prise: 4513, key: 395228-2, impressions envoyees: - (from adserving)

If we follow rule of adjustFields on rubicon AMS.Connect should do: impr. envoyées (395228-2) = impr. reçues (395228-57) - impr. prises (395228-57) => 31126 - 12354 = 18772 Instead of 18772 expected AMS.Connect returns NA. See below items returned by rubicon API:

    "date": "2017-03-01",
    "zone_id": "395228",
    "site": "Le Rugbynistere",
    "revenue": 1.5587429962179158,
    "size": "Leaderboard (728x90) ",
    "ecpm": 0.3453895404870188,
    "zone": "Le Rugbynistere_ATF",
    "paid_impression": 4513,
    "site_id": "83484",
    "size_id": "2",
    "impressions": 17978

    "date": "2017-03-01",
    "zone_id": "395228",
    "site": "Le Rugbynistere",
    "revenue": 9.950889042811468,
    "size": "IAB Billboard (970x250) ",
    "ecpm": 0.8054791195411581,
    "zone": "Le Rugbynistere_ATF",
    "paid_impression": 12354,
    "site_id": "83484",
    "size_id": "57",
    "impressions": 31126