Click protection
GET
/api/v1/ads/protection
const url = 'https://digize.com/api/v1/ads/protection';const options = {method: 'GET', headers: {'x-api-key': '<x-api-key>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://digize.com/api/v1/ads/protection \ --header 'x-api-key: <x-api-key>'Paid clicks the edge checked and caught over the last 30 days and why, the latest it caught, and the block list.
Needs the ads:read permission.
Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”Done
Media typeapplication/json
object
checked
required
Paid clicks checked over the last 30 days.
number
blocked
required
number
wastedSpend
required
What the caught clicks cost, at each platform’s cost per click.
number
reasons
required
Array<object>
object
reason
required
string
count
required
number
recent
required
Array<object>
object
id
required
string
at
required
string format: date-time
campaign
required
string
platform
required
string
ip
required
string
network
required
string
reason
required
string
risk
required
number
rules
required
Example
{ "reasons": [ { "reason": "repeat_clicks" } ], "recent": [ { "platform": "google", "reason": "repeat_clicks" } ], "rules": [ { "kind": "ip", "reasons": [ "repeat_clicks" ] } ]}What was sent isn’t valid (invalid).
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
details
object
key
additional properties
any
Example
{ "error": { "code": "invalid" }}No key, or one that’s unknown, off or expired.
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
details
object
key
additional properties
any
Example
{ "error": { "code": "invalid" }}The key doesn’t have the permission this needs.
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
details
object
key
additional properties
any
Example
{ "error": { "code": "invalid" }}Nothing has that id (not_found).
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
details
object
key
additional properties
any
Example
{ "error": { "code": "invalid" }}Over the rate limit; see retry-after.
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
details
object
key
additional properties
any
Example
{ "error": { "code": "invalid" }}