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

✨Add RnetPlus ad exchange support to amp-ad #22024

Merged
merged 3 commits into from Jul 18, 2019

Conversation

vkrapivin-sc
Copy link
Contributor

Add RnetPlus ad exchange support to amp-ad

This is yet another Ad Network Exchange from Rambler&Co (also known as RNet+ or RNetPlus); technically it is Russian news exchange service across Russian big sites.

@googlebot
Copy link

Thanks for your pull request. It looks like this may be your first contribution to a Google open source project (if not, look below for help). Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

📝 Please visit https://cla.developers.google.com/ to sign.

Once you've signed (or fixed any issues), please reply here (e.g. I signed it!) and we'll verify it.


What to do if you already signed the CLA

Individual signers
Corporate signers

ℹ️ Googlers: Go here for more info.

@vkrapivin-sc
Copy link
Contributor Author

I signed it!

@googlebot
Copy link

CLAs look good, thanks!

ℹ️ Googlers: Go here for more info.

@mrjoro mrjoro requested a review from lannka May 15, 2019 21:01
@mrjoro
Copy link
Member

mrjoro commented May 15, 2019

Sorry for the delay in reviewing this @vkrapivin-sc! @lannka can you take a look?

/cc @ampproject/wg-ads

Copy link
Member

@calebcordry calebcordry left a comment

Choose a reason for hiding this comment

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

Thanks for contributing. Just a couple of nits.

@@ -838,6 +838,8 @@ export const adConfig = {
renderStartImplemented: true,
},

'rnetplus': {},
Copy link
Member

Choose a reason for hiding this comment

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

FYI, preload/prefetch are popular options here if you know your creative will be requesting a certain file

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thank you, but from the technical manner we have JSONP request and it cannot be precached. The images and other stuff are relied to server response and we cannot prefetch it too... Anyway I'll review code to think if we still have something to declare, thank you.

Copy link
Member

Choose a reason for hiding this comment

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

Sounds good.

ads/rnetplus.js Outdated
@@ -0,0 +1,57 @@
/**
* Copyright 2015 The AMP HTML Authors. All Rights Reserved.
Copy link
Member

Choose a reason for hiding this comment

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

nit: 2019

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed

ads/rnetplus.md Outdated
@@ -0,0 +1,36 @@
<!---
Copyright 2017 The AMP HTML Authors. All Rights Reserved.
Copy link
Member

Choose a reason for hiding this comment

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

nit: 2019

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed

@calebcordry calebcordry changed the title ✨ Add RnetPlus ad exchange support to amp-ad ✨Add RnetPlus ad exchange support to amp-ad May 15, 2019
<amp-ad width="300" height="400"
type="rnetplus"
layout="responsive"
src="https://api.rnet.plus/Scripts/rnet_amp_embed.js?blockId=660">
Copy link
Member

Choose a reason for hiding this comment

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

It is up to you but you may want to hardcode this url, and have the block-id be a separate attribute? May be less likely for your users to break.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Actually, it is little bit corporate specific, I am sorry.

In few words, without RNetPlus team, you have no chances to place certain block to your pages with desired content; the empty blocks displays nothing. So, from the other side of this tube, somebody need to collect couple of teasers to display and assign to the particular block.

As result, RNetPlus Team is always involved into embedding the teasers and it provides the code snippets to place teasers for AMP case and for casual web cases.

It means the exact form is not important.

But if the form will be important for somebody I able to redesign this piece, thank you.

Copy link
Member

Choose a reason for hiding this comment

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

SGTM.

@lannka lannka removed their request for review May 16, 2019 15:35
Copy link
Member

@calebcordry calebcordry left a comment

Choose a reason for hiding this comment

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

Thanks for contributing.

@calebcordry
Copy link
Member

@vkrapivin-sc looks like you have some formatting errors. Can you run this command gulp lint --local_changes --fix and see if the output is correct and commit?

You can then run gulp lint --local_changes and make sure it passes. Let me know if you need any help. Thanks

@vkrapivin-sc
Copy link
Contributor Author

Can you run this command gulp lint --local_changes --fix and see if the output is correct and commit?

Hmm, I've checked this some time; but I see no any errors / warnings for ads/ folder. Seems I need some hints.

@calebcordry
Copy link
Member

@vkrapivin-sc do you have any output when you run gulp lint? Here is the output I am seeing on travis :
Screen Shot 2019-07-17 at 9 39 47 AM

Looks like your editor is inserting carriage returns, and prettier wants you to remove them.

@vkrapivin-sc
Copy link
Contributor Author

Looks like your editor is inserting carriage returns, and prettier wants you to remove them.

Got it, thank you. It seems dos2unix conversion helped. Sorry for this mistake.

@calebcordry calebcordry merged commit 7729ae1 into ampproject:master Jul 18, 2019
@calebcordry
Copy link
Member

No problem, thanks for contributing!

rindo pushed a commit to logly/amphtml that referenced this pull request Jul 24, 2019
* amp-ad: adding RnetPlus ad exchange support

* comments: 2019 year has been fixed

* rnetplus: fixed formatting errors with CR/LF
thekorn pushed a commit to edelight/amphtml that referenced this pull request Sep 11, 2019
* amp-ad: adding RnetPlus ad exchange support

* comments: 2019 year has been fixed

* rnetplus: fixed formatting errors with CR/LF
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
New Ads Vendor PR
Awaiting triage
Development

Successfully merging this pull request may close these issues.

None yet

4 participants