adjar import is the starting point for every Adjar project. It connects to your live Google Ads account via the API and writes a complete snapshot of your campaigns, ad groups, keywords, creatives, and conversion actions to a TOML config. Once imported, your account lives in plain text — human-readable, diffable, and ready to be managed by you or an AI agent.
Syntax
-o, the config is written to stdout.
Flags
The Google Ads account ID to import — shown top-right in the Google Ads UI. Pass the plain numeric ID with no hyphens (e.g.,
4821937650, not 482-193-7650).Path to the TOML file to write (e.g.,
config/google.toml). The parent directory is created automatically if it does not exist. Omit to print the config to stdout instead.The ad platform to import from. Google Ads is the only platform in v1.
Path to the platform credentials JSON file (e.g.
google.json). Alternatively set ADJAR_CREDENTIALS. See Authentication.Examples
Output
adjar import writes a single self-contained TOML file containing the account’s metadata and every campaign, ad group, keyword, creative, and conversion action. For a large account you can split this into multiple files with a top-level imports directive after the fact — see the config reference.
After import: commit to version control
Once the import completes, commit the entire config directory to your repository. This snapshot becomes the baseline thatadjar plan diffs against:
plan → apply cycle rather than through import.
Re-running import
Re-runadjar import to refresh your local config from the live account state at any time — for example, after making changes directly in the Google Ads UI, or to onboard a new team member against the latest live state:
Next steps
After importing, edit your TOML files and useadjar plan to preview what will change before pushing anything back to Google Ads.