Inspect one owned eligible published Facebook link post under a same-customer Page and advertiser; reviewed revision/link required for subsequent creation
POST
/api/v1/projects/{project_id}/ads/boost-contextads:readRequest body
| Field | Type | Required | Rules |
|---|---|---|---|
customer_id | uuid | Yes | |
connection_id | uuid | Yes | |
page_connection_id | uuid | Yes | |
post_id | string | Yes | pattern ^[1-9][0-9]{0,29}_[1-9][0-9]{0,29}$ |
include_body | boolean | No |
Response 200
| Field | Type | Required | Rules |
|---|---|---|---|
advertiser_id | string | Yes | |
page_id | string | Yes | pattern ^[1-9][0-9]{0,29}$ |
post_id | string | Yes | pattern ^[1-9][0-9]{0,29}_[1-9][0-9]{0,29}$ |
post_revision | string (date-time) | Yes | |
link_url | string (uri) | Yes | |
currency | string | Yes | |
eligible_at_read | true | Yes | |
message | string | null | No | |
read_only | true | Yes | |
content_is_untrusted | true | Yes | |
fetched_at | string (date-time) | Yes | |
limitations | string[] | Yes |
Errors
400Invalid request401Authentication required402Billing activation or published usage allowance required403Project, role or scope denied409State, ownership, idempotency or configuration conflict429Rate limit; respect Retry-After503Maintenance mode or required service configuration unavailable
curl -X POST "https://YOUR_DOMAIN/api/v1/projects/$TECHRACE_PROJECT_ID/ads/boost-context" \
-H "Authorization: Bearer $TECHRACE_API_KEY" \
-H "Content-Type: application/json" \
--data @- <<EOF
{
"customer_id": "$CUSTOMER_ID",
"connection_id": "$CONNECTION_ID",
"page_connection_id": "$PAGE_CONNECTION_ID",
"post_id": "…"
}
EOFRead one Page-connected Instagram Marketing API identity under separately authorized same-customer Page and advertiser connections; no connection creation or ad mutation
POST
/api/v1/projects/{project_id}/ads/instagram-identityads:readRequest body
| Field | Type | Required | Rules |
|---|---|---|---|
customer_id | uuid | Yes | |
connection_id | uuid | Yes | |
page_connection_id | uuid | Yes |
Response 200
| Field | Type | Required | Rules |
|---|---|---|---|
advertiser_id | string | Yes | |
page_id | string | Yes | pattern ^[1-9][0-9]{0,29}$ |
instagram_user_id | string | Yes | pattern ^[1-9][0-9]{0,29}$ |
username | string | null | Yes | |
identity_type | "page_connected" | Yes | |
currency | string | Yes | |
read_only | true | Yes | |
content_is_untrusted | true | Yes | |
fetched_at | string (date-time) | Yes | |
limitations | string[] | Yes |
Errors
400Invalid request401Authentication required402Billing activation or published usage allowance required403Project, role or scope denied409State, ownership, idempotency or configuration conflict429Rate limit; respect Retry-After503Maintenance mode or required service configuration unavailable
curl -X POST "https://YOUR_DOMAIN/api/v1/projects/$TECHRACE_PROJECT_ID/ads/instagram-identity" \
-H "Authorization: Bearer $TECHRACE_API_KEY" \
-H "Content-Type: application/json" \
--data @- <<EOF
{
"customer_id": "$CUSTOMER_ID",
"connection_id": "$CONNECTION_ID",
"page_connection_id": "$PAGE_CONNECTION_ID"
}
EOFInspect one known Search campaign/budget/ad-group/responsive-ad and bounded keyword/geo/language settings; independent reads, not a complete or atomic snapshot
POST
/api/v1/projects/{project_id}/ads/google-search-contextads:readRequest body
| Field | Type | Required | Rules |
|---|---|---|---|
customer_id | uuid | Yes | |
connection_id | uuid | Yes | |
campaign_id | string | Yes | pattern ^[1-9][0-9]{0,18}$Positive decimal int64 string, at most 9223372036854775807. Micros are 1/1,000,000 of advertiser currency. |
ad_group_id | string | Yes | pattern ^[1-9][0-9]{0,18}$Positive decimal int64 string, at most 9223372036854775807. Micros are 1/1,000,000 of advertiser currency. |
ad_id | string | Yes | pattern ^[1-9][0-9]{0,18}$Positive decimal int64 string, at most 9223372036854775807. Micros are 1/1,000,000 of advertiser currency. |
include_body | boolean | No | |
include_policy_details | boolean | No | Separate explicit consent to native policy evidence including creative/destination text and URLs. Independent of include_body. |
Response 200
| Field | Type | Required | Rules |
|---|---|---|---|
delivery_diagnostics | object | Yes | Explicit include_policy_details independently selects untrusted native evidence. Omitted topics are not requested; null is not returned; [] is returned empty, not proof of policy compliance. At most262144 UTF-8 bytes fo… |
diagnostics_revision | string | Yes | pattern ^[A-Za-z0-9_-]{43}$Diagnostics only; never use as a configuration mutation precondition. |
advertiser | object | Yes | |
campaign | object | Yes | |
budget | object | Yes | |
ad_group | object | Yes | |
ad | object | Yes | |
keywords | object[] | Yes | |
targets | object[] | Yes | |
revision | string | Yes | pattern ^[A-Za-z0-9_-]{43}$ |
revision_basis | enum | Yes | one of: "selected_configuration_metadata", "selected_configuration_with_body" |
complete_snapshot | false | Yes | |
read_only | true | Yes | |
content_is_untrusted | true | Yes | |
fetched_at | string (date-time) | Yes | |
limitations | string[] | Yes |
Errors
400Invalid request401Authentication required402Billing activation or published usage allowance required403Project, role or scope denied409State, ownership, idempotency or configuration conflict429Rate limit; respect Retry-After503Maintenance mode or required service configuration unavailable
curl -X POST "https://YOUR_DOMAIN/api/v1/projects/$TECHRACE_PROJECT_ID/ads/google-search-context" \
-H "Authorization: Bearer $TECHRACE_API_KEY" \
-H "Content-Type: application/json" \
--data @- <<EOF
{
"customer_id": "$CUSTOMER_ID",
"connection_id": "$CONNECTION_ID",
"campaign_id": "…",
"ad_group_id": "…",
"ad_id": "…"
}
EOFLook up bounded native Google Ads location suggestions or exact language constants; read-only, no forecast or spend authorization
POST
/api/v1/projects/{project_id}/ads/google-targetsads:readRequest body
The body takes one of 2 shapes, chosen by the field shown.
kind = "locations"
| Field | Type | Required | Rules |
|---|---|---|---|
customer_id | uuid | Yes | |
connection_id | uuid | Yes | |
limit | integer | No | 1–100 |
kind | "locations" | Yes | |
names | string[] | Yes | 1–25 items |
locale | string | No | pattern ^[a-z]{2}$ |
country_code | string | No | pattern ^[A-Z]{2}$ |
kind = "languages"
| Field | Type | Required | Rules |
|---|---|---|---|
customer_id | uuid | Yes | |
connection_id | uuid | Yes | |
limit | integer | No | 1–100 |
kind | "languages" | Yes | |
language_codes | string[] | No | 1–50 items |
Response 200
No fields.
Errors
400Invalid request401Authentication required402Billing activation or published usage allowance required403Project, role or scope denied409State, ownership, idempotency or configuration conflict429Rate limit; respect Retry-After503Maintenance mode or required service configuration unavailable
curl -X POST "https://YOUR_DOMAIN/api/v1/projects/$TECHRACE_PROJECT_ID/ads/google-targets" \
-H "Authorization: Bearer $TECHRACE_API_KEY" \
-H "Content-Type: application/json" \
--data @- <<EOF
{
"customer_id": "$CUSTOMER_ID",
"connection_id": "$CONNECTION_ID",
"kind": "locations",
"names": []
}
EOFRead selected Google Search top terms; low-volume privacy omissions mean this is never an exhaustive traffic report
POST
/api/v1/projects/{project_id}/ads/google-search-termsads:readRequest body
| Field | Type | Required | Rules |
|---|---|---|---|
customer_id | uuid | Yes | |
connection_id | uuid | Yes | |
campaign_id | string | Yes | pattern ^[1-9][0-9]{0,18}$Positive decimal int64 string, at most 9223372036854775807. Micros are 1/1,000,000 of advertiser currency. |
ad_group_id | string | Yes | pattern ^[1-9][0-9]{0,18}$Positive decimal int64 string, at most 9223372036854775807. Micros are 1/1,000,000 of advertiser currency. |
since | string (date) | Yes | |
until | string (date) | Yes | Inclusive1–31day period, not before since |
include_terms | true | Yes | |
limit | integer | No | 1–100 |
metric_set | enum | No | one of: "basic", "performance" |
Response 200
| Field | Type | Required | Rules |
|---|---|---|---|
provider | "googleads" | Yes | |
advertiser | object | Yes | |
campaign_id | string | Yes | pattern ^[1-9][0-9]{0,18}$Positive decimal int64 string, at most 9223372036854775807. Micros are 1/1,000,000 of advertiser currency. |
ad_group_id | string | Yes | pattern ^[1-9][0-9]{0,18}$Positive decimal int64 string, at most 9223372036854775807. Micros are 1/1,000,000 of advertiser currency. |
period | object | Yes | |
metric_set | enum | Yes | one of: "basic", "performance" |
read_only | true | Yes | |
content_is_untrusted | true | Yes | |
complete_report | false | Yes | |
order | "cost_micros_desc" | Yes | |
tie_order | "unspecified" | Yes | |
truncated | boolean | Yes | |
fetched_at | string (date-time) | Yes | |
limitations | string[] | Yes | |
rows | object[] | Yes | 0–100 items |
performance_basis | one of | Yes |
Errors
400Invalid request401Authentication required402Billing activation or published usage allowance required403Project, role or scope denied409State, ownership, idempotency or configuration conflict429Rate limit; respect Retry-After503Maintenance mode or required service configuration unavailable
curl -X POST "https://YOUR_DOMAIN/api/v1/projects/$TECHRACE_PROJECT_ID/ads/google-search-terms" \
-H "Authorization: Bearer $TECHRACE_API_KEY" \
-H "Content-Type: application/json" \
--data @- <<EOF
{
"customer_id": "$CUSTOMER_ID",
"connection_id": "$CONNECTION_ID",
"campaign_id": "…",
"ad_group_id": "…",
"since": "…",
"until": "…",
"include_terms": true
}
EOFRead bounded daily conversion-action metrics for one Google Ads campaign; explicit truncation and native attribution
POST
/api/v1/projects/{project_id}/ads/google-campaign-conversionsads:readRequest body
| Field | Type | Required | Rules |
|---|---|---|---|
customer_id | uuid | Yes | |
connection_id | uuid | Yes | |
campaign_id | string | Yes | pattern ^[1-9][0-9]{0,18}$Positive decimal int64 string, at most 9223372036854775807. Micros are 1/1,000,000 of advertiser currency. |
since | string (date) | Yes | |
until | string (date) | Yes | Inclusive1–31days, not before since |
conversion_action | string | No | pattern ^customers/[0-9]{10}/conversionActions/[1-9][0-9]{0,18}$Native action reference; action ID must fit signed int64. A manager-owned reference never authorizes a lookup in that account. |
limit | integer | No | 1–1000 |
Response 200
| Field | Type | Required | Rules |
|---|---|---|---|
provider | "googleads" | Yes | |
advertiser | object | Yes | |
campaign_id | string | Yes | pattern ^[1-9][0-9]{0,18}$Positive decimal int64 string, at most 9223372036854775807. Micros are 1/1,000,000 of advertiser currency. |
conversion_action_filter | one of | Yes | |
period | object | Yes | |
read_only | true | Yes | |
complete_snapshot | false | Yes | |
truncated | boolean | Yes | |
order | "date_asc_conversion_action_asc" | Yes | |
fetched_at | string (date-time) | Yes | |
rows | object[] | Yes | 0–1000 items |
metric_basis | object | Yes | |
limitations | string[] | Yes |
Errors
400Invalid request401Authentication required402Billing activation or published usage allowance required403Project, role or scope denied409State, ownership, idempotency or configuration conflict429Rate limit; respect Retry-After503Maintenance mode or required service configuration unavailable
curl -X POST "https://YOUR_DOMAIN/api/v1/projects/$TECHRACE_PROJECT_ID/ads/google-campaign-conversions" \
-H "Authorization: Bearer $TECHRACE_API_KEY" \
-H "Content-Type: application/json" \
--data @- <<EOF
{
"customer_id": "$CUSTOMER_ID",
"connection_id": "$CONNECTION_ID",
"campaign_id": "…",
"since": "…",
"until": "…"
}
EOFRead bounded daily device cost/click/impression/conversion metrics for one Google Ads campaign; native sparse and attribution semantics
POST
/api/v1/projects/{project_id}/ads/google-campaign-devicesads:readRequest body
| Field | Type | Required | Rules |
|---|---|---|---|
customer_id | uuid | Yes | |
connection_id | uuid | Yes | |
campaign_id | string | Yes | pattern ^[1-9][0-9]{0,18}$Positive decimal int64 string, at most 9223372036854775807. Micros are 1/1,000,000 of advertiser currency. |
since | string (date) | Yes | |
until | string (date) | Yes | Inclusive1–31days |
device | enum | No | one of: "CONNECTED_TV", "DESKTOP", "MOBILE", "OTHER", "TABLET", "UNKNOWN", "UNSPECIFIED" |
Response 200
| Field | Type | Required | Rules |
|---|---|---|---|
provider | "googleads" | Yes | |
advertiser | object | Yes | |
campaign_id | string | Yes | pattern ^[1-9][0-9]{0,18}$Positive decimal int64 string, at most 9223372036854775807. Micros are 1/1,000,000 of advertiser currency. |
period | object | Yes | |
read_only | true | Yes | |
complete_snapshot | false | Yes | |
truncated | false | Yes | |
order | "date_asc_device_code_asc" | Yes | |
fetched_at | string (date-time) | Yes | |
rows | object[] | Yes | 0–217 items |
metric_basis | object | Yes | |
limitations | string[] | Yes | |
device_filter | one of | Yes |
Errors
400Invalid request401Authentication required402Billing activation or published usage allowance required403Project, role or scope denied409State, ownership, idempotency or configuration conflict429Rate limit; respect Retry-After503Maintenance mode or required service configuration unavailable
curl -X POST "https://YOUR_DOMAIN/api/v1/projects/$TECHRACE_PROJECT_ID/ads/google-campaign-devices" \
-H "Authorization: Bearer $TECHRACE_API_KEY" \
-H "Content-Type: application/json" \
--data @- <<EOF
{
"customer_id": "$CUSTOMER_ID",
"connection_id": "$CONNECTION_ID",
"campaign_id": "…",
"since": "…",
"until": "…"
}
EOFRead a bounded native country/targeted-flag cost ranking for one Google campaign; period aggregates with explicit truncation and no individual-location or completeness guarantee
POST
/api/v1/projects/{project_id}/ads/google-campaign-locationsads:readRequest body
| Field | Type | Required | Rules |
|---|---|---|---|
customer_id | uuid | Yes | |
connection_id | uuid | Yes | |
campaign_id | string | Yes | pattern ^[1-9][0-9]{0,18}$Positive decimal int64 string, at most 9223372036854775807. Micros are 1/1,000,000 of advertiser currency. |
since | string (date) | Yes | |
until | string (date) | Yes | Inclusive1–31days, not before since |
limit | integer | No | 1–100 |
Response 200
| Field | Type | Required | Rules |
|---|---|---|---|
provider | "googleads" | Yes | |
advertiser | object | Yes | |
campaign_id | string | Yes | pattern ^[1-9][0-9]{0,18}$Positive decimal int64 string, at most 9223372036854775807. Micros are 1/1,000,000 of advertiser currency. |
period | object | Yes | |
read_only | true | Yes | |
complete_snapshot | false | Yes | |
truncated | boolean | Yes | |
order | "cost_micros_desc_country_id_asc_targeting_location_asc" | Yes | |
fetched_at | string (date-time) | Yes | |
rows | object[] | Yes | 0–100 items |
metric_basis | object | Yes | |
limitations | string[] | Yes | |
limit | integer | Yes | 1–100 |
Errors
400Invalid request401Authentication required402Billing activation or published usage allowance required403Project, role or scope denied409State, ownership, idempotency or configuration conflict429Rate limit; respect Retry-After503Maintenance mode or required service configuration unavailable
curl -X POST "https://YOUR_DOMAIN/api/v1/projects/$TECHRACE_PROJECT_ID/ads/google-campaign-locations" \
-H "Authorization: Bearer $TECHRACE_API_KEY" \
-H "Content-Type: application/json" \
--data @- <<EOF
{
"customer_id": "$CUSTOMER_ID",
"connection_id": "$CONNECTION_ID",
"campaign_id": "…",
"since": "…",
"until": "…"
}
EOFInspect selected campaign conversion goals and custom-action references; no tracking-health or atomic snapshot guarantee
POST
/api/v1/projects/{project_id}/ads/google-campaign-goalsads:readRequest body
| Field | Type | Required | Rules |
|---|---|---|---|
customer_id | uuid | Yes | |
connection_id | uuid | Yes | |
campaign_id | string | Yes | pattern ^[1-9][0-9]{0,18}$Positive decimal int64 string, at most 9223372036854775807. Micros are 1/1,000,000 of advertiser currency. |
Response 200
| Field | Type | Required | Rules |
|---|---|---|---|
provider | "googleads" | Yes | |
advertiser | object | Yes | |
campaign | object | Yes | |
goal_config_level | string | Yes | pattern ^[A-Z][A-Z0-9_]{0,99}$Native enum code, preserving UNKNOWN/UNSPECIFIED |
goals | object[] | Yes | 0–100 items |
custom_goal | one of | Yes | |
revision | string | Yes | |
revision_basis | "selected_conversion_goal_configuration" | Yes | |
read_only | true | Yes | |
complete_snapshot | false | Yes | |
truncated | false | Yes | |
tracking_verified | false | Yes | |
limitations | string[] | Yes | |
fetched_at | string (date-time) | Yes |
Errors
400Invalid request401Authentication required402Billing activation or published usage allowance required403Project, role or scope denied409State, ownership, idempotency or configuration conflict429Rate limit; respect Retry-After503Maintenance mode or required service configuration unavailable
curl -X POST "https://YOUR_DOMAIN/api/v1/projects/$TECHRACE_PROJECT_ID/ads/google-campaign-goals" \
-H "Authorization: Bearer $TECHRACE_API_KEY" \
-H "Content-Type: application/json" \
--data @- <<EOF
{
"customer_id": "$CUSTOMER_ID",
"connection_id": "$CONNECTION_ID",
"campaign_id": "…"
}
EOFRead bounded advertiser-default conversion goals and reviewed projection revision; not tracking-health proof
POST
/api/v1/projects/{project_id}/ads/google-account-goalsads:readRequest body
| Field | Type | Required | Rules |
|---|---|---|---|
customer_id | uuid | Yes | |
connection_id | uuid | Yes |
Response 200
| Field | Type | Required | Rules |
|---|---|---|---|
provider | "googleads" | Yes | |
advertiser | object | Yes | |
goals | object[] | Yes | 0–100 items |
revision | string | Yes | |
revision_basis | "selected_account_conversion_goals" | Yes | |
read_only | true | Yes | |
complete_snapshot | false | Yes | |
truncated | false | Yes | |
tracking_verified | false | Yes | |
limitations | string[] | Yes | |
fetched_at | string (date-time) | Yes |
Errors
400Invalid request401Authentication required402Billing activation or published usage allowance required403Project, role or scope denied409State, ownership, idempotency or configuration conflict429Rate limit; respect Retry-After503Maintenance mode or required service configuration unavailable
curl -X POST "https://YOUR_DOMAIN/api/v1/projects/$TECHRACE_PROJECT_ID/ads/google-account-goals" \
-H "Authorization: Bearer $TECHRACE_API_KEY" \
-H "Content-Type: application/json" \
--data @- <<EOF
{
"customer_id": "$CUSTOMER_ID",
"connection_id": "$CONNECTION_ID"
}
EOFInspect bounded customer-bound Meta pixel edge metadata (native flags/timestamps, names opt-in; no event data or eligibility guarantee), custom-audience edge metadata/approximate size bounds (names opt-in), image/creative metadata or ad-account video edge membership and native processing phase stat…
POST
/api/v1/projects/{project_id}/ads/meta-assetsads:readRequest body
The body takes one of 5 shapes, chosen by the field shown.
resource = "images"
| Field | Type | Required | Rules |
|---|---|---|---|
customer_id | uuid | Yes | |
connection_id | uuid | Yes | |
limit | integer | No | 1–50 |
resource | "images" | Yes | |
image_hash | string | No | pattern ^[a-f0-9]{32}$ |
include_body | false | No | |
cursor | string | No | length 1–10000 |
resource = "pixels"
| Field | Type | Required | Rules |
|---|---|---|---|
customer_id | uuid | Yes | |
connection_id | uuid | Yes | |
limit | integer | No | 1–50 |
resource | "pixels" | Yes | |
include_names | boolean | No | |
include_body | false | No | |
cursor | string | No | length 1–10000 |
resource = "audiences"
| Field | Type | Required | Rules |
|---|---|---|---|
customer_id | uuid | Yes | |
connection_id | uuid | Yes | |
limit | integer | No | 1–50 |
resource | "audiences" | Yes | |
include_names | boolean | No | |
include_body | false | No | |
cursor | string | No | length 1–10000 |
include_body = "false"
| Field | Type | Required | Rules |
|---|---|---|---|
customer_id | uuid | Yes | |
connection_id | uuid | Yes | |
limit | integer | No | 1–50 |
resource | enum | Yes | one of: "creatives", "videos" |
include_body | false | No | |
cursor | string | No | length 1–10000 |
resource = "creative"
| Field | Type | Required | Rules |
|---|---|---|---|
customer_id | uuid | Yes | |
connection_id | uuid | Yes | |
limit | integer | No | 1–50 |
resource | "creative" | Yes | |
creative_id | string | Yes | pattern ^[1-9][0-9]{0,29}$ |
include_body | boolean | No |
Response 200
| Field | Type | Required | Rules |
|---|---|---|---|
provider | "metaads" | Yes | |
advertiser_id | string | Yes | |
resource | enum | Yes | one of: "images", "creatives", "creative", "videos", "audiences", "pixels" |
include_body | boolean | Yes | |
data | one of[] | Yes | 0–50 items |
next_cursor | string | null | Yes | |
fetched_at | string (date-time) | Yes | |
read_only | true | Yes | |
content_is_untrusted | true | Yes | |
complete_snapshot | false | Yes | |
limitations | string[] | Yes |
Errors
400Invalid request401Authentication required402Billing activation or published usage allowance required403Project, role or scope denied409State, ownership, idempotency or configuration conflict429Rate limit; respect Retry-After503Maintenance mode or required service configuration unavailable
curl -X POST "https://YOUR_DOMAIN/api/v1/projects/$TECHRACE_PROJECT_ID/ads/meta-assets" \
-H "Authorization: Bearer $TECHRACE_API_KEY" \
-H "Content-Type: application/json" \
--data @- <<EOF
{
"customer_id": "$CUSTOMER_ID",
"connection_id": "$CONNECTION_ID",
"resource": "images"
}
EOFSearch or resolve bounded native geographic metadata through an authorized Meta advertiser; no targeting mutation
POST
/api/v1/projects/{project_id}/ads/meta-locationsads:readRequest body
The body takes one of 2 shapes, chosen by the field shown.
mode = "search"
| Field | Type | Required | Rules |
|---|---|---|---|
customer_id | uuid | Yes | |
connection_id | uuid | Yes | |
type | enum | Yes | one of: "country", "region", "city" |
mode | "search" | Yes | |
query | string | Yes | length 1–100Trimmed nonempty UTF8 query; control characters are refused. |
country_code | string | No | pattern ^[A-Z]{2}$ |
limit | integer | No | 1–50 |
mode = "resolve"
| Field | Type | Required | Rules |
|---|---|---|---|
customer_id | uuid | Yes | |
connection_id | uuid | Yes | |
type | enum | Yes | one of: "country", "region", "city" |
mode | "resolve" | Yes | |
keys | string[] | Yes | 1–20 items |
Response 200
| Field | Type | Required | Rules |
|---|---|---|---|
provider | "metaads" | Yes | |
advertiser_id | string | Yes | |
mode | enum | Yes | one of: "search", "resolve" |
type | enum | Yes | one of: "country", "region", "city" |
data | object[] | Yes | |
has_more | boolean | Yes | |
read_only | true | Yes | |
content_is_untrusted | true | Yes | |
complete_catalog | false | Yes | |
fetched_at | string (date-time) | Yes | |
limitations | string[] | Yes |
Errors
400Invalid request401Authentication required402Billing activation or published usage allowance required403Project, role or scope denied409State, ownership, idempotency or configuration conflict429Rate limit; respect Retry-After503Maintenance mode or required service configuration unavailable
curl -X POST "https://YOUR_DOMAIN/api/v1/projects/$TECHRACE_PROJECT_ID/ads/meta-locations" \
-H "Authorization: Bearer $TECHRACE_API_KEY" \
-H "Content-Type: application/json" \
--data @- <<EOF
{
"customer_id": "$CUSTOMER_ID",
"connection_id": "$CONNECTION_ID",
"type": "country",
"mode": "search",
"query": "…"
}
EOFRead selected customer-bound Meta advertiser/campaign/ad-group budget and bid settings; shared25-second native-read budget, independent observations rather than an atomic snapshot
POST
/api/v1/projects/{project_id}/ads/meta-ad-group-contextads:readRequest body
| Field | Type | Required | Rules |
|---|---|---|---|
customer_id | uuid | Yes | |
connection_id | uuid | Yes | |
campaign_id | string | Yes | pattern ^[1-9][0-9]{0,29}$ |
ad_group_id | string | Yes | pattern ^[1-9][0-9]{0,29}$ |
include_conversion | boolean | No | Independent opt-in to selected native pixel/custom-conversion IDs/type and attribution event/window pairs. No rules, URLs, names or event data. Separate selected revision; not complete configuration, ownership, eligibil… |
include_audiences | boolean | No | Independent explicit opt-in to included/excluded custom-audience IDs. No names, members or rules. Separate selected revision; absent null differs from empty list. Does not prove complete targeting or eligibility. |
include_targeting | boolean | No | Explicit opt-in to selected native targeting/schedule/dynamic-creative settings and a separate revision. Missing remains unknown and unmodeled values are suppressed. |
include_transparency | boolean | No | Explicit opt-in to native beneficiary/payer values. Omission suppresses names; the money revision remains unchanged. |
Response 200
| Field | Type | Required | Rules |
|---|---|---|---|
provider | "metaads" | Yes | |
advertiser_id | string | Yes | |
currency | string | Yes | |
account_status | integer | Yes | |
campaign | object | Yes | |
ad_group | object | Yes | |
conversion | object | No | |
audience_targeting | object | No | |
targeting | object | No | |
transparency | object | No | |
revision | string | Yes | pattern ^[A-Za-z0-9_-]{43}$ |
read_only | true | Yes | |
content_is_untrusted | true | Yes | |
complete_snapshot | false | Yes | |
fetched_at | string (date-time) | Yes | |
limitations | string[] | Yes |
Errors
400Invalid request401Authentication required402Billing activation or published usage allowance required403Project, role or scope denied409State, ownership, idempotency or configuration conflict429Rate limit; respect Retry-After503Maintenance mode or required service configuration unavailable
curl -X POST "https://YOUR_DOMAIN/api/v1/projects/$TECHRACE_PROJECT_ID/ads/meta-ad-group-context" \
-H "Authorization: Bearer $TECHRACE_API_KEY" \
-H "Content-Type: application/json" \
--data @- <<EOF
{
"customer_id": "$CUSTOMER_ID",
"connection_id": "$CONNECTION_ID",
"campaign_id": "…",
"ad_group_id": "…"
}
EOFInspect a selected bound Meta ad/campaign/ad-group/creative graph; seven GETs share a25-second native-read budget with final ad linkage recheck, not atomic or a write reconciliation proof
POST
/api/v1/projects/{project_id}/ads/meta-ad-contextads:readRequest body
| Field | Type | Required | Rules |
|---|---|---|---|
customer_id | uuid | Yes | |
connection_id | uuid | Yes | |
campaign_id | string | Yes | pattern ^[1-9][0-9]{0,29}$ |
ad_group_id | string | Yes | pattern ^[1-9][0-9]{0,29}$ |
include_conversion | boolean | No | Independent opt-in to selected native pixel/custom-conversion IDs/type and attribution event/window pairs. No rules, URLs, names or event data. Separate selected revision; not complete configuration, ownership, eligibil… |
include_audiences | boolean | No | Independent explicit opt-in to included/excluded custom-audience IDs. No names, members or rules. Separate selected revision; absent null differs from empty list. Does not prove complete targeting or eligibility. |
include_targeting | boolean | No | Explicit opt-in to selected native targeting/schedule/dynamic-creative settings and a separate revision. Missing remains unknown and unmodeled values are suppressed. |
include_transparency | boolean | No | Explicit opt-in to native beneficiary/payer values. Omission suppresses names; the money revision remains unchanged. |
ad_id | string | Yes | pattern ^[1-9][0-9]{0,29}$ |
include_body | boolean | No | Explicit opt-in to selected creative text, links and story fields; untrusted content. |
Response 200
| Field | Type | Required | Rules |
|---|---|---|---|
provider | "metaads" | Yes | |
advertiser_id | string | Yes | |
currency | string | Yes | |
account_status | integer | Yes | |
campaign | object | Yes | |
ad_group | object | Yes | |
conversion | object | No | |
audience_targeting | object | No | |
targeting | object | No | |
transparency | object | No | |
revision | string | Yes | pattern ^[A-Za-z0-9_-]{43}$ |
read_only | true | Yes | |
content_is_untrusted | true | Yes | |
complete_snapshot | false | Yes | |
fetched_at | string (date-time) | Yes | |
limitations | string[] | Yes | |
ad | object | Yes | |
creative | object | Yes | |
configuration_revision | string | Yes | pattern ^[A-Za-z0-9_-]{43}$Original selected budget/bid revision, independent of the graph revision. |
Errors
400Invalid request401Authentication required402Billing activation or published usage allowance required403Project, role or scope denied409State, ownership, idempotency or configuration conflict429Rate limit; respect Retry-After503Maintenance mode or required service configuration unavailable
curl -X POST "https://YOUR_DOMAIN/api/v1/projects/$TECHRACE_PROJECT_ID/ads/meta-ad-context" \
-H "Authorization: Bearer $TECHRACE_API_KEY" \
-H "Content-Type: application/json" \
--data @- <<EOF
{
"customer_id": "$CUSTOMER_ID",
"connection_id": "$CONNECTION_ID",
"campaign_id": "…",
"ad_group_id": "…",
"ad_id": "…"
}
EOFList bounded retained operation status metadata for one customer/connection, newest first. Defaults to unresolved work; no native request, payload/receipt content, upload capability or acknowledgment note. Caller/query-bound cursor expires after15minutes; changing statuses and retention prevent sna…
POST
/api/v1/projects/{project_id}/ads/operations/queryads:operations:readRequest body
| Field | Type | Required | Rules |
|---|---|---|---|
customer_id | uuid | Yes | |
connection_id | uuid | Yes | |
view | enum | No | one of: "unresolved", "all" |
limit | integer | No | 1–100 |
cursor | string | No | length 1–2048 |
Response 200
| Field | Type | Required | Rules |
|---|---|---|---|
family | "ads" | Yes | |
data | object[] | Yes | |
next_cursor | string | null | Yes | |
read_only | true | Yes | |
complete_snapshot | false | Yes |
Errors
400Invalid request401Authentication required402Billing activation or published usage allowance required403Project, role or scope denied409State, ownership, idempotency or configuration conflict429Rate limit; respect Retry-After503Maintenance mode or required service configuration unavailable
curl -X POST "https://YOUR_DOMAIN/api/v1/projects/$TECHRACE_PROJECT_ID/ads/operations/query" \
-H "Authorization: Bearer $TECHRACE_API_KEY" \
-H "Content-Type: application/json" \
--data @- <<EOF
{
"customer_id": "$CUSTOMER_ID",
"connection_id": "$CONNECTION_ID"
}
EOFQueue explicitly confirmed known paused Meta entity archival (exact parents, current PAUSED status, one ARCHIVED update; native acceptance only, no descendant inventory or erasure) or Meta image/creative deletion, both with a connection-wide unresolved-work barrier, or verified private MP4 ad-video…
POST
/api/v1/projects/{project_id}/ads/operationsads:write; private-image/video upload also requires media:write; enabling, editing budgets/bids or any keyword action also requires ads:spendParameters
| Field | Type | Required | Rules |
|---|---|---|---|
Idempotency-Key header | string | Yes | length 8–200 · pattern ^[A-Za-z0-9_.:-]+$ |
Request body
The body takes one of 35 shapes, chosen by the field shown.
action = "archive_meta_entity"
| Field | Type | Required | Rules |
|---|---|---|---|
customer_id | uuid | Yes | |
connection_id | uuid | Yes | |
action | "archive_meta_entity" | Yes | |
entity_id | string | Yes | pattern ^[1-9]\d{0,29}(?![\s\S]) |
resource | enum | Yes | one of: "campaign", "ad_group", "ad" |
expected_campaign_id | string | No | pattern ^[1-9]\d{0,29}(?![\s\S]) |
expected_ad_group_id | string | No | pattern ^[1-9]\d{0,29}(?![\s\S]) |
expected_status | "paused" | Yes | |
confirm_archive | true | Yes | |
confirm_ads_may_be_affected | true | Yes | |
spend_authorized | false | No |
action = "delete_meta_ad_image"
| Field | Type | Required | Rules |
|---|---|---|---|
customer_id | uuid | Yes | |
connection_id | uuid | Yes | |
expected_revision | string | Yes | pattern ^[A-Za-z0-9_-]{43}$ |
confirm_delete | true | Yes | |
confirm_ads_may_be_affected | true | Yes | |
spend_authorized | false | No | |
action | "delete_meta_ad_image" | Yes | |
image_hash | string | Yes | pattern ^[a-f0-9]{32}$ |
action = "delete_meta_ad_creative"
| Field | Type | Required | Rules |
|---|---|---|---|
customer_id | uuid | Yes | |
connection_id | uuid | Yes | |
expected_revision | string | Yes | pattern ^[A-Za-z0-9_-]{43}$ |
confirm_delete | true | Yes | |
confirm_ads_may_be_affected | true | Yes | |
spend_authorized | false | No | |
action | "delete_meta_ad_creative" | Yes | |
creative_id | string | Yes | pattern ^[1-9][0-9]{0,29}$ |
action = "upload_meta_ad_image"
| Field | Type | Required | Rules |
|---|---|---|---|
customer_id | uuid | Yes | |
connection_id | uuid | Yes | |
action | "upload_meta_ad_image" | Yes | |
media_id | uuid | Yes | |
expected_sha256 | string | Yes | pattern ^[a-f0-9]{64}$ |
spend_authorized | false | No |
action = "upload_meta_ad_video"
| Field | Type | Required | Rules |
|---|---|---|---|
customer_id | uuid | Yes | |
connection_id | uuid | Yes | |
action | "upload_meta_ad_video" | Yes | |
media_id | uuid | Yes | |
expected_sha256 | string | Yes | pattern ^[a-f0-9]{64}$ |
spend_authorized | false | No |
action = "create_video_creative"
| Field | Type | Required | Rules |
|---|---|---|---|
placement | enum | Yes | one of: "facebook_feed", "instagram_feed" |
instagram_user_id | string | No | pattern ^[1-9][0-9]{0,29}$ |
customer_id | uuid | Yes | |
connection_id | uuid | Yes | |
page_connection_id | uuid | Yes | |
name | string | Yes | length 1–100 |
image_hash | string | Yes | pattern ^[a-f0-9]{32}$ |
link_url | string (uri) | Yes | length 0–2000 · pattern ^https:// |
message | string | Yes | length 1–2000 |
headline | string | No | length 1–100 |
description | string | No | length 1–200 |
call_to_action | "learn_more" | Yes | |
spend_authorized | false | No | |
action | "create_video_creative" | Yes | |
video_id | string | Yes | pattern ^[1-9][0-9]{0,29}$ |
video_reference | string | Yes | length 1–6500Encrypted15-minute advertiser-library page locator bound to the current connection credential. Freshly rechecked before video creative/ad actions; not write authorization or exclusive ownership proof. |
action = "create_video_ad"
| Field | Type | Required | Rules |
|---|---|---|---|
placement | enum | Yes | one of: "facebook_feed", "instagram_feed" |
instagram_user_id | string | No | pattern ^[1-9][0-9]{0,29}$ |
customer_id | uuid | Yes | |
connection_id | uuid | Yes | |
page_connection_id | uuid | Yes | |
name | string | Yes | length 1–100 |
image_hash | string | Yes | pattern ^[a-f0-9]{32}$ |
link_url | string (uri) | Yes | length 0–2000 · pattern ^https:// |
message | string | Yes | length 1–2000 |
headline | string | No | length 1–100 |
description | string | No | length 1–200 |
call_to_action | "learn_more" | Yes | |
spend_authorized | false | No | |
action | "create_video_ad" | Yes | |
video_id | string | Yes | pattern ^[1-9][0-9]{0,29}$ |
video_reference | string | Yes | length 1–6500Encrypted15-minute advertiser-library page locator bound to the current connection credential. Freshly rechecked before video creative/ad actions; not write authorization or exclusive ownership proof. |
expected_conversion | object | No | |
expected_conversion.pixel_id | string | Yes | pattern ^[1-9][0-9]{0,29}$ |
expected_conversion.event_type | enum | Yes | one of: "PURCHASE", "LEAD", "COMPLETE_REGISTRATION", "ADD_TO_CART", "INITIATED_CHECKOUT", "CONTENT_VIEW" |
expected_conversion.confirm_website_conversion | true | Yes | |
campaign_id | string | Yes | pattern ^[1-9][0-9]{0,29}$ |
ad_group_id | string | Yes | pattern ^[1-9][0-9]{0,29}$ |
creative_id | string | Yes | pattern ^[1-9][0-9]{0,29}$ |
status | "paused" | Yes |
action = "create_image_creative"
| Field | Type | Required | Rules |
|---|---|---|---|
placement | enum | No | one of: "facebook_feed", "instagram_feed" |
instagram_user_id | string | No | pattern ^[1-9][0-9]{0,29}$ |
customer_id | uuid | Yes | |
connection_id | uuid | Yes | |
page_connection_id | uuid | Yes | |
name | string | Yes | length 1–100 |
image_hash | string | Yes | pattern ^[a-f0-9]{32}$ |
link_url | string (uri) | Yes | length 0–2000 · pattern ^https:// |
message | string | Yes | length 1–2000 |
headline | string | No | length 1–100 |
description | string | No | length 1–200 |
call_to_action | "learn_more" | Yes | |
spend_authorized | false | No | |
action | "create_image_creative" | Yes |
action = "create_image_ad"
| Field | Type | Required | Rules |
|---|---|---|---|
placement | enum | No | one of: "facebook_feed", "instagram_feed" |
instagram_user_id | string | No | pattern ^[1-9][0-9]{0,29}$ |
customer_id | uuid | Yes | |
connection_id | uuid | Yes | |
page_connection_id | uuid | Yes | |
name | string | Yes | length 1–100 |
image_hash | string | Yes | pattern ^[a-f0-9]{32}$ |
link_url | string (uri) | Yes | length 0–2000 · pattern ^https:// |
message | string | Yes | length 1–2000 |
headline | string | No | length 1–100 |
description | string | No | length 1–200 |
call_to_action | "learn_more" | Yes | |
spend_authorized | false | No | |
action | "create_image_ad" | Yes | |
expected_conversion | object | No | |
expected_conversion.pixel_id | string | Yes | pattern ^[1-9][0-9]{0,29}$ |
expected_conversion.event_type | enum | Yes | one of: "PURCHASE", "LEAD", "COMPLETE_REGISTRATION", "ADD_TO_CART", "INITIATED_CHECKOUT", "CONTENT_VIEW" |
expected_conversion.confirm_website_conversion | true | Yes | |
status | "paused" | Yes | |
creative_id | string | Yes | pattern ^[1-9][0-9]{0,29}$ |
campaign_id | string | Yes | pattern ^[1-9][0-9]{0,29}$ |
ad_group_id | string | Yes | pattern ^[1-9][0-9]{0,29}$ |
action = "create_carousel_creative"
| Field | Type | Required | Rules |
|---|---|---|---|
placement | enum | No | one of: "facebook_feed", "instagram_feed" |
instagram_user_id | string | No | pattern ^[1-9][0-9]{0,29}$ |
customer_id | uuid | Yes | |
connection_id | uuid | Yes | |
page_connection_id | uuid | Yes | |
name | string | Yes | length 1–100 |
link_url | string (uri) | Yes | length 0–2000 · pattern ^https:// |
message | string | Yes | length 1–2000 |
call_to_action | "learn_more" | Yes | |
spend_authorized | false | No | |
cards | object[] | Yes | 2–10 items |
cards[].image_hash | string | Yes | pattern ^[a-f0-9]{32}$ |
cards[].link_url | string (uri) | Yes | length 0–2000 · pattern ^https:// |
cards[].headline | string | Yes | length 1–100 |
cards[].description | string | No | length 1–200 |
preserve_card_order | true | Yes | |
action | "create_carousel_creative" | Yes |
action = "create_carousel_ad"
| Field | Type | Required | Rules |
|---|---|---|---|
placement | enum | No | one of: "facebook_feed", "instagram_feed" |
instagram_user_id | string | No | pattern ^[1-9][0-9]{0,29}$ |
customer_id | uuid | Yes | |
connection_id | uuid | Yes | |
page_connection_id | uuid | Yes | |
name | string | Yes | length 1–100 |
link_url | string (uri) | Yes | length 0–2000 · pattern ^https:// |
message | string | Yes | length 1–2000 |
call_to_action | "learn_more" | Yes | |
spend_authorized | false | No | |
cards | object[] | Yes | 2–10 items |
cards[].image_hash | string | Yes | pattern ^[a-f0-9]{32}$ |
cards[].link_url | string (uri) | Yes | length 0–2000 · pattern ^https:// |
cards[].headline | string | Yes | length 1–100 |
cards[].description | string | No | length 1–200 |
preserve_card_order | true | Yes | |
action | "create_carousel_ad" | Yes | |
expected_conversion | object | No | |
expected_conversion.pixel_id | string | Yes | pattern ^[1-9][0-9]{0,29}$ |
expected_conversion.event_type | enum | Yes | one of: "PURCHASE", "LEAD", "COMPLETE_REGISTRATION", "ADD_TO_CART", "INITIATED_CHECKOUT", "CONTENT_VIEW" |
expected_conversion.confirm_website_conversion | true | Yes | |
creative_id | string | Yes | pattern ^[1-9][0-9]{0,29}$ |
campaign_id | string | Yes | pattern ^[1-9][0-9]{0,29}$ |
ad_group_id | string | Yes | pattern ^[1-9][0-9]{0,29}$ |
status | "paused" | Yes |
action = "update_meta_ad_group_budget"
| Field | Type | Required | Rules |
|---|---|---|---|
customer_id | uuid | Yes | |
connection_id | uuid | Yes | |
campaign_id | string | Yes | pattern ^[1-9][0-9]{0,29}$ |
ad_group_id | string | Yes | pattern ^[1-9][0-9]{0,29}$ |
currency | string | Yes | pattern ^[A-Z]{3}$ |
expected_revision | string | Yes | pattern ^[A-Za-z0-9_-]{43}$ |
expected_campaign_status | enum | Yes | one of: "enabled", "paused" |
expected_ad_group_status | enum | Yes | one of: "enabled", "paused" |
expected_bid_strategy | enum | Yes | one of: "LOWEST_COST_WITHOUT_CAP", "LOWEST_COST_WITH_BID_CAP" |
spend_authorized | true | Yes | |
action | "update_meta_ad_group_budget" | Yes | |
expected_daily_budget_minor | string | Yes | pattern ^[1-9][0-9]{0,11}$ |
daily_budget_minor | string | Yes | pattern ^[1-9][0-9]{0,11}$ |
expected_conversion | object | No | |
expected_conversion.pixel_id | string | Yes | pattern ^[1-9][0-9]{0,29}$ |
expected_conversion.event_type | enum | Yes | one of: "PURCHASE", "LEAD", "COMPLETE_REGISTRATION", "ADD_TO_CART", "INITIATED_CHECKOUT", "CONTENT_VIEW" |
expected_conversion.confirm_website_conversion | true | Yes |
action = "update_meta_ad_group_lifetime_budget"
| Field | Type | Required | Rules |
|---|---|---|---|
customer_id | uuid | Yes | |
connection_id | uuid | Yes | |
campaign_id | string | Yes | pattern ^[1-9][0-9]{0,29}$ |
ad_group_id | string | Yes | pattern ^[1-9][0-9]{0,29}$ |
currency | string | Yes | pattern ^[A-Z]{3}$ |
expected_revision | string | Yes | pattern ^[A-Za-z0-9_-]{43}$ |
expected_campaign_status | enum | Yes | one of: "enabled", "paused" |
expected_ad_group_status | enum | Yes | one of: "enabled", "paused" |
expected_bid_strategy | enum | Yes | one of: "LOWEST_COST_WITHOUT_CAP", "LOWEST_COST_WITH_BID_CAP" |
spend_authorized | true | Yes | |
action | "update_meta_ad_group_lifetime_budget" | Yes | |
expected_lifetime_budget_minor | string | Yes | pattern ^[1-9][0-9]{0,11}$ |
lifetime_budget_minor | string | Yes | pattern ^[1-9][0-9]{0,11}$Total budget for the unchanged existing schedule, not remaining or incremental spend. |
expected_end_time | string (date-time) | Yes | pattern ^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d{3}Z$ |
expected_conversion | object | No | |
expected_conversion.pixel_id | string | Yes | pattern ^[1-9][0-9]{0,29}$ |
expected_conversion.event_type | enum | Yes | one of: "PURCHASE", "LEAD", "COMPLETE_REGISTRATION", "ADD_TO_CART", "INITIATED_CHECKOUT", "CONTENT_VIEW" |
expected_conversion.confirm_website_conversion | true | Yes |
action = "update_meta_ad_group_bid"
| Field | Type | Required | Rules |
|---|---|---|---|
customer_id | uuid | Yes | |
connection_id | uuid | Yes | |
campaign_id | string | Yes | pattern ^[1-9][0-9]{0,29}$ |
ad_group_id | string | Yes | pattern ^[1-9][0-9]{0,29}$ |
currency | string | Yes | pattern ^[A-Z]{3}$ |
expected_revision | string | Yes | pattern ^[A-Za-z0-9_-]{43}$ |
expected_campaign_status | enum | Yes | one of: "enabled", "paused" |
expected_ad_group_status | enum | Yes | one of: "enabled", "paused" |
expected_bid_strategy | "LOWEST_COST_WITH_BID_CAP" | Yes | |
spend_authorized | true | Yes | |
action | "update_meta_ad_group_bid" | Yes | |
expected_bid_amount_minor | string | Yes | pattern ^[1-9][0-9]{0,11}$ |
bid_amount_minor | string | Yes | pattern ^[1-9][0-9]{0,11}$ |
expected_end_time | string (date-time) | No | pattern ^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d{3}Z$Explicitly selects lifetime-budget bid editing. Copy the exact canonical UTC end_time from fresh context; omission retains daily-budget behavior. The existing total budget and end date are never changed. At least60secon… |
expected_conversion | object | No | |
expected_conversion.pixel_id | string | Yes | pattern ^[1-9][0-9]{0,29}$ |
expected_conversion.event_type | enum | Yes | one of: "PURCHASE", "LEAD", "COMPLETE_REGISTRATION", "ADD_TO_CART", "INITIATED_CHECKOUT", "CONTENT_VIEW" |
expected_conversion.confirm_website_conversion | true | Yes |
action = "create_google_search_keyword"
| Field | Type | Required | Rules |
|---|---|---|---|
expected_bidding_strategy | enum | No | one of: "manual_cpc", "maximize_clicks", "maximize_conversions", "maximize_conversion_value", "target_impression_share"Omission preserves manual CPC. Explicit automated strategy requires a matching standard nonportfolio campaign, null current/proposed keyword CPC and no keyword bid action. |
customer_id | uuid | Yes | |
connection_id | uuid | Yes | |
campaign_id | string | Yes | pattern ^[1-9][0-9]{0,18}$Positive decimal int64 string, at most 9223372036854775807. Micros are 1/1,000,000 of advertiser currency. |
currency | string | Yes | pattern ^[A-Z]{3}$ |
expected_campaign_status | enum | Yes | one of: "enabled", "paused" |
spend_authorized | true | Yes | |
ad_group_id | string | Yes | pattern ^[1-9][0-9]{0,18}$Positive decimal int64 string, at most 9223372036854775807. Micros are 1/1,000,000 of advertiser currency. |
expected_ad_group_status | enum | Yes | one of: "enabled", "paused" |
action | "create_google_search_keyword" | Yes | |
keyword | object | Yes | |
keyword.text | string | Yes | length 1–80 |
keyword.match_type | enum | Yes | one of: "exact", "phrase", "broad" |
keyword.negative | boolean | Yes | |
cpc_bid_micros | one of | Yes |
action = "replace_google_search_keyword"
| Field | Type | Required | Rules |
|---|---|---|---|
expected_bidding_strategy | enum | No | one of: "manual_cpc", "maximize_clicks", "maximize_conversions", "maximize_conversion_value", "target_impression_share"Omission preserves manual CPC. Explicit automated strategy requires a matching standard nonportfolio campaign, null current/proposed keyword CPC and no keyword bid action. |
customer_id | uuid | Yes | |
connection_id | uuid | Yes | |
campaign_id | string | Yes | pattern ^[1-9][0-9]{0,18}$Positive decimal int64 string, at most 9223372036854775807. Micros are 1/1,000,000 of advertiser currency. |
currency | string | Yes | pattern ^[A-Z]{3}$ |
expected_campaign_status | enum | Yes | one of: "enabled", "paused" |
spend_authorized | true | Yes | |
ad_group_id | string | Yes | pattern ^[1-9][0-9]{0,18}$Positive decimal int64 string, at most 9223372036854775807. Micros are 1/1,000,000 of advertiser currency. |
expected_ad_group_status | enum | Yes | one of: "enabled", "paused" |
criterion_id | string | Yes | pattern ^[1-9][0-9]{0,18}$Positive decimal int64 string, at most 9223372036854775807. Micros are 1/1,000,000 of advertiser currency. |
expected_keyword | object | Yes | |
expected_keyword.text | string | Yes | length 1–80 |
expected_keyword.match_type | enum | Yes | one of: "exact", "phrase", "broad" |
expected_keyword.negative | boolean | Yes | |
expected_keyword_status | enum | Yes | one of: "enabled", "paused" |
expected_cpc_bid_micros | one of | Yes | |
action | "replace_google_search_keyword" | Yes | |
keyword | object | Yes | |
keyword.text | string | Yes | length 1–80 |
keyword.match_type | enum | Yes | one of: "exact", "phrase", "broad" |
keyword.negative | boolean | Yes | |
cpc_bid_micros | one of | Yes | |
confirm_replace | true | Yes |
action = "remove_google_search_keyword"
| Field | Type | Required | Rules |
|---|---|---|---|
expected_bidding_strategy | enum | No | one of: "manual_cpc", "maximize_clicks", "maximize_conversions", "maximize_conversion_value", "target_impression_share"Omission preserves manual CPC. Explicit automated strategy requires a matching standard nonportfolio campaign, null current/proposed keyword CPC and no keyword bid action. |
customer_id | uuid | Yes | |
connection_id | uuid | Yes | |
campaign_id | string | Yes | pattern ^[1-9][0-9]{0,18}$Positive decimal int64 string, at most 9223372036854775807. Micros are 1/1,000,000 of advertiser currency. |
currency | string | Yes | pattern ^[A-Z]{3}$ |
expected_campaign_status | enum | Yes | one of: "enabled", "paused" |
spend_authorized | true | Yes | |
ad_group_id | string | Yes | pattern ^[1-9][0-9]{0,18}$Positive decimal int64 string, at most 9223372036854775807. Micros are 1/1,000,000 of advertiser currency. |
expected_ad_group_status | enum | Yes | one of: "enabled", "paused" |
criterion_id | string | Yes | pattern ^[1-9][0-9]{0,18}$Positive decimal int64 string, at most 9223372036854775807. Micros are 1/1,000,000 of advertiser currency. |
expected_keyword | object | Yes | |
expected_keyword.text | string | Yes | length 1–80 |
expected_keyword.match_type | enum | Yes | one of: "exact", "phrase", "broad" |
expected_keyword.negative | boolean | Yes | |
expected_keyword_status | enum | Yes | one of: "enabled", "paused" |
expected_cpc_bid_micros | one of | Yes | |
action | "remove_google_search_keyword" | Yes | |
confirm_remove | true | Yes |
action = "set_google_search_keyword_status"
| Field | Type | Required | Rules |
|---|---|---|---|
expected_bidding_strategy | enum | No | one of: "manual_cpc", "maximize_clicks", "maximize_conversions", "maximize_conversion_value", "target_impression_share"Omission preserves manual CPC. Explicit automated strategy requires a matching standard nonportfolio campaign, null current/proposed keyword CPC and no keyword bid action. |
customer_id | uuid | Yes | |
connection_id | uuid | Yes | |
campaign_id | string | Yes | pattern ^[1-9][0-9]{0,18}$Positive decimal int64 string, at most 9223372036854775807. Micros are 1/1,000,000 of advertiser currency. |
currency | string | Yes | pattern ^[A-Z]{3}$ |
expected_campaign_status | enum | Yes | one of: "enabled", "paused" |
spend_authorized | true | Yes | |
ad_group_id | string | Yes | pattern ^[1-9][0-9]{0,18}$Positive decimal int64 string, at most 9223372036854775807. Micros are 1/1,000,000 of advertiser currency. |
expected_ad_group_status | enum | Yes | one of: "enabled", "paused" |
criterion_id | string | Yes | pattern ^[1-9][0-9]{0,18}$Positive decimal int64 string, at most 9223372036854775807. Micros are 1/1,000,000 of advertiser currency. |
expected_keyword | object | Yes | |
expected_keyword.text | string | Yes | length 1–80 |
expected_keyword.match_type | enum | Yes | one of: "exact", "phrase", "broad" |
expected_keyword.negative | boolean | Yes | |
expected_keyword_status | enum | Yes | one of: "enabled", "paused" |
expected_cpc_bid_micros | one of | Yes | |
action | "set_google_search_keyword_status" | Yes | |
status | enum | Yes | one of: "enabled", "paused" |
action = "update_google_search_keyword_bid"
| Field | Type | Required | Rules |
|---|---|---|---|
expected_bidding_strategy | enum | No | one of: "manual_cpc", "maximize_clicks", "maximize_conversions", "maximize_conversion_value", "target_impression_share"Omission preserves manual CPC. Explicit automated strategy requires a matching standard nonportfolio campaign, null current/proposed keyword CPC and no keyword bid action. |
customer_id | uuid | Yes | |
connection_id | uuid | Yes | |
campaign_id | string | Yes | pattern ^[1-9][0-9]{0,18}$Positive decimal int64 string, at most 9223372036854775807. Micros are 1/1,000,000 of advertiser currency. |
currency | string | Yes | pattern ^[A-Z]{3}$ |
expected_campaign_status | enum | Yes | one of: "enabled", "paused" |
spend_authorized | true | Yes | |
ad_group_id | string | Yes | pattern ^[1-9][0-9]{0,18}$Positive decimal int64 string, at most 9223372036854775807. Micros are 1/1,000,000 of advertiser currency. |
expected_ad_group_status | enum | Yes | one of: "enabled", "paused" |
criterion_id | string | Yes | pattern ^[1-9][0-9]{0,18}$Positive decimal int64 string, at most 9223372036854775807. Micros are 1/1,000,000 of advertiser currency. |
expected_keyword | object | Yes | |
expected_keyword.text | string | Yes | length 1–80 |
expected_keyword.match_type | enum | Yes | one of: "exact", "phrase", "broad" |
expected_keyword.negative | boolean | Yes | |
expected_keyword_status | enum | Yes | one of: "enabled", "paused" |
expected_cpc_bid_micros | one of | Yes | |
action | "update_google_search_keyword_bid" | Yes | |
cpc_bid_micros | one of | Yes |
action = "set_status"
| Field | Type | Required | Rules |
|---|---|---|---|
customer_id | uuid | Yes | |
connection_id | uuid | Yes | |
action | "set_status" | Yes | |
resource | enum | Yes | one of: "campaign", "ad_group", "ad" |
entity_id | string | Yes | pattern ^[1-9][0-9]{0,29}$ |
ad_group_id | string | No | pattern ^[1-9][0-9]{0,29}$ |
expected_status | enum | Yes | one of: "enabled", "paused" |
status | enum | Yes | one of: "enabled", "paused" |
spend_authorized | boolean | No |
action = "create_campaign"
| Field | Type | Required | Rules |
|---|---|---|---|
customer_id | uuid | Yes | |
connection_id | uuid | Yes | |
name | string | Yes | length 1–255 · pattern ^[^\x00-\x1f\x7f]+$ |
status | "paused" | Yes | |
spend_authorized | false | No | |
action | "create_campaign" | Yes | |
objective | enum | Yes | one of: "traffic", "sales" |
special_category | "none" | Yes |
action = "create_ad_group"
| Field | Type | Required | Rules |
|---|---|---|---|
customer_id | uuid | Yes | |
connection_id | uuid | Yes | |
name | string | Yes | length 1–255 · pattern ^[^\x00-\x1f\x7f]+$ |
status | "paused" | Yes | |
spend_authorized | false | No | |
action | "create_ad_group" | Yes | |
conversion | object | No | |
conversion.pixel_id | string | Yes | pattern ^[1-9][0-9]{0,29}$ |
conversion.event_type | enum | Yes | one of: "PURCHASE", "LEAD", "COMPLETE_REGISTRATION", "ADD_TO_CART", "INITIATED_CHECKOUT", "CONTENT_VIEW" |
conversion.confirm_website_conversion | true | Yes | |
conversion.pixel_reference | string | Yes | length 1–6500 |
campaign_id | string | Yes | pattern ^[1-9][0-9]{0,29}$ |
currency | string | Yes | pattern ^[A-Z]{3}$ |
daily_budget_minor | string | No | pattern ^[1-9][0-9]{0,11}$ |
lifetime_budget_minor | string | No | pattern ^[1-9][0-9]{0,11}$Total for the fixed schedule, mutually exclusive with daily_budget_minor. |
bidding | one of | No | Optional reviewed strategy. Omission retains lowest cost without cap. A bid cap is an auction input in native account-currency minor units, not a daily/lifetime spend ceiling or delivery guarantee. Paused creation only;… |
start_time | string (date-time) | Yes | At least60seconds into the future at execution |
end_time | string (date-time) | Yes | 15minutes–90days after start |
transparency | object | No | |
transparency.beneficiary | string | Yes | length 1–512Truthful caller-provided beneficiary; outer whitespace is trimmed. May be publicly displayed by Meta. |
transparency.payer | string | Yes | length 1–512Truthful caller-provided payer; outer whitespace is trimmed. Maps to dsa_payor. Never inferred from account defaults. |
transparency.confirm_public_disclosure | true | Yes | |
targeting | one of | Yes | Exactly one geography: countries, region set or one city with an explicit radius. Native names are not accepted. No implicit country union. |
targeting.countries | string[] | No | 1–20 items |
targeting.regions | object[] | No | 1–20 itemsKeys must be unique regardless of country_code and re-resolve to their reviewed country before writing. |
targeting.regions[].key | string | Yes | pattern ^[1-9][0-9]{0,15}$Exact native region key; numeric value must be <=9007199254740991. |
targeting.regions[].country_code | string | Yes | pattern ^[A-Z]{2}$ |
targeting.city | object | No | |
targeting.city.key | string | Yes | pattern ^[1-9][0-9]{0,15}$Exact native city key; numeric value must be <=9007199254740991. |
targeting.city.country_code | string | Yes | pattern ^[A-Z]{2}$ |
targeting.city.radius | integer | Yes | 10–80 |
targeting.city.distance_unit | enum | Yes | one of: "mile", "kilometer" |
targeting.audiences | object | No | 1–5 unique audience IDs combined across disjoint include/exclude arrays, with encrypted15-minute references from this advertiser library. Entire canonical creation input <=6500UTF8bytes. Reread before PAUSED creation; e… |
targeting.audiences.include | object[] | No | 0–5 items |
targeting.audiences.exclude | object[] | No | 0–5 items |
targeting.age_min | integer | Yes | 18–65 |
targeting.age_max | integer | Yes | 18–65Must be>=age_min;65means65+ |
targeting.gender | enum | Yes | one of: "all", "male", "female" |
targeting.placements | enum | Yes | one of: "facebook_feed", "instagram_feed" |
action = "create_post_creative"
| Field | Type | Required | Rules |
|---|---|---|---|
customer_id | uuid | Yes | |
connection_id | uuid | Yes | |
page_connection_id | uuid | Yes | |
post_id | string | Yes | pattern ^[1-9][0-9]{0,29}_[1-9][0-9]{0,29}$ |
name | string | Yes | length 1–100 · pattern ^[^\x00-\x1f\x7f]+$ |
expected_post_revision | string (date-time) | Yes | |
expected_link_url | string (uri) | Yes | length 0–2000 · pattern ^https:// |
spend_authorized | false | No | |
action | "create_post_creative" | Yes |
action = "create_post_ad"
| Field | Type | Required | Rules |
|---|---|---|---|
customer_id | uuid | Yes | |
connection_id | uuid | Yes | |
page_connection_id | uuid | Yes | |
post_id | string | Yes | pattern ^[1-9][0-9]{0,29}_[1-9][0-9]{0,29}$ |
name | string | Yes | length 1–100 · pattern ^[^\x00-\x1f\x7f]+$ |
expected_post_revision | string (date-time) | Yes | |
expected_link_url | string (uri) | Yes | length 0–2000 · pattern ^https:// |
spend_authorized | false | No | |
action | "create_post_ad" | Yes | |
expected_conversion | object | No | |
expected_conversion.pixel_id | string | Yes | pattern ^[1-9][0-9]{0,29}$ |
expected_conversion.event_type | enum | Yes | one of: "PURCHASE", "LEAD", "COMPLETE_REGISTRATION", "ADD_TO_CART", "INITIATED_CHECKOUT", "CONTENT_VIEW" |
expected_conversion.confirm_website_conversion | true | Yes | |
status | "paused" | Yes | |
creative_id | string | Yes | pattern ^[1-9][0-9]{0,29}$ |
campaign_id | string | Yes | pattern ^[1-9][0-9]{0,29}$ |
ad_group_id | string | Yes | pattern ^[1-9][0-9]{0,29}$ |
action = "create_google_search_campaign"
| Field | Type | Required | Rules |
|---|---|---|---|
customer_id | uuid | Yes | |
connection_id | uuid | Yes | |
action | "create_google_search_campaign" | Yes | |
name | string | Yes | length 1–128 · pattern ^[^\x00-\x1f\x7f{}]+$ |
ad_group_name | string | Yes | length 1–128 · pattern ^[^\x00-\x1f\x7f{}]+$ |
status | "paused" | Yes | |
spend_authorized | false | No | |
eu_political_advertising | "none" | Yes | |
currency | string | Yes | pattern ^[A-Z]{3}$ |
time_zone | string | Yes | length 1–100Valid IANA time zone exactly matching the advertiser. |
daily_budget_micros | string | Yes | pattern ^[1-9][0-9]{0,18}$Positive decimal int64 string, at most 9223372036854775807. Micros are 1/1,000,000 of advertiser currency. |
bidding_strategy | enum | No | one of: "manual_cpc", "maximize_clicks", "maximize_conversions", "maximize_conversion_value", "target_impression_share"Omission retains manual CPC; strategy changes are not implicit. |
impression_share | object | No | |
impression_share.location | enum | Yes | one of: "ANYWHERE_ON_PAGE", "TOP_OF_PAGE", "ABSOLUTE_TOP_OF_PAGE" |
impression_share.location_fraction_micros | string | Yes | pattern ^(?:[1-9]\d{0,5}|1000000)$Canonical fraction micros1–1000000. 500000 means50%, not currency. Requested auction objective, not guaranteed delivery/share. |
cpc_bid_micros | string | No | pattern ^[1-9][0-9]{0,18}$Positive decimal int64 string, at most 9223372036854775807. Micros are 1/1,000,000 of advertiser currency. |
cpc_bid_ceiling_micros | string | No | pattern ^[1-9][0-9]{0,18}$Positive decimal int64 string, at most 9223372036854775807. Micros are 1/1,000,000 of advertiser currency. |
target_cpa_micros | string | No | pattern ^[1-9][0-9]{0,18}$Positive decimal int64 string, at most 9223372036854775807. Micros are 1/1,000,000 of advertiser currency. |
target_roas | number | No | 0.01–1000ROAS ratio, not percent;4.5 means450%. Techrace accepts0.01–1000. This is a bidding objective, not guaranteed return. |
conversion_values_reviewed | true | No | |
conversion_goal_review | object | No | |
conversion_goal_review.revision | string | Yes | pattern ^[A-Za-z0-9_-]{43}$ |
conversion_goal_review.use_account_defaults | true | Yes | |
conversion_goal_review.tracking_reviewed | true | Yes | |
start_date | string (date) | Yes | pattern ^20[0-9]{2}-[0-9]{2}-[0-9]{2}$ |
end_date | string (date) | Yes | pattern ^20[0-9]{2}-[0-9]{2}-[0-9]{2}$ |
targeting | object | Yes | |
targeting.location_ids | string[] | Yes | 1–20 items |
targeting.language_ids | string[] | Yes | 1–10 items |
targeting.location_presence | "presence" | Yes | |
keywords | object[] | Yes | 1–20 items |
keywords[].text | string | Yes | length 1–80 · pattern ^[^\x00-\x1f\x7f{}]+$Plain keyword, at most10 whitespace-delimited words. |
keywords[].match_type | enum | Yes | one of: "exact", "phrase", "broad" |
keywords[].negative | boolean | No | |
ad | object | Yes | |
ad.final_url | string (uri) | Yes | length 0–2048HTTPS public DNS destination; no credentials, port, fragment, whitespace or template. Not fetched by Techrace. |
ad.headlines | one of[] | Yes | 3–15 itemsDistinct normalized text; all three positions must be fillable from pins or distinct unpinned assets. Legacy strings remain unpinned. |
ad.descriptions | one of[] | Yes | 2–4 itemsDistinct normalized text; both positions must be fillable from pins or distinct unpinned assets. Legacy strings remain unpinned. |
ad.path1 | string | No | pattern ^[A-Za-z0-9_-]{1,15}$ |
ad.path2 | string | No | pattern ^[A-Za-z0-9_-]{1,15}$ |
action = "update_google_search_budget"
| Field | Type | Required | Rules |
|---|---|---|---|
customer_id | uuid | Yes | |
connection_id | uuid | Yes | |
campaign_id | string | Yes | pattern ^[1-9][0-9]{0,18}$Positive decimal int64 string, at most 9223372036854775807. Micros are 1/1,000,000 of advertiser currency. |
currency | string | Yes | pattern ^[A-Z]{3}$ |
expected_campaign_status | enum | Yes | one of: "enabled", "paused" |
spend_authorized | true | Yes | |
action | "update_google_search_budget" | Yes | |
budget_id | string | Yes | pattern ^[1-9][0-9]{0,18}$Positive decimal int64 string, at most 9223372036854775807. Micros are 1/1,000,000 of advertiser currency. |
expected_daily_budget_micros | string | Yes | pattern ^[1-9][0-9]{0,18}$Positive decimal int64 string, at most 9223372036854775807. Micros are 1/1,000,000 of advertiser currency. |
daily_budget_micros | string | Yes | pattern ^[1-9][0-9]{0,18}$Positive decimal int64 string, at most 9223372036854775807. Micros are 1/1,000,000 of advertiser currency. |
action = "update_google_search_bid"
| Field | Type | Required | Rules |
|---|---|---|---|
customer_id | uuid | Yes | |
connection_id | uuid | Yes | |
campaign_id | string | Yes | pattern ^[1-9][0-9]{0,18}$Positive decimal int64 string, at most 9223372036854775807. Micros are 1/1,000,000 of advertiser currency. |
currency | string | Yes | pattern ^[A-Z]{3}$ |
expected_campaign_status | enum | Yes | one of: "enabled", "paused" |
spend_authorized | true | Yes | |
action | "update_google_search_bid" | Yes | |
ad_group_id | string | Yes | pattern ^[1-9][0-9]{0,18}$Positive decimal int64 string, at most 9223372036854775807. Micros are 1/1,000,000 of advertiser currency. |
expected_ad_group_status | enum | Yes | one of: "enabled", "paused" |
expected_cpc_bid_micros | string | Yes | pattern ^[1-9][0-9]{0,18}$Positive decimal int64 string, at most 9223372036854775807. Micros are 1/1,000,000 of advertiser currency. |
cpc_bid_micros | string | Yes | pattern ^[1-9][0-9]{0,18}$Positive decimal int64 string, at most 9223372036854775807. Micros are 1/1,000,000 of advertiser currency. |
action = "update_google_search_click_ceiling"
| Field | Type | Required | Rules |
|---|---|---|---|
customer_id | uuid | Yes | |
connection_id | uuid | Yes | |
campaign_id | string | Yes | pattern ^[1-9][0-9]{0,18}$Positive decimal int64 string, at most 9223372036854775807. Micros are 1/1,000,000 of advertiser currency. |
currency | string | Yes | pattern ^[A-Z]{3}$ |
expected_campaign_status | enum | Yes | one of: "enabled", "paused" |
spend_authorized | true | Yes | |
action | "update_google_search_click_ceiling" | Yes | |
expected_cpc_bid_ceiling_micros | string | Yes | pattern ^[1-9][0-9]{0,18}$Positive decimal int64 string, at most 9223372036854775807. Micros are 1/1,000,000 of advertiser currency. |
cpc_bid_ceiling_micros | string | Yes | pattern ^[1-9][0-9]{0,18}$Positive decimal int64 string, at most 9223372036854775807. Micros are 1/1,000,000 of advertiser currency. |
action = "update_google_search_impression_share"
| Field | Type | Required | Rules |
|---|---|---|---|
customer_id | uuid | Yes | |
connection_id | uuid | Yes | |
campaign_id | string | Yes | pattern ^[1-9][0-9]{0,18}$Positive decimal int64 string, at most 9223372036854775807. Micros are 1/1,000,000 of advertiser currency. |
currency | string | Yes | pattern ^[A-Z]{3}$ |
expected_campaign_status | enum | Yes | one of: "enabled", "paused" |
spend_authorized | true | Yes | |
action | "update_google_search_impression_share" | Yes | |
expected_impression_share | object | Yes | |
expected_impression_share.location | enum | Yes | one of: "ANYWHERE_ON_PAGE", "TOP_OF_PAGE", "ABSOLUTE_TOP_OF_PAGE" |
expected_impression_share.location_fraction_micros | string | Yes | pattern ^(?:[1-9]\d{0,5}|1000000)$Canonical fraction micros1–1000000. 500000 means50%, not currency. Requested auction objective, not guaranteed delivery/share. |
expected_impression_share.cpc_bid_ceiling_micros | string | Yes | pattern ^[1-9][0-9]{0,18}$Positive decimal int64 string, at most 9223372036854775807. Micros are 1/1,000,000 of advertiser currency. |
impression_share | object | Yes | |
impression_share.location | enum | Yes | one of: "ANYWHERE_ON_PAGE", "TOP_OF_PAGE", "ABSOLUTE_TOP_OF_PAGE" |
impression_share.location_fraction_micros | string | Yes | pattern ^(?:[1-9]\d{0,5}|1000000)$Canonical fraction micros1–1000000. 500000 means50%, not currency. Requested auction objective, not guaranteed delivery/share. |
impression_share.cpc_bid_ceiling_micros | string | Yes | pattern ^[1-9][0-9]{0,18}$Positive decimal int64 string, at most 9223372036854775807. Micros are 1/1,000,000 of advertiser currency. |
action = "replace_google_search_target"
| Field | Type | Required | Rules |
|---|---|---|---|
customer_id | uuid | Yes | |
connection_id | uuid | Yes | |
campaign_id | string | Yes | pattern ^[1-9]\d{0,18}(?![\s\S])Exact positive signed-int64 decimal string, maximum9223372036854775807; no whitespace |
currency | string | Yes | pattern ^[A-Z]{3}(?![\s\S]) |
expected_campaign_status | enum | Yes | one of: "enabled", "paused" |
spend_authorized | true | Yes | |
action | "replace_google_search_target" | Yes | |
criterion_id | string | Yes | pattern ^[1-9]\d{0,18}(?![\s\S])Exact positive signed-int64 decimal string, maximum9223372036854775807; no whitespace |
expected_bidding_strategy | enum | Yes | one of: "manual_cpc", "maximize_clicks", "maximize_conversions", "maximize_conversion_value", "target_impression_share" |
target_type | enum | Yes | one of: "location", "language" |
expected_target_id | string | Yes | pattern ^[1-9]\d{0,18}(?![\s\S])Exact positive signed-int64 decimal string, maximum9223372036854775807; no whitespace |
target_id | string | Yes | pattern ^[1-9]\d{0,18}(?![\s\S])Exact positive signed-int64 decimal string, maximum9223372036854775807; no whitespace |
confirm_replace | true | Yes |
action = "create_google_search_location_exclusion"
| Field | Type | Required | Rules |
|---|---|---|---|
customer_id | uuid | Yes | |
connection_id | uuid | Yes | |
campaign_id | string | Yes | pattern ^[1-9]\d{0,18}(?![\s\S])Exact positive signed-int64 decimal string, maximum9223372036854775807; no whitespace |
currency | string | Yes | pattern ^[A-Z]{3}(?![\s\S]) |
expected_campaign_status | enum | Yes | one of: "enabled", "paused" |
spend_authorized | true | Yes | |
expected_bidding_strategy | enum | Yes | one of: "manual_cpc", "maximize_clicks", "maximize_conversions", "maximize_conversion_value", "target_impression_share" |
action | "create_google_search_location_exclusion" | Yes | |
location_id | string | Yes | pattern ^[1-9]\d{0,18}(?![\s\S])Exact positive signed-int64 decimal string, maximum9223372036854775807; no whitespace |
confirm_exclusion | true | Yes |
action = "remove_google_search_location_exclusion"
| Field | Type | Required | Rules |
|---|---|---|---|
customer_id | uuid | Yes | |
connection_id | uuid | Yes | |
campaign_id | string | Yes | pattern ^[1-9]\d{0,18}(?![\s\S])Exact positive signed-int64 decimal string, maximum9223372036854775807; no whitespace |
currency | string | Yes | pattern ^[A-Z]{3}(?![\s\S]) |
expected_campaign_status | enum | Yes | one of: "enabled", "paused" |
spend_authorized | true | Yes | |
expected_bidding_strategy | enum | Yes | one of: "manual_cpc", "maximize_clicks", "maximize_conversions", "maximize_conversion_value", "target_impression_share" |
action | "remove_google_search_location_exclusion" | Yes | |
criterion_id | string | Yes | pattern ^[1-9]\d{0,18}(?![\s\S])Exact positive signed-int64 decimal string, maximum9223372036854775807; no whitespace |
expected_location_id | string | Yes | pattern ^[1-9]\d{0,18}(?![\s\S])Exact positive signed-int64 decimal string, maximum9223372036854775807; no whitespace |
confirm_remove | true | Yes |
action = "update_google_search_target_cpa"
| Field | Type | Required | Rules |
|---|---|---|---|
customer_id | uuid | Yes | |
connection_id | uuid | Yes | |
campaign_id | string | Yes | pattern ^[1-9][0-9]{0,18}$Positive decimal int64 string, at most 9223372036854775807. Micros are 1/1,000,000 of advertiser currency. |
currency | string | Yes | pattern ^[A-Z]{3}$ |
expected_campaign_status | enum | Yes | one of: "enabled", "paused" |
spend_authorized | true | Yes | |
action | "update_google_search_target_cpa" | Yes | |
expected_target_cpa_micros | one of | Yes | Exact reviewed current target; explicit null means the target is absent/default zero on the verified standard campaign. |
target_cpa_micros | one of | Yes | Positive value adds/changes the reviewed target. Null requires clear_target:true and a positive expected target. |
clear_target | true | No | Explicitly authorize removing only the reviewed target, preserving the strategy and budget. |
action = "update_google_search_target_roas"
| Field | Type | Required | Rules |
|---|---|---|---|
customer_id | uuid | Yes | |
connection_id | uuid | Yes | |
campaign_id | string | Yes | pattern ^[1-9][0-9]{0,18}$Positive decimal int64 string, at most 9223372036854775807. Micros are 1/1,000,000 of advertiser currency. |
currency | string | Yes | pattern ^[A-Z]{3}$ |
expected_campaign_status | enum | Yes | one of: "enabled", "paused" |
spend_authorized | true | Yes | |
action | "update_google_search_target_roas" | Yes | |
expected_target_roas | one of | Yes | Exact reviewed current target; explicit null means the target is absent/default zero on the verified standard campaign. |
target_roas | one of | Yes | Positive value adds/changes the reviewed target. Null requires clear_target:true and a positive expected target. |
conversion_values_reviewed | true | Yes | |
clear_target | true | No | Explicitly authorize removing only the reviewed target, preserving the strategy and budget. |
action = "update_google_search_ad_text"
| Field | Type | Required | Rules |
|---|---|---|---|
customer_id | uuid | Yes | |
connection_id | uuid | Yes | |
action | "update_google_search_ad_text" | Yes | |
campaign_id | string | Yes | pattern ^[1-9][0-9]{0,18}$Positive decimal int64 string, at most 9223372036854775807. Micros are 1/1,000,000 of advertiser currency. |
ad_group_id | string | Yes | pattern ^[1-9][0-9]{0,18}$Positive decimal int64 string, at most 9223372036854775807. Micros are 1/1,000,000 of advertiser currency. |
ad_id | string | Yes | pattern ^[1-9][0-9]{0,18}$Positive decimal int64 string, at most 9223372036854775807. Micros are 1/1,000,000 of advertiser currency. |
expected_revision | string | Yes | pattern ^[A-Za-z0-9_-]{43}$Fresh query_google_search_context include_body:true revision; one paused ad association required. |
headlines | object[] | Yes | 3–15 itemsDistinct normalized text; all three positions must have eligible assets. |
headlines[].text | string | Yes | length 1–30Plain text without controls or customizer braces; trimmed; distinct text within each list. |
headlines[].pinned_field | enum | No | one of: "HEADLINE_1", "HEADLINE_2", "HEADLINE_3" |
descriptions | object[] | Yes | 2–4 itemsDistinct normalized text; both positions must have eligible assets. |
descriptions[].text | string | Yes | length 1–90Plain text without controls or customizer braces; trimmed; distinct text within each list. |
descriptions[].pinned_field | enum | No | one of: "DESCRIPTION_1", "DESCRIPTION_2" |
spend_authorized | true | Yes |
Response 202
| Field | Type | Required | Rules |
|---|---|---|---|
operation | object | Yes | |
delivery_confirmed | false | Yes |
Errors
400Invalid request401Authentication required402Billing activation or published usage allowance required403Project, role or scope denied409State, ownership, idempotency or configuration conflict429Rate limit; respect Retry-After503Maintenance mode or required service configuration unavailable
curl -X POST "https://YOUR_DOMAIN/api/v1/projects/$TECHRACE_PROJECT_ID/ads/operations" \
-H "Authorization: Bearer $TECHRACE_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: archive-ad-2026-11-14-001" \
--data @- <<EOF
{
"customer_id": "8f1c2a4e-6b3d-4e21-9a77-1d0c5b2e9f10",
"connection_id": "3b7e9d12-5c4a-4f8e-8b21-6a0d2c9e7f34",
"action": "archive_meta_entity",
"resource": "ad",
"entity_id": "120210000000000045",
"expected_status": "paused",
"confirm_archive": true,
"confirm_ads_may_be_affected": true
}
EOF{
"operation": {
"id": "6c2e9a1d-4b7f-4e30-8d15-a9f3c2b7e604",
"status": "queued"
},
"delivery_confirmed": true
}Read an advertiser operation without its encrypted request or acknowledgment note
GET
/api/v1/projects/{project_id}/ads/operations/{operation_id}ads:operations:readParameters
| Field | Type | Required | Rules |
|---|---|---|---|
operation_id path | uuid | Yes |
Response 200
| Field | Type | Required | Rules |
|---|---|---|---|
operation | object | Yes |
Errors
400Invalid request401Authentication required402Billing activation or published usage allowance required403Project, role or scope denied409State, ownership, idempotency or configuration conflict429Rate limit; respect Retry-After503Maintenance mode or required service configuration unavailable
curl -X GET "https://YOUR_DOMAIN/api/v1/projects/$TECHRACE_PROJECT_ID/ads/operations/$OPERATION_ID" \
-H "Authorization: Bearer $TECHRACE_API_KEY"Cancel future queued advertising attempts before current native start; cancelling a queued pause can leave current spend unchanged; no native pause, rollback or refund
POST
/api/v1/projects/{project_id}/ads/operations/{operation_id}/cancelads:operations:read, ads:write and ads:spendParameters
| Field | Type | Required | Rules |
|---|---|---|---|
operation_id path | uuid | Yes | |
operation_id path | uuid | Yes |
Request body
| Field | Type | Required | Rules |
|---|---|---|---|
expected_action | string | Yes | length 1–80 · pattern ^[a-z][a-z0-9_]{0,79}(?![\s\S]) |
confirm_cancel | true | Yes |
Response 200
| Field | Type | Required | Rules |
|---|---|---|---|
operation | object | Yes |
Errors
400Invalid request401Authentication required402Billing activation or published usage allowance required403Project, role or scope denied409State, ownership, idempotency or configuration conflict429Rate limit; respect Retry-After503Maintenance mode or required service configuration unavailable
curl -X POST "https://YOUR_DOMAIN/api/v1/projects/$TECHRACE_PROJECT_ID/ads/operations/$OPERATION_ID/cancel" \
-H "Authorization: Bearer $TECHRACE_API_KEY" \
-H "Content-Type: application/json" \
--data @- <<EOF
{
"expected_action": "…",
"confirm_cancel": true
}
EOFOwner/admin acknowledges an unknown outcome to unblock later target operations; no retry or claim of delivery
POST
/api/v1/projects/{project_id}/ads/operations/{operation_id}/acknowledgeads:write and ads:operations:readParameters
| Field | Type | Required | Rules |
|---|---|---|---|
operation_id path | uuid | Yes |
Request body
| Field | Type | Required | Rules |
|---|---|---|---|
acknowledge_unknown_outcome | true | Yes | |
note | string | Yes | length 1–500 |
Response 200
| Field | Type | Required | Rules |
|---|---|---|---|
operation | object | Yes | |
delivery_confirmed | false | Yes |
Errors
400Invalid request401Authentication required402Billing activation or published usage allowance required403Project, role or scope denied409State, ownership, idempotency or configuration conflict429Rate limit; respect Retry-After503Maintenance mode or required service configuration unavailable
curl -X POST "https://YOUR_DOMAIN/api/v1/projects/$TECHRACE_PROJECT_ID/ads/operations/$OPERATION_ID/acknowledge" \
-H "Authorization: Bearer $TECHRACE_API_KEY" \
-H "Content-Type: application/json" \
--data @- <<EOF
{
"acknowledge_unknown_outcome": true,
"note": "…"
}
EOFRead customer-bound Meta or Google Ads data; insights date range 1–31 days
POST
/api/v1/projects/{project_id}/ads/queryads:readRequest body
| Field | Type | Required | Rules |
|---|---|---|---|
customer_id | uuid | Yes | |
connection_id | uuid | Yes | |
resource | enum | Yes | one of: "account", "campaigns", "ad_groups", "ads", "insights" |
level | enum | No | one of: "account", "campaign", "ad_group", "ad", "keyword", "age_range", "gender"Insights only; defaults to account. Meta ad_group maps to adset. Google-only age_range/gender are separate daily native ad-group criterion aggregates, never a joint audience distribution. Native unknown/undetermined lab… |
breakdown | enum | No | one of: "age", "gender", "country", "publisher_platform", "device_platform", "age_gender", "placement"One fixed Meta-only BASIC report. age_gender requests native age/gender together; placement requests publisher_platform/platform_position together. Other options select one dimension. No arbitrary pairs, performance or … |
include_attribution | true | No | Explicit native attribution_setting readback only for Meta performance ad_group/ad insights. Requested parameters are not proof of effective attribution or reporting time. |
metric_set | enum | No | one of: "basic", "performance", "search_share"Insights only; default basic. Google v25-only search_share requires explicit campaign level and no breakdown/attribution. It returns ten native share/loss estimate objects;0.0999 means below10% share and0.9001 means abo… |
since | string (date) | No | |
until | string (date) | No | |
limit | integer | No | 1–100 |
cursor | string | No | length 0–10000 |
Response 200
| Field | Type | Required | Rules |
|---|---|---|---|
provider | enum | Yes | one of: "metaads", "googleads" |
resource | enum | Yes | one of: "account", "campaigns", "ad_groups", "ads", "insights" |
level | enum | Yes | one of: "account", "campaign", "ad_group", "ad", "keyword", "age_range", "gender", null |
native_level | enum | Yes | one of: "account", "campaign", "ad_group", "adset", "ad", "keyword", "age_range_view", "gender_view", null |
metric_set | enum | Yes | one of: "basic", "performance", "search_share", null |
breakdown | enum | Yes | one of: "age", "gender", "country", "publisher_platform", "device_platform", "age_gender", "placement", null |
breakdown_fields | enum[] | null | Yes | 1–2 items · each one of: "age", "gender", "country", "publisher_platform", "device_platform", "platform_position"Exact ordered Meta native fields for the selected report, or null without a Meta breakdown. age_gender maps to age/gender; placement to publisher_platform/platform_position. |
metrics_basis | object | null | Yes | Native attribution/units/absence semantics for performance or search_share insights. Search share has ratio units, native estimates, censored thresholds, missing=null and additive=false; no cross-provider equivalence. |
complete_snapshot | false | Yes | |
content_is_untrusted | true | Yes | |
data | object[] | Yes | |
next_cursor | string | null | Yes | |
fetched_at | string (date-time) | Yes | |
date_basis | "ad_account_timezone" | Yes | |
read_only | true | Yes | |
limitations | string[] | Yes |
Errors
400Invalid request401Authentication required402Billing activation or published usage allowance required403Project, role or scope denied409State, ownership, idempotency or configuration conflict429Rate limit; respect Retry-After503Maintenance mode or required service configuration unavailable
curl -X POST "https://YOUR_DOMAIN/api/v1/projects/$TECHRACE_PROJECT_ID/ads/query" \
-H "Authorization: Bearer $TECHRACE_API_KEY" \
-H "Content-Type: application/json" \
--data @- <<EOF
{
"customer_id": "8f1c2a4e-6b3d-4e21-9a77-1d0c5b2e9f10",
"connection_id": "3b7e9d12-5c4a-4f8e-8b21-6a0d2c9e7f34",
"resource": "insights",
"level": "campaign",
"since": "2026-11-01",
"until": "2026-11-07",
"limit": 25
}
EOF{
"data": [
{
"campaign_id": "120210000000000001",
"impressions": 48210,
"clicks": 1306,
"spend": {
"amount": "142.80",
"currency": "USD"
}
}
],
"next_cursor": null
}