zernio-sdk 0.0.1697 → 0.0.1698
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +2 -0
- data/docs/ConversionAuditAnswer.md +4 -0
- data/docs/ConversionAuditAnswerNetworksInner.md +26 -0
- data/docs/ConversionAuditAnswerTopFixesInner.md +24 -0
- data/docs/ConversionAuditApi.md +1 -1
- data/docs/ConversionAuditReportPlatformsInner.md +2 -0
- data/docs/ConversionAuditReportServerSide.md +3 -1
- data/docs/GetLatestConversionAudit200Response.md +4 -0
- data/lib/zernio-sdk/api/conversion_audit_api.rb +2 -2
- data/lib/zernio-sdk/models/conversion_audit_answer.rb +68 -1
- data/lib/zernio-sdk/models/conversion_audit_answer_networks_inner.rb +305 -0
- data/lib/zernio-sdk/models/conversion_audit_answer_top_fixes_inner.rb +232 -0
- data/lib/zernio-sdk/models/conversion_audit_report_platforms_inner.rb +23 -1
- data/lib/zernio-sdk/models/conversion_audit_report_server_side.rb +14 -4
- data/lib/zernio-sdk/models/get_latest_conversion_audit200_response.rb +68 -1
- data/lib/zernio-sdk/version.rb +1 -1
- data/lib/zernio-sdk.rb +2 -0
- data/openapi.yaml +1 -1
- data/spec/api/conversion_audit_api_spec.rb +1 -1
- data/spec/models/conversion_audit_answer_networks_inner_spec.rb +68 -0
- data/spec/models/conversion_audit_answer_spec.rb +12 -0
- data/spec/models/conversion_audit_answer_top_fixes_inner_spec.rb +54 -0
- data/spec/models/conversion_audit_report_platforms_inner_spec.rb +10 -0
- data/spec/models/conversion_audit_report_server_side_spec.rb +6 -0
- data/spec/models/get_latest_conversion_audit200_response_spec.rb +12 -0
- metadata +9 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 01d38a53a3d3ff370326b4b8729604ac9676646eb656f3fab06d454224e1b7f1
|
|
4
|
+
data.tar.gz: d5a6d983cd423abba231b8feaffddf7191fa15be9b5099229daddc23e20e0576
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 913de2dd07ff4eccc3f05c7d2f46bdcc652a067f6250b83f0fba1a83073e414d2905e902dc302d583321e81062acdfc04f1e2db81086ef1fc689aed1d8fe4913
|
|
7
|
+
data.tar.gz: 0e37c95aeef64e01b48468dc2c6dc8c4fe983fcb39f08353409784b26c2e5fdefa26bc0bae2a67bd4a3bea57c2aef154d8f8b8b9d20cb7e9185acb3846e56111
|
data/README.md
CHANGED
|
@@ -2181,7 +2181,9 @@ Class | Method | HTTP request | Description
|
|
|
2181
2181
|
- [Zernio::ConversionAction](docs/ConversionAction.md)
|
|
2182
2182
|
- [Zernio::ConversionActionTagSnippetsInner](docs/ConversionActionTagSnippetsInner.md)
|
|
2183
2183
|
- [Zernio::ConversionAuditAnswer](docs/ConversionAuditAnswer.md)
|
|
2184
|
+
- [Zernio::ConversionAuditAnswerNetworksInner](docs/ConversionAuditAnswerNetworksInner.md)
|
|
2184
2185
|
- [Zernio::ConversionAuditAnswerPublicReport](docs/ConversionAuditAnswerPublicReport.md)
|
|
2186
|
+
- [Zernio::ConversionAuditAnswerTopFixesInner](docs/ConversionAuditAnswerTopFixesInner.md)
|
|
2185
2187
|
- [Zernio::ConversionAuditMonitor](docs/ConversionAuditMonitor.md)
|
|
2186
2188
|
- [Zernio::ConversionAuditMonitorAnswer](docs/ConversionAuditMonitorAnswer.md)
|
|
2187
2189
|
- [Zernio::ConversionAuditMonitorScoreHistoryInner](docs/ConversionAuditMonitorScoreHistoryInner.md)
|
|
@@ -5,6 +5,8 @@
|
|
|
5
5
|
| Name | Type | Description | Notes |
|
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
|
7
7
|
| **report** | [**ConversionAuditReport**](ConversionAuditReport.md) | | |
|
|
8
|
+
| **networks** | [**Array<ConversionAuditAnswerNetworksInner>**](ConversionAuditAnswerNetworksInner.md) | Each ad network with its final setup and leak, computed exactly as the public report page shows them, best setup first. | |
|
|
9
|
+
| **top_fixes** | [**Array<ConversionAuditAnswerTopFixesInner>**](ConversionAuditAnswerTopFixesInner.md) | The few fixes that matter most, in the order the public report page lists them. | |
|
|
8
10
|
| **fix_prompt** | **String** | A prompt to paste into a coding agent. It lists the report's findings, then connecting Zernio, sending conversions server-side and verifying them. | |
|
|
9
11
|
| **public_report** | [**ConversionAuditAnswerPublicReport**](ConversionAuditAnswerPublicReport.md) | | |
|
|
10
12
|
|
|
@@ -15,6 +17,8 @@ require 'zernio-sdk'
|
|
|
15
17
|
|
|
16
18
|
instance = Zernio::ConversionAuditAnswer.new(
|
|
17
19
|
report: null,
|
|
20
|
+
networks: null,
|
|
21
|
+
top_fixes: null,
|
|
18
22
|
fix_prompt: null,
|
|
19
23
|
public_report: null
|
|
20
24
|
)
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# Zernio::ConversionAuditAnswerNetworksInner
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **key** | **String** | Stable platform key (meta, google, tiktok, ...), as in `report.platforms`. | |
|
|
8
|
+
| **name** | **String** | Short network name (Meta, Google, TikTok, ...). | |
|
|
9
|
+
| **setup** | **String** | How the network gets its conversions: `verified`, `likely` or `possible` server path, `not-visible` (browser pixel, no server path visible), `not-firing` (installed, sent nothing), `configured` (tag manager only, never seen firing, not at risk) or `missing`. | |
|
|
10
|
+
| **leak_pct** | **Integer** | Share of this network's conversions at risk, 0-100 (0 once a server path is verified). Null when the network has no working browser pixel to measure. | |
|
|
11
|
+
| **loaded_by** | **String** | `zernio-tag` when the pixel comes from the Zernio site tag's settings (it loads the pixel after consent) rather than from the page itself, on a scan that read the page source only. | |
|
|
12
|
+
|
|
13
|
+
## Example
|
|
14
|
+
|
|
15
|
+
```ruby
|
|
16
|
+
require 'zernio-sdk'
|
|
17
|
+
|
|
18
|
+
instance = Zernio::ConversionAuditAnswerNetworksInner.new(
|
|
19
|
+
key: null,
|
|
20
|
+
name: null,
|
|
21
|
+
setup: null,
|
|
22
|
+
leak_pct: null,
|
|
23
|
+
loaded_by: null
|
|
24
|
+
)
|
|
25
|
+
```
|
|
26
|
+
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# Zernio::ConversionAuditAnswerTopFixesInner
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **title** | **String** | The action to take. | |
|
|
8
|
+
| **why** | **String** | Why it matters on this site. | |
|
|
9
|
+
| **points** | **Integer** | Points the score gains when this fix alone lands, or null when the scan can't tell. | |
|
|
10
|
+
| **compliance** | **Boolean** | True when what's at stake is data sent without consent rather than lost signal. | |
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```ruby
|
|
15
|
+
require 'zernio-sdk'
|
|
16
|
+
|
|
17
|
+
instance = Zernio::ConversionAuditAnswerTopFixesInner.new(
|
|
18
|
+
title: null,
|
|
19
|
+
why: null,
|
|
20
|
+
points: null,
|
|
21
|
+
compliance: null
|
|
22
|
+
)
|
|
23
|
+
```
|
|
24
|
+
|
data/docs/ConversionAuditApi.md
CHANGED
|
@@ -18,7 +18,7 @@ All URIs are relative to *https://zernio.com/api*
|
|
|
18
18
|
|
|
19
19
|
Audit a site's ad conversion tracking
|
|
20
20
|
|
|
21
|
-
Scan any public URL for ad-platform conversion tracking, score how much conversion signal it leaks before the ad platforms see it, and get a fix prompt to hand to a coding agent. The API key is optional. Without one, a caller's IP address gets 20 scans a minute. The Zernio MCP server always needs a key, because its sign-in covers the whole connection. The scan fetches the page (SSRF-guarded) and its Google Tag Manager containers, and can render it in a headless browser. It finds every ad platform's browser pixel, checks for visible server-side (Conversions API) tracking, and estimates the signal lost to ad blockers, browser limits and short cookie windows. Visitors who decline consent are never counted as lost. The scan reads the page only and changes nothing on the site. Like the free page, it publishes the result as the host's public report. Reading the result: - `report.visibility: \"limited\"` means some pixels load through a tag manager or a store platform, so only part of the setup is visible from outside. It does not mean the tracking failed or is missing. - `status: \"warn\"` (browser-only) is the leak: the platform is tracked in the browser but not server-side. - `status: \"good\"` (server-side) means conversions reach the platform server-side, which recovers most of that signal. - `fixPrompt` is the same fix prompt the Conversion Leak Report page shows: this scan's findings, then the steps to send conversions server-side with `POST /v1/events` and to verify them. - To fix the leak with Zernio, follow https://docs.zernio.com/products/server-side-tracking/fix-with-agent: a tracking site, its tag, a forwarding rule per network to the pixel the page runs, then a rescan. A network turns `good` once the site's events reached that pixel in the last 7 days. - `publicReport` links the host's public page on is-bleeding.com. A homepage scan that could read the site's pixels becomes that page's snapshot, the same as a scan on is-bleeding.com. Any other scan links the stored snapshot, taken at `scannedAt`, or returns null when the host has none. Without a key, each IP address also shares one hourly ceiling with every other keyless caller. With a key, a user gets 60 scans a minute.
|
|
21
|
+
Scan any public URL for ad-platform conversion tracking, score how much conversion signal it leaks before the ad platforms see it, and get a fix prompt to hand to a coding agent. The API key is optional. Without one, a caller's IP address gets 20 scans a minute. The Zernio MCP server always needs a key, because its sign-in covers the whole connection. The scan fetches the page (SSRF-guarded) and its Google Tag Manager containers, and can render it in a headless browser. It finds every ad platform's browser pixel, checks for visible server-side (Conversions API) tracking, and estimates the signal lost to ad blockers, browser limits and short cookie windows. Visitors who decline consent are never counted as lost. The scan reads the page only and changes nothing on the site. Like the free page, it publishes the result as the host's public report. Reading the result: - `report.visibility: \"limited\"` means some pixels load through a tag manager or a store platform, so only part of the setup is visible from outside. It does not mean the tracking failed or is missing. - `status: \"warn\"` (browser-only) is the leak: the platform is tracked in the browser but not server-side. - `status: \"good\"` (server-side) means conversions reach the platform server-side, which recovers most of that signal. - `networks` and `topFixes` are the per-network setup, leak and ordered fixes exactly as the public report page computes them; read them instead of deriving your own from `report`. - `fixPrompt` is the same fix prompt the Conversion Leak Report page shows: this scan's findings, then the steps to send conversions server-side with `POST /v1/events` and to verify them. - To fix the leak with Zernio, follow https://docs.zernio.com/products/server-side-tracking/fix-with-agent: a tracking site, its tag, a forwarding rule per network to the pixel the page runs, then a rescan. A network turns `good` once the site's events reached that pixel in the last 7 days. - `publicReport` links the host's public page on is-bleeding.com. A homepage scan that could read the site's pixels becomes that page's snapshot, the same as a scan on is-bleeding.com. Any other scan links the stored snapshot, taken at `scannedAt`, or returns null when the host has none. Without a key, each IP address also shares one hourly ceiling with every other keyless caller. With a key, a user gets 60 scans a minute.
|
|
22
22
|
|
|
23
23
|
### Examples
|
|
24
24
|
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
| **browser_pixel** | **Boolean** | Whether a browser pixel for this platform was found. | |
|
|
10
10
|
| **server_side** | **Boolean** | True only when a server-side path is proven: visible from the page, or verified through the Zernio account behind the site tag. | |
|
|
11
11
|
| **relayed_by** | **String** | The only server path seen is the Zernio site tag relay; `serverSideVerified` says whether its delivery to this platform is proven. | [optional] |
|
|
12
|
+
| **loaded_by** | **String** | On a scan that read the page source only: the pixel comes from the Zernio site tag's settings, which load it after consent, not from the page. Its ids are not reported. | [optional] |
|
|
12
13
|
| **server_side_verified** | **Boolean** | The Zernio site tag on the page belongs to an account whose destination for this platform accepted the site's events in the last 7 days. | [optional] |
|
|
13
14
|
| **server_tool** | **String** | A third-party server-side tool installed on the site that may already send this platform's events (Elevar, Littledata, Stape), when its status is `likely`. Which platforms the tool feeds is not visible from the page. | [optional] |
|
|
14
15
|
| **status** | **String** | `good`: server-side. `warn`: browser-only (the leak). `missing`: not tracked. `not-firing`: installed but sent nothing during a full visit. `configured`: only in a Google Tag Manager container and not seen firing on a visit where silence proves nothing, so not counted as tracked. | |
|
|
@@ -30,6 +31,7 @@ instance = Zernio::ConversionAuditReportPlatformsInner.new(
|
|
|
30
31
|
browser_pixel: null,
|
|
31
32
|
server_side: null,
|
|
32
33
|
relayed_by: null,
|
|
34
|
+
loaded_by: null,
|
|
33
35
|
server_side_verified: null,
|
|
34
36
|
server_tool: null,
|
|
35
37
|
status: null,
|
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
| **status** | **String** | | |
|
|
8
8
|
| **signals** | [**Array<ConversionAuditReportServerSideSignalsInner>**](ConversionAuditReportServerSideSignalsInner.md) | | |
|
|
9
9
|
| **note** | **String** | | |
|
|
10
|
+
| **first_party_collection** | **String** | The server-side path that collects on the site's own domain, when the scan saw one. | [optional] |
|
|
10
11
|
|
|
11
12
|
## Example
|
|
12
13
|
|
|
@@ -16,7 +17,8 @@ require 'zernio-sdk'
|
|
|
16
17
|
instance = Zernio::ConversionAuditReportServerSide.new(
|
|
17
18
|
status: null,
|
|
18
19
|
signals: null,
|
|
19
|
-
note: null
|
|
20
|
+
note: null,
|
|
21
|
+
first_party_collection: null
|
|
20
22
|
)
|
|
21
23
|
```
|
|
22
24
|
|
|
@@ -5,6 +5,8 @@
|
|
|
5
5
|
| Name | Type | Description | Notes |
|
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
|
7
7
|
| **report** | [**ConversionAuditReport**](ConversionAuditReport.md) | | |
|
|
8
|
+
| **networks** | [**Array<ConversionAuditAnswerNetworksInner>**](ConversionAuditAnswerNetworksInner.md) | Each ad network with its final setup and leak, computed exactly as the public report page shows them, best setup first. | |
|
|
9
|
+
| **top_fixes** | [**Array<ConversionAuditAnswerTopFixesInner>**](ConversionAuditAnswerTopFixesInner.md) | The few fixes that matter most, in the order the public report page lists them. | |
|
|
8
10
|
| **fix_prompt** | **String** | A prompt to paste into a coding agent. It lists the report's findings, then connecting Zernio, sending conversions server-side and verifying them. | |
|
|
9
11
|
| **public_report** | [**ConversionAuditAnswerPublicReport**](ConversionAuditAnswerPublicReport.md) | | |
|
|
10
12
|
| **host** | **String** | The normalized host the report is stored under. | |
|
|
@@ -16,6 +18,8 @@ require 'zernio-sdk'
|
|
|
16
18
|
|
|
17
19
|
instance = Zernio::GetLatestConversionAudit200Response.new(
|
|
18
20
|
report: null,
|
|
21
|
+
networks: null,
|
|
22
|
+
top_fixes: null,
|
|
19
23
|
fix_prompt: null,
|
|
20
24
|
public_report: null,
|
|
21
25
|
host: null
|
|
@@ -20,7 +20,7 @@ module Zernio
|
|
|
20
20
|
@api_client = api_client
|
|
21
21
|
end
|
|
22
22
|
# Audit a site's ad conversion tracking
|
|
23
|
-
# Scan any public URL for ad-platform conversion tracking, score how much conversion signal it leaks before the ad platforms see it, and get a fix prompt to hand to a coding agent. The API key is optional. Without one, a caller's IP address gets 20 scans a minute. The Zernio MCP server always needs a key, because its sign-in covers the whole connection. The scan fetches the page (SSRF-guarded) and its Google Tag Manager containers, and can render it in a headless browser. It finds every ad platform's browser pixel, checks for visible server-side (Conversions API) tracking, and estimates the signal lost to ad blockers, browser limits and short cookie windows. Visitors who decline consent are never counted as lost. The scan reads the page only and changes nothing on the site. Like the free page, it publishes the result as the host's public report. Reading the result: - `report.visibility: \"limited\"` means some pixels load through a tag manager or a store platform, so only part of the setup is visible from outside. It does not mean the tracking failed or is missing. - `status: \"warn\"` (browser-only) is the leak: the platform is tracked in the browser but not server-side. - `status: \"good\"` (server-side) means conversions reach the platform server-side, which recovers most of that signal. - `fixPrompt` is the same fix prompt the Conversion Leak Report page shows: this scan's findings, then the steps to send conversions server-side with `POST /v1/events` and to verify them. - To fix the leak with Zernio, follow https://docs.zernio.com/products/server-side-tracking/fix-with-agent: a tracking site, its tag, a forwarding rule per network to the pixel the page runs, then a rescan. A network turns `good` once the site's events reached that pixel in the last 7 days. - `publicReport` links the host's public page on is-bleeding.com. A homepage scan that could read the site's pixels becomes that page's snapshot, the same as a scan on is-bleeding.com. Any other scan links the stored snapshot, taken at `scannedAt`, or returns null when the host has none. Without a key, each IP address also shares one hourly ceiling with every other keyless caller. With a key, a user gets 60 scans a minute.
|
|
23
|
+
# Scan any public URL for ad-platform conversion tracking, score how much conversion signal it leaks before the ad platforms see it, and get a fix prompt to hand to a coding agent. The API key is optional. Without one, a caller's IP address gets 20 scans a minute. The Zernio MCP server always needs a key, because its sign-in covers the whole connection. The scan fetches the page (SSRF-guarded) and its Google Tag Manager containers, and can render it in a headless browser. It finds every ad platform's browser pixel, checks for visible server-side (Conversions API) tracking, and estimates the signal lost to ad blockers, browser limits and short cookie windows. Visitors who decline consent are never counted as lost. The scan reads the page only and changes nothing on the site. Like the free page, it publishes the result as the host's public report. Reading the result: - `report.visibility: \"limited\"` means some pixels load through a tag manager or a store platform, so only part of the setup is visible from outside. It does not mean the tracking failed or is missing. - `status: \"warn\"` (browser-only) is the leak: the platform is tracked in the browser but not server-side. - `status: \"good\"` (server-side) means conversions reach the platform server-side, which recovers most of that signal. - `networks` and `topFixes` are the per-network setup, leak and ordered fixes exactly as the public report page computes them; read them instead of deriving your own from `report`. - `fixPrompt` is the same fix prompt the Conversion Leak Report page shows: this scan's findings, then the steps to send conversions server-side with `POST /v1/events` and to verify them. - To fix the leak with Zernio, follow https://docs.zernio.com/products/server-side-tracking/fix-with-agent: a tracking site, its tag, a forwarding rule per network to the pixel the page runs, then a rescan. A network turns `good` once the site's events reached that pixel in the last 7 days. - `publicReport` links the host's public page on is-bleeding.com. A homepage scan that could read the site's pixels becomes that page's snapshot, the same as a scan on is-bleeding.com. Any other scan links the stored snapshot, taken at `scannedAt`, or returns null when the host has none. Without a key, each IP address also shares one hourly ceiling with every other keyless caller. With a key, a user gets 60 scans a minute.
|
|
24
24
|
# @param url [String] The website address to audit. A bare domain is accepted and normalized to https.
|
|
25
25
|
# @param [Hash] opts the optional parameters
|
|
26
26
|
# @return [ConversionAuditAnswer]
|
|
@@ -30,7 +30,7 @@ module Zernio
|
|
|
30
30
|
end
|
|
31
31
|
|
|
32
32
|
# Audit a site's ad conversion tracking
|
|
33
|
-
# Scan any public URL for ad-platform conversion tracking, score how much conversion signal it leaks before the ad platforms see it, and get a fix prompt to hand to a coding agent. The API key is optional. Without one, a caller's IP address gets 20 scans a minute. The Zernio MCP server always needs a key, because its sign-in covers the whole connection. The scan fetches the page (SSRF-guarded) and its Google Tag Manager containers, and can render it in a headless browser. It finds every ad platform's browser pixel, checks for visible server-side (Conversions API) tracking, and estimates the signal lost to ad blockers, browser limits and short cookie windows. Visitors who decline consent are never counted as lost. The scan reads the page only and changes nothing on the site. Like the free page, it publishes the result as the host's public report. Reading the result: - `report.visibility: \"limited\"` means some pixels load through a tag manager or a store platform, so only part of the setup is visible from outside. It does not mean the tracking failed or is missing. - `status: \"warn\"` (browser-only) is the leak: the platform is tracked in the browser but not server-side. - `status: \"good\"` (server-side) means conversions reach the platform server-side, which recovers most of that signal. - `fixPrompt` is the same fix prompt the Conversion Leak Report page shows: this scan's findings, then the steps to send conversions server-side with `POST /v1/events` and to verify them. - To fix the leak with Zernio, follow https://docs.zernio.com/products/server-side-tracking/fix-with-agent: a tracking site, its tag, a forwarding rule per network to the pixel the page runs, then a rescan. A network turns `good` once the site's events reached that pixel in the last 7 days. - `publicReport` links the host's public page on is-bleeding.com. A homepage scan that could read the site's pixels becomes that page's snapshot, the same as a scan on is-bleeding.com. Any other scan links the stored snapshot, taken at `scannedAt`, or returns null when the host has none. Without a key, each IP address also shares one hourly ceiling with every other keyless caller. With a key, a user gets 60 scans a minute.
|
|
33
|
+
# Scan any public URL for ad-platform conversion tracking, score how much conversion signal it leaks before the ad platforms see it, and get a fix prompt to hand to a coding agent. The API key is optional. Without one, a caller's IP address gets 20 scans a minute. The Zernio MCP server always needs a key, because its sign-in covers the whole connection. The scan fetches the page (SSRF-guarded) and its Google Tag Manager containers, and can render it in a headless browser. It finds every ad platform's browser pixel, checks for visible server-side (Conversions API) tracking, and estimates the signal lost to ad blockers, browser limits and short cookie windows. Visitors who decline consent are never counted as lost. The scan reads the page only and changes nothing on the site. Like the free page, it publishes the result as the host's public report. Reading the result: - `report.visibility: \"limited\"` means some pixels load through a tag manager or a store platform, so only part of the setup is visible from outside. It does not mean the tracking failed or is missing. - `status: \"warn\"` (browser-only) is the leak: the platform is tracked in the browser but not server-side. - `status: \"good\"` (server-side) means conversions reach the platform server-side, which recovers most of that signal. - `networks` and `topFixes` are the per-network setup, leak and ordered fixes exactly as the public report page computes them; read them instead of deriving your own from `report`. - `fixPrompt` is the same fix prompt the Conversion Leak Report page shows: this scan's findings, then the steps to send conversions server-side with `POST /v1/events` and to verify them. - To fix the leak with Zernio, follow https://docs.zernio.com/products/server-side-tracking/fix-with-agent: a tracking site, its tag, a forwarding rule per network to the pixel the page runs, then a rescan. A network turns `good` once the site's events reached that pixel in the last 7 days. - `publicReport` links the host's public page on is-bleeding.com. A homepage scan that could read the site's pixels becomes that page's snapshot, the same as a scan on is-bleeding.com. Any other scan links the stored snapshot, taken at `scannedAt`, or returns null when the host has none. Without a key, each IP address also shares one hourly ceiling with every other keyless caller. With a key, a user gets 60 scans a minute.
|
|
34
34
|
# @param url [String] The website address to audit. A bare domain is accepted and normalized to https.
|
|
35
35
|
# @param [Hash] opts the optional parameters
|
|
36
36
|
# @return [Array<(ConversionAuditAnswer, Integer, Hash)>] ConversionAuditAnswer data, response status code and response headers
|
|
@@ -17,6 +17,12 @@ module Zernio
|
|
|
17
17
|
class ConversionAuditAnswer < ApiModelBase
|
|
18
18
|
attr_accessor :report
|
|
19
19
|
|
|
20
|
+
# Each ad network with its final setup and leak, computed exactly as the public report page shows them, best setup first.
|
|
21
|
+
attr_accessor :networks
|
|
22
|
+
|
|
23
|
+
# The few fixes that matter most, in the order the public report page lists them.
|
|
24
|
+
attr_accessor :top_fixes
|
|
25
|
+
|
|
20
26
|
# A prompt to paste into a coding agent. It lists the report's findings, then connecting Zernio, sending conversions server-side and verifying them.
|
|
21
27
|
attr_accessor :fix_prompt
|
|
22
28
|
|
|
@@ -26,6 +32,8 @@ module Zernio
|
|
|
26
32
|
def self.attribute_map
|
|
27
33
|
{
|
|
28
34
|
:'report' => :'report',
|
|
35
|
+
:'networks' => :'networks',
|
|
36
|
+
:'top_fixes' => :'topFixes',
|
|
29
37
|
:'fix_prompt' => :'fixPrompt',
|
|
30
38
|
:'public_report' => :'publicReport'
|
|
31
39
|
}
|
|
@@ -45,6 +53,8 @@ module Zernio
|
|
|
45
53
|
def self.openapi_types
|
|
46
54
|
{
|
|
47
55
|
:'report' => :'ConversionAuditReport',
|
|
56
|
+
:'networks' => :'Array<ConversionAuditAnswerNetworksInner>',
|
|
57
|
+
:'top_fixes' => :'Array<ConversionAuditAnswerTopFixesInner>',
|
|
48
58
|
:'fix_prompt' => :'String',
|
|
49
59
|
:'public_report' => :'ConversionAuditAnswerPublicReport'
|
|
50
60
|
}
|
|
@@ -79,6 +89,22 @@ module Zernio
|
|
|
79
89
|
self.report = nil
|
|
80
90
|
end
|
|
81
91
|
|
|
92
|
+
if attributes.key?(:'networks')
|
|
93
|
+
if (value = attributes[:'networks']).is_a?(Array)
|
|
94
|
+
self.networks = value
|
|
95
|
+
end
|
|
96
|
+
else
|
|
97
|
+
self.networks = nil
|
|
98
|
+
end
|
|
99
|
+
|
|
100
|
+
if attributes.key?(:'top_fixes')
|
|
101
|
+
if (value = attributes[:'top_fixes']).is_a?(Array)
|
|
102
|
+
self.top_fixes = value
|
|
103
|
+
end
|
|
104
|
+
else
|
|
105
|
+
self.top_fixes = nil
|
|
106
|
+
end
|
|
107
|
+
|
|
82
108
|
if attributes.key?(:'fix_prompt')
|
|
83
109
|
self.fix_prompt = attributes[:'fix_prompt']
|
|
84
110
|
else
|
|
@@ -101,6 +127,18 @@ module Zernio
|
|
|
101
127
|
invalid_properties.push('invalid value for "report", report cannot be nil.')
|
|
102
128
|
end
|
|
103
129
|
|
|
130
|
+
if @networks.nil?
|
|
131
|
+
invalid_properties.push('invalid value for "networks", networks cannot be nil.')
|
|
132
|
+
end
|
|
133
|
+
|
|
134
|
+
if @top_fixes.nil?
|
|
135
|
+
invalid_properties.push('invalid value for "top_fixes", top_fixes cannot be nil.')
|
|
136
|
+
end
|
|
137
|
+
|
|
138
|
+
if @top_fixes.length > 3
|
|
139
|
+
invalid_properties.push('invalid value for "top_fixes", number of items must be less than or equal to 3.')
|
|
140
|
+
end
|
|
141
|
+
|
|
104
142
|
if @fix_prompt.nil?
|
|
105
143
|
invalid_properties.push('invalid value for "fix_prompt", fix_prompt cannot be nil.')
|
|
106
144
|
end
|
|
@@ -113,6 +151,9 @@ module Zernio
|
|
|
113
151
|
def valid?
|
|
114
152
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
115
153
|
return false if @report.nil?
|
|
154
|
+
return false if @networks.nil?
|
|
155
|
+
return false if @top_fixes.nil?
|
|
156
|
+
return false if @top_fixes.length > 3
|
|
116
157
|
return false if @fix_prompt.nil?
|
|
117
158
|
true
|
|
118
159
|
end
|
|
@@ -127,6 +168,30 @@ module Zernio
|
|
|
127
168
|
@report = report
|
|
128
169
|
end
|
|
129
170
|
|
|
171
|
+
# Custom attribute writer method with validation
|
|
172
|
+
# @param [Object] networks Value to be assigned
|
|
173
|
+
def networks=(networks)
|
|
174
|
+
if networks.nil?
|
|
175
|
+
fail ArgumentError, 'networks cannot be nil'
|
|
176
|
+
end
|
|
177
|
+
|
|
178
|
+
@networks = networks
|
|
179
|
+
end
|
|
180
|
+
|
|
181
|
+
# Custom attribute writer method with validation
|
|
182
|
+
# @param [Object] top_fixes Value to be assigned
|
|
183
|
+
def top_fixes=(top_fixes)
|
|
184
|
+
if top_fixes.nil?
|
|
185
|
+
fail ArgumentError, 'top_fixes cannot be nil'
|
|
186
|
+
end
|
|
187
|
+
|
|
188
|
+
if top_fixes.length > 3
|
|
189
|
+
fail ArgumentError, 'invalid value for "top_fixes", number of items must be less than or equal to 3.'
|
|
190
|
+
end
|
|
191
|
+
|
|
192
|
+
@top_fixes = top_fixes
|
|
193
|
+
end
|
|
194
|
+
|
|
130
195
|
# Custom attribute writer method with validation
|
|
131
196
|
# @param [Object] fix_prompt Value to be assigned
|
|
132
197
|
def fix_prompt=(fix_prompt)
|
|
@@ -143,6 +208,8 @@ module Zernio
|
|
|
143
208
|
return true if self.equal?(o)
|
|
144
209
|
self.class == o.class &&
|
|
145
210
|
report == o.report &&
|
|
211
|
+
networks == o.networks &&
|
|
212
|
+
top_fixes == o.top_fixes &&
|
|
146
213
|
fix_prompt == o.fix_prompt &&
|
|
147
214
|
public_report == o.public_report
|
|
148
215
|
end
|
|
@@ -156,7 +223,7 @@ module Zernio
|
|
|
156
223
|
# Calculates hash code according to all attributes.
|
|
157
224
|
# @return [Integer] Hash code
|
|
158
225
|
def hash
|
|
159
|
-
[report, fix_prompt, public_report].hash
|
|
226
|
+
[report, networks, top_fixes, fix_prompt, public_report].hash
|
|
160
227
|
end
|
|
161
228
|
|
|
162
229
|
# Builds the object from hash
|
|
@@ -0,0 +1,305 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Zernio API
|
|
3
|
+
|
|
4
|
+
#API reference for Zernio. Authenticate with a Bearer API key. Base URL: https://zernio.com/api Versioning and deprecation: all endpoints are versioned in the URL path (current version: /v1). Breaking changes only ship in a new path version; existing versions keep working. Deprecated operations are marked 'deprecated: true' in this spec and announced in the changelog (https://zernio.com/changelog) before removal. Errors: every 4xx/5xx response is application/json with a machine-readable 'code' and a human-readable 'error' message (see the ErrorResponse schema). Request ids: responses carry an X-Request-Id header with the id we log the request under. Quote it when reporting a problem. A valid x-request-id you send is reused as that id.
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 1.763.0
|
|
7
|
+
Contact: support@zernio.com
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
Generator version: 7.19.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'date'
|
|
14
|
+
require 'time'
|
|
15
|
+
|
|
16
|
+
module Zernio
|
|
17
|
+
class ConversionAuditAnswerNetworksInner < ApiModelBase
|
|
18
|
+
# Stable platform key (meta, google, tiktok, ...), as in `report.platforms`.
|
|
19
|
+
attr_accessor :key
|
|
20
|
+
|
|
21
|
+
# Short network name (Meta, Google, TikTok, ...).
|
|
22
|
+
attr_accessor :name
|
|
23
|
+
|
|
24
|
+
# How the network gets its conversions: `verified`, `likely` or `possible` server path, `not-visible` (browser pixel, no server path visible), `not-firing` (installed, sent nothing), `configured` (tag manager only, never seen firing, not at risk) or `missing`.
|
|
25
|
+
attr_accessor :setup
|
|
26
|
+
|
|
27
|
+
# Share of this network's conversions at risk, 0-100 (0 once a server path is verified). Null when the network has no working browser pixel to measure.
|
|
28
|
+
attr_accessor :leak_pct
|
|
29
|
+
|
|
30
|
+
# `zernio-tag` when the pixel comes from the Zernio site tag's settings (it loads the pixel after consent) rather than from the page itself, on a scan that read the page source only.
|
|
31
|
+
attr_accessor :loaded_by
|
|
32
|
+
|
|
33
|
+
class EnumAttributeValidator
|
|
34
|
+
attr_reader :datatype
|
|
35
|
+
attr_reader :allowable_values
|
|
36
|
+
|
|
37
|
+
def initialize(datatype, allowable_values)
|
|
38
|
+
@allowable_values = allowable_values.map do |value|
|
|
39
|
+
case datatype.to_s
|
|
40
|
+
when /Integer/i
|
|
41
|
+
value.to_i
|
|
42
|
+
when /Float/i
|
|
43
|
+
value.to_f
|
|
44
|
+
else
|
|
45
|
+
value
|
|
46
|
+
end
|
|
47
|
+
end
|
|
48
|
+
end
|
|
49
|
+
|
|
50
|
+
def valid?(value)
|
|
51
|
+
!value || allowable_values.include?(value)
|
|
52
|
+
end
|
|
53
|
+
end
|
|
54
|
+
|
|
55
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
56
|
+
def self.attribute_map
|
|
57
|
+
{
|
|
58
|
+
:'key' => :'key',
|
|
59
|
+
:'name' => :'name',
|
|
60
|
+
:'setup' => :'setup',
|
|
61
|
+
:'leak_pct' => :'leakPct',
|
|
62
|
+
:'loaded_by' => :'loadedBy'
|
|
63
|
+
}
|
|
64
|
+
end
|
|
65
|
+
|
|
66
|
+
# Returns attribute mapping this model knows about
|
|
67
|
+
def self.acceptable_attribute_map
|
|
68
|
+
attribute_map
|
|
69
|
+
end
|
|
70
|
+
|
|
71
|
+
# Returns all the JSON keys this model knows about
|
|
72
|
+
def self.acceptable_attributes
|
|
73
|
+
acceptable_attribute_map.values
|
|
74
|
+
end
|
|
75
|
+
|
|
76
|
+
# Attribute type mapping.
|
|
77
|
+
def self.openapi_types
|
|
78
|
+
{
|
|
79
|
+
:'key' => :'String',
|
|
80
|
+
:'name' => :'String',
|
|
81
|
+
:'setup' => :'String',
|
|
82
|
+
:'leak_pct' => :'Integer',
|
|
83
|
+
:'loaded_by' => :'String'
|
|
84
|
+
}
|
|
85
|
+
end
|
|
86
|
+
|
|
87
|
+
# List of attributes with nullable: true
|
|
88
|
+
def self.openapi_nullable
|
|
89
|
+
Set.new([
|
|
90
|
+
:'leak_pct',
|
|
91
|
+
:'loaded_by'
|
|
92
|
+
])
|
|
93
|
+
end
|
|
94
|
+
|
|
95
|
+
# Initializes the object
|
|
96
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
97
|
+
def initialize(attributes = {})
|
|
98
|
+
if (!attributes.is_a?(Hash))
|
|
99
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Zernio::ConversionAuditAnswerNetworksInner` initialize method"
|
|
100
|
+
end
|
|
101
|
+
|
|
102
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
103
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
104
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
105
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
106
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Zernio::ConversionAuditAnswerNetworksInner`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
107
|
+
end
|
|
108
|
+
h[k.to_sym] = v
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
if attributes.key?(:'key')
|
|
112
|
+
self.key = attributes[:'key']
|
|
113
|
+
else
|
|
114
|
+
self.key = nil
|
|
115
|
+
end
|
|
116
|
+
|
|
117
|
+
if attributes.key?(:'name')
|
|
118
|
+
self.name = attributes[:'name']
|
|
119
|
+
else
|
|
120
|
+
self.name = nil
|
|
121
|
+
end
|
|
122
|
+
|
|
123
|
+
if attributes.key?(:'setup')
|
|
124
|
+
self.setup = attributes[:'setup']
|
|
125
|
+
else
|
|
126
|
+
self.setup = nil
|
|
127
|
+
end
|
|
128
|
+
|
|
129
|
+
if attributes.key?(:'leak_pct')
|
|
130
|
+
self.leak_pct = attributes[:'leak_pct']
|
|
131
|
+
else
|
|
132
|
+
self.leak_pct = nil
|
|
133
|
+
end
|
|
134
|
+
|
|
135
|
+
if attributes.key?(:'loaded_by')
|
|
136
|
+
self.loaded_by = attributes[:'loaded_by']
|
|
137
|
+
else
|
|
138
|
+
self.loaded_by = nil
|
|
139
|
+
end
|
|
140
|
+
end
|
|
141
|
+
|
|
142
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
143
|
+
# @return Array for valid properties with the reasons
|
|
144
|
+
def list_invalid_properties
|
|
145
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
146
|
+
invalid_properties = Array.new
|
|
147
|
+
if @key.nil?
|
|
148
|
+
invalid_properties.push('invalid value for "key", key cannot be nil.')
|
|
149
|
+
end
|
|
150
|
+
|
|
151
|
+
if @name.nil?
|
|
152
|
+
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
|
153
|
+
end
|
|
154
|
+
|
|
155
|
+
if @setup.nil?
|
|
156
|
+
invalid_properties.push('invalid value for "setup", setup cannot be nil.')
|
|
157
|
+
end
|
|
158
|
+
|
|
159
|
+
if @leak_pct > 100
|
|
160
|
+
invalid_properties.push('invalid value for "leak_pct", must be smaller than or equal to 100.')
|
|
161
|
+
end
|
|
162
|
+
|
|
163
|
+
if @leak_pct < 0
|
|
164
|
+
invalid_properties.push('invalid value for "leak_pct", must be greater than or equal to 0.')
|
|
165
|
+
end
|
|
166
|
+
|
|
167
|
+
invalid_properties
|
|
168
|
+
end
|
|
169
|
+
|
|
170
|
+
# Check to see if the all the properties in the model are valid
|
|
171
|
+
# @return true if the model is valid
|
|
172
|
+
def valid?
|
|
173
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
174
|
+
return false if @key.nil?
|
|
175
|
+
return false if @name.nil?
|
|
176
|
+
return false if @setup.nil?
|
|
177
|
+
setup_validator = EnumAttributeValidator.new('String', ["verified", "likely", "possible", "not-visible", "not-firing", "configured", "missing"])
|
|
178
|
+
return false unless setup_validator.valid?(@setup)
|
|
179
|
+
return false if @leak_pct > 100
|
|
180
|
+
return false if @leak_pct < 0
|
|
181
|
+
loaded_by_validator = EnumAttributeValidator.new('String', ["zernio-tag"])
|
|
182
|
+
return false unless loaded_by_validator.valid?(@loaded_by)
|
|
183
|
+
true
|
|
184
|
+
end
|
|
185
|
+
|
|
186
|
+
# Custom attribute writer method with validation
|
|
187
|
+
# @param [Object] key Value to be assigned
|
|
188
|
+
def key=(key)
|
|
189
|
+
if key.nil?
|
|
190
|
+
fail ArgumentError, 'key cannot be nil'
|
|
191
|
+
end
|
|
192
|
+
|
|
193
|
+
@key = key
|
|
194
|
+
end
|
|
195
|
+
|
|
196
|
+
# Custom attribute writer method with validation
|
|
197
|
+
# @param [Object] name Value to be assigned
|
|
198
|
+
def name=(name)
|
|
199
|
+
if name.nil?
|
|
200
|
+
fail ArgumentError, 'name cannot be nil'
|
|
201
|
+
end
|
|
202
|
+
|
|
203
|
+
@name = name
|
|
204
|
+
end
|
|
205
|
+
|
|
206
|
+
# Custom attribute writer method checking allowed values (enum).
|
|
207
|
+
# @param [Object] setup Object to be assigned
|
|
208
|
+
def setup=(setup)
|
|
209
|
+
validator = EnumAttributeValidator.new('String', ["verified", "likely", "possible", "not-visible", "not-firing", "configured", "missing"])
|
|
210
|
+
unless validator.valid?(setup)
|
|
211
|
+
fail ArgumentError, "invalid value for \"setup\", must be one of #{validator.allowable_values}."
|
|
212
|
+
end
|
|
213
|
+
@setup = setup
|
|
214
|
+
end
|
|
215
|
+
|
|
216
|
+
# Custom attribute writer method with validation
|
|
217
|
+
# @param [Object] leak_pct Value to be assigned
|
|
218
|
+
def leak_pct=(leak_pct)
|
|
219
|
+
if !leak_pct.nil? && leak_pct > 100
|
|
220
|
+
fail ArgumentError, 'invalid value for "leak_pct", must be smaller than or equal to 100.'
|
|
221
|
+
end
|
|
222
|
+
|
|
223
|
+
if !leak_pct.nil? && leak_pct < 0
|
|
224
|
+
fail ArgumentError, 'invalid value for "leak_pct", must be greater than or equal to 0.'
|
|
225
|
+
end
|
|
226
|
+
|
|
227
|
+
@leak_pct = leak_pct
|
|
228
|
+
end
|
|
229
|
+
|
|
230
|
+
# Custom attribute writer method checking allowed values (enum).
|
|
231
|
+
# @param [Object] loaded_by Object to be assigned
|
|
232
|
+
def loaded_by=(loaded_by)
|
|
233
|
+
validator = EnumAttributeValidator.new('String', ["zernio-tag"])
|
|
234
|
+
unless validator.valid?(loaded_by)
|
|
235
|
+
fail ArgumentError, "invalid value for \"loaded_by\", must be one of #{validator.allowable_values}."
|
|
236
|
+
end
|
|
237
|
+
@loaded_by = loaded_by
|
|
238
|
+
end
|
|
239
|
+
|
|
240
|
+
# Checks equality by comparing each attribute.
|
|
241
|
+
# @param [Object] Object to be compared
|
|
242
|
+
def ==(o)
|
|
243
|
+
return true if self.equal?(o)
|
|
244
|
+
self.class == o.class &&
|
|
245
|
+
key == o.key &&
|
|
246
|
+
name == o.name &&
|
|
247
|
+
setup == o.setup &&
|
|
248
|
+
leak_pct == o.leak_pct &&
|
|
249
|
+
loaded_by == o.loaded_by
|
|
250
|
+
end
|
|
251
|
+
|
|
252
|
+
# @see the `==` method
|
|
253
|
+
# @param [Object] Object to be compared
|
|
254
|
+
def eql?(o)
|
|
255
|
+
self == o
|
|
256
|
+
end
|
|
257
|
+
|
|
258
|
+
# Calculates hash code according to all attributes.
|
|
259
|
+
# @return [Integer] Hash code
|
|
260
|
+
def hash
|
|
261
|
+
[key, name, setup, leak_pct, loaded_by].hash
|
|
262
|
+
end
|
|
263
|
+
|
|
264
|
+
# Builds the object from hash
|
|
265
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
266
|
+
# @return [Object] Returns the model itself
|
|
267
|
+
def self.build_from_hash(attributes)
|
|
268
|
+
return nil unless attributes.is_a?(Hash)
|
|
269
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
270
|
+
transformed_hash = {}
|
|
271
|
+
openapi_types.each_pair do |key, type|
|
|
272
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
|
273
|
+
transformed_hash["#{key}"] = nil
|
|
274
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
275
|
+
# check to ensure the input is an array given that the attribute
|
|
276
|
+
# is documented as an array but the input is not
|
|
277
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
|
278
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
|
279
|
+
end
|
|
280
|
+
elsif !attributes[attribute_map[key]].nil?
|
|
281
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
|
282
|
+
end
|
|
283
|
+
end
|
|
284
|
+
new(transformed_hash)
|
|
285
|
+
end
|
|
286
|
+
|
|
287
|
+
# Returns the object in the form of hash
|
|
288
|
+
# @return [Hash] Returns the object in the form of hash
|
|
289
|
+
def to_hash
|
|
290
|
+
hash = {}
|
|
291
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
292
|
+
value = self.send(attr)
|
|
293
|
+
if value.nil?
|
|
294
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
295
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
296
|
+
end
|
|
297
|
+
|
|
298
|
+
hash[param] = _to_hash(value)
|
|
299
|
+
end
|
|
300
|
+
hash
|
|
301
|
+
end
|
|
302
|
+
|
|
303
|
+
end
|
|
304
|
+
|
|
305
|
+
end
|