SkillAgentSearch skills...

data-manager-api-troubleshooting

Diagnoses and fixes errors, warnings, and missing data for Data Manager API event and audience ingestion requests

Install / Use

npx skills add google/skills --skill data-manager-api-troubleshooting

Installs into whichever agent you are using.

About this skill
📄

SKILL.md

Installable skill definition

Quality Score

87/100

Supported Platforms

Universal

Our assessment of data-manager-api-troubleshooting

data-manager-api-troubleshooting scores 87/100 on our quality scale, 1996th of 4,700 Development & Engineering skills we index (top 43%).

Its SKILL.md is 6.7 KB long, well organised into 9 sections with 1 code example: a thorough specification that gives an agent plenty to work with.

With 20,340 GitHub stars, it is one of the more widely adopted skills in the catalogue.

Substance
29/30
Structure
17/20
Description
12/15
Adoption
18/20
Freshness
15/15

Maintenance, license and trust

  • The repository was last updated about 2 months ago, so data-manager-api-troubleshooting is actively maintained.
  • It is released under the Apache-2.0 license, a permissive license that allows use, modification and commercial use with attribution.
  • Its trust signals score 100/100, with no cautions. These come from repository metadata, not a code audit — read the skill file before letting an agent act on it.

data-manager-api-troubleshooting compared with similar skills

All 4 of these similar skills score higher than data-manager-api-troubleshooting; compare them before choosing.

SkillScoreStarsUpdatedFormat
data-manager-api-troubleshooting (this skill)by google8720.3k2mo agoSKILL.md
taste-skillby Leonxlnx100121.1ktodayCLAUDE.md
Agent-Reachby Panniantong100114.5ktodayCLAUDE.md
hyperframesby heygen-com10089.6ktodayCLAUDE.md
headroomby headroomlabs-ai10080.8ktodayCLAUDE.md

Frequently asked questions

How do I install data-manager-api-troubleshooting?
Run npx skills add google/skills --skill data-manager-api-troubleshooting. The install tabs above show the steps for each supported agent.
Which AI agents does data-manager-api-troubleshooting work with?
It is written for Universal, as a SKILL.md file. Other agents that read the same format can often use it too.
Is data-manager-api-troubleshooting safe to use?
It is Apache-2.0-licensed and scores 100/100 on trust signals. Skills are instructions an agent will follow, so read the file before installing it and do not approve commands you do not understand.
Is data-manager-api-troubleshooting still maintained?
The repository was last updated about 2 months ago, so data-manager-api-troubleshooting is actively maintained.

name: data-manager-api-troubleshooting description: >- Diagnoses and fixes errors, warnings, and missing data for Data Manager API event and audience ingestion requests. Use when an IngestEvents, IngestAudienceMembers, RemoveAudienceMembers, RemoveAllAudienceMembers, or RetrieveRequestStatus call fails (INVALID_ARGUMENT, REQUIRED_FIELD_MISSING, INVALID_HEX_ENCODING, PERMISSION_DENIED, UNAUTHENTICATED, RESOURCE_EXHAUSTED, INVALID_REQUEST_ID), when a response has fieldWarnings, when checking request status or diagnostics, when request status shows FAILED or PARTIAL_SUCCESS or processing errors, when finding which records failed, or when a request returned 200 but conversions or audience members are missing. Don't use for writing new ingestion code (use the data-manager-api-event-ingestion or data-manager-api-audience-ingestion skills) or first-time credential setup (use the data-manager-api-setup skill). metadata: version: "1.0.0" category: GoogleAds

Data Manager API Troubleshooting

The Data Manager API reports problems in three places, at three different times.

Step 1: Classify the problem

Ask for the exact error payload, response, or diagnostics output if the user hasn't shared it.

| Symptom | When | What it means | Go to | | :--- | :--- | :--- | :--- | | Request throws an exception or returns 4xx/5xx | Immediately | The entire request was rejected. No records were ingested. | Step 2 | | Request succeeds with field_warnings | Immediately | The request was accepted, but the flagged field had an issue (for example, an invalid or missing optional value). Don't resend. Fix the source data for future requests. | None | | Request succeeded, but data is missing or lower than expected | Check retrieve_request_status 30 minutes to 24 hours later | Records can still fail during asynchronous processing. Diagnostics show per-destination results, including which records failed. | Step 3 |

Step 2: Fix request errors

The API uses a fast-fail model: if any record fails synchronous validation, the whole request fails and no records are processed. Fix the problem and resend the entire request. To confirm a fix first, send the ingestion request with validate_only set to true.

Read the full error

For INVALID_ARGUMENT, the top-level message is always generic ("There was a problem with the request."). Read every entry in the google.rpc.BadRequest detail's field_violations, including field (a path with list indexes, such as events.events[1].user_data.user_identifiers[2]), reason (an ErrorReason), and description. For any error, also log request_id from google.rpc.RequestInfo and include it in support requests.

In Python (google.api_core.exceptions.GoogleAPICallError), read err.details:

from google.api_core import exceptions
from google.rpc import error_details_pb2

try:
  ...
except exceptions.GoogleAPICallError as err:
  for detail in err.details:
    if isinstance(detail, error_details_pb2.BadRequest):
      for v in detail.field_violations:
        print(v.field, v.reason, v.description)
    elif isinstance(detail, error_details_pb2.RequestInfo):
      print("request_id:", detail.request_id)

Fix by error code

| Error code | What to do | | :--- | :--- | | INVALID_ARGUMENT (400) | Follow Fix INVALID_ARGUMENT errors. | | UNAUTHENTICATED (401), PERMISSION_DENIED (403) | Read ErrorInfo.reason, then follow Permission errors. | | RESOURCE_EXHAUSTED (429) | Check ErrorInfo.metadata.quota_limit. For a per-minute limit, resend with exponential backoff and jitter. For a daily limit, don't resend until the quota resets at midnight Pacific Time. In both cases, reduce the request count by batching more records per request (up to 2,000 events or 10,000 audience members) and sending at most 10 requests concurrently. | | RetrieveRequestStatus fails with INVALID_REQUEST_ID or REQUEST_TOO_OLD | Status exists only for recent requests that succeeded and didn't set validate_only. For INVALID_REQUEST_ID, check that the ID is the request_id from a successful, non-validation ingestion response (if the original request failed, fix it using its own error). For REQUEST_TOO_OLD, diagnostics are no longer available. |

For other error codes, check whether the error can be retried before resending. See Best practices for error handling.

Step 3: Check request status and diagnostics

Each destination in the response has an overall request_status, error and warning counts, and a request-type status with record and identifier counts. Some audience data also has a match rate. Field names differ by request type and data type. Use the fields in Request status and diagnostics.

Requirements and timing

  • Diagnostics exist only for requests that succeeded and didn't set validate_only.
  • Wait at least 30 minutes after ingestion, then poll with exponential backoff until every destination reaches SUCCESS, PARTIAL_SUCCESS, or FAILED. Processing can take up to 24 hours. When writing code that reads request status, handle destinations still in PROCESSING by polling again later instead of reporting their results.

Map records to their errors and warnings

record_indices are 0-based positions in the original request's events or audience_members list. When a user asks which records failed or wants to fix them, invert error_info.error_counts and warning_info.warning_counts for each destination into a per-record list of errors and warnings. Resend only the corrected records that had errors, and only to the destinations where they failed. For warning-only records, fix the issue for future uploads.

To find what a processing reason means and how to fix it, see Processing reasons.

References

Related Skills

View on GitHub
GitHub Stars20.3k
CategoryDevelopment
Updated2mo ago
Forks1.7k

Languages

Python

Trust signals

100/100

From repository metadata: license, adoption, age and documentation. Not a code audit — see the Safety scan above for what the skill file itself contains.

No cautions
data-manager-api-troubleshooting — Universal Skill: Install & Safety Check | SkillAgent