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
adding sekindo ads #11935
adding sekindo ads #11935
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.
|
CLAs look good, thanks! |
Hello Amphtml team, Thanks, |
I signed 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.
@nissSK Sorry for the delay here!
The Pull Requests looks good. I left few comments.
@@ -623,6 +623,9 @@ export const adConfig = { | |||
|
|||
rubicon: {}, | |||
|
|||
sekindo: { | |||
renderStartImplemented: true, | |||
}, |
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: new line
ads/sekindo.js
Outdated
@@ -0,0 +1,45 @@ | |||
/** | |||
* 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: 2018
ads/sekindo.js
Outdated
export function sekindo(global, data) { | ||
validateData(data, ['spaceid']); | ||
const pubUrl = encodeURIComponent(global.context.sourceUrl); | ||
const excluedsSet = {ampSlotIndex: 1, type: 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.
nit: typo?
ads/sekindo.js
Outdated
} | ||
} | ||
} | ||
loadScript(global, 'https://live.sekindo.com/live/liveView.php?' + query, () => { |
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: 80 chars limit
ads/sekindo.md
Outdated
@@ -0,0 +1,33 @@ | |||
<!--- | |||
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: 2018
@@ -1194,6 +1194,12 @@ <h2>Rubicon Project Smart Tag</h2> | |||
json='{"visitor":{"age":"18-24","gender":"male"},"inventory":{"section":"amp"}}'> | |||
</amp-ad> | |||
|
|||
<h2>Sekindo</h2> |
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.
Please add your example to this form as well.
Also please sort them in alphabetic order. This goes after rubicon
|
||
__Required:__ | ||
|
||
- `data-spaceId` - Adunit unique id |
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.
Just FYI:
data-spaceId
will be converted to data['spaceid']
data-space-id
will be converted to data['spaceId']
@zhouyx Happy to see us in the queue :) |
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.
@sekindo Looks good to me.
To fix the percy test please rebase to master.
Travis fail because of lint check. Please fix indentation and sort function names in alphabetical order. You can use gulp lint
to check, and gulp lint --fix
for a quick auto fix.
ads/sekindo.js
Outdated
} | ||
} | ||
loadScript(global, | ||
'https://live.sekindo.com/live/liveView.php?' + query, () => { |
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.
please fix indentation to pass the lint check.
ads/sekindo.js
Outdated
* limitations under the License. | ||
*/ | ||
|
||
import {validateData, loadScript} from '../3p/3p'; |
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.
please sort in alphabetical order to fix lint check
@zhouyx , We committed the needed changes, I see that we are still failing on travis But I cant see how it's related to our changes. |
@sekindo Seems like a flaky test. All tests passed! Thanks for the Pull Request. Merged! |
No description provided.