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
Conversation
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. What to do if you already signed the CLAIndividual signers
Corporate signers
ℹ️ Googlers: Go here for more info. |
I signed it! |
CLAs look good, thanks! ℹ️ Googlers: Go here for more info. |
Sorry for the delay in reviewing this @vkrapivin-sc! @lannka can you take a look? /cc @ampproject/wg-ads |
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.
Thanks for contributing. Just a couple of nits.
@@ -838,6 +838,8 @@ export const adConfig = { | |||
renderStartImplemented: true, | |||
}, | |||
|
|||
'rnetplus': {}, |
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.
FYI, preload/prefetch are popular options here if you know your creative will be requesting a certain file
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.
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.
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.
Sounds good.
ads/rnetplus.js
Outdated
@@ -0,0 +1,57 @@ | |||
/** | |||
* Copyright 2015 The AMP HTML Authors. All Rights Reserved. |
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.
nit: 2019
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.
Fixed
ads/rnetplus.md
Outdated
@@ -0,0 +1,36 @@ | |||
<!--- | |||
Copyright 2017 The AMP HTML Authors. All Rights Reserved. |
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.
nit: 2019
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.
Fixed
<amp-ad width="300" height="400" | ||
type="rnetplus" | ||
layout="responsive" | ||
src="https://api.rnet.plus/Scripts/rnet_amp_embed.js?blockId=660"> |
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.
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.
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.
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.
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.
SGTM.
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.
Thanks for contributing.
@vkrapivin-sc looks like you have some formatting errors. Can you run this command You can then run |
Hmm, I've checked this some time; but I see no any errors / warnings for ads/ folder. Seems I need some hints. |
@vkrapivin-sc do you have any output when you run 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. |
No problem, thanks for contributing! |
* amp-ad: adding RnetPlus ad exchange support * comments: 2019 year has been fixed * rnetplus: fixed formatting errors with CR/LF
* amp-ad: adding RnetPlus ad exchange support * comments: 2019 year has been fixed * rnetplus: fixed formatting errors with CR/LF
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.