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

get dynamic ttl from the server response #5896

Merged
merged 8 commits into from
Nov 4, 2020
2 changes: 1 addition & 1 deletion modules/ironsourceBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export const spec = {
creativeId: body.requestId,
currency: body.currency,
netRevenue: body.netRevenue,
ttl: TTL,
ttl: body.ttl || TTL,
vastXml: body.vastXml,
mediaType: VIDEO
};
Expand Down
2 changes: 1 addition & 1 deletion test/spec/modules/ironsourceBidAdapter_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ describe('ironsourceAdapter', function () {
mediaType: VIDEO
}
];
const result = spec.interpretResponse({ body: [response] });
const result = spec.interpretResponse({ body: response });
expect(Object.keys(result[0])).to.have.members(Object.keys(expectedResponse[0]));
});
})
Expand Down