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

NEW adapter AdtelligentBidAdapter #2137

Merged
merged 5 commits into from
Mar 22, 2018
Merged

Conversation

Millerrok
Copy link
Contributor

Type of change

  • Bugfix
  • Feature
  • New bidder adapter
  • Code style update (formatting, local variables)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • CI related changes
  • Does this change affect user-facing APIs or examples documented on http://prebid.org?
  • Other

Description of change

Add new adtelligentBidAdapter

  • test parameters for validating bids
 var adUnits = [

      // Video instream adUnit
      {
        code: 'div-test-div',
        sizes: [[640, 480]],
        mediaTypes: {
          video: {
            context: 'instream'
          }
        },
        bids: [{
          bidder: 'adtelligent',
          params: {
            aid: 332842
          }
        }]
      },

      // Video outstream adUnit
      {
        code: 'outstream-test-div',
        sizes: [[640, 480]],
        mediaTypes: {
          video: {
            context: 'outstream'
          }
        },
        bids: [{
          bidder: 'adtelligent',
          params: {
            aid: 332842
          }
        }]
      },

      // Banner adUnit
      {
        code: 'div-test-div',
        sizes: [[300, 250]],
        bids: [{
          bidder: 'adtelligent',
          params: {
            aid: 324758
          }
        }]
      }
    ];

Be sure to test the integration with your adserver using the Hello World sample page.

  • contact email of the adapter’s maintainer
  • official adapter submission

For any changes that affect user-facing APIs or example code documented on http://prebid.org, please provide:

Other information

@mike-chowla
Copy link
Contributor

If I configure 2 ad units on the page, I get an error. The error is done to the response body coming back from the bid endpoint being malformed JSON.

Here's what I get back:

"{}[{"source":{"aid":324758,"pubId":18173},"bids": [{"type": "DISPLAY","adid":"3B12EDC12741DC4A","cmpId":73860,"requestId":"232242423b6cda","width":300,"height":600,"cpm":1.7,"ad":"\u003cscript id=\"P3B12EDC12741DC4A\" type=\"text/javascript\" >(function(d){var wrapper = d.createElement(\"script\"); wrapper.id = \"W3B12EDC12741DC4A\";wrapper.type = \"text/javascript\";wrapper.src = \"http://ads59.adtelligent.com/display/?adid=3B12EDC12741DC4A&cb=636653250\";var s = d.getElementById(\"P3B12EDC12741DC4A\");s.parentNode.insertBefore(wrapper, s);}(document));\u003c/script>\u003cnoscript>\u003cimg border=\"0\" alt=\"\" src=\"http://ads59.adtelligent.com/tracking/error/?adid=3B12EDC12741DC4A&code=2505\">\u003c/noscript>","cur": "USD"}
]},]" 

Console Error Message: in response for adtelligent adapter
The error message, in this case, is not very good because the error message is generated only using the error message in the server response. If the server response is invalid, no useful error is given

@mike-chowla
Copy link
Contributor

There are also should be a test case for the multiple ad-slot test case

@Millerrok
Copy link
Contributor Author

@mike-chowla
Hi! Thanks for review.
Test for multi-request is added.
The response for adtelligent adapter is correct.

Best regards

@mike-chowla
Copy link
Contributor

I'm still getting an error with two ad slots on the page

screen shot 2018-02-22 at 4 40 21 pm

Here's my test page:
hello_world_2_ad_slots.html.zip

@Millerrok
Copy link
Contributor Author

@mike-chowla
Hi Mike,

Thanks for fully described flow of reproducing this issue.
The response for adtelligent adapter now is fixed.

Here is an example of response for adtelligent adapter:
http://hb.adtelligent.com/auction/?domain=localhost&callbackId=254afaa22cf733&aid=324758&ad_type=display&sizes=300x250%2C300x600&callbackId2=3aa1a0d1bbb9bd&aid2=324758&ad_type2=display&sizes2=300x250&

Best regards,
Max

@mkendall07 mkendall07 added this to the Prebid 1.5.0 milestone Feb 23, 2018
@mike-chowla
Copy link
Contributor

@Millerrok I don't see a commit that fixes the issue

@mkendall07 mkendall07 modified the milestones: Prebid 1.5.0, 1.6 Mar 8, 2018
@Millerrok
Copy link
Contributor Author

@mike-chowla
Hi Mike,

Thanks for review.
The test bid params for adtelligent adapter now is updated.

Best regards,
Max

@mike-chowla
Copy link
Contributor

I tried requesting with the new test bid params and I am not getting a bid back

screen shot 2018-03-19 at 5 48 20 pm

screen shot 2018-03-19 at 5 48 32 pm

@Millerrok
Copy link
Contributor Author

@mike-chowla
Hi Mike,

Thanks for review.
The test bid params for adtelligent adapter now is updated.

Here is an example of response for adtelligent adapter:
http://hb.adtelligent.com/auction/?domain=localhost&callbackId=28748347%D0%B0%D0%BF834%D0%B0%D0%BF&aid=350975&ad_type=display&sizes=300x250

Best regards,
Max

Copy link
Contributor

@mike-chowla mike-chowla left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Would be better if there were a test case for multiple ad slots.

@mike-chowla mike-chowla merged commit 57e2480 into prebid:master Mar 22, 2018
mifefr added a commit to mifefr/Prebid.js that referenced this pull request Mar 29, 2018
* 'master' of https://github.com/prebid/Prebid.js:
  EngageBDR New Bid Adapter (prebid#2309)
  [FEAT] adunit sizes support (prebid#2320)
  Support aliases in prebidServer (prebid#2257)
  Changing default currency file to https (prebid#2306)
  Update stalebot labels (prebid#2319)
  Enhance location detection within utils (prebid#2167)
  if cache markup is not enabled, set it to the default value 0 (prebid#2302)
  Serverbid Bid Adapter: Added archon alias (prebid#2293)
  Smart Ad Server: Fix bug when multi bids (prebid#2170)
  NEW adapter AdtelligentBidAdapter (prebid#2137)
  add optional param to bridgewellBidAdapter (prebid#2289)
  Increment Pre Version
  Prebid 1.6.0 Release
  Unit test fixes (prebid#2301)
  PBS videoCacheKey and vastUrl (prebid#2101)
  Add Oneplanetonly Bid Adapter (prebid#2269)
  firing new adRenderFailed event when renderAd() fails (prebid#2210)
  Add Content Ignite adapter (prebid#2268)
  add hb_cache_id, hb_uuid should be deprecated and replaced by hb_cache_id (prebid#2273)
  Update Yieldlab adapter and add official maintainer (prebid#2231)
  Update for Media.net adapter (prebid#2232)
  Update to Rubicon Adapter for mediaTypes support (prebid#2272)
  message formatting (prebid#2285)
  Yieldbot impression image creation fix (prebid#2277)
  Updated Bid params (prebid#2275)
  Audience Network: Add 'pbv' and 'cb' query params (prebid#2252)
  Add e-planning analytics adapter (prebid#2211)
  Add vastUrl for Gamma Adapter Video (prebid#2261)
  update params for test bid (prebid#2267)
  Updated adUnitCode (prebid#2262)
dluxemburg pushed a commit to Genius/Prebid.js that referenced this pull request Jul 17, 2018
* NEW Adtelligent Bid Adapter

* Update MD

* add test for multiple request

* cleanup

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

Successfully merging this pull request may close these issues.

None yet

4 participants