Skip to content
techrace/
TECHRACE DOCUMENTATION

Ads

Every endpoint in this group: what it needs, the fields it accepts (type, required, limits), what it returns and its errors.

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:read

Request body

FieldTypeRequiredRules
customer_iduuidYes
connection_iduuidYes
page_connection_iduuidYes
post_idstringYespattern ^[1-9][0-9]{0,29}_[1-9][0-9]{0,29}$
include_bodybooleanNo

Response 200

FieldTypeRequiredRules
advertiser_idstringYes
page_idstringYespattern ^[1-9][0-9]{0,29}$
post_idstringYespattern ^[1-9][0-9]{0,29}_[1-9][0-9]{0,29}$
post_revisionstring (date-time)Yes
link_urlstring (uri)Yes
currencystringYes
eligible_at_readtrueYes
messagestring | nullNo
read_onlytrueYes
content_is_untrustedtrueYes
fetched_atstring (date-time)Yes
limitationsstring[]Yes

Errors

  • 400 Invalid request
  • 401 Authentication required
  • 402 Billing activation or published usage allowance required
  • 403 Project, role or scope denied
  • 409 State, ownership, idempotency or configuration conflict
  • 429 Rate limit; respect Retry-After
  • 503 Maintenance mode or required service configuration unavailable
Request
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": "…"
}
EOF

Read 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:read

Request body

FieldTypeRequiredRules
customer_iduuidYes
connection_iduuidYes
page_connection_iduuidYes

Response 200

FieldTypeRequiredRules
advertiser_idstringYes
page_idstringYespattern ^[1-9][0-9]{0,29}$
instagram_user_idstringYespattern ^[1-9][0-9]{0,29}$
usernamestring | nullYes
identity_type"page_connected"Yes
currencystringYes
read_onlytrueYes
content_is_untrustedtrueYes
fetched_atstring (date-time)Yes
limitationsstring[]Yes

Errors

  • 400 Invalid request
  • 401 Authentication required
  • 402 Billing activation or published usage allowance required
  • 403 Project, role or scope denied
  • 409 State, ownership, idempotency or configuration conflict
  • 429 Rate limit; respect Retry-After
  • 503 Maintenance mode or required service configuration unavailable
Request
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"
}
EOF

Inspect 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:read

Request body

FieldTypeRequiredRules
customer_iduuidYes
connection_iduuidYes
campaign_idstringYespattern ^[1-9][0-9]{0,18}$Positive decimal int64 string, at most 9223372036854775807. Micros are 1/1,000,000 of advertiser currency.
ad_group_idstringYespattern ^[1-9][0-9]{0,18}$Positive decimal int64 string, at most 9223372036854775807. Micros are 1/1,000,000 of advertiser currency.
ad_idstringYespattern ^[1-9][0-9]{0,18}$Positive decimal int64 string, at most 9223372036854775807. Micros are 1/1,000,000 of advertiser currency.
include_bodybooleanNo
include_policy_detailsbooleanNoSeparate explicit consent to native policy evidence including creative/destination text and URLs. Independent of include_body.

Response 200

FieldTypeRequiredRules
delivery_diagnosticsobjectYesExplicit 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_revisionstringYespattern ^[A-Za-z0-9_-]{43}$Diagnostics only; never use as a configuration mutation precondition.
advertiserobjectYes
campaignobjectYes
budgetobjectYes
ad_groupobjectYes
adobjectYes
keywordsobject[]Yes
targetsobject[]Yes
revisionstringYespattern ^[A-Za-z0-9_-]{43}$
revision_basisenumYesone of: "selected_configuration_metadata", "selected_configuration_with_body"
complete_snapshotfalseYes
read_onlytrueYes
content_is_untrustedtrueYes
fetched_atstring (date-time)Yes
limitationsstring[]Yes

Errors

  • 400 Invalid request
  • 401 Authentication required
  • 402 Billing activation or published usage allowance required
  • 403 Project, role or scope denied
  • 409 State, ownership, idempotency or configuration conflict
  • 429 Rate limit; respect Retry-After
  • 503 Maintenance mode or required service configuration unavailable
Request
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": "…"
}
EOF

Look 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:read

Request body

The body takes one of 2 shapes, chosen by the field shown.

kind = "locations"
FieldTypeRequiredRules
customer_iduuidYes
connection_iduuidYes
limitintegerNo1–100
kind"locations"Yes
namesstring[]Yes1–25 items
localestringNopattern ^[a-z]{2}$
country_codestringNopattern ^[A-Z]{2}$
kind = "languages"
FieldTypeRequiredRules
customer_iduuidYes
connection_iduuidYes
limitintegerNo1–100
kind"languages"Yes
language_codesstring[]No1–50 items

Response 200

No fields.

Errors

  • 400 Invalid request
  • 401 Authentication required
  • 402 Billing activation or published usage allowance required
  • 403 Project, role or scope denied
  • 409 State, ownership, idempotency or configuration conflict
  • 429 Rate limit; respect Retry-After
  • 503 Maintenance mode or required service configuration unavailable
Request
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": []
}
EOF

Read 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:read

Request body

FieldTypeRequiredRules
customer_iduuidYes
connection_iduuidYes
campaign_idstringYespattern ^[1-9][0-9]{0,18}$Positive decimal int64 string, at most 9223372036854775807. Micros are 1/1,000,000 of advertiser currency.
ad_group_idstringYespattern ^[1-9][0-9]{0,18}$Positive decimal int64 string, at most 9223372036854775807. Micros are 1/1,000,000 of advertiser currency.
sincestring (date)Yes
untilstring (date)YesInclusive1–31day period, not before since
include_termstrueYes
limitintegerNo1–100
metric_setenumNoone of: "basic", "performance"

Response 200

FieldTypeRequiredRules
provider"googleads"Yes
advertiserobjectYes
campaign_idstringYespattern ^[1-9][0-9]{0,18}$Positive decimal int64 string, at most 9223372036854775807. Micros are 1/1,000,000 of advertiser currency.
ad_group_idstringYespattern ^[1-9][0-9]{0,18}$Positive decimal int64 string, at most 9223372036854775807. Micros are 1/1,000,000 of advertiser currency.
periodobjectYes
metric_setenumYesone of: "basic", "performance"
read_onlytrueYes
content_is_untrustedtrueYes
complete_reportfalseYes
order"cost_micros_desc"Yes
tie_order"unspecified"Yes
truncatedbooleanYes
fetched_atstring (date-time)Yes
limitationsstring[]Yes
rowsobject[]Yes0–100 items
performance_basisone ofYes

Errors

  • 400 Invalid request
  • 401 Authentication required
  • 402 Billing activation or published usage allowance required
  • 403 Project, role or scope denied
  • 409 State, ownership, idempotency or configuration conflict
  • 429 Rate limit; respect Retry-After
  • 503 Maintenance mode or required service configuration unavailable
Request
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
}
EOF

Read 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:read

Request body

FieldTypeRequiredRules
customer_iduuidYes
connection_iduuidYes
campaign_idstringYespattern ^[1-9][0-9]{0,18}$Positive decimal int64 string, at most 9223372036854775807. Micros are 1/1,000,000 of advertiser currency.
sincestring (date)Yes
untilstring (date)YesInclusive1–31days, not before since
conversion_actionstringNopattern ^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.
limitintegerNo1–1000

Response 200

FieldTypeRequiredRules
provider"googleads"Yes
advertiserobjectYes
campaign_idstringYespattern ^[1-9][0-9]{0,18}$Positive decimal int64 string, at most 9223372036854775807. Micros are 1/1,000,000 of advertiser currency.
conversion_action_filterone ofYes
periodobjectYes
read_onlytrueYes
complete_snapshotfalseYes
truncatedbooleanYes
order"date_asc_conversion_action_asc"Yes
fetched_atstring (date-time)Yes
rowsobject[]Yes0–1000 items
metric_basisobjectYes
limitationsstring[]Yes

Errors

  • 400 Invalid request
  • 401 Authentication required
  • 402 Billing activation or published usage allowance required
  • 403 Project, role or scope denied
  • 409 State, ownership, idempotency or configuration conflict
  • 429 Rate limit; respect Retry-After
  • 503 Maintenance mode or required service configuration unavailable
Request
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": "…"
}
EOF

Read 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:read

Request body

FieldTypeRequiredRules
customer_iduuidYes
connection_iduuidYes
campaign_idstringYespattern ^[1-9][0-9]{0,18}$Positive decimal int64 string, at most 9223372036854775807. Micros are 1/1,000,000 of advertiser currency.
sincestring (date)Yes
untilstring (date)YesInclusive1–31days
deviceenumNoone of: "CONNECTED_TV", "DESKTOP", "MOBILE", "OTHER", "TABLET", "UNKNOWN", "UNSPECIFIED"

Response 200

FieldTypeRequiredRules
provider"googleads"Yes
advertiserobjectYes
campaign_idstringYespattern ^[1-9][0-9]{0,18}$Positive decimal int64 string, at most 9223372036854775807. Micros are 1/1,000,000 of advertiser currency.
periodobjectYes
read_onlytrueYes
complete_snapshotfalseYes
truncatedfalseYes
order"date_asc_device_code_asc"Yes
fetched_atstring (date-time)Yes
rowsobject[]Yes0–217 items
metric_basisobjectYes
limitationsstring[]Yes
device_filterone ofYes

Errors

  • 400 Invalid request
  • 401 Authentication required
  • 402 Billing activation or published usage allowance required
  • 403 Project, role or scope denied
  • 409 State, ownership, idempotency or configuration conflict
  • 429 Rate limit; respect Retry-After
  • 503 Maintenance mode or required service configuration unavailable
Request
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": "…"
}
EOF

Read 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:read

Request body

FieldTypeRequiredRules
customer_iduuidYes
connection_iduuidYes
campaign_idstringYespattern ^[1-9][0-9]{0,18}$Positive decimal int64 string, at most 9223372036854775807. Micros are 1/1,000,000 of advertiser currency.
sincestring (date)Yes
untilstring (date)YesInclusive1–31days, not before since
limitintegerNo1–100

Response 200

FieldTypeRequiredRules
provider"googleads"Yes
advertiserobjectYes
campaign_idstringYespattern ^[1-9][0-9]{0,18}$Positive decimal int64 string, at most 9223372036854775807. Micros are 1/1,000,000 of advertiser currency.
periodobjectYes
read_onlytrueYes
complete_snapshotfalseYes
truncatedbooleanYes
order"cost_micros_desc_country_id_asc_targeting_location_asc"Yes
fetched_atstring (date-time)Yes
rowsobject[]Yes0–100 items
metric_basisobjectYes
limitationsstring[]Yes
limitintegerYes1–100

Errors

  • 400 Invalid request
  • 401 Authentication required
  • 402 Billing activation or published usage allowance required
  • 403 Project, role or scope denied
  • 409 State, ownership, idempotency or configuration conflict
  • 429 Rate limit; respect Retry-After
  • 503 Maintenance mode or required service configuration unavailable
Request
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": "…"
}
EOF

Inspect 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:read

Request body

FieldTypeRequiredRules
customer_iduuidYes
connection_iduuidYes
campaign_idstringYespattern ^[1-9][0-9]{0,18}$Positive decimal int64 string, at most 9223372036854775807. Micros are 1/1,000,000 of advertiser currency.

Response 200

FieldTypeRequiredRules
provider"googleads"Yes
advertiserobjectYes
campaignobjectYes
goal_config_levelstringYespattern ^[A-Z][A-Z0-9_]{0,99}$Native enum code, preserving UNKNOWN/UNSPECIFIED
goalsobject[]Yes0–100 items
custom_goalone ofYes
revisionstringYes
revision_basis"selected_conversion_goal_configuration"Yes
read_onlytrueYes
complete_snapshotfalseYes
truncatedfalseYes
tracking_verifiedfalseYes
limitationsstring[]Yes
fetched_atstring (date-time)Yes

Errors

  • 400 Invalid request
  • 401 Authentication required
  • 402 Billing activation or published usage allowance required
  • 403 Project, role or scope denied
  • 409 State, ownership, idempotency or configuration conflict
  • 429 Rate limit; respect Retry-After
  • 503 Maintenance mode or required service configuration unavailable
Request
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": "…"
}
EOF

Read bounded advertiser-default conversion goals and reviewed projection revision; not tracking-health proof

POST/api/v1/projects/{project_id}/ads/google-account-goalsads:read

Request body

FieldTypeRequiredRules
customer_iduuidYes
connection_iduuidYes

Response 200

FieldTypeRequiredRules
provider"googleads"Yes
advertiserobjectYes
goalsobject[]Yes0–100 items
revisionstringYes
revision_basis"selected_account_conversion_goals"Yes
read_onlytrueYes
complete_snapshotfalseYes
truncatedfalseYes
tracking_verifiedfalseYes
limitationsstring[]Yes
fetched_atstring (date-time)Yes

Errors

  • 400 Invalid request
  • 401 Authentication required
  • 402 Billing activation or published usage allowance required
  • 403 Project, role or scope denied
  • 409 State, ownership, idempotency or configuration conflict
  • 429 Rate limit; respect Retry-After
  • 503 Maintenance mode or required service configuration unavailable
Request
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"
}
EOF

Inspect 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:read

Request body

The body takes one of 5 shapes, chosen by the field shown.

resource = "images"
FieldTypeRequiredRules
customer_iduuidYes
connection_iduuidYes
limitintegerNo1–50
resource"images"Yes
image_hashstringNopattern ^[a-f0-9]{32}$
include_bodyfalseNo
cursorstringNolength 1–10000
resource = "pixels"
FieldTypeRequiredRules
customer_iduuidYes
connection_iduuidYes
limitintegerNo1–50
resource"pixels"Yes
include_namesbooleanNo
include_bodyfalseNo
cursorstringNolength 1–10000
resource = "audiences"
FieldTypeRequiredRules
customer_iduuidYes
connection_iduuidYes
limitintegerNo1–50
resource"audiences"Yes
include_namesbooleanNo
include_bodyfalseNo
cursorstringNolength 1–10000
include_body = "false"
FieldTypeRequiredRules
customer_iduuidYes
connection_iduuidYes
limitintegerNo1–50
resourceenumYesone of: "creatives", "videos"
include_bodyfalseNo
cursorstringNolength 1–10000
resource = "creative"
FieldTypeRequiredRules
customer_iduuidYes
connection_iduuidYes
limitintegerNo1–50
resource"creative"Yes
creative_idstringYespattern ^[1-9][0-9]{0,29}$
include_bodybooleanNo

Response 200

FieldTypeRequiredRules
provider"metaads"Yes
advertiser_idstringYes
resourceenumYesone of: "images", "creatives", "creative", "videos", "audiences", "pixels"
include_bodybooleanYes
dataone of[]Yes0–50 items
next_cursorstring | nullYes
fetched_atstring (date-time)Yes
read_onlytrueYes
content_is_untrustedtrueYes
complete_snapshotfalseYes
limitationsstring[]Yes

Errors

  • 400 Invalid request
  • 401 Authentication required
  • 402 Billing activation or published usage allowance required
  • 403 Project, role or scope denied
  • 409 State, ownership, idempotency or configuration conflict
  • 429 Rate limit; respect Retry-After
  • 503 Maintenance mode or required service configuration unavailable
Request
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"
}
EOF

Search or resolve bounded native geographic metadata through an authorized Meta advertiser; no targeting mutation

POST/api/v1/projects/{project_id}/ads/meta-locationsads:read

Request body

The body takes one of 2 shapes, chosen by the field shown.

mode = "search"
FieldTypeRequiredRules
customer_iduuidYes
connection_iduuidYes
typeenumYesone of: "country", "region", "city"
mode"search"Yes
querystringYeslength 1–100Trimmed nonempty UTF8 query; control characters are refused.
country_codestringNopattern ^[A-Z]{2}$
limitintegerNo1–50
mode = "resolve"
FieldTypeRequiredRules
customer_iduuidYes
connection_iduuidYes
typeenumYesone of: "country", "region", "city"
mode"resolve"Yes
keysstring[]Yes1–20 items

Response 200

FieldTypeRequiredRules
provider"metaads"Yes
advertiser_idstringYes
modeenumYesone of: "search", "resolve"
typeenumYesone of: "country", "region", "city"
dataobject[]Yes
has_morebooleanYes
read_onlytrueYes
content_is_untrustedtrueYes
complete_catalogfalseYes
fetched_atstring (date-time)Yes
limitationsstring[]Yes

Errors

  • 400 Invalid request
  • 401 Authentication required
  • 402 Billing activation or published usage allowance required
  • 403 Project, role or scope denied
  • 409 State, ownership, idempotency or configuration conflict
  • 429 Rate limit; respect Retry-After
  • 503 Maintenance mode or required service configuration unavailable
Request
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": "…"
}
EOF

Read 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:read

Request body

FieldTypeRequiredRules
customer_iduuidYes
connection_iduuidYes
campaign_idstringYespattern ^[1-9][0-9]{0,29}$
ad_group_idstringYespattern ^[1-9][0-9]{0,29}$
include_conversionbooleanNoIndependent 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_audiencesbooleanNoIndependent 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_targetingbooleanNoExplicit opt-in to selected native targeting/schedule/dynamic-creative settings and a separate revision. Missing remains unknown and unmodeled values are suppressed.
include_transparencybooleanNoExplicit opt-in to native beneficiary/payer values. Omission suppresses names; the money revision remains unchanged.

Response 200

FieldTypeRequiredRules
provider"metaads"Yes
advertiser_idstringYes
currencystringYes
account_statusintegerYes
campaignobjectYes
ad_groupobjectYes
conversionobjectNo
audience_targetingobjectNo
targetingobjectNo
transparencyobjectNo
revisionstringYespattern ^[A-Za-z0-9_-]{43}$
read_onlytrueYes
content_is_untrustedtrueYes
complete_snapshotfalseYes
fetched_atstring (date-time)Yes
limitationsstring[]Yes

Errors

  • 400 Invalid request
  • 401 Authentication required
  • 402 Billing activation or published usage allowance required
  • 403 Project, role or scope denied
  • 409 State, ownership, idempotency or configuration conflict
  • 429 Rate limit; respect Retry-After
  • 503 Maintenance mode or required service configuration unavailable
Request
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": "…"
}
EOF

Inspect 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:read

Request body

FieldTypeRequiredRules
customer_iduuidYes
connection_iduuidYes
campaign_idstringYespattern ^[1-9][0-9]{0,29}$
ad_group_idstringYespattern ^[1-9][0-9]{0,29}$
include_conversionbooleanNoIndependent 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_audiencesbooleanNoIndependent 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_targetingbooleanNoExplicit opt-in to selected native targeting/schedule/dynamic-creative settings and a separate revision. Missing remains unknown and unmodeled values are suppressed.
include_transparencybooleanNoExplicit opt-in to native beneficiary/payer values. Omission suppresses names; the money revision remains unchanged.
ad_idstringYespattern ^[1-9][0-9]{0,29}$
include_bodybooleanNoExplicit opt-in to selected creative text, links and story fields; untrusted content.

Response 200

FieldTypeRequiredRules
provider"metaads"Yes
advertiser_idstringYes
currencystringYes
account_statusintegerYes
campaignobjectYes
ad_groupobjectYes
conversionobjectNo
audience_targetingobjectNo
targetingobjectNo
transparencyobjectNo
revisionstringYespattern ^[A-Za-z0-9_-]{43}$
read_onlytrueYes
content_is_untrustedtrueYes
complete_snapshotfalseYes
fetched_atstring (date-time)Yes
limitationsstring[]Yes
adobjectYes
creativeobjectYes
configuration_revisionstringYespattern ^[A-Za-z0-9_-]{43}$Original selected budget/bid revision, independent of the graph revision.

Errors

  • 400 Invalid request
  • 401 Authentication required
  • 402 Billing activation or published usage allowance required
  • 403 Project, role or scope denied
  • 409 State, ownership, idempotency or configuration conflict
  • 429 Rate limit; respect Retry-After
  • 503 Maintenance mode or required service configuration unavailable
Request
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": "…"
}
EOF

List 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:read

Request body

FieldTypeRequiredRules
customer_iduuidYes
connection_iduuidYes
viewenumNoone of: "unresolved", "all"
limitintegerNo1–100
cursorstringNolength 1–2048

Response 200

FieldTypeRequiredRules
family"ads"Yes
dataobject[]Yes
next_cursorstring | nullYes
read_onlytrueYes
complete_snapshotfalseYes

Errors

  • 400 Invalid request
  • 401 Authentication required
  • 402 Billing activation or published usage allowance required
  • 403 Project, role or scope denied
  • 409 State, ownership, idempotency or configuration conflict
  • 429 Rate limit; respect Retry-After
  • 503 Maintenance mode or required service configuration unavailable
Request
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"
}
EOF

Queue 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:spend

Parameters

FieldTypeRequiredRules
Idempotency-Key headerstringYeslength 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"
FieldTypeRequiredRules
customer_iduuidYes
connection_iduuidYes
action"archive_meta_entity"Yes
entity_idstringYespattern ^[1-9]\d{0,29}(?![\s\S])
resourceenumYesone of: "campaign", "ad_group", "ad"
expected_campaign_idstringNopattern ^[1-9]\d{0,29}(?![\s\S])
expected_ad_group_idstringNopattern ^[1-9]\d{0,29}(?![\s\S])
expected_status"paused"Yes
confirm_archivetrueYes
confirm_ads_may_be_affectedtrueYes
spend_authorizedfalseNo
action = "delete_meta_ad_image"
FieldTypeRequiredRules
customer_iduuidYes
connection_iduuidYes
expected_revisionstringYespattern ^[A-Za-z0-9_-]{43}$
confirm_deletetrueYes
confirm_ads_may_be_affectedtrueYes
spend_authorizedfalseNo
action"delete_meta_ad_image"Yes
image_hashstringYespattern ^[a-f0-9]{32}$
action = "delete_meta_ad_creative"
FieldTypeRequiredRules
customer_iduuidYes
connection_iduuidYes
expected_revisionstringYespattern ^[A-Za-z0-9_-]{43}$
confirm_deletetrueYes
confirm_ads_may_be_affectedtrueYes
spend_authorizedfalseNo
action"delete_meta_ad_creative"Yes
creative_idstringYespattern ^[1-9][0-9]{0,29}$
action = "upload_meta_ad_image"
FieldTypeRequiredRules
customer_iduuidYes
connection_iduuidYes
action"upload_meta_ad_image"Yes
media_iduuidYes
expected_sha256stringYespattern ^[a-f0-9]{64}$
spend_authorizedfalseNo
action = "upload_meta_ad_video"
FieldTypeRequiredRules
customer_iduuidYes
connection_iduuidYes
action"upload_meta_ad_video"Yes
media_iduuidYes
expected_sha256stringYespattern ^[a-f0-9]{64}$
spend_authorizedfalseNo
action = "create_video_creative"
FieldTypeRequiredRules
placementenumYesone of: "facebook_feed", "instagram_feed"
instagram_user_idstringNopattern ^[1-9][0-9]{0,29}$
customer_iduuidYes
connection_iduuidYes
page_connection_iduuidYes
namestringYeslength 1–100
image_hashstringYespattern ^[a-f0-9]{32}$
link_urlstring (uri)Yeslength 0–2000 · pattern ^https://
messagestringYeslength 1–2000
headlinestringNolength 1–100
descriptionstringNolength 1–200
call_to_action"learn_more"Yes
spend_authorizedfalseNo
action"create_video_creative"Yes
video_idstringYespattern ^[1-9][0-9]{0,29}$
video_referencestringYeslength 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"
FieldTypeRequiredRules
placementenumYesone of: "facebook_feed", "instagram_feed"
instagram_user_idstringNopattern ^[1-9][0-9]{0,29}$
customer_iduuidYes
connection_iduuidYes
page_connection_iduuidYes
namestringYeslength 1–100
image_hashstringYespattern ^[a-f0-9]{32}$
link_urlstring (uri)Yeslength 0–2000 · pattern ^https://
messagestringYeslength 1–2000
headlinestringNolength 1–100
descriptionstringNolength 1–200
call_to_action"learn_more"Yes
spend_authorizedfalseNo
action"create_video_ad"Yes
video_idstringYespattern ^[1-9][0-9]{0,29}$
video_referencestringYeslength 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_conversionobjectNo
expected_conversion.pixel_idstringYespattern ^[1-9][0-9]{0,29}$
expected_conversion.event_typeenumYesone of: "PURCHASE", "LEAD", "COMPLETE_REGISTRATION", "ADD_TO_CART", "INITIATED_CHECKOUT", "CONTENT_VIEW"
expected_conversion.confirm_website_conversiontrueYes
campaign_idstringYespattern ^[1-9][0-9]{0,29}$
ad_group_idstringYespattern ^[1-9][0-9]{0,29}$
creative_idstringYespattern ^[1-9][0-9]{0,29}$
status"paused"Yes
action = "create_image_creative"
FieldTypeRequiredRules
placementenumNoone of: "facebook_feed", "instagram_feed"
instagram_user_idstringNopattern ^[1-9][0-9]{0,29}$
customer_iduuidYes
connection_iduuidYes
page_connection_iduuidYes
namestringYeslength 1–100
image_hashstringYespattern ^[a-f0-9]{32}$
link_urlstring (uri)Yeslength 0–2000 · pattern ^https://
messagestringYeslength 1–2000
headlinestringNolength 1–100
descriptionstringNolength 1–200
call_to_action"learn_more"Yes
spend_authorizedfalseNo
action"create_image_creative"Yes
action = "create_image_ad"
FieldTypeRequiredRules
placementenumNoone of: "facebook_feed", "instagram_feed"
instagram_user_idstringNopattern ^[1-9][0-9]{0,29}$
customer_iduuidYes
connection_iduuidYes
page_connection_iduuidYes
namestringYeslength 1–100
image_hashstringYespattern ^[a-f0-9]{32}$
link_urlstring (uri)Yeslength 0–2000 · pattern ^https://
messagestringYeslength 1–2000
headlinestringNolength 1–100
descriptionstringNolength 1–200
call_to_action"learn_more"Yes
spend_authorizedfalseNo
action"create_image_ad"Yes
expected_conversionobjectNo
expected_conversion.pixel_idstringYespattern ^[1-9][0-9]{0,29}$
expected_conversion.event_typeenumYesone of: "PURCHASE", "LEAD", "COMPLETE_REGISTRATION", "ADD_TO_CART", "INITIATED_CHECKOUT", "CONTENT_VIEW"
expected_conversion.confirm_website_conversiontrueYes
status"paused"Yes
creative_idstringYespattern ^[1-9][0-9]{0,29}$
campaign_idstringYespattern ^[1-9][0-9]{0,29}$
ad_group_idstringYespattern ^[1-9][0-9]{0,29}$
action = "create_carousel_creative"
FieldTypeRequiredRules
placementenumNoone of: "facebook_feed", "instagram_feed"
instagram_user_idstringNopattern ^[1-9][0-9]{0,29}$
customer_iduuidYes
connection_iduuidYes
page_connection_iduuidYes
namestringYeslength 1–100
link_urlstring (uri)Yeslength 0–2000 · pattern ^https://
messagestringYeslength 1–2000
call_to_action"learn_more"Yes
spend_authorizedfalseNo
cardsobject[]Yes2–10 items
cards[].image_hashstringYespattern ^[a-f0-9]{32}$
cards[].link_urlstring (uri)Yeslength 0–2000 · pattern ^https://
cards[].headlinestringYeslength 1–100
cards[].descriptionstringNolength 1–200
preserve_card_ordertrueYes
action"create_carousel_creative"Yes
action = "create_carousel_ad"
FieldTypeRequiredRules
placementenumNoone of: "facebook_feed", "instagram_feed"
instagram_user_idstringNopattern ^[1-9][0-9]{0,29}$
customer_iduuidYes
connection_iduuidYes
page_connection_iduuidYes
namestringYeslength 1–100
link_urlstring (uri)Yeslength 0–2000 · pattern ^https://
messagestringYeslength 1–2000
call_to_action"learn_more"Yes
spend_authorizedfalseNo
cardsobject[]Yes2–10 items
cards[].image_hashstringYespattern ^[a-f0-9]{32}$
cards[].link_urlstring (uri)Yeslength 0–2000 · pattern ^https://
cards[].headlinestringYeslength 1–100
cards[].descriptionstringNolength 1–200
preserve_card_ordertrueYes
action"create_carousel_ad"Yes
expected_conversionobjectNo
expected_conversion.pixel_idstringYespattern ^[1-9][0-9]{0,29}$
expected_conversion.event_typeenumYesone of: "PURCHASE", "LEAD", "COMPLETE_REGISTRATION", "ADD_TO_CART", "INITIATED_CHECKOUT", "CONTENT_VIEW"
expected_conversion.confirm_website_conversiontrueYes
creative_idstringYespattern ^[1-9][0-9]{0,29}$
campaign_idstringYespattern ^[1-9][0-9]{0,29}$
ad_group_idstringYespattern ^[1-9][0-9]{0,29}$
status"paused"Yes
action = "update_meta_ad_group_budget"
FieldTypeRequiredRules
customer_iduuidYes
connection_iduuidYes
campaign_idstringYespattern ^[1-9][0-9]{0,29}$
ad_group_idstringYespattern ^[1-9][0-9]{0,29}$
currencystringYespattern ^[A-Z]{3}$
expected_revisionstringYespattern ^[A-Za-z0-9_-]{43}$
expected_campaign_statusenumYesone of: "enabled", "paused"
expected_ad_group_statusenumYesone of: "enabled", "paused"
expected_bid_strategyenumYesone of: "LOWEST_COST_WITHOUT_CAP", "LOWEST_COST_WITH_BID_CAP"
spend_authorizedtrueYes
action"update_meta_ad_group_budget"Yes
expected_daily_budget_minorstringYespattern ^[1-9][0-9]{0,11}$
daily_budget_minorstringYespattern ^[1-9][0-9]{0,11}$
expected_conversionobjectNo
expected_conversion.pixel_idstringYespattern ^[1-9][0-9]{0,29}$
expected_conversion.event_typeenumYesone of: "PURCHASE", "LEAD", "COMPLETE_REGISTRATION", "ADD_TO_CART", "INITIATED_CHECKOUT", "CONTENT_VIEW"
expected_conversion.confirm_website_conversiontrueYes
action = "update_meta_ad_group_lifetime_budget"
FieldTypeRequiredRules
customer_iduuidYes
connection_iduuidYes
campaign_idstringYespattern ^[1-9][0-9]{0,29}$
ad_group_idstringYespattern ^[1-9][0-9]{0,29}$
currencystringYespattern ^[A-Z]{3}$
expected_revisionstringYespattern ^[A-Za-z0-9_-]{43}$
expected_campaign_statusenumYesone of: "enabled", "paused"
expected_ad_group_statusenumYesone of: "enabled", "paused"
expected_bid_strategyenumYesone of: "LOWEST_COST_WITHOUT_CAP", "LOWEST_COST_WITH_BID_CAP"
spend_authorizedtrueYes
action"update_meta_ad_group_lifetime_budget"Yes
expected_lifetime_budget_minorstringYespattern ^[1-9][0-9]{0,11}$
lifetime_budget_minorstringYespattern ^[1-9][0-9]{0,11}$Total budget for the unchanged existing schedule, not remaining or incremental spend.
expected_end_timestring (date-time)Yespattern ^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d{3}Z$
expected_conversionobjectNo
expected_conversion.pixel_idstringYespattern ^[1-9][0-9]{0,29}$
expected_conversion.event_typeenumYesone of: "PURCHASE", "LEAD", "COMPLETE_REGISTRATION", "ADD_TO_CART", "INITIATED_CHECKOUT", "CONTENT_VIEW"
expected_conversion.confirm_website_conversiontrueYes
action = "update_meta_ad_group_bid"
FieldTypeRequiredRules
customer_iduuidYes
connection_iduuidYes
campaign_idstringYespattern ^[1-9][0-9]{0,29}$
ad_group_idstringYespattern ^[1-9][0-9]{0,29}$
currencystringYespattern ^[A-Z]{3}$
expected_revisionstringYespattern ^[A-Za-z0-9_-]{43}$
expected_campaign_statusenumYesone of: "enabled", "paused"
expected_ad_group_statusenumYesone of: "enabled", "paused"
expected_bid_strategy"LOWEST_COST_WITH_BID_CAP"Yes
spend_authorizedtrueYes
action"update_meta_ad_group_bid"Yes
expected_bid_amount_minorstringYespattern ^[1-9][0-9]{0,11}$
bid_amount_minorstringYespattern ^[1-9][0-9]{0,11}$
expected_end_timestring (date-time)Nopattern ^\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_conversionobjectNo
expected_conversion.pixel_idstringYespattern ^[1-9][0-9]{0,29}$
expected_conversion.event_typeenumYesone of: "PURCHASE", "LEAD", "COMPLETE_REGISTRATION", "ADD_TO_CART", "INITIATED_CHECKOUT", "CONTENT_VIEW"
expected_conversion.confirm_website_conversiontrueYes
action = "create_google_search_keyword"
FieldTypeRequiredRules
expected_bidding_strategyenumNoone 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_iduuidYes
connection_iduuidYes
campaign_idstringYespattern ^[1-9][0-9]{0,18}$Positive decimal int64 string, at most 9223372036854775807. Micros are 1/1,000,000 of advertiser currency.
currencystringYespattern ^[A-Z]{3}$
expected_campaign_statusenumYesone of: "enabled", "paused"
spend_authorizedtrueYes
ad_group_idstringYespattern ^[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_statusenumYesone of: "enabled", "paused"
action"create_google_search_keyword"Yes
keywordobjectYes
keyword.textstringYeslength 1–80
keyword.match_typeenumYesone of: "exact", "phrase", "broad"
keyword.negativebooleanYes
cpc_bid_microsone ofYes
action = "replace_google_search_keyword"
FieldTypeRequiredRules
expected_bidding_strategyenumNoone 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_iduuidYes
connection_iduuidYes
campaign_idstringYespattern ^[1-9][0-9]{0,18}$Positive decimal int64 string, at most 9223372036854775807. Micros are 1/1,000,000 of advertiser currency.
currencystringYespattern ^[A-Z]{3}$
expected_campaign_statusenumYesone of: "enabled", "paused"
spend_authorizedtrueYes
ad_group_idstringYespattern ^[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_statusenumYesone of: "enabled", "paused"
criterion_idstringYespattern ^[1-9][0-9]{0,18}$Positive decimal int64 string, at most 9223372036854775807. Micros are 1/1,000,000 of advertiser currency.
expected_keywordobjectYes
expected_keyword.textstringYeslength 1–80
expected_keyword.match_typeenumYesone of: "exact", "phrase", "broad"
expected_keyword.negativebooleanYes
expected_keyword_statusenumYesone of: "enabled", "paused"
expected_cpc_bid_microsone ofYes
action"replace_google_search_keyword"Yes
keywordobjectYes
keyword.textstringYeslength 1–80
keyword.match_typeenumYesone of: "exact", "phrase", "broad"
keyword.negativebooleanYes
cpc_bid_microsone ofYes
confirm_replacetrueYes
action = "remove_google_search_keyword"
FieldTypeRequiredRules
expected_bidding_strategyenumNoone 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_iduuidYes
connection_iduuidYes
campaign_idstringYespattern ^[1-9][0-9]{0,18}$Positive decimal int64 string, at most 9223372036854775807. Micros are 1/1,000,000 of advertiser currency.
currencystringYespattern ^[A-Z]{3}$
expected_campaign_statusenumYesone of: "enabled", "paused"
spend_authorizedtrueYes
ad_group_idstringYespattern ^[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_statusenumYesone of: "enabled", "paused"
criterion_idstringYespattern ^[1-9][0-9]{0,18}$Positive decimal int64 string, at most 9223372036854775807. Micros are 1/1,000,000 of advertiser currency.
expected_keywordobjectYes
expected_keyword.textstringYeslength 1–80
expected_keyword.match_typeenumYesone of: "exact", "phrase", "broad"
expected_keyword.negativebooleanYes
expected_keyword_statusenumYesone of: "enabled", "paused"
expected_cpc_bid_microsone ofYes
action"remove_google_search_keyword"Yes
confirm_removetrueYes
action = "set_google_search_keyword_status"
FieldTypeRequiredRules
expected_bidding_strategyenumNoone 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_iduuidYes
connection_iduuidYes
campaign_idstringYespattern ^[1-9][0-9]{0,18}$Positive decimal int64 string, at most 9223372036854775807. Micros are 1/1,000,000 of advertiser currency.
currencystringYespattern ^[A-Z]{3}$
expected_campaign_statusenumYesone of: "enabled", "paused"
spend_authorizedtrueYes
ad_group_idstringYespattern ^[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_statusenumYesone of: "enabled", "paused"
criterion_idstringYespattern ^[1-9][0-9]{0,18}$Positive decimal int64 string, at most 9223372036854775807. Micros are 1/1,000,000 of advertiser currency.
expected_keywordobjectYes
expected_keyword.textstringYeslength 1–80
expected_keyword.match_typeenumYesone of: "exact", "phrase", "broad"
expected_keyword.negativebooleanYes
expected_keyword_statusenumYesone of: "enabled", "paused"
expected_cpc_bid_microsone ofYes
action"set_google_search_keyword_status"Yes
statusenumYesone of: "enabled", "paused"
action = "update_google_search_keyword_bid"
FieldTypeRequiredRules
expected_bidding_strategyenumNoone 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_iduuidYes
connection_iduuidYes
campaign_idstringYespattern ^[1-9][0-9]{0,18}$Positive decimal int64 string, at most 9223372036854775807. Micros are 1/1,000,000 of advertiser currency.
currencystringYespattern ^[A-Z]{3}$
expected_campaign_statusenumYesone of: "enabled", "paused"
spend_authorizedtrueYes
ad_group_idstringYespattern ^[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_statusenumYesone of: "enabled", "paused"
criterion_idstringYespattern ^[1-9][0-9]{0,18}$Positive decimal int64 string, at most 9223372036854775807. Micros are 1/1,000,000 of advertiser currency.
expected_keywordobjectYes
expected_keyword.textstringYeslength 1–80
expected_keyword.match_typeenumYesone of: "exact", "phrase", "broad"
expected_keyword.negativebooleanYes
expected_keyword_statusenumYesone of: "enabled", "paused"
expected_cpc_bid_microsone ofYes
action"update_google_search_keyword_bid"Yes
cpc_bid_microsone ofYes
action = "set_status"
FieldTypeRequiredRules
customer_iduuidYes
connection_iduuidYes
action"set_status"Yes
resourceenumYesone of: "campaign", "ad_group", "ad"
entity_idstringYespattern ^[1-9][0-9]{0,29}$
ad_group_idstringNopattern ^[1-9][0-9]{0,29}$
expected_statusenumYesone of: "enabled", "paused"
statusenumYesone of: "enabled", "paused"
spend_authorizedbooleanNo
action = "create_campaign"
FieldTypeRequiredRules
customer_iduuidYes
connection_iduuidYes
namestringYeslength 1–255 · pattern ^[^\x00-\x1f\x7f]+$
status"paused"Yes
spend_authorizedfalseNo
action"create_campaign"Yes
objectiveenumYesone of: "traffic", "sales"
special_category"none"Yes
action = "create_ad_group"
FieldTypeRequiredRules
customer_iduuidYes
connection_iduuidYes
namestringYeslength 1–255 · pattern ^[^\x00-\x1f\x7f]+$
status"paused"Yes
spend_authorizedfalseNo
action"create_ad_group"Yes
conversionobjectNo
conversion.pixel_idstringYespattern ^[1-9][0-9]{0,29}$
conversion.event_typeenumYesone of: "PURCHASE", "LEAD", "COMPLETE_REGISTRATION", "ADD_TO_CART", "INITIATED_CHECKOUT", "CONTENT_VIEW"
conversion.confirm_website_conversiontrueYes
conversion.pixel_referencestringYeslength 1–6500
campaign_idstringYespattern ^[1-9][0-9]{0,29}$
currencystringYespattern ^[A-Z]{3}$
daily_budget_minorstringNopattern ^[1-9][0-9]{0,11}$
lifetime_budget_minorstringNopattern ^[1-9][0-9]{0,11}$Total for the fixed schedule, mutually exclusive with daily_budget_minor.
biddingone ofNoOptional 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_timestring (date-time)YesAt least60seconds into the future at execution
end_timestring (date-time)Yes15minutes–90days after start
transparencyobjectNo
transparency.beneficiarystringYeslength 1–512Truthful caller-provided beneficiary; outer whitespace is trimmed. May be publicly displayed by Meta.
transparency.payerstringYeslength 1–512Truthful caller-provided payer; outer whitespace is trimmed. Maps to dsa_payor. Never inferred from account defaults.
transparency.confirm_public_disclosuretrueYes
targetingone ofYesExactly one geography: countries, region set or one city with an explicit radius. Native names are not accepted. No implicit country union.
targeting.countriesstring[]No1–20 items
targeting.regionsobject[]No1–20 itemsKeys must be unique regardless of country_code and re-resolve to their reviewed country before writing.
targeting.regions[].keystringYespattern ^[1-9][0-9]{0,15}$Exact native region key; numeric value must be <=9007199254740991.
targeting.regions[].country_codestringYespattern ^[A-Z]{2}$
targeting.cityobjectNo
targeting.city.keystringYespattern ^[1-9][0-9]{0,15}$Exact native city key; numeric value must be <=9007199254740991.
targeting.city.country_codestringYespattern ^[A-Z]{2}$
targeting.city.radiusintegerYes10–80
targeting.city.distance_unitenumYesone of: "mile", "kilometer"
targeting.audiencesobjectNo1–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.includeobject[]No0–5 items
targeting.audiences.excludeobject[]No0–5 items
targeting.age_minintegerYes18–65
targeting.age_maxintegerYes18–65Must be>=age_min;65means65+
targeting.genderenumYesone of: "all", "male", "female"
targeting.placementsenumYesone of: "facebook_feed", "instagram_feed"
action = "create_post_creative"
FieldTypeRequiredRules
customer_iduuidYes
connection_iduuidYes
page_connection_iduuidYes
post_idstringYespattern ^[1-9][0-9]{0,29}_[1-9][0-9]{0,29}$
namestringYeslength 1–100 · pattern ^[^\x00-\x1f\x7f]+$
expected_post_revisionstring (date-time)Yes
expected_link_urlstring (uri)Yeslength 0–2000 · pattern ^https://
spend_authorizedfalseNo
action"create_post_creative"Yes
action = "create_post_ad"
FieldTypeRequiredRules
customer_iduuidYes
connection_iduuidYes
page_connection_iduuidYes
post_idstringYespattern ^[1-9][0-9]{0,29}_[1-9][0-9]{0,29}$
namestringYeslength 1–100 · pattern ^[^\x00-\x1f\x7f]+$
expected_post_revisionstring (date-time)Yes
expected_link_urlstring (uri)Yeslength 0–2000 · pattern ^https://
spend_authorizedfalseNo
action"create_post_ad"Yes
expected_conversionobjectNo
expected_conversion.pixel_idstringYespattern ^[1-9][0-9]{0,29}$
expected_conversion.event_typeenumYesone of: "PURCHASE", "LEAD", "COMPLETE_REGISTRATION", "ADD_TO_CART", "INITIATED_CHECKOUT", "CONTENT_VIEW"
expected_conversion.confirm_website_conversiontrueYes
status"paused"Yes
creative_idstringYespattern ^[1-9][0-9]{0,29}$
campaign_idstringYespattern ^[1-9][0-9]{0,29}$
ad_group_idstringYespattern ^[1-9][0-9]{0,29}$
action = "create_google_search_campaign"
FieldTypeRequiredRules
customer_iduuidYes
connection_iduuidYes
action"create_google_search_campaign"Yes
namestringYeslength 1–128 · pattern ^[^\x00-\x1f\x7f{}]+$
ad_group_namestringYeslength 1–128 · pattern ^[^\x00-\x1f\x7f{}]+$
status"paused"Yes
spend_authorizedfalseNo
eu_political_advertising"none"Yes
currencystringYespattern ^[A-Z]{3}$
time_zonestringYeslength 1–100Valid IANA time zone exactly matching the advertiser.
daily_budget_microsstringYespattern ^[1-9][0-9]{0,18}$Positive decimal int64 string, at most 9223372036854775807. Micros are 1/1,000,000 of advertiser currency.
bidding_strategyenumNoone of: "manual_cpc", "maximize_clicks", "maximize_conversions", "maximize_conversion_value", "target_impression_share"Omission retains manual CPC; strategy changes are not implicit.
impression_shareobjectNo
impression_share.locationenumYesone of: "ANYWHERE_ON_PAGE", "TOP_OF_PAGE", "ABSOLUTE_TOP_OF_PAGE"
impression_share.location_fraction_microsstringYespattern ^(?:[1-9]\d{0,5}|1000000)$Canonical fraction micros1–1000000. 500000 means50%, not currency. Requested auction objective, not guaranteed delivery/share.
cpc_bid_microsstringNopattern ^[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_microsstringNopattern ^[1-9][0-9]{0,18}$Positive decimal int64 string, at most 9223372036854775807. Micros are 1/1,000,000 of advertiser currency.
target_cpa_microsstringNopattern ^[1-9][0-9]{0,18}$Positive decimal int64 string, at most 9223372036854775807. Micros are 1/1,000,000 of advertiser currency.
target_roasnumberNo0.01–1000ROAS ratio, not percent;4.5 means450%. Techrace accepts0.01–1000. This is a bidding objective, not guaranteed return.
conversion_values_reviewedtrueNo
conversion_goal_reviewobjectNo
conversion_goal_review.revisionstringYespattern ^[A-Za-z0-9_-]{43}$
conversion_goal_review.use_account_defaultstrueYes
conversion_goal_review.tracking_reviewedtrueYes
start_datestring (date)Yespattern ^20[0-9]{2}-[0-9]{2}-[0-9]{2}$
end_datestring (date)Yespattern ^20[0-9]{2}-[0-9]{2}-[0-9]{2}$
targetingobjectYes
targeting.location_idsstring[]Yes1–20 items
targeting.language_idsstring[]Yes1–10 items
targeting.location_presence"presence"Yes
keywordsobject[]Yes1–20 items
keywords[].textstringYeslength 1–80 · pattern ^[^\x00-\x1f\x7f{}]+$Plain keyword, at most10 whitespace-delimited words.
keywords[].match_typeenumYesone of: "exact", "phrase", "broad"
keywords[].negativebooleanNo
adobjectYes
ad.final_urlstring (uri)Yeslength 0–2048HTTPS public DNS destination; no credentials, port, fragment, whitespace or template. Not fetched by Techrace.
ad.headlinesone of[]Yes3–15 itemsDistinct normalized text; all three positions must be fillable from pins or distinct unpinned assets. Legacy strings remain unpinned.
ad.descriptionsone of[]Yes2–4 itemsDistinct normalized text; both positions must be fillable from pins or distinct unpinned assets. Legacy strings remain unpinned.
ad.path1stringNopattern ^[A-Za-z0-9_-]{1,15}$
ad.path2stringNopattern ^[A-Za-z0-9_-]{1,15}$
action = "update_google_search_budget"
FieldTypeRequiredRules
customer_iduuidYes
connection_iduuidYes
campaign_idstringYespattern ^[1-9][0-9]{0,18}$Positive decimal int64 string, at most 9223372036854775807. Micros are 1/1,000,000 of advertiser currency.
currencystringYespattern ^[A-Z]{3}$
expected_campaign_statusenumYesone of: "enabled", "paused"
spend_authorizedtrueYes
action"update_google_search_budget"Yes
budget_idstringYespattern ^[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_microsstringYespattern ^[1-9][0-9]{0,18}$Positive decimal int64 string, at most 9223372036854775807. Micros are 1/1,000,000 of advertiser currency.
daily_budget_microsstringYespattern ^[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"
FieldTypeRequiredRules
customer_iduuidYes
connection_iduuidYes
campaign_idstringYespattern ^[1-9][0-9]{0,18}$Positive decimal int64 string, at most 9223372036854775807. Micros are 1/1,000,000 of advertiser currency.
currencystringYespattern ^[A-Z]{3}$
expected_campaign_statusenumYesone of: "enabled", "paused"
spend_authorizedtrueYes
action"update_google_search_bid"Yes
ad_group_idstringYespattern ^[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_statusenumYesone of: "enabled", "paused"
expected_cpc_bid_microsstringYespattern ^[1-9][0-9]{0,18}$Positive decimal int64 string, at most 9223372036854775807. Micros are 1/1,000,000 of advertiser currency.
cpc_bid_microsstringYespattern ^[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"
FieldTypeRequiredRules
customer_iduuidYes
connection_iduuidYes
campaign_idstringYespattern ^[1-9][0-9]{0,18}$Positive decimal int64 string, at most 9223372036854775807. Micros are 1/1,000,000 of advertiser currency.
currencystringYespattern ^[A-Z]{3}$
expected_campaign_statusenumYesone of: "enabled", "paused"
spend_authorizedtrueYes
action"update_google_search_click_ceiling"Yes
expected_cpc_bid_ceiling_microsstringYespattern ^[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_microsstringYespattern ^[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"
FieldTypeRequiredRules
customer_iduuidYes
connection_iduuidYes
campaign_idstringYespattern ^[1-9][0-9]{0,18}$Positive decimal int64 string, at most 9223372036854775807. Micros are 1/1,000,000 of advertiser currency.
currencystringYespattern ^[A-Z]{3}$
expected_campaign_statusenumYesone of: "enabled", "paused"
spend_authorizedtrueYes
action"update_google_search_impression_share"Yes
expected_impression_shareobjectYes
expected_impression_share.locationenumYesone of: "ANYWHERE_ON_PAGE", "TOP_OF_PAGE", "ABSOLUTE_TOP_OF_PAGE"
expected_impression_share.location_fraction_microsstringYespattern ^(?:[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_microsstringYespattern ^[1-9][0-9]{0,18}$Positive decimal int64 string, at most 9223372036854775807. Micros are 1/1,000,000 of advertiser currency.
impression_shareobjectYes
impression_share.locationenumYesone of: "ANYWHERE_ON_PAGE", "TOP_OF_PAGE", "ABSOLUTE_TOP_OF_PAGE"
impression_share.location_fraction_microsstringYespattern ^(?:[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_microsstringYespattern ^[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"
FieldTypeRequiredRules
customer_iduuidYes
connection_iduuidYes
campaign_idstringYespattern ^[1-9]\d{0,18}(?![\s\S])Exact positive signed-int64 decimal string, maximum9223372036854775807; no whitespace
currencystringYespattern ^[A-Z]{3}(?![\s\S])
expected_campaign_statusenumYesone of: "enabled", "paused"
spend_authorizedtrueYes
action"replace_google_search_target"Yes
criterion_idstringYespattern ^[1-9]\d{0,18}(?![\s\S])Exact positive signed-int64 decimal string, maximum9223372036854775807; no whitespace
expected_bidding_strategyenumYesone of: "manual_cpc", "maximize_clicks", "maximize_conversions", "maximize_conversion_value", "target_impression_share"
target_typeenumYesone of: "location", "language"
expected_target_idstringYespattern ^[1-9]\d{0,18}(?![\s\S])Exact positive signed-int64 decimal string, maximum9223372036854775807; no whitespace
target_idstringYespattern ^[1-9]\d{0,18}(?![\s\S])Exact positive signed-int64 decimal string, maximum9223372036854775807; no whitespace
confirm_replacetrueYes
action = "create_google_search_location_exclusion"
FieldTypeRequiredRules
customer_iduuidYes
connection_iduuidYes
campaign_idstringYespattern ^[1-9]\d{0,18}(?![\s\S])Exact positive signed-int64 decimal string, maximum9223372036854775807; no whitespace
currencystringYespattern ^[A-Z]{3}(?![\s\S])
expected_campaign_statusenumYesone of: "enabled", "paused"
spend_authorizedtrueYes
expected_bidding_strategyenumYesone of: "manual_cpc", "maximize_clicks", "maximize_conversions", "maximize_conversion_value", "target_impression_share"
action"create_google_search_location_exclusion"Yes
location_idstringYespattern ^[1-9]\d{0,18}(?![\s\S])Exact positive signed-int64 decimal string, maximum9223372036854775807; no whitespace
confirm_exclusiontrueYes
action = "remove_google_search_location_exclusion"
FieldTypeRequiredRules
customer_iduuidYes
connection_iduuidYes
campaign_idstringYespattern ^[1-9]\d{0,18}(?![\s\S])Exact positive signed-int64 decimal string, maximum9223372036854775807; no whitespace
currencystringYespattern ^[A-Z]{3}(?![\s\S])
expected_campaign_statusenumYesone of: "enabled", "paused"
spend_authorizedtrueYes
expected_bidding_strategyenumYesone of: "manual_cpc", "maximize_clicks", "maximize_conversions", "maximize_conversion_value", "target_impression_share"
action"remove_google_search_location_exclusion"Yes
criterion_idstringYespattern ^[1-9]\d{0,18}(?![\s\S])Exact positive signed-int64 decimal string, maximum9223372036854775807; no whitespace
expected_location_idstringYespattern ^[1-9]\d{0,18}(?![\s\S])Exact positive signed-int64 decimal string, maximum9223372036854775807; no whitespace
confirm_removetrueYes
action = "update_google_search_target_cpa"
FieldTypeRequiredRules
customer_iduuidYes
connection_iduuidYes
campaign_idstringYespattern ^[1-9][0-9]{0,18}$Positive decimal int64 string, at most 9223372036854775807. Micros are 1/1,000,000 of advertiser currency.
currencystringYespattern ^[A-Z]{3}$
expected_campaign_statusenumYesone of: "enabled", "paused"
spend_authorizedtrueYes
action"update_google_search_target_cpa"Yes
expected_target_cpa_microsone ofYesExact reviewed current target; explicit null means the target is absent/default zero on the verified standard campaign.
target_cpa_microsone ofYesPositive value adds/changes the reviewed target. Null requires clear_target:true and a positive expected target.
clear_targettrueNoExplicitly authorize removing only the reviewed target, preserving the strategy and budget.
action = "update_google_search_target_roas"
FieldTypeRequiredRules
customer_iduuidYes
connection_iduuidYes
campaign_idstringYespattern ^[1-9][0-9]{0,18}$Positive decimal int64 string, at most 9223372036854775807. Micros are 1/1,000,000 of advertiser currency.
currencystringYespattern ^[A-Z]{3}$
expected_campaign_statusenumYesone of: "enabled", "paused"
spend_authorizedtrueYes
action"update_google_search_target_roas"Yes
expected_target_roasone ofYesExact reviewed current target; explicit null means the target is absent/default zero on the verified standard campaign.
target_roasone ofYesPositive value adds/changes the reviewed target. Null requires clear_target:true and a positive expected target.
conversion_values_reviewedtrueYes
clear_targettrueNoExplicitly authorize removing only the reviewed target, preserving the strategy and budget.
action = "update_google_search_ad_text"
FieldTypeRequiredRules
customer_iduuidYes
connection_iduuidYes
action"update_google_search_ad_text"Yes
campaign_idstringYespattern ^[1-9][0-9]{0,18}$Positive decimal int64 string, at most 9223372036854775807. Micros are 1/1,000,000 of advertiser currency.
ad_group_idstringYespattern ^[1-9][0-9]{0,18}$Positive decimal int64 string, at most 9223372036854775807. Micros are 1/1,000,000 of advertiser currency.
ad_idstringYespattern ^[1-9][0-9]{0,18}$Positive decimal int64 string, at most 9223372036854775807. Micros are 1/1,000,000 of advertiser currency.
expected_revisionstringYespattern ^[A-Za-z0-9_-]{43}$Fresh query_google_search_context include_body:true revision; one paused ad association required.
headlinesobject[]Yes3–15 itemsDistinct normalized text; all three positions must have eligible assets.
headlines[].textstringYeslength 1–30Plain text without controls or customizer braces; trimmed; distinct text within each list.
headlines[].pinned_fieldenumNoone of: "HEADLINE_1", "HEADLINE_2", "HEADLINE_3"
descriptionsobject[]Yes2–4 itemsDistinct normalized text; both positions must have eligible assets.
descriptions[].textstringYeslength 1–90Plain text without controls or customizer braces; trimmed; distinct text within each list.
descriptions[].pinned_fieldenumNoone of: "DESCRIPTION_1", "DESCRIPTION_2"
spend_authorizedtrueYes

Response 202

FieldTypeRequiredRules
operationobjectYes
delivery_confirmedfalseYes

Errors

  • 400 Invalid request
  • 401 Authentication required
  • 402 Billing activation or published usage allowance required
  • 403 Project, role or scope denied
  • 409 State, ownership, idempotency or configuration conflict
  • 429 Rate limit; respect Retry-After
  • 503 Maintenance mode or required service configuration unavailable
Request
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
Response
JSON
{
  "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:read

Parameters

FieldTypeRequiredRules
operation_id pathuuidYes

Response 200

FieldTypeRequiredRules
operationobjectYes

Errors

  • 400 Invalid request
  • 401 Authentication required
  • 402 Billing activation or published usage allowance required
  • 403 Project, role or scope denied
  • 409 State, ownership, idempotency or configuration conflict
  • 429 Rate limit; respect Retry-After
  • 503 Maintenance mode or required service configuration unavailable
Request
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:spend

Parameters

FieldTypeRequiredRules
operation_id pathuuidYes
operation_id pathuuidYes

Request body

FieldTypeRequiredRules
expected_actionstringYeslength 1–80 · pattern ^[a-z][a-z0-9_]{0,79}(?![\s\S])
confirm_canceltrueYes

Response 200

FieldTypeRequiredRules
operationobjectYes

Errors

  • 400 Invalid request
  • 401 Authentication required
  • 402 Billing activation or published usage allowance required
  • 403 Project, role or scope denied
  • 409 State, ownership, idempotency or configuration conflict
  • 429 Rate limit; respect Retry-After
  • 503 Maintenance mode or required service configuration unavailable
Request
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
}
EOF

Owner/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:read

Parameters

FieldTypeRequiredRules
operation_id pathuuidYes

Request body

FieldTypeRequiredRules
acknowledge_unknown_outcometrueYes
notestringYeslength 1–500

Response 200

FieldTypeRequiredRules
operationobjectYes
delivery_confirmedfalseYes

Errors

  • 400 Invalid request
  • 401 Authentication required
  • 402 Billing activation or published usage allowance required
  • 403 Project, role or scope denied
  • 409 State, ownership, idempotency or configuration conflict
  • 429 Rate limit; respect Retry-After
  • 503 Maintenance mode or required service configuration unavailable
Request
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": "…"
}
EOF

Read customer-bound Meta or Google Ads data; insights date range 1–31 days

POST/api/v1/projects/{project_id}/ads/queryads:read

Request body

FieldTypeRequiredRules
customer_iduuidYes
connection_iduuidYes
resourceenumYesone of: "account", "campaigns", "ad_groups", "ads", "insights"
levelenumNoone 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…
breakdownenumNoone 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_attributiontrueNoExplicit native attribution_setting readback only for Meta performance ad_group/ad insights. Requested parameters are not proof of effective attribution or reporting time.
metric_setenumNoone 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…
sincestring (date)No
untilstring (date)No
limitintegerNo1–100
cursorstringNolength 0–10000

Response 200

FieldTypeRequiredRules
providerenumYesone of: "metaads", "googleads"
resourceenumYesone of: "account", "campaigns", "ad_groups", "ads", "insights"
levelenumYesone of: "account", "campaign", "ad_group", "ad", "keyword", "age_range", "gender", null
native_levelenumYesone of: "account", "campaign", "ad_group", "adset", "ad", "keyword", "age_range_view", "gender_view", null
metric_setenumYesone of: "basic", "performance", "search_share", null
breakdownenumYesone of: "age", "gender", "country", "publisher_platform", "device_platform", "age_gender", "placement", null
breakdown_fieldsenum[] | nullYes1–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_basisobject | nullYesNative 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_snapshotfalseYes
content_is_untrustedtrueYes
dataobject[]Yes
next_cursorstring | nullYes
fetched_atstring (date-time)Yes
date_basis"ad_account_timezone"Yes
read_onlytrueYes
limitationsstring[]Yes

Errors

  • 400 Invalid request
  • 401 Authentication required
  • 402 Billing activation or published usage allowance required
  • 403 Project, role or scope denied
  • 409 State, ownership, idempotency or configuration conflict
  • 429 Rate limit; respect Retry-After
  • 503 Maintenance mode or required service configuration unavailable
Request
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
Response
JSON
{
  "data": [
    {
      "campaign_id": "120210000000000001",
      "impressions": 48210,
      "clicks": 1306,
      "spend": {
        "amount": "142.80",
        "currency": "USD"
      }
    }
  ],
  "next_cursor": null
}