offline
Batch-upload offline conversions from a CSV to Bing, Google Ads, or Meta. Pass raw email/phone in the file — adscapi hashes per platform. Same engine as uploadOffline() in the SDK.
Usage
shell
adscapi offline --platform bing|google|meta --file conversions.csv [--dry-run]
Flags
| Flag | Required | Effect |
|---|---|---|
--platform <p> | yes | One of bing, google, meta |
--file <path> | yes | Path to the CSV (read as utf8) |
--dry-run | no | Parse and report without uploading. Tag is [DRY] |
Exit codes
- Missing/invalid
--platformor--file→ prints usage, exit 1 - Unreadable file →
Cannot read file: …, exit 1 - Upload result with
failed > 0→ exit 1
Examples
shell
$ npx adscapi offline --platform meta --file conversions.csv --dry-run [DRY] meta uploaded=0 skipped=12 failed=0 $ npx adscapi offline --platform bing --file conversions.csv [OK ] bing uploaded=12 skipped=0 failed=0 $ npx adscapi offline --platform google --file conversions.csv [ERR] google uploaded=10 skipped=0 failed=2 — partial upload $ echo $? 1 $ npx adscapi offline usage: adscapi offline --platform bing|google|meta --file conversions.csv [--dry-run]
Output shape: [{tag}] {platform} uploaded=N skipped=N failed=N[ — error]. Tag is DRY, OK, or ERR.