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

Integrating Ad.Style to AMP #24264

Merged
merged 6 commits into from Sep 26, 2019
Merged

Conversation

ZagiMo
Copy link
Contributor

@ZagiMo ZagiMo commented Aug 28, 2019

This is the integration of Ad.Style to AMP.
Contributor License Agreement already signed.

@ZagiMo
Copy link
Contributor Author

ZagiMo commented Sep 23, 2019

Friendly ping for a review. Thank you!

@lannka lannka requested review from calebcordry and removed request for lannka September 23, 2019 22:27
@calebcordry
Copy link
Member

@leonidvolinski Could you also add your network to extensions/amp-ad/amp-ad.md? Thanks!

Copy link
Member

@calebcordry calebcordry left a comment

Choose a reason for hiding this comment

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

Just a question around renderStart and the docs nit. Other than that LGTM. Thanks again!

ads/_config.js Outdated
@@ -193,6 +193,8 @@ const adConfig = jsonConfiguration({
preconnect: 'https://ad.ad-stir.com',
},

'adstyle': {},
Copy link
Member

Choose a reason for hiding this comment

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

I see your not using renderStart here, we recommend implementing it if possible, should help with UX and get some performance gains. It is optional.

@@ -271,6 +271,7 @@ See [amp-ad rules](https://github.com/ampproject/amphtml/blob/master/extensions/
- [Aniview](../../ads/aniview.md)
- [AppNexus](../../ads/appnexus.md)
- [AppVador](../../ads/appvador.md)
- [AdStyle](../../ads/adstyle.md)
Copy link
Member

Choose a reason for hiding this comment

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

nit: please sort alphabetically.

ads/_config.js Outdated
@@ -193,6 +193,12 @@ const adConfig = jsonConfiguration({
preconnect: 'https://ad.ad-stir.com',
},

'adstyle': {
renderStartImplemented: true,
Copy link
Member

Choose a reason for hiding this comment

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

Great that you decided to implement this, but I do not see this callback being executed. Can you confirm you are calling this in you external JS? If you are unable to do so you should remove this flag (keep the prefetch and preconnect) as you will suffer a small penalty if the runtime is waiting for this signal but it is never called.

Copy link
Member

@calebcordry calebcordry left a comment

Choose a reason for hiding this comment

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

LGTM thanks for contributing!

@calebcordry calebcordry merged commit 9b967ef into ampproject:master Sep 26, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants