-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Reviving and moving to prebid 3.0 of smartyAds bi adapter #4671
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @Aigolkin1991,
Thanks for the PR. Your change looks fine, but there are a few things that you might wanna change.
- The command
gulp test
is failing due to some error in one of your files. - Your unit test file is not following our naming standards. It should be like this, ""YourAdapterName"_spec.js"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unfortunately, I see command, gulp test
still failing.
Also, I'd like to test the calls to your SSP if they're returning the correct response or not for all three mediaTypes, banner, video and native.
Can you confirm if the examples provided in the md
will work?
Can you, please, point me, where gulp test errors occurs - github ci/cd doesn't show any the same as local test . Here is terminl output: Finished in 6.601 secs / 3.564 secs @ 15:02:55 GMT+0200 (Eastern European Standard Time) SUMMARY: |
For some reason i'm not seeing error even running gulp test from local work space, but i fixed error using you output |
Hi @Aigolkin1991, Thanks for fixing the test case. It's strange that you're not able to see the error. But anyways, it's gone now. I was testing your Banner, Native and Video with the test parameters that you've provided in your md file. For Banner, I see any problem, but bid responses coming for the native and video didn't seem right. First, let's talk about native.
It has the mediaType property set to banner, instead of native. For your reference, here's a response for native request from Appnexus adapter. As you can see, all the native assets are bundled against the native object. About, your video bid Response,
I think your adapter supports instream video but it would be better if, in the md file, you can mention the context field as well. Thanks and let me know if there's any confusion in what I wrote. |
Thanks for native example. I've packed assets into native object on backend side. As for video bids with media type banner - this was due to this line of code in our adapter |
Hi @Aigolkin1991, Thanks for making the changes. I see that your instream video response is well formed. Would be great if you can,
Add a key context to indicate that you support instream videos. This way, it'll be easier for reviewers in future to understand you support instream video media type. Your native mediaType is still not formatted properly.
Also, don't you think, in this particular line, it should now be:
instead of:
This holds true since you now have moved these properties inside the native object. Let me know if you have any questions. Thanks. |
Thanks for review, i've made changes into adapter and backend side |
I still see property clickUrl not inside the native object. Please make this change because validation fails, saying " Prebid ERROR: Invalid bid from smartyads. Ignoring bid: Native bid missing some required properties." Also, I see 3 test cases failing. You can run the command |
Hi @Aigolkin1991, Thanks for fixing the unit test cases and moving the property clickUrl inside the native object. I think there's still a small typo in the response object due to which I am getting this error. You've misspelled icon as ico. |
I've fixed that on our backendside |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
* revive smarty sadapter, upgrade to 3.0 * revive smarty adapter, upgrade to 3.0 * name change * fix * fix * Update smartyadsBidAdapter.md * remove propertie deation * video context, native validness check * fix test
Type of change
Description of change
Reviving and moving to prebid 3.0 of smartyAds bi adapter