Skip to content
adscapi

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

FlagRequiredEffect
--platform <p>yesOne of bing, google, meta
--file <path>yesPath to the CSV (read as utf8)
--dry-runnoParse and report without uploading. Tag is [DRY]

Exit codes

  • Missing/invalid --platform or --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.

Related