agentleFS
GoogleKnown publishergoogle/skills/skills/ads/data-manager-api-troubleshooting/SKILL.md

data-manager-api-troubleshooting

Skill25k starsChanged 2 months agoApache-2.0View on GitHub

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).

Adopted by

Steady: 0 new projects took it in the last 4 weeks, none the 4 weeks before.thin data

Week of Oct 4: 0 new projectsWeek of Oct 11: 0 new projectsWeek of Oct 18: 0 new projectsWeek of Oct 25: 0 new projectsWeek of Nov 1: 0 new projectsWeek of Nov 8: 0 new projectsWeek of Nov 15: 0 new projectsWeek of Nov 22: 0 new projects
Oct 2026Nov 2026Nov 2026
New projects taking a version of this file each week, over the 8 weeks our latest run read: only 0 in all, so this is a hint, not a trend.

Who's talking about google/skills

The biggest 5 of 57 mentions linking to the repository that our crawl found. Each line is their own headline.

See all 57

Talked about on YouTube, Bluesky, GitHub, the web and Hacker News (57 times).

On YouTube · 24

19 more on YouTube

On Bluesky · 16

11 more on Bluesky

On GitHub · 12

7 more on GitHub

On Hacker News · 2

The file

We split this skill into the rules it gives an agent

2 rules. About 0 are common, 1 is distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

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

    line 28
  2. Very specific:

    Wait at least 30 minutes after ingestion, then poll with exponential backoff until every destination reaches SUCCESS, PARTIAL_SUCCESS, or …

    line 95

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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.

SymptomWhenWhat it meansGo to
Request throws an exception or returns 4xx/5xxImmediatelyThe entire request was rejected. No records were ingested.Step 2
Request succeeds with field_warningsImmediatelyThe 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 expectedCheck retrieve_request_status 30 minutes to 24 hours laterRecords 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 codeWhat 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_OLDStatus 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

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.