-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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-ad type=taboola #1515
amp-ad type=taboola #1515
Conversation
Thanks for your pull request. It looks like this may be your first contribution to a Google open source project. 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, please reply here (e.g.
|
Sorry, I did not realize there were overlapping PRs. Made comments on #1518. I believe we should land only this one. |
}; | ||
|
||
validateData(data, ['publisher', 'placement', 'mode']); | ||
validateExactlyOne(data, ['article', 'video', 'photo', 'search', 'category', 'homepage', 'others']); |
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.
Can we move the above lines outside the taboola
function? I'm pretty sure they're stateless, which will give marginal benefits when using multiple ads.
a0c4731
to
264f137
Compare
CLAs look good, thanks! |
@cramforce handled your comments form #1518 squashed and rebased. |
@nitzanvolman if it directly concerns |
thanks @dvoytenko - so just to clarify, amp will still respond to resize messages from and amp-ad, just the |
264f137
to
6c0037b
Compare
@nitzanvolman I believe this is correct. I'll ask @sriramkrish85 to chime in. |
Awesome, in that case i think we are ready @dvoytenko - unless anyone sees any issues we missed. |
@dvoytenko @nitzanvolman is correct - amp will still respond to resize messages from and amp-ad and does not need a |
@@ -35,12 +35,14 @@ import {twitter} from './twitter'; | |||
import {register, run} from '../src/3p'; | |||
import {parseUrl} from '../src/url'; | |||
import {assert} from '../src/asserts'; | |||
import {taboola} from '../ads/taboola'; |
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 added a mechanism to whitelist which embed types are allowed to use amp-embed
. After rebasing add yourself to AMP_EMBED_ALLOWED
in this file.
6c0037b
to
4a34370
Compare
Thanks for your pull request. It looks like this may be your first contribution to a Google open source project. 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, please reply here (e.g.
|
Re-running tests as that might have been a flake. Please squash commits and we can merge this. Thanks! |
4a34370
to
7fb6543
Compare
CLAs look good, thanks! |
7fb6543
to
4c88096
Compare
4c88096
to
79a58e5
Compare
Rebased, squashed. |
LGTM and merged. Thanks! |
Provides support for amp-ad type=taboola