Utilities and code samples for working with the Data Manager API and Python.
- Python 3.10+
pip install .
Please refer to our Developer Site for documentation on how to install, configure, and use this client library.
Samples are provided in the samples/ directory, and the samples/sampledata directory contains samples of input files you can use with the samples.
To run a sample, invoke the script using the command line. You can pass arguments to the script in one of two ways:
python3 -m samples.events.ingest_events \
--operating_account_type='GOOGLE_ADS' \
--operating_account_id='<operating_account_id>' \
--conversion_action_id='<conversion_action_id>' \
--json_file='</path/to/your/file>'You can also save arguments in a file, with one argument per line.
--operating_account_type
GOOGLE_ADS
--operating_account_id
<operating_account_id>
--conversion_action_id
<conversion_action_id>
--json_file
</path/to/your/file>
Then, run the sample by passing the file path, prefixed with the @
character.
python3 -m samples.events.ingest_events @/path/to/your/args.txthttps://github.com/googleads/data-manager-python/issues
Contributions welcome! See the [Contributing Guide](CONTRIBUTING.md).