Paid Search Flagged Ads API¶
This section details the API endpoints for retrieving paid search ads that Integrishield has flagged for your company. A "flagged ad" is a search ad captured by paid search monitoring that has been marked for review (it has a flagged date).
Endpoint: /paid-search/flagged-ads
Base URL: https://app.integrishield.com/api
List Flagged Ads¶
- Method:
GET - Full Endpoint:
https://app.integrishield.com/api/paid-search/flagged-ads - Description: Retrieves a paginated list of flagged paid search ads for your company. Supports filtering by affiliate, notice status, and flagged date range. Ads that have not been flagged are never returned.
- Authentication: Required (Bearer Token).
Query Parameters:
| Parameter | Type | Required | Description |
|---|---|---|---|
distributor_id |
integer | No | Filter by the paid search distributor ID linked to the ad. Note: this is a paid search distributor record ID, not the affiliate id from the Affiliates API. |
notice_status_id |
integer | No | Filter by notice status ID. |
flagged_after |
date | No | Return ads flagged on or after this date (format: YYYY-MM-DD). |
flagged_before |
date | No | Return ads flagged on or before this date (format: YYYY-MM-DD). |
sort_by |
string | No | Field to sort by. Allowed values: ad_id, flagged_dt. Default: ad_id. |
sort_dir |
string | No | Sort direction. Allowed values: asc, desc. Default: desc. |
per_page |
integer | No | Number of results per page. Min: 1. Max: 200. Default: 100. |
page |
integer | No | Page number to retrieve. Default: 1. |
Example Request:
GET /api/paid-search/flagged-ads?flagged_after=2026-01-01&per_page=50&sort_by=flagged_dt&sort_dir=desc
Success Response (200 OK):
Returns a JSON object containing the flagged ad data and pagination metadata.
{
"code": "1026",
"status": "ok",
"detail": {
"msg": "Flagged ads found"
},
"data": [
{
"id": 88213,
"title": "Buy Acme Product - 50% Off Today",
"ad_text": "Lose 20 lbs in 2 weeks guaranteed. Order now.",
"keyword_used": "acme product",
"ad_position": 1,
"ad_type": "ad",
"url_website": "https://example-reseller.com/acme",
"url_display": "example-reseller.com/acme",
"url_tracking": "https://www.google.com/aclk?sa=...",
"url_final": "https://example-reseller.com/acme?ref=123",
"flagged_date": "2026-03-04",
"flagging_reason": "Matched rule: \"guaranteed\" AND \"lose\"",
"reviewed_date": "2026-03-05",
"emailed_date": "2026-03-06",
"reported_date": null,
"notice_status": "Notice Sent",
"matched_rules": [
"\"guaranteed\" AND \"lose\""
],
"engine": "Google",
"phrase": "acme product",
"ad_owner": "Example Reseller LLC",
"distributor_name": "John Smith",
"tag": "Unauthorized Reseller",
"assignee": "Jane Doe",
"case_ids": [678]
}
],
"meta": {
"total": 12,
"per_page": 50,
"current_page": 1,
"last_page": 1
}
}
Get Single Flagged Ad¶
- Method:
GET - Full Endpoint:
https://app.integrishield.com/api/paid-search/flagged-ads/{id} - Description: Retrieves detailed information for a specific flagged ad by its ID.
- Authentication: Required (Bearer Token).
Path Parameters:
| Parameter | Type | Required | Description |
|---|---|---|---|
id |
integer | Yes | The unique identifier of the ad. |
Example Request:
GET /api/paid-search/flagged-ads/88213
Success Response (200 OK):
Returns a JSON object containing the flagged ad data.
{
"code": "1026",
"status": "ok",
"detail": {
"msg": "Flagged ad found"
},
"data": {
"id": 88213,
"title": "Buy Acme Product - 50% Off Today",
"ad_text": "Lose 20 lbs in 2 weeks guaranteed. Order now.",
...
}
}
Error Response (404 Not Found):
Returned if no ad exists with the specified ID, the ad has not been flagged, or the ad does not belong to your company.
{
"code": "1025",
"status": "error",
"detail": {
"msg": "Flagged ad not found."
}
}
Flagged Ad Object Reference¶
Each flagged ad object in the response contains the following fields:
Ad Content¶
| Field | Type | Description |
|---|---|---|
id |
integer | Unique identifier for the ad. Matches incident_id for paid search ad incidents in the Cases API. |
title |
string|null | Ad headline as captured. |
ad_text |
string|null | Ad body/description text as captured. |
keyword_used |
string|null | The search keyword that triggered the ad. |
ad_position |
integer|null | Position of the ad on the results page (1 = top). |
ad_type |
string|null | Type of ad unit (e.g. ad, shopping). |
Links¶
| Field | Type | Description |
|---|---|---|
url_website |
string|null | Advertiser URL as captured from the ad. |
url_display |
string|null | Display URL shown in the ad. |
url_tracking |
string|null | Tracking/click URL, if captured. |
url_final |
string|null | Final resolved landing page URL after redirects, if resolved. |
Flag & Review¶
| Field | Type | Description |
|---|---|---|
flagged_date |
date|null | Date the ad was flagged (YYYY-MM-DD). |
flagging_reason |
string|null | Reason recorded when the ad was flagged. |
reviewed_date |
date|null | Date the ad was reviewed (YYYY-MM-DD). |
emailed_date |
date|null | Date a notice was emailed (YYYY-MM-DD). |
reported_date |
date|null | Date the ad was reported to the search engine (YYYY-MM-DD). |
notice_status |
string|null | Current notice status name. |
matched_rules |
array | Rule expressions that matched this ad (see Rule Syntax). |
Search Context¶
| Field | Type | Description |
|---|---|---|
engine |
string|null | Search engine the ad was captured on (e.g. "Google"). |
phrase |
string|null | Monitored search phrase that produced this result. |
Attribution¶
| Field | Type | Description |
|---|---|---|
ad_owner |
string|null | Identified owner of the ad. |
distributor_name |
string|null | Name of the paid search distributor linked to the ad, if identified. |
tag |
string|null | Tag applied to the ad. |
assignee |
string|null | Name of the Integrishield user assigned to the ad. |
Case Linkage¶
| Field | Type | Description |
|---|---|---|
case_ids |
array | IDs of compliance cases this ad has been added to. Empty if none. |
Common Error Responses¶
-
401 Unauthorized: If the Bearer token is missing, invalid, or expired.
-
405 Method Not Allowed: This resource is read-only.
POST,PUT, andDELETEare not supported. -
429 Too Many Requests: If you exceed the API rate limit. Wait before retrying.
-
500 Internal Server Error: If an unexpected error occurs on the server during processing.
{
"code": "500",
"status": "error",
"detail": {
"msg": "Server error! Contact server admin."
}
}