Skip to content

Add fluct to amp-ad support#8176

Merged
zhouyx merged 1 commit intoampproject:masterfrom
voyagegroup:fluct-amp-ad
May 5, 2017
Merged

Add fluct to amp-ad support#8176
zhouyx merged 1 commit intoampproject:masterfrom
voyagegroup:fluct-amp-ad

Conversation

@saxsir
Copy link
Copy Markdown
Contributor

@saxsir saxsir commented Mar 16, 2017

Hi, we want to add fluct into the supported SSP for amp-ad.

We have signed Google Corporate CLA.

Corporation name: fluct, Inc.

Thank you very much !

@ampprojectbot
Copy link
Copy Markdown
Member

Hi, ampproject bot here! Here are a list of the owners that can approve your files.

You may leave an issue comment stating "@ampprojectbot retry!" to force me to re-evaluate this Pull Request's status

/to cramforce dvoytenko jridgewell

  • 3p/integration.js
  • extensions/amp-ad/amp-ad.md

/to lannka zhouyx

  • ads/_config.js
  • ads/fluct.js
  • ads/fluct.md

/to camelburrito lannka

  • examples/ads.amp.html

For any issues please file a bug at https://github.com/google/github-owners-bot/issues

@googlebot
Copy link
Copy Markdown

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. I signed it!) and we'll verify. Thanks.


  • If you've already signed a CLA, it's possible we don't have your GitHub username or you're using a different email address. Check your existing CLA data and verify that your email is set on your git commits.
  • If you signed the CLA as a corporation, please let us know the company's name.

@saxsir
Copy link
Copy Markdown
Contributor Author

saxsir commented Mar 21, 2017

@ampprojectbot retry!

@googlebot
Copy link
Copy Markdown

CLAs look good, thanks!

@ampprojectbot
Copy link
Copy Markdown
Member

Hi, ampproject bot here! Here are a list of the owners that can approve your files.

You may leave an issue comment stating "@ampprojectbot retry!" to force me to re-evaluate this Pull Request's status

/to cramforce dvoytenko jridgewell

  • 3p/integration.js

/to lannka zhouyx

  • ads/_config.js
  • ads/fluct.js
  • ads/fluct.md

/to camelburrito lannka

  • examples/ads.amp.html

/to lannka zhouyx

  • extensions/amp-ad/amp-ad.md

For any issues please file a bug at https://github.com/google/github-owners-bot/issues

@saxsir
Copy link
Copy Markdown
Contributor Author

saxsir commented Mar 22, 2017

@lannka Hi, now CI test has all passed, I would like you to review our code.

@saxsir
Copy link
Copy Markdown
Contributor Author

saxsir commented Apr 21, 2017

@zhouyx Could you review this PR?

type="fluct"
data-g="1000067784"
data-u="1000101409">
<div placeholder></div>
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

with default placeholder supported. no need to add placeholder and fallback here.

- [E-Planning](../../ads/eplanning.md)
- [Ezoic](../../ads/ezoic.md)
- [FlexOneELEPHANT](../../ads/f1e.md)
- [fluct](../../ads/fluct.md)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Fluct please

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Our corporate name is "fluct"(not "Fluct").

https://corp.fluct.jp/en/


For more information, please [contact us](https://corp.fluct.jp/en/contact.php).

Supported parameters:
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

From your code, data-g and data- should be mandatory. please indicate they're required in the doc.

ads/fluct.js Outdated
*/
export function fluct(global, data) {
validateData(data, ['g', 'u']);
writeScript(global, `https://cdn-fluct.sh.adingo.jp/f.js?G=${data['g']}`, function() {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

use encodeURIComponent to wrap data['g'] please

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

please follow the max 80 characters rule.

'https://cdn-fluct.sh.adingo.jp',
'https://s.sh.adingo.jp',
'https://i.adingo.jp',
],
Copy link
Copy Markdown
Contributor

@zhouyx zhouyx Apr 21, 2017

Choose a reason for hiding this comment

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

Please consider implementing the render-start and no-content-available APIs (see Available APIs), which helps AMP to provide user a much better ad loading experience.

Please let me know if there's any question

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

We are not supported API which kind of detect ad status(start rendring and no content) yet.

saxsir pushed a commit to voyagegroup/amphtml that referenced this pull request Apr 27, 2017
saxsir pushed a commit to voyagegroup/amphtml that referenced this pull request Apr 27, 2017
saxsir pushed a commit to voyagegroup/amphtml that referenced this pull request Apr 27, 2017
@saxsir
Copy link
Copy Markdown
Contributor Author

saxsir commented Apr 27, 2017

@zhouyx

Thank you for your review.
We fixed some points you commented, please have a look.

@saxsir
Copy link
Copy Markdown
Contributor Author

saxsir commented Apr 27, 2017

@ampprojectbot retry!

Copy link
Copy Markdown
Contributor

@zhouyx zhouyx left a comment

Choose a reason for hiding this comment

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

@saxsir LGTM. Just one minor request

ads/fluct.js Outdated
export function fluct(global, data) {
validateData(data, ['g', 'u']);
writeScript(global,
`https://cdn-fluct.sh.adingo.jp/f.js?G=${encodeURIComponent(data['g'])}`,
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

extra indentation needed for code can't fall in one line. (need 2 more here and below).

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

@zhouyx Thx, added indent here.

@saxsir
Copy link
Copy Markdown
Contributor Author

saxsir commented May 1, 2017

Fixed indent.

@zhouyx
Copy link
Copy Markdown
Contributor

zhouyx commented May 1, 2017

@saxsir LGTM. Please rebase to sync with master in order to make travis green.

@zhouyx zhouyx self-assigned this May 1, 2017
saxsir pushed a commit to voyagegroup/amphtml that referenced this pull request May 2, 2017
Remove placeholder and fallback

ampproject#8176 (comment)

Add required param description

ampproject#8176 (comment)

Use encodeURIComponent

ampproject#8176 (comment)
ampproject#8176 (comment)

indent
@saxsir
Copy link
Copy Markdown
Contributor Author

saxsir commented May 2, 2017

rebased.

@zhouyx Thank you very much!

@zhouyx
Copy link
Copy Markdown
Contributor

zhouyx commented May 4, 2017

Oops. @saxsir seems someone changes amp-ad.md as well. Please rebase again to fix the conflict, and then it should be good to be merged.

Remove placeholder and fallback

ampproject#8176 (comment)

Add required param description

ampproject#8176 (comment)

Use encodeURIComponent

ampproject#8176 (comment)
ampproject#8176 (comment)

indent
@saxsir
Copy link
Copy Markdown
Contributor Author

saxsir commented May 5, 2017

Oh... rebased. @zhouyx

@zhouyx
Copy link
Copy Markdown
Contributor

zhouyx commented May 5, 2017

@saxsir Thanks for the Pull Request. Merged.

@zhouyx zhouyx merged commit 88cc483 into ampproject:master May 5, 2017
@tetsuharuohzeki tetsuharuohzeki deleted the fluct-amp-ad branch May 11, 2017 04:32
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.

5 participants