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

Create amp-ad-custom.md. #24277

Closed
wants to merge 1 commit into from
Closed

Conversation

glevitzky
Copy link
Contributor

Add documentation for amp-ad-custom integration.


## Ad server

The ad network needs to provide a new serving endpoint that returns an AMP CORS response in a JSON format:
Copy link
Contributor

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”
Copy link
Contributor

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
Copy link
Contributor

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)
Copy link
Contributor

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 rsimha closed this Sep 17, 2019
@rsimha rsimha deleted the amp-ad-custom-md branch September 17, 2019 15:18
@lannka
Copy link
Contributor

lannka commented Sep 17, 2019

@rsimha was it deleted accidentally?

@rsimha rsimha restored the amp-ad-custom-md branch September 17, 2019 15:43
@rsimha
Copy link
Contributor

rsimha commented Sep 17, 2019

@rsimha was it deleted accidentally?

Yes, accidental delete during main repo cleanup. Restored.

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

4 participants