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
AMP integration with Holder #6024
Conversation
Draft w/o lib
Signed-off-by: Anton Ornatskyi <a.ornatskyi@digital.umh.ua>
Signed-off-by: Anton Ornatskyi <a.ornatskyi@digital.umh.ua>
Lint checked Banner received
Signed-off-by: Anton Ornatskyi <a.ornatskyi@digital.umh.ua>
Draft w/o lib
Signed-off-by: Anton Ornatskyi <a.ornatskyi@digital.umh.ua>
Lint checked Banner received
Signed-off-by: Anton Ornatskyi <a.ornatskyi@digital.umh.ua>
We found a Contributor License Agreement for you (the sender of this pull request), but were unable to find agreements for the commit author(s). If you authored these, maybe you used a different email address in the git commits than was used to sign the CLA (login here to double check)? If these were authored by someone else, then they will need to sign a CLA as well, and confirm that they're okay with these being contributed to Google. |
CLAs look good, thanks! |
CLA completed |
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.
I noticed a slight delay between render-start and real ad rendering. Can you check if the render-start is called at the right place?
|
||
ibillboard: {}, |
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: keep the blank line after ibillboard
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
export function holder(global, data) { | ||
validateData(data, ['block'], ['ampSlotIndex']); | ||
const wcl = global.context.location, | ||
n = navigator.userAgent; |
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.
either end the previous line with ';', or indent 2 more spaces here.
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
const wcl = global.context.location, | ||
n = navigator.userAgent; | ||
let l = '&r' + Math.round((Math.random() * 10000000)); | ||
l += '&' + |
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.
merge into the previous line?
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
l += '&' + | ||
'h' + wcl.href; | ||
if (!(n.indexOf('Safari') != -1 && | ||
n.indexOf('Chrome') == -1)) { |
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.
move to previous line
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
/to @lannka Sorry, I put render-start as close to end of ad request as possible now. |
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.
I still see a half-second delay between loading indicator and ad render. it is a white blank.
* @param {!Object} data | ||
*/ | ||
export function holder(global, data) { | ||
validateData(data, ['block'], ['ampSlotIndex']); |
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.
no need for ampSlotIndex
. it's a known bug, you can ignore the harmless console error for now.
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.
Done
It's best I can achieve for now. :( |
@lannka Is it possible to merge PR 'as is' before I'd update back-end? Or I can remove render-start support until back-end will not support it. |
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.
Sure. That works
Thanks I'll add noContentAvailable() and make render-start faster in the week or two. |
* Draft w/o lib Draft w/o lib * Fix * Trying to setup local dev Signed-off-by: Anton Ornatskyi <a.ornatskyi@digital.umh.ua> * Draft Signed-off-by: Anton Ornatskyi <a.ornatskyi@digital.umh.ua> * preconnect Signed-off-by: Anton Ornatskyi <a.ornatskyi@digital.umh.ua> * Dropbox Signed-off-by: Anton Ornatskyi <a.ornatskyi@digital.umh.ua> * config Signed-off-by: Anton Ornatskyi <a.ornatskyi@digital.umh.ua> * Worked simple version Lint checked Banner received * holderamp lib v1 Signed-off-by: Anton Ornatskyi <a.ornatskyi@digital.umh.ua> * First PR candidate * Final, ready to PR * Draft w/o lib Draft w/o lib * Fix * Trying to setup local dev Signed-off-by: Anton Ornatskyi <a.ornatskyi@digital.umh.ua> * Draft Signed-off-by: Anton Ornatskyi <a.ornatskyi@digital.umh.ua> * Dropbox Signed-off-by: Anton Ornatskyi <a.ornatskyi@digital.umh.ua> * config Signed-off-by: Anton Ornatskyi <a.ornatskyi@digital.umh.ua> * Worked simple version Lint checked Banner received * holderamp lib v1 Signed-off-by: Anton Ornatskyi <a.ornatskyi@digital.umh.ua> * First PR candidate * Final, ready to PR * Final, ready to PR * Draft w/o lib Final version, ready to PR * Final version, ready for PR * holderamp lib v1 Signed-off-by: Anton Ornatskyi <a.ornatskyi@digital.umh.ua> * PR candidate * Final, ready to PR * Final ready to PR * Cookie request removed * var document - removed * Syntax fixes * ampSlotIndex removed
* Draft w/o lib Draft w/o lib * Fix * Trying to setup local dev Signed-off-by: Anton Ornatskyi <a.ornatskyi@digital.umh.ua> * Draft Signed-off-by: Anton Ornatskyi <a.ornatskyi@digital.umh.ua> * preconnect Signed-off-by: Anton Ornatskyi <a.ornatskyi@digital.umh.ua> * Dropbox Signed-off-by: Anton Ornatskyi <a.ornatskyi@digital.umh.ua> * config Signed-off-by: Anton Ornatskyi <a.ornatskyi@digital.umh.ua> * Worked simple version Lint checked Banner received * holderamp lib v1 Signed-off-by: Anton Ornatskyi <a.ornatskyi@digital.umh.ua> * First PR candidate * Final, ready to PR * Draft w/o lib Draft w/o lib * Fix * Trying to setup local dev Signed-off-by: Anton Ornatskyi <a.ornatskyi@digital.umh.ua> * Draft Signed-off-by: Anton Ornatskyi <a.ornatskyi@digital.umh.ua> * Dropbox Signed-off-by: Anton Ornatskyi <a.ornatskyi@digital.umh.ua> * config Signed-off-by: Anton Ornatskyi <a.ornatskyi@digital.umh.ua> * Worked simple version Lint checked Banner received * holderamp lib v1 Signed-off-by: Anton Ornatskyi <a.ornatskyi@digital.umh.ua> * First PR candidate * Final, ready to PR * Final, ready to PR * Draft w/o lib Final version, ready to PR * Final version, ready for PR * holderamp lib v1 Signed-off-by: Anton Ornatskyi <a.ornatskyi@digital.umh.ua> * PR candidate * Final, ready to PR * Final ready to PR * Cookie request removed * var document - removed * Syntax fixes * ampSlotIndex removed
* Draft w/o lib Draft w/o lib * Fix * Trying to setup local dev Signed-off-by: Anton Ornatskyi <a.ornatskyi@digital.umh.ua> * Draft Signed-off-by: Anton Ornatskyi <a.ornatskyi@digital.umh.ua> * preconnect Signed-off-by: Anton Ornatskyi <a.ornatskyi@digital.umh.ua> * Dropbox Signed-off-by: Anton Ornatskyi <a.ornatskyi@digital.umh.ua> * config Signed-off-by: Anton Ornatskyi <a.ornatskyi@digital.umh.ua> * Worked simple version Lint checked Banner received * holderamp lib v1 Signed-off-by: Anton Ornatskyi <a.ornatskyi@digital.umh.ua> * First PR candidate * Final, ready to PR * Draft w/o lib Draft w/o lib * Fix * Trying to setup local dev Signed-off-by: Anton Ornatskyi <a.ornatskyi@digital.umh.ua> * Draft Signed-off-by: Anton Ornatskyi <a.ornatskyi@digital.umh.ua> * Dropbox Signed-off-by: Anton Ornatskyi <a.ornatskyi@digital.umh.ua> * config Signed-off-by: Anton Ornatskyi <a.ornatskyi@digital.umh.ua> * Worked simple version Lint checked Banner received * holderamp lib v1 Signed-off-by: Anton Ornatskyi <a.ornatskyi@digital.umh.ua> * First PR candidate * Final, ready to PR * Final, ready to PR * Draft w/o lib Final version, ready to PR * Final version, ready for PR * holderamp lib v1 Signed-off-by: Anton Ornatskyi <a.ornatskyi@digital.umh.ua> * PR candidate * Final, ready to PR * Final ready to PR * Cookie request removed * var document - removed * Syntax fixes * ampSlotIndex removed
Please check the Holder (ukrainian ad network) implementation for amp-ad
I have a Google Individual CLA.
Anton Ornatskyi