Skip to content

Add a8ad#8036

Merged
zhouyx merged 5 commits intoampproject:masterfrom
szk-fancs:addA8ad
Mar 24, 2017
Merged

Add a8ad#8036
zhouyx merged 5 commits intoampproject:masterfrom
szk-fancs:addA8ad

Conversation

@szk-fancs
Copy link
Copy Markdown
Contributor

Add A8 ad network for amp-ad.
Corporation name: F@NCommunications,Inc

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

@szk-fancs szk-fancs closed this Mar 9, 2017
@szk-fancs
Copy link
Copy Markdown
Contributor Author

Add A8 ad network for amp-ad.
Corporation name: F@NCommunications,Inc

@szk-fancs szk-fancs reopened this Mar 9, 2017
@googlebot
Copy link
Copy Markdown

CLAs look good, thanks!

@szk-fancs
Copy link
Copy Markdown
Contributor Author

Ping @lannka, @zhouyx
Sorry for ping you.
Please review PR.

}
for (let i = 0; i < allowedHostnames.length; i++) {
// Either the hostname is exactly as whitelisted
// Either the hostname is exactly as whitelisted...
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.

revert change here.

ads/a8.js Outdated
@@ -0,0 +1,27 @@
/**
* Copyright 2016 The AMP HTML Authors. All Rights Reserved.
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.

2017

ads/a8.md Outdated
@@ -0,0 +1,36 @@
<!---
Copyright 2016 The AMP HTML Authors. All Rights Reserved.
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.

2017

ads/a8.md Outdated
data-mat="2TCGYR-17GNXU-3L92-64Z8X"
data-type="static"
>
</amp-ad>```
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.

git won't recognize ``` in same line. new line instead

>
</amp-ad>```

## Configuration
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.

So data-aid is required, while other 5 params are optional. Let's document this here.

</div>

<h2 id="a8">A8</h2>
<amp-ad width="300" height="250"
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.

indentation please

data-mid="s00000016751001031000"
data-mat="2TCGYR-17GNXU-3L92-64Z8X"
data-type="static"
>
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.

same line please

ads/a8.md Outdated
@@ -0,0 +1,36 @@
<!---
Copyright 2016 The AMP HTML Authors. All Rights Reserved.
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.

2017

ads/a8.js Outdated
@@ -0,0 +1,27 @@
/**
* Copyright 2016 The AMP HTML Authors. All Rights Reserved.
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.

2017

@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

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

/to lannka zhouyx

  • ads/_config.js
  • ads/a8.js
  • ads/a8.md

/to camelburrito lannka

  • examples/ads.amp.html

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

@szk-fancs
Copy link
Copy Markdown
Contributor Author

@zhouyx Thank you for review! Oh...I'm so sorry. My code was not clean...
And I misunderstood it as a copyright notation of the project.
Because "year" is not usually updated.
I will fix it.

Cleaned indent.
Add params description.
@szk-fancs
Copy link
Copy Markdown
Contributor Author

@zhouyx
Fixed it.
Please check it, whenever convenient for you!
Thank you.

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.

LGTM with two more minor requests

ads/a8.js Outdated
* @param {!Object} data
*/
export function a8(global, data) {
validateData(data, ['aid'], ['wid','eno','mid','mat','type']);
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.

nit: space after ,

ads/a8.md Outdated
## Configuration

Required:data-aid
Optional:data-wid,data-eno,data-mid,data-mat,data-type
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.

nit: Please view the doc on git. You will notice they are in the same line. Please fix

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.

How about writing like this.

Required parameter:

  • data-aid

Optional parameters:

  • data-wid
  • data-eno
  • data-mid
  • data-mat
  • data-type

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.

looks great

@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/a8.js
  • ads/a8.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

@szk-fancs
Copy link
Copy Markdown
Contributor Author

@zhouyx

Thank you for your review!
I fixed it.

It's my first PR to open source project.
But I realized that my consideration was not enough at all.

You are really good at me.
Thank you my first reviewer!

@zhouyx zhouyx merged commit d9ff92b into ampproject:master Mar 24, 2017
@zhouyx
Copy link
Copy Markdown
Contributor

zhouyx commented Mar 24, 2017

@szk-fancs Thanks for the Pull Request! You are very welcome! This PR looks great, Merged.

lironzluf pushed a commit to lironzluf/amphtml that referenced this pull request Mar 28, 2017
* master: (34 commits)
  Prevent amp-carousel next/previous icons fade away on desktop (ampproject#8428)
  Turn on flag slidescroll-disable-css-snap” (ampproject#8436)
  Revert "temporarily turn off yarn (ampproject#8356)" (ampproject#8384)
  initial commit (ampproject#8404)
  Upgrades for Index Exchange amp-ad tags to report load statistics (ampproject#8054)
  amp-bind validation tweak (ampproject#8414)
  Fix an amp-instagram race condition (ampproject#8192)
  Use whitelist to restrict urlReplacement for scoped analytics element (ampproject#8360)
  Report active experiments in error logs (ampproject#8108)
  amp-bind: Catch exceptions in mutatedAttributesCallback (ampproject#8383)
  Fixing custom scroll-snap on IOS (ampproject#8391)
  Add experiment for using AmpContext class in integration.js (ampproject#8348)
  add (ampproject#8349)
  swipe api (ampproject#8357)
  skip 3 flaky tests (ampproject#8388)
  amp-bind: Expression complexity limit (ampproject#8321)
  add margin-bottom (ampproject#8350)
  Flying carpet: make container full viewport and center content (ampproject#8292)
  Service Registration: Document Click (ampproject#7882)
  Add a8ad (ampproject#8036)
  ...
@szk-fancs szk-fancs deleted the addA8ad branch April 5, 2017 07:44
mrjoro pushed a commit to mrjoro/amphtml that referenced this pull request Apr 28, 2017
* Support ads “A8” .

* Comment change.

* Add “renderStartImplemented=true”.

* Changed copyrights “2017”.
Cleaned indent.
Add params description.

* Changed writing format.
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