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

Adds TemplateValidator #14584

Merged
merged 11 commits into from May 21, 2018
Merged

Adds TemplateValidator #14584

merged 11 commits into from May 21, 2018

Conversation

glevitzky
Copy link
Contributor

No description provided.

import {utf8Decode} from '../../../src/utils/bytes';

/** @const {string} */
export const AMP_TEMPLATED_CREATIVE_HEADER_NAME = 'AMP-template-amp-creative';
Copy link
Contributor

Choose a reason for hiding this comment

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

As stated in the design doc, we'd like to rename this to AMP-Ad-Template-Extension. Meantime, please make sure the we don't break AdZerk. So we might end of having both, until AdZerk getting migrated over.

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.

creativeData: {
creative: body,
},
adResponseType: 'template',
Copy link
Contributor

Choose a reason for hiding this comment

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

is this an enum?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed.

@glevitzky
Copy link
Contributor Author

What's with the presubmit error: "Please review viewport service for helper methods or mark with /*OK*/ or /*REVIEW*/ and consult the AMP team"? I do have the method marked with /*OK*/ .

import {utf8Decode} from '../../../src/utils/bytes';

/** @const {string} */
export const AMP_TEMPLATED_CREATIVE_HEADER_NAME = 'AMP-Ad-Template-Extension';
Copy link
Contributor

Choose a reason for hiding this comment

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

As I mentioned, can we accept both headers for now? So later we can easily migrate AdZerk over.

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. Sorry about the confusion.

@lannka
Copy link
Contributor

lannka commented May 21, 2018

For your presubmit error: the use of preloadExtension needs to be whitelisted: https://github.com/ampproject/amphtml/blob/master/build-system/tasks/presubmit-checks.js#L698

@lannka lannka merged commit 6af752b into ampproject:master May 21, 2018
@glevitzky
Copy link
Contributor Author

Addresses #15464.

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