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

Adding a new ad network - AdPicker #13171

Merged
merged 12 commits into from Mar 20, 2018

Conversation

Shun0750
Copy link

We added our ad network "AdPicker".
Could you review our commits?

  • We signed a CLA. (Google group name: hitokuse)
  • We integrated renderStart and noContent API
  • All tests have passed.

@googlebot
Copy link

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 on your commit. Check your existing CLA data and verify that your email is set on your git commits.
  • If your company signed a CLA, they designated a Point of Contact who decides which employees are authorized to participate. You may need to contact the Point of Contact for your company and ask to be added to the group of authorized contributors. If you don't know who your Point of Contact is, direct the project maintainer to go/cla#troubleshoot. The email used to register you as an authorized contributor must be the email used for the Git commit.
  • In order to pass this check, please resolve this problem and have the pull request author add another comment and the bot will run again. If the bot doesn't comment, it means it doesn't think anything has changed.

@Shun0750
Copy link
Author

Shun0750 commented Feb 1, 2018

I signed it! (Google group name: hitokuse)

@googlebot
Copy link

CLAs look good, thanks!

@googlebot googlebot added cla: yes and removed cla: no labels Feb 9, 2018
@cathyxz cathyxz added this to TODO in 3P Ads & Analytics Support via automation Feb 27, 2018
Copy link
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.

Looks good in general. Few comments.

ads/adpicker.js Outdated
validateData(data, ['ph']);
const url = 'https://cdn.adpicker.net' +
'/ads/main.js?et=amp' +
'&ph=' + data.ph +
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: encodeURIComponent(data.ph)?

ads/adpicker.md Outdated
Supported parameters:

**Required**
- width: required by amp
Copy link
Contributor

Choose a reason for hiding this comment

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

FYI: It is not always the case that AMP require both width and height. Please refer to supported amp-ad doc here.
Please only specify parameters required by your ad network here. If you want to add instructions on how to use the <amp-ad>, you can refer to our README here.

@@ -349,6 +350,12 @@ <h2>AdOcean</h2>
>
</amp-ad>

<h2>AdPicker</h2>
<amp-ad width="300" height="250"
type="adpicker"
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: indentation.

@@ -349,6 +350,12 @@ <h2>AdOcean</h2>
>
</amp-ad>

<h2>AdPicker</h2>
Copy link
Contributor

Choose a reason for hiding this comment

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

I tried to test with your ad. But it returns a no content ad to me. Could you provide a fake/demo ad example here for us to test. Thanks.

@zhouyx zhouyx self-assigned this Mar 2, 2018
@zhouyx zhouyx moved this from TODO to In Review in 3P Ads & Analytics Support Mar 2, 2018
@Shun0750
Copy link
Author

Shun0750 commented Mar 7, 2018

Thank you so much for your review @zhouyx !!
I checked your review and I fixed all the requirements, as well as added a sample ad creative for testing.
I would really appreciated it, if you could check it again.

Copy link
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.

@Shun0750 Looks good. I have one final comment. Please let me know if I should merge this PR. Thanks.

ads/adpicker.md Outdated
Supported parameters:

**Required**
- width: width of ad area
Copy link
Contributor

Choose a reason for hiding this comment

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

Please see my comment before

FYI: It is not always the case that AMP require both width and height. Please refer to supported amp-ad doc here.

Is there a reason that you require width and height to be set? Or is there a reason that you want to document them here? Otherwise we would generally not advice you to document these two attribute here because they are not specific to your adpicker ad network.

I'll leave the final decision to you.

@Shun0750
Copy link
Author

@zhouyx Thank you so much for your review! I removed width/height requirements according to your advice.

@zhouyx zhouyx merged commit 3572889 into ampproject:master Mar 20, 2018
3P Ads & Analytics Support automation moved this from In Review to Done Mar 20, 2018
@zhouyx
Copy link
Contributor

zhouyx commented Mar 20, 2018

@Shun0750 Thanks for the Pull Request! Merged!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Development

Successfully merging this pull request may close these issues.

None yet

3 participants