Module Adwords_cli


module Adwords_cli: sig .. end
Adwords API with command-line interface (CLI) processing.

Command-line programs should link to adwords_cli.cmo and 'open Adwords_cli'. This provides standard command line arguments such as '--client' and '--username'.

This module replaces the old Stdargs module.

$Id: adwords_cli.mli,v 1.1 2006/08/12 16:20:11 rich Exp $


val username : string
val password : string
val client : string option
val token : string
Login, password, client email and developer token.
val update : bool
val verbose : bool
These are useful command line flags, not used by the API itself, but used in some command line API programs.

--update is intended to mean "do updates".

--verbose is intended to mean "print verbose messages".

val args : string list
Any remaining command line arguments which were not processed by this module.
val sandbox : bool
val sandbox_currency : string
val sandbox_client : int option
If the command line flag --sandbox CODE,NUM is given, then access the Google Adwords API sandbox instead of the real Adwords API. In this case, sandbox will be true.

CODE is the currency code (mandatory, eg. GBP). The value supplied is contained in sandbox_currency.

NUM is the optional client number (in range 1-5). The value supplied is in sandbox_client (or None if no client number was given). Note that Adwords_cli.client is ignored when in sandbox mode.

If sandbox is false then sandbox_currency and sandbox_client are undefined.

val services : Adwords.services
Global AdWords services (CampaignService and so on). NB. Do not use these in multithreaded programs (see THREADS file for details).
val campaign_svc : Adwords_data.campaign_data OCSoap.service
val adgroup_svc : Adwords_data.adgroup_data OCSoap.service
val creative_svc : Adwords_data.creative_data OCSoap.service
val report_svc : Adwords_data.report_data OCSoap.service
val info_svc : Adwords_data.info_data OCSoap.service
val keyword_tool_svc : Adwords_data.keyword_tool_data OCSoap.service
val account_svc : Adwords_data.account_data OCSoap.service
val criterion_svc : Adwords_data.criterion_data OCSoap.service
val traffic_estimator_svc : Adwords_data.traffic_estimator_data OCSoap.service
SOAP services corresponding to each Google service. NB. Do not use these in multithreaded programs (see THREADS file for details). This is the same as Adwords.services, broken out for ease of use.
val connection : Http_client.pipeline
val make_connection : unit -> Http_client.pipeline
val make_services : ?add_headers:(OCSoap.ctx -> OCSoap.node list) ->
Http_client.pipeline -> Adwords.services
See Adwords.Adwords.