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

♻️ Opinary Ads: fix whitespace issue for AMS integration #34650

Merged

Conversation

akiirii
Copy link
Contributor

@akiirii akiirii commented Jun 2, 2021

Opinary AMP integration only supported the "automatic matching", where the Opinary algorithm decided what polls to show - sometimes it decided to do not to show any poll

Regarding information in the documentation:
If no ad is available for the slot, AMP attempts to collapse the amp-ad element (that is, set to display: none). AMP determines that this operation can be performed without affecting the user's scroll position. If the ad is in the current viewport, the ad will not be collapsed because it affects the user's scroll position; however, if the ad is outside of the current viewport, it will be collapsed.

Sometimes it keeps reserved space even any poll is displayed and is it problematic for publishers, in that case, we decided to reverse logic and we could reserve 1px height and in a case, we have a poll, try to expand it to 500x500 - in that case the risk for the client is much lower.

CC @torbenbrodt

@amp-owners-bot amp-owners-bot bot requested a review from calebcordry June 2, 2021 12:46
@CLAassistant
Copy link

CLAassistant commented Jun 2, 2021

CLA assistant check
All committers have signed the CLA.

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.

Thanks for maintaining this extension!

@calebcordry calebcordry enabled auto-merge (squash) June 2, 2021 16:25
@calebcordry calebcordry merged commit b5d55ee into ampproject:main Jun 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants