PUT /api/v2/buyer/advertisers/{advertiserId}/accounts/{linkId}/reporting-bucket
Sets or clears the offline reporting_bucket configuration on a linked partner account, then notifies the seller via sync_accounts. The bucket is where sales agents write offline delivery reports.
Request
Parameters
| Field | Type | Required | Notes |
|---|---|---|---|
advertiserId | string (path) | Yes | Unique identifier for the advertiser |
linkId | string (path) | Yes | Numeric ID of the advertiser-account link row |
reporting_bucket | object | null | Yes | Bucket config, or null to clear |
reporting_bucket.protocol | enum | Yes* | s3, gcs, or azure_blob |
reporting_bucket.bucket | string | Yes* | Bucket name (3–63 chars; lowercase alphanumerics, dots, hyphens) |
reporting_bucket.file_retention_days | integer | Yes* | Days the buyer retains report files (min 1) |
reporting_bucket.prefix | string | No | Object key prefix within the bucket |
reporting_bucket.region | string | No | Storage region (e.g. us-east-1) |
reporting_bucket.format | enum | No | jsonl (default), csv, parquet, avro, or orc |
reporting_bucket.compression | enum | No | gzip (default) or none |
reporting_bucket.setup_instructions | string (URL) | No | HTTPS URL pointing to setup instructions for granting the agent access to the bucket |
reporting_bucket is an object.
Response
Errors
400 VALIDATION_ERROR— malformedbucketname, unsupportedprotocol, or missingfile_retention_days.404 NOT_FOUND—advertiserIdorlinkIddoes not exist or is not visible.
Related
Advertiser tasks
All advertiser operations
Advertiser overview
Linked accounts model
List available accounts
Find the account to configure
Revalidate delivery credential
Re-probe delivery access