-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
Create amp-ad-custom.md. #24277
Create amp-ad-custom.md. #24277
Conversation
|
||
## Ad server | ||
|
||
The ad network needs to provide a new serving endpoint that returns an AMP CORS response in a JSON format: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
AMP CORS is deprecated. Here we only need CORS
|
||
```js | ||
{ | ||
templateUrl: “https://adexample.com/amp_template_1.html” |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please replace all the “
& ”
to "
- custom headers for AMP CORS (obsolete, just do regular CORS) | ||
- AMP-Ad-Template-Extension: amp-mustache | ||
- Amp-Ad-Response-Type: template | ||
- Access-Control-Expose-Headers: AMP-Access-Control-Allow-Source-Origin |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
AMPCORS has been deprecated, this header is not needed.
``` | ||
|
||
The response requires a couple of custom headers: | ||
- custom headers for AMP CORS (obsolete, just do regular CORS) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
only regular CORS needed now
@rsimha was it deleted accidentally? |
Yes, accidental delete during main repo cleanup. Restored. |
Add documentation for amp-ad-custom integration.