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

AMP integration with Index Exchange #5944

Merged
merged 7 commits into from Nov 22, 2016
Merged

Conversation

indexexchange
Copy link

Added amp-ad tag of type "ix"

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

@indexexchange
Copy link
Author

I signed it!

@googlebot
Copy link

CLAs look good, thanks!

@IndexExchange-JerryLi
Copy link

IndexExchange-JerryLi commented Nov 1, 2016

Hey @lannka
I'll be the contact person for this integration.

I took a look at the CI results, there isn't any log outputs, do you happen to know what are the cases that failed?

Also I noted that you've been asking companies to implement renderStart and noContentAvailable. IndexExchange is an ad exchange, so we'll always return an ad for each request, so noContentAvailable will not be applicable to us. As for renderStart, we are planning on looking into it on the later update. It is not trivial at this moment to alert AMP when ads starts rendering.

Please let me know if you got any other questions,

Sincerely,
Jerry

@IndexExchange-JerryLi
Copy link

Looks like the logs were posted late, and I saw the problem. It is due to merge that the alphabetical order were changed. I'll be making an update and submit it again

@jridgewell
Copy link
Contributor

/to @lannka

@ixpaciga
Copy link
Contributor

ixpaciga commented Nov 1, 2016

Please note this should be covered under the corporate CLA signed with Index Exchange on Oct 24, 2016 11:04 PDT

@lannka lannka assigned zhouyx and unassigned lannka Nov 2, 2016
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.

Also please follow https://github.com/ampproject/amphtml/blob/master/ads/README.md#files-to-change here to include change for /extensions/amp-ad/amp-ad.md

@@ -0,0 +1,26 @@
/**
* Copyright 2015 The AMP HTML Authors. All Rights Reserved.
Copy link
Contributor

Choose a reason for hiding this comment

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

2016

* @param {!Window} global
* @param {!Object} data
*/
export function ix(global, data) {
Copy link
Contributor

Choose a reason for hiding this comment

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

I see that you request mandatory data attributes, and accept optional data attributes. I would recommend using the validateData here to check those attributes exist.
https://github.com/ampproject/amphtml/blob/master/3p/3p.js#L215

Choose a reason for hiding this comment

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

Hey Zouyx,
We considered using validataData during development. but we opted not to use it because:
Later updates to our ad server will not require changes within AMP. to remain flexible for future changes. We already validate all parameters on our end.

@@ -110,6 +110,7 @@
<a href="#gmossp" class="broken"></a> |
<a href="#ibillboard">iBILLBOARD</a> |
<a href="#imobile">I-Mobile</a> |
<a href="#ix">Index Exchange</a> |
Copy link
Contributor

Choose a reason for hiding this comment

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

please follow Alphabetical order.

@zhouyx
Copy link
Contributor

zhouyx commented Nov 3, 2016

@indexexchange @IndexExchange-JerryLi @ixpaciga Looks good in general, few comments.

@IndexExchange-JerryLi
Copy link

Thanks @zhouyx, I'll make the updates and submit the pull request again.

@zhouyx
Copy link
Contributor

zhouyx commented Nov 17, 2016

@IndexExchange-JerryLi Any update here?

@IndexExchange-JerryLi
Copy link

Sorry for the delay. We have pushed new changes. Let us know if everything is satisfactory.

@zhouyx
Copy link
Contributor

zhouyx commented Nov 17, 2016

also need to change amp-ad.md file

Also please follow https://github.com/ampproject/amphtml/blob/master/ads/README.md#files-to-change here to include change for /extensions/amp-ad/amp-ad.md

Another thing is we have a renderStart API that helps AMP to provide better ad loading experience.
Could you take a look and implement it (renderStart + noContentAvailable)?
Let me know if there's any question.

@IndexExchange-JerryLi
Copy link

We have updated the amp-ad.md file.

For noContentAvailable, we always return content for each request, so it is not applicable to us. As for renderStart, we are planning on looking into it on the later update. It is not trivial at this moment to alert AMP when ads starts rendering.

@zhouyx
Copy link
Contributor

zhouyx commented Nov 22, 2016

LGTM. ping @lannka to take a final look.

@zhouyx zhouyx merged commit c8a6e7a into ampproject:master Nov 22, 2016
@zhouyx
Copy link
Contributor

zhouyx commented Nov 22, 2016

Thanks @IndexExchange-JerryLi for the PR. Merged

Lith pushed a commit to Lith/amphtml that referenced this pull request Dec 22, 2016
* Add amp-ad support for Index Exchange

* fix alphabetical sorting of new ix config

* Updated alphabetical order using ix in ads.amp.html and corrected the year of copyright in ix.js.

* Add Index Exchange to amp-ad.md file
Lith pushed a commit to Lith/amphtml that referenced this pull request Dec 22, 2016
* Add amp-ad support for Index Exchange

* fix alphabetical sorting of new ix config

* Updated alphabetical order using ix in ads.amp.html and corrected the year of copyright in ix.js.

* Add Index Exchange to amp-ad.md file
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development

Successfully merging this pull request may close these issues.

None yet

8 participants