.. image:: https://img.shields.io/pypi/v/line_item_manager.svg :target: https://pypi.python.org/pypi/line_item_manager
Create and manage line items.
Save and edit a copy of the package config ::
$ line_item_manager show config > my_config.yml
List bidder codes and names for reference ::
$ line_item_manager show bidders
Do a dry run to see if everything looks right ::
$ line_item_manager create my_config.yml \ --dry-run \ --private-key-file my_gam_creds.json \ --network-code 12345678 \ --network-name Publisher_GAM_Name \ --bidder-code rubicon \ --bidder-code ix
Do a test run creating a limited number of line items for visual inspection ::
$ line_item_manager create my_config.yml \ --test-run \ --private-key-file my_gam_creds.json \ --network-code 12345678 \ --network-name Publisher_GAM_Name \ --bidder-code rubicon \ --bidder-code ix
Create line items ::
$ line_item_manager create my_config.yml \ --private-key-file my_gam_creds.json \ --network-code 12345678 \ --network-name Publisher_GAM_Name \ --bidder-code rubicon \ --bidder-code ix
Use a custom line item template ::
$ line_item_manager show template > my_template.yml
$ line_item_manager create my_config.yml \ --single-order \ --template my_template.yml
Use a custom settings file ::
$ line_item_manager show settings > my_settings.yml
$ line_item_manager create my_config.yml \ --single-order \ --settings my_settings.yml
Use a custom schema file ::
$ line_item_manager show schema > my_schema.yml
$ line_item_manager create my_config.yml \ --single-order \ --schema my_schema.yml
Installing and running line_item_manager locally using docker ::
$ git clone git://github.com/prebid/line-item-manager $ cd line-item-manager $ command='line_item_manager' extra_args='--help' make docker-run
See this default config_ that you can edit for your own purposes.
In order to use line-item-manager, you need to provide JSON private key file and configure access to your Google Ad manager account:
See detailed instructions <https://developers.google.com/ad-manager/api/authentication#oauth>
_ in documentation of GAM authentication.
This package was created with Cookiecutter and the audreyr/cookiecutter-pypackage
project template.
.. _config
: https://github.com/prebid/line-item-manager/blob/master/line_item_manager/conf.d/line_item_manager.yml
.. Cookiecutter: https://github.com/audreyr/cookiecutter
.. audreyr/cookiecutter-pypackage
: https://github.com/audreyr/cookiecutter-pypackage