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

✨ Remixd AMP ad-tag implementation #30030

Closed
wants to merge 6 commits into from

Conversation

glendza1
Copy link
Contributor

The implementation of the ad-tag for the Remixd player.

@google-cla
Copy link

google-cla bot commented Aug 28, 2020

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 with @googlebot 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.

@amp-owners-bot
Copy link

amp-owners-bot bot commented Aug 28, 2020

Hey @ampproject/wg-caching! These files were changed:

validator/testdata/feature_tests/ads.html

Copy link
Contributor

@honeybadgerdontcare honeybadgerdontcare left a comment

Choose a reason for hiding this comment

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

validator test file change lgtm

ads/remixd.js Outdated Show resolved Hide resolved
ads/remixd.md Outdated Show resolved Hide resolved
@lgtm-com
Copy link

lgtm-com bot commented Aug 28, 2020

This pull request introduces 1 alert when merging 3f5e0f2 into 084be74 - view on LGTM.com

new alerts:

  • 1 for Call to eval-like DOM function

@calebcordry
Copy link
Member

calebcordry commented Aug 28, 2020

Thanks for contributing! Looks like you have a couple of lint errors. You can expose those using gulp lint, and try to fix using gulp lint --fix or check out more details here

Also I think you need to generate a new validator .out file (docs) for your new tag.

Let me know if you need help with the CLA, or feel free to ping me when you get it sorted.

@google-cla
Copy link

google-cla bot commented Sep 15, 2020

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 with @googlebot 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.

@lgtm-com
Copy link

lgtm-com bot commented Sep 15, 2020

This pull request introduces 1 alert when merging 2c4c9db into e7a2b26 - view on LGTM.com

new alerts:

  • 1 for Call to eval-like DOM function

@glendza1
Copy link
Contributor Author

@googlebot I signed it!

@google-cla
Copy link

google-cla bot commented Sep 22, 2020

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 with @googlebot 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.

@twifkak twifkak removed the request for review from alin04 September 28, 2020 19:53
Copy link
Member

@twifkak twifkak left a comment

Choose a reason for hiding this comment

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

@calebcordry Any other comments or approval blockers?

(Hi everybody. Just interjecting because we saw this during a bug scrub.)

ads/_config.js Show resolved Hide resolved
ads/remixd.js Outdated Show resolved Hide resolved
const sriptVersion = data.version || '5';
const tagUrl = 'https://tags.remixd.com/player/v'+ sriptVersion +'/index.js?cb=' + Math.random();

document.write(
Copy link
Member

Choose a reason for hiding this comment

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

Please use loadScript or writeScript from 3p.js here

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The reason we are not using writeScript is that the script we need to write needs to have an id set. I saw that writeScript doesn't have an option to set the element id, do you have any other suggestion or can we keep the code like this?

Copy link
Member

Choose a reason for hiding this comment

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

Yeah I guess not, so this is ok. Can you change it to use the passed in global.document though? Accessing document directly may do weird things based on different serving contexts.

@calebcordry
Copy link
Member

Looks like we still need to sort out the CLA. @glendza let us know if you need assistance. Thanks!

@google-cla
Copy link

google-cla bot commented Sep 30, 2020

We found a Contributor License Agreement for you (the sender of this pull request), but were unable to find agreements for all the commit author(s) or Co-authors. 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.
In order to pass this check, please resolve this problem and then comment @googlebot I fixed it.. If the bot doesn't comment, it means it doesn't think anything has changed.

ℹ️ Googlers: Go here for more info.

@lgtm-com
Copy link

lgtm-com bot commented Sep 30, 2020

This pull request introduces 1 alert when merging 0e5b11e into 9d1aeee - view on LGTM.com

new alerts:

  • 1 for Call to eval-like DOM function

@google-cla
Copy link

google-cla bot commented Oct 2, 2020

We found a Contributor License Agreement for you (the sender of this pull request), but were unable to find agreements for all the commit author(s) or Co-authors. 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.
In order to pass this check, please resolve this problem and then comment @googlebot I fixed it.. If the bot doesn't comment, it means it doesn't think anything has changed.

ℹ️ Googlers: Go here for more info.

@glendza1
Copy link
Contributor Author

glendza1 commented Oct 2, 2020

The CLA was already signed by our CEO, under Remixd Media, Inc. Is there anything else we need to do?

@lgtm-com
Copy link

lgtm-com bot commented Oct 2, 2020

This pull request introduces 1 alert when merging db8c76f into 749b8de - view on LGTM.com

new alerts:

  • 1 for Call to eval-like DOM function

@googlebot
Copy link

We found a Contributor License Agreement for you (the sender of this pull request), but were unable to find agreements for all the commit author(s) or Co-authors. 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.
In order to pass this check, please resolve this problem and then comment @googlebot I fixed it.. If the bot doesn't comment, it means it doesn't think anything has changed.

ℹ️ Googlers: Go here for more info.

@calebcordry
Copy link
Member

re: CLA it looks like your commits are fine, but there are a couple commits in this pr from an author with a nativo domain and a localhost domain that are not covered under the CLA

You also still have a couple lint errors, and will need to generate the new validator.out files to pass the CI tests.

@glendza1 glendza1 closed this Oct 8, 2020
@glendza1 glendza1 deleted the remixd branch October 8, 2020 08:35
calebcordry pushed a commit that referenced this pull request Oct 15, 2020
* AMP tag implementation for the Remixd player

* Linting/test fixes.

* Bad character fix

* Linting fixes
ed-bird pushed a commit to ed-bird/amphtml that referenced this pull request Dec 10, 2020
* AMP tag implementation for the Remixd player

* Linting/test fixes.

* Bad character fix

* Linting fixes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants