forked from ampproject/amphtml
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
✨ [Chrome Attribution Report API] Add attribution reporting to amp-pi…
…xel (ampproject#38619) * Add attribution reporting to amp-pixel * Add attribution reporting to amp-pixel [addressing comments] * Add attribution reporting to amp-pixel [add validator tests] * Add attribution reporting to amp-pixel [addressing comments] * Add attribution reporting to amp-pixel [Using isAttributionReportingAllowed from utils] * Add attribution reporting to amp-pixel [Fix lint failures] * Add attribution reporting to amp-pixel [Move privacy-sandbox-utils to core for src dependencies] * Add attribution reporting to amp-pixel [Move privacy-sandbox-utils to core for src dependencies]
- Loading branch information
Showing
14 changed files
with
119 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
validator/testdata/amp4ads_feature_tests/amp_pixel_ar.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<!-- | ||
Test Description: | ||
Verify amp-pixel with Attribution Reporting API is valid. | ||
--> | ||
<!doctype html> | ||
<html ⚡4ads> | ||
<head> | ||
<meta charset="utf-8"> | ||
<meta name="viewport" content="width=device-width,minimum-scale=1"> | ||
<style amp4ads-boilerplate>body{visibility:hidden}</style> | ||
<script async src="https://cdn.ampproject.org/amp4ads-v0.js"></script> | ||
</head> | ||
<body> | ||
Hello, world. | ||
<amp-pixel src="https://pixel.me?yes=please" attributionsrc=""></amp-pixel> | ||
<amp-pixel src="https://pixel.me?yes=please" attributionsrc="https://adtech.example"></amp-pixel> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
PASS | ||
| <!-- | ||
| Test Description: | ||
| Verify amp-pixel with Attribution Reporting API is valid. | ||
| --> | ||
| <!doctype html> | ||
| <html ⚡4ads> | ||
| <head> | ||
| <meta charset="utf-8"> | ||
| <meta name="viewport" content="width=device-width,minimum-scale=1"> | ||
| <style amp4ads-boilerplate>body{visibility:hidden}</style> | ||
| <script async src="https://cdn.ampproject.org/amp4ads-v0.js"></script> | ||
| </head> | ||
| <body> | ||
| Hello, world. | ||
| <amp-pixel src="https://pixel.me?yes=please" attributionsrc=""></amp-pixel> | ||
| <amp-pixel src="https://pixel.me?yes=please" attributionsrc="https://adtech.example"></amp-pixel> | ||
| </body> | ||
| </html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters