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

Introduce consentHandlingOverride for amp-ad #15285

Merged
merged 10 commits into from May 15, 2018

Conversation

lannka
Copy link
Contributor

@lannka lannka commented May 14, 2018

Closes #15269

@lannka lannka requested a review from zhouyx May 14, 2018 23:57
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.

Could you also add blockOnConsent here in this PR ?

@@ -160,6 +161,7 @@ export const adConfig = {
remoteHTMLDisabled: true,
masterFrameAccessibleType: 'google_network',
fullWidthHeightRatio: 1.2,
consentHandlingOverride: true,
Copy link
Contributor

@zhouyx zhouyx May 15, 2018

Choose a reason for hiding this comment

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

Copy link
Contributor

@zhouyx zhouyx May 15, 2018

Choose a reason for hiding this comment

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

need documentation here : )

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

3p/3p.js Outdated
@@ -272,6 +272,7 @@ function validateAllowedFields(data, allowedFields) {
location: true,
mode: true,
consentNotificationId: true,
consentHandlingOverride: true,
Copy link
Contributor

Choose a reason for hiding this comment

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

this should be blockOnConsent, the attribute is data-block-on-consent

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

Copy link
Contributor

Choose a reason for hiding this comment

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

I couldn't see the name change : )

Copy link
Contributor Author

Choose a reason for hiding this comment

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

woops. really done now. thanks!

@@ -160,6 +161,7 @@ export const adConfig = {
remoteHTMLDisabled: true,
masterFrameAccessibleType: 'google_network',
fullWidthHeightRatio: 1.2,
consentHandlingOverride: true,
Copy link
Contributor

@zhouyx zhouyx May 15, 2018

Choose a reason for hiding this comment

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

need documentation here : )

@zhouyx zhouyx merged commit df5ff90 into ampproject:master May 15, 2018
erwinmombay pushed a commit that referenced this pull request May 15, 2018
* Introduce `consentHandlingOverride` for amp-ad

* Introduce `consentHandlingOverride` for amp-ad

* address comments

* address comments

* Fix presubmit

* Extra lint fixes.

* woops

* Fix type-checks.

* Fix type-checks.
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