8000 LiveYield Analytics Adapter DfP Support by hamsterready · Pull Request #3506 · prebid/Prebid.js · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

LiveYield Analytics Adapter DfP Support #3506

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

Merged
merged 14 commits into from Feb 26, 2019
Merged

LiveYield Analytics Adapter DfP Support #3506

merged 14 commits into from Feb 26, 2019

Conversation

hamsterready
Copy link
Contributor

Type of change

  • Feature

Description of change

Prebid.js quite often (:)) is being used with DfP and as such the final ad impression/revenue reporting shall take this under consideration. This PR allows one to pass DfP level details back to the LiveYield analytics server.

  • official adapter submission

hamsterready and others added 11 commits January 10, 2019 18:33
SRTA-399 Minor reformats

impression value fixed

changed path to rta params

corrections

resolveSlot fixed

postprocess() param fixed

docs update

imprVal(), imprPartner() impl added

SRTA-399 Docs, no console.log
@hamsterready hamsterready changed the title Srta 399 analytics adapter dfp support LiveYield Analytics Adapter DfP Support Feb 4, 2019
@bretg bretg requested a review from mike-chowla February 4, 2019 16:19
@mike-chowla
Copy link
Contributor

I tried testing this with the test params from #3443 but I'm getting the following error:
screen shot 2019-02-19 at 7 17 09 am

Could you add a comment with everything I need to get this to run?

@hamsterready
Copy link
Contributor Author

Sure thing... you can find the code snippet that you are looking for in the correspnding .md file. Here it is:

<script>
(function(i,s,o,g,r,a,m,z){i['RTAAnalyticsObject']=r;i[r]=i[r]||function(){
z=Array.prototype.slice.call(arguments);z.unshift(+new Date());
(i[r].q=i[r].q||[]).push(z)},i[r].t=1,i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','https://tracker.liveyield.com/pubocean-tracker.min.js',
'rta');
</script>

after that enable analytics using:

{
  provider: 'liveyield',
  options: {
    customerId: 'b4c106a4-a8cb-4321-a9d2-aec3cde2e64e',
    customerName: 'Prebid Test',
    customerSite: 'prebid-test.com',
    sessionTimezoneOffset: '-300'
  }
}

Let me know if you need anything more.

@mike-chowla
Copy link
Contributor

I'm getting a test failure:
screen shot 2019-02-22 at 5 23 51 pm

I test with your code on master sometimes these show up because a package was updated since you made the PR.

@hamsterready
Copy link
Contributor Author

Thank you for this @mike-chowla - master merged to our branch, fix applied. Tests are passing. Please retest.

Cheers

@mike-chowla mike-chowla merged commit eb50bd9 into prebid:master Feb 26, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants
0