All skills
google avatar

/data-manager-api-audience-ingestion

@329fa26
by googlegoogle/skills21k stars
1,698

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

Use this Skill: https://skilld.dev/gh/google/skills/data-manager-api-audience-ingestion

This session only. Nothing lands on disk.

referencescreate-audience.md

≈527 tokens on demand. Your agent reads this file only when SKILL.md points to it.

Create an Audience (User List)

If the user needs to create a new audience before ingesting data, follow these steps.

Reference

[CRITICAL] Follow the relevant guide for sample requests and more information on how to create an audience using the Data Manager API:

Common Mistakes & Gotchas

The below examples are in Python, but the concepts apply to all client libraries.

  1. The correct client is UserListServiceClient, not UserListsClient.
from google.ads import datamanager_v1

user_list_client = datamanager_v1.UserListServiceClient()
  1. Do not pass Google Ads specific headers like login-customer-id or developer-token. If required, set login-account or linked-account headers formatted as resource names (e.g., accountTypes/{account_type}/accounts/{id}) for resource management requests.

    • Set login-account if authenticating using a manager account or a data partner account.
    • Set linked-account if you're a data partner accessing the account via a partner link to a manager account.
    • Consult the Configure destinations and headers documentation for example headers in different resource management request access scenarios.
headers = []
account_type = "GOOGLE_ADS"
login_account_id = "1234567890"

if login_account_id:
    headers.append(
        (
            "login-account",
            f"accountTypes/{account_type}/accounts/{login_account_id}",
        )
    )

response = user_list_client.create_user_list(
    parent=parent_account, user_list=user_list_data, metadata=headers
)

Source: SKILL.md on GitHub

No alerts8d3 checks · Risk SAFE
  • Gen Agent Trust Hub8d

    This skill guides developers through audience ingestion using the Google Data Manager API. It leverages official Google documentation and libraries, following established security and privacy practices for handling user data.

  • Socket8d

    No alerts

  • Snyk8d

    Risk: LOW · No issues

Signed by skilld at 329fa26. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub yesterday.

Activeupdated last week
metadata
{
  "version": "1.1.0",
  "category": "GoogleAds"
}

README badge

README badge for google/skills/data-manager-api-audience-ingestion