Audience Upload Overview

Microsoft Advertising allows you to upload customer data to create Custom Audiences for remarketing and customer match. There are two methods: API upload and file upload.

Method 1: API Upload

Best for automated, real-time audience updates.

Prerequisites

  • Microsoft Advertising developer token
  • OAuth 2.0 authentication setup
  • Customer data in supported format (email, phone, user ID)

API Process

  1. Authenticate with OAuth 2.0
  2. Create a new audience list via API
  3. Upload customer data (hashed for privacy)
  4. Monitor upload status and processing
# Pseudocode for API upload
client = BingAdsClient(credentials)
audience = client.create_audience(
    name="Holiday Customers 2023",
    description="Customers who purchased during holiday season",
    membership_duration=540,
    scope="Account",
    parent_account_id=account_id
)
client.upload_audience_data(
    audience_id=audience.id,
    data=customer_data_hashed,
    format="Email"
)

Method 2: File Upload

Best for one-time or periodic manual uploads.

File Format

ColumnDescriptionRequired
EmailSHA-256 hashed email addressOne of Email/Phone/Member ID
PhoneSHA-256 hashed phone numberOne of Email/Phone/Member ID
Member IDYour internal customer IDOne of Email/Phone/Member ID
First NameSHA-256 hashed first nameOptional (improves match rate)
Last NameSHA-256 hashed last nameOptional (improves match rate)

Upload Steps

  1. Prepare CSV file with hashed customer data
  2. In Microsoft Advertising, go to Tools → Audiences
  3. Click "Create audience" → "Customer match"
  4. Upload your CSV file
  5. Select data type and membership duration
  6. Click "Upload and create"

API vs File Upload Comparison

AspectAPI UploadFile Upload
AutomationFull automation possibleManual process
Update FrequencyReal-timeUp to once per day
Max RecordsBatch processingUp to 500K per file
Technical SkillDeveloper requiredNo coding needed
Best ForLarge-scale, frequent updatesSmall lists, one-time uploads

Data Hashing Requirements

Customer data must be SHA-256 hashed before upload:

  • Convert to lowercase
  • Remove leading/trailing whitespace
  • SHA-256 hash the value
  • Upload as hex string
Related: For Bing Ads API setup, see Bing Ads API Token Guide. For Google's equivalent feature, check Search Ad Audience Solutions (Customer Match section).

Related Articles


← Back to Home