Skip to content
Skillpedia
Social media22k · #10182

data-manager-api-audience-ingestion

What it does

It shows how to upload, remove, or clear members of an audience, such as Customer Match lists, through the Data Manager API. It is for developers and marketers who manage ad audiences.

When to use it

  • ✓When you want to upload a customer list to create or grow an ad audience.
  • ✓When you need to remove specific people from an audience.
  • ✓When you want to replace or clear an entire audience and start over.

Skill link

https://github.com/google/skills/blob/main/skills/ads/data-manager-api-audience-ingestion/SKILL.md

Copy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.

How to use

The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.

Ready-to-paste message

Use this skill to help me: https://github.com/google/skills/blob/main/skills/ads/data-manager-api-audience-ingestion/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
Want your AI to find skills like this on its own?Install the free Skillpedia MCP: one line, and it searches 15,000+ skills before each task.Install in 1 minute →

Example of what to ask your AI

“Help me upload my customer email list to a Customer Match audience in Google Ads using the Data Manager API.”

5 new skills a week. 1 minute to read.

How it works

It first confirms which Google product the data is for, reads the matching guide, and then writes the upload, removal, or clear code for that destination.

Technical content (original SKILL.md)

Original text by the author, straight from GitHub.

Data Manager API Audience Ingestion

Implementation Workflow

Prerequisites

  • Authentication & Library Installation: If you need to set up access to the Data Manager API or install the client and utility libraries, refer to the data-manager-api-setup skill.
  • Audience Creation (if needed): If the user does not have an existing audience or needs to create a new one, use the Create an Audience reference. This step provides the product_destination_id needed for the ingestion or removal requests.

Step 1: Identify Use Case & Read Documentation

  • Determine Destination Account Type: [CRITICAL] If it's not clear where the data is being sent (e.g., Google Ads, Display & Video 360, etc.), STOP and CLARIFY with the user BEFORE generating any code. Do not assume Google Ads by default. This maps to the account_type field of the operating_account in the Destination.
  • Read the implementation guide: Read the relevant guide for your destination and use case. Do this before answering questions or writing code because each destination has unique payload structures, consent rules, and required fields.
Destination Audience Type Accepted Data Types Upload Guide Remove All/Replace All Guide
Google Ads Customer Match composite_data.user_data (contact info), mobile_data (device IDs), user_id_data (user IDs) Upload Data Remove All/Replace All
Display & Video 360 (DV360) Customer Match composite_data.user_data (contact info), mobile_data (device IDs) Upload Data Remove All/Replace All

Step 2: Retrieve Code Sample

[!IMPORTANT] If writing or updating an ingestion script, ALWAYS retrieve the relevant code sample to use as a reference:

Language Sample
Python ingest_audience_members.py
Java IngestAudienceMembers.java
PHP ingest_audience_members.php
Node ingest_audience_members.ts
.NET IngestAudienceMembers.cs

Step 3: Retrieve Migration Guides

[!IMPORTANT] If refactoring code to upgrade from another Google API, ALWAYS extract the full contents of the relevant field mapping guide.

Google Ads

Display & Video 360

Step 4: Implementation

Implement the ingestion logic using the following checkpoints:

  • Initialize Client: Instantiate the Data Manager client (IngestionServiceClient).
  • Define Destinations: Build the Destination object using the product_destination_id and the appropriate account configurations: operating_account (target account receiving data), login_account (if authenticating using a manager account or a data partner account), and linked_account (if you're a data partner accessing the account via a partner link to a manager account). **STR
FAQ

Does it assume which ad product I use?

No. It asks you to clarify the destination before it writes any code.

Do I need to set up the API first?

The skill can point you to a separate setup skill for access and client libraries.

Can it help me create a new audience?

Yes. If you have no audience yet, it can help you create one first.

Details

Original description by the author

Guides developers through managing (adding, removing, and clearing) audience members for Google products using the Data Manager API and its associated client libraries. Use this skill when the user wants to upload audience members, remove specific users, or clear/replace an entire audience for Customer Match, mobile device ID audiences, or any other audience use case supported by the Data Manager API. Don't use for uploading events or conversions (use the data-manager-api-event-ingestion skill).

repo: google/skills

Popularity

GitHub stars
22k
Ranking position
#10182
License
Apache-2.0
Updated
11/2/2026

Is this skill useful?

0

Sign in to vote.

Comments

  • …

More skills from this repository

Similar skills