Module CampaignService_types


module CampaignService_types: sig .. end

type __dummy = unit 
type email = string 
type password = string 
type useragent = string 
type token = string 
type applicationToken = string 
type developerToken = string 
type clientEmail = string 
type responseTime = int64 
type operations = int64 
type units = int64 

type getCampaign = {
   getCampaign_id : int32;
}
type getCampaignResponse = {
   getCampaignResponse_getCampaignReturn : campaign;
}
type criterionStatus = [ `Deleted | `Disabled | `Disapproved | `InTrial | `Normal | `OnHold ] 
type keywordType = [ `Broad | `Exact | `Phrase ] 

type criterion_final = {
   criterion_final_adGroupId : int32;
   criterion_final_criterionType : string option;
   criterion_final_destinationUrl : string option;
   criterion_final_exemptionRequest : string option;
   criterion_final_id : int64;
   criterion_final_language : string option;
   criterion_final_negative : bool option;
   criterion_final_status : criterionStatus option;
}
type keyword = {
   keyword_adGroupId : int32;
   keyword_criterionType : string option;
   keyword_destinationUrl : string option;
   keyword_exemptionRequest : string option;
   keyword_id : int64;
   keyword_language : string option;
   keyword_negative : bool option;
   keyword_status : criterionStatus option;
   keyword_maxCpc : int64 option;
   keyword_minCpc : int64 option;
   keyword_text : string option;
   keyword_type : keywordType option;
}
type languageTarget = {
   languageTarget_languages : string list;
}
type geoTarget = {
   geoTarget_cities : string list;
   geoTarget_countries : string list;
   geoTarget_metros : string list;
   geoTarget_regions : string list;
}
type campaignStatus = [ `Active | `Deleted | `Ended | `Paused | `Pending | `Suspended ] 
type networkType = [ `ContentNetwork | `GoogleSearch | `SearchNetwork ] 

type networkTarget = {
   networkTarget_networkTypes : networkType list;
}
type campaign = {
   campaign_dailyBudget : int64 option;
   campaign_enableSeparateContentBids : bool option;
   campaign_endDay : OCSoap.date option;
   campaign_geoTargeting : geoTarget option;
   campaign_id : int32;
   campaign_languageTargeting : languageTarget option;
   campaign_name : string option;
   campaign_networkTargeting : networkTarget option;
   campaign_startDay : OCSoap.date option;
   campaign_status : campaignStatus option;
}
type apiException = {
   apiException_code : int32;
   apiException_internal : bool;
   apiException_message : string option;
   apiException_trigger : string option;
   apiException_errors : apiError list;
}
type apiError = {
   apiError_index : int32;
   apiError_field : string option;
   apiError_textIndex : int32 option;
   apiError_textLength : int32 option;
   apiError_trigger : string option;
   apiError_code : int32;
   apiError_isExemptable : bool;
   apiError_detail : string;
}
type fault = unit 

type getCampaignList = {
   getCampaignList_ids : int32 list;
}
type getCampaignListResponse = {
   getCampaignListResponse_getCampaignListReturn : campaign list;
}
type getAllAdWordsCampaigns = {
   getAllAdWordsCampaigns_dummy : int32;
}
type getAllAdWordsCampaignsResponse = {
   getAllAdWordsCampaignsResponse_getAllAdWordsCampaignsReturn : campaign list;
}
type addCampaign = {
   addCampaign_campaign : campaign;
}
type addCampaignResponse = {
   addCampaignResponse_addCampaignReturn : campaign;
}
type addCampaignList = {
   addCampaignList_campaigns : campaign list;
}
type addCampaignListResponse = {
   addCampaignListResponse_addCampaignListReturn : campaign list;
}
type updateCampaign = {
   updateCampaign_campaign : campaign;
}
type updateCampaignResponse = unit 

type updateCampaignList = {
   updateCampaignList_campaigns : campaign list;
}
type updateCampaignListResponse = unit 

type getOptimizeAdServing = {
   getOptimizeAdServing_campaignId : int32;
}
type getOptimizeAdServingResponse = {
   getOptimizeAdServingResponse_getOptimizeAdServingReturn : bool;
}
type setOptimizeAdServing = {
   setOptimizeAdServing_campaignId : int32;
   setOptimizeAdServing_enable : bool;
}
type setOptimizeAdServingResponse = unit 

type getCampaignStats = {
   getCampaignStats_campaignIds : int32 list;
   getCampaignStats_startDay : OCSoap.date;
   getCampaignStats_endDay : OCSoap.date;
   getCampaignStats_inPST : bool;
}
type getCampaignStatsResponse = {
   getCampaignStatsResponse_getCampaignStatsReturn : statsRecord list;
}
type statsRecord = {
   statsRecord_averagePosition : float;
   statsRecord_clicks : int64;
   statsRecord_conversionRate : float;
   statsRecord_conversions : int64;
   statsRecord_cost : int64;
   statsRecord_id : int64;
   statsRecord_impressions : int64;
}
type criterion = [ `Keyword of keyword ] 
val __dummy : unit
val node_of_getCampaign : ?a:(string * string) list ->
OCSoap.ctx -> string -> getCampaign -> OCSoap.node
val getCampaign_of_node : string ->
('a Pxp_document.node Pxp_document.extension as 'a) Pxp_document.node ->
getCampaign
val node_of_getCampaignResponse : ?a:(string * string) list ->
OCSoap.ctx ->
string -> getCampaignResponse -> OCSoap.node
val getCampaignResponse_of_node : string ->
('a Pxp_document.node Pxp_document.extension as 'a) Pxp_document.node ->
getCampaignResponse
val node_of_criterionStatus : ?a:(string * string) list ->
OCSoap.ctx -> string -> criterionStatus -> OCSoap.node
val criterionStatus_of_node : string ->
('a Pxp_document.node Pxp_document.extension as 'a) Pxp_document.node ->
criterionStatus
val string_of_criterionStatus : [< `Deleted | `Disabled | `Disapproved | `InTrial | `Normal | `OnHold ] ->
string
val criterionStatus_of_string : string -> criterionStatus
val node_of_keywordType : ?a:(string * string) list ->
OCSoap.ctx -> string -> keywordType -> OCSoap.node
val keywordType_of_node : string ->
('a Pxp_document.node Pxp_document.extension as 'a) Pxp_document.node ->
keywordType
val string_of_keywordType : [< `Broad | `Exact | `Phrase ] -> string
val keywordType_of_string : string -> keywordType
val node_of_criterion_final : ?a:(string * string) list ->
OCSoap.ctx -> string -> criterion_final -> OCSoap.node
val criterion_final_of_node : string ->
('a Pxp_document.node Pxp_document.extension as 'a) Pxp_document.node ->
criterion_final
val node_of_keyword : ?a:(string * string) list ->
OCSoap.ctx -> string -> keyword -> OCSoap.node
val keyword_of_node : string ->
('a Pxp_document.node Pxp_document.extension as 'a) Pxp_document.node ->
keyword
val node_of_languageTarget : ?a:(string * string) list ->
OCSoap.ctx -> string -> languageTarget -> OCSoap.node
val languageTarget_of_node : string ->
('a Pxp_document.node Pxp_document.extension as 'a) Pxp_document.node ->
languageTarget
val node_of_geoTarget : ?a:(string * string) list ->
OCSoap.ctx -> string -> geoTarget -> OCSoap.node
val geoTarget_of_node : string ->
('a Pxp_document.node Pxp_document.extension as 'a) Pxp_document.node ->
geoTarget
val node_of_campaignStatus : ?a:(string * string) list ->
OCSoap.ctx -> string -> campaignStatus -> OCSoap.node
val campaignStatus_of_node : string ->
('a Pxp_document.node Pxp_document.extension as 'a) Pxp_document.node ->
campaignStatus
val string_of_campaignStatus : [< `Active | `Deleted | `Ended | `Paused | `Pending | `Suspended ] -> string
val campaignStatus_of_string : string -> campaignStatus
val node_of_networkType : ?a:(string * string) list ->
OCSoap.ctx -> string -> networkType -> OCSoap.node
val networkType_of_node : string ->
('a Pxp_document.node Pxp_document.extension as 'a) Pxp_document.node ->
networkType
val string_of_networkType : [< `ContentNetwork | `GoogleSearch | `SearchNetwork ] -> string
val networkType_of_string : string -> networkType
val node_of_networkTarget : ?a:(string * string) list ->
OCSoap.ctx -> string -> networkTarget -> OCSoap.node
val networkTarget_of_node : string ->
('a Pxp_document.node Pxp_document.extension as 'a) Pxp_document.node ->
networkTarget
val node_of_campaign : ?a:(string * string) list ->
OCSoap.ctx -> string -> campaign -> OCSoap.node
val campaign_of_node : string ->
('a Pxp_document.node Pxp_document.extension as 'a) Pxp_document.node ->
campaign
val node_of_apiException : ?a:(string * string) list ->
OCSoap.ctx -> string -> apiException -> OCSoap.node
val apiException_of_node : string ->
('a Pxp_document.node Pxp_document.extension as 'a) Pxp_document.node ->
apiException
val node_of_apiError : ?a:(string * string) list ->
OCSoap.ctx -> string -> apiError -> OCSoap.node
val apiError_of_node : string ->
('a Pxp_document.node Pxp_document.extension as 'a) Pxp_document.node ->
apiError
val node_of_fault : ?a:(string * string) list -> OCSoap.ctx -> string -> unit -> OCSoap.node
val fault_of_node : 'a -> 'b -> unit
val node_of_getCampaignList : ?a:(string * string) list ->
OCSoap.ctx -> string -> getCampaignList -> OCSoap.node
val getCampaignList_of_node : string ->
('a Pxp_document.node Pxp_document.extension as 'a) Pxp_document.node ->
getCampaignList
val node_of_getCampaignListResponse : ?a:(string * string) list ->
OCSoap.ctx ->
string -> getCampaignListResponse -> OCSoap.node
val getCampaignListResponse_of_node : string ->
('a Pxp_document.node Pxp_document.extension as 'a) Pxp_document.node ->
getCampaignListResponse
val node_of_getAllAdWordsCampaigns : ?a:(string * string) list ->
OCSoap.ctx ->
string -> getAllAdWordsCampaigns -> OCSoap.node
val getAllAdWordsCampaigns_of_node : string ->
('a Pxp_document.node Pxp_document.extension as 'a) Pxp_document.node ->
getAllAdWordsCampaigns
val node_of_getAllAdWordsCampaignsResponse : ?a:(string * string) list ->
OCSoap.ctx ->
string -> getAllAdWordsCampaignsResponse -> OCSoap.node
val getAllAdWordsCampaignsResponse_of_node : string ->
('a Pxp_document.node Pxp_document.extension as 'a) Pxp_document.node ->
getAllAdWordsCampaignsResponse
val node_of_addCampaign : ?a:(string * string) list ->
OCSoap.ctx -> string -> addCampaign -> OCSoap.node
val addCampaign_of_node : string ->
('a Pxp_document.node Pxp_document.extension as 'a) Pxp_document.node ->
addCampaign
val node_of_addCampaignResponse : ?a:(string * string) list ->
OCSoap.ctx ->
string -> addCampaignResponse -> OCSoap.node
val addCampaignResponse_of_node : string ->
('a Pxp_document.node Pxp_document.extension as 'a) Pxp_document.node ->
addCampaignResponse
val node_of_addCampaignList : ?a:(string * string) list ->
OCSoap.ctx -> string -> addCampaignList -> OCSoap.node
val addCampaignList_of_node : string ->
('a Pxp_document.node Pxp_document.extension as 'a) Pxp_document.node ->
addCampaignList
val node_of_addCampaignListResponse : ?a:(string * string) list ->
OCSoap.ctx ->
string -> addCampaignListResponse -> OCSoap.node
val addCampaignListResponse_of_node : string ->
('a Pxp_document.node Pxp_document.extension as 'a) Pxp_document.node ->
addCampaignListResponse
val node_of_updateCampaign : ?a:(string * string) list ->
OCSoap.ctx -> string -> updateCampaign -> OCSoap.node
val updateCampaign_of_node : string ->
('a Pxp_document.node Pxp_document.extension as 'a) Pxp_document.node ->
updateCampaign
val node_of_updateCampaignResponse : ?a:(string * string) list -> OCSoap.ctx -> string -> unit -> OCSoap.node
val updateCampaignResponse_of_node : 'a -> 'b -> unit
val node_of_updateCampaignList : ?a:(string * string) list ->
OCSoap.ctx ->
string -> updateCampaignList -> OCSoap.node
val updateCampaignList_of_node : string ->
('a Pxp_document.node Pxp_document.extension as 'a) Pxp_document.node ->
updateCampaignList
val node_of_updateCampaignListResponse : ?a:(string * string) list -> OCSoap.ctx -> string -> unit -> OCSoap.node
val updateCampaignListResponse_of_node : 'a -> 'b -> unit
val node_of_getOptimizeAdServing : ?a:(string * string) list ->
OCSoap.ctx ->
string -> getOptimizeAdServing -> OCSoap.node
val getOptimizeAdServing_of_node : string ->
('a Pxp_document.node Pxp_document.extension as 'a) Pxp_document.node ->
getOptimizeAdServing
val node_of_getOptimizeAdServingResponse : ?a:(string * string) list ->
OCSoap.ctx ->
string -> getOptimizeAdServingResponse -> OCSoap.node
val getOptimizeAdServingResponse_of_node : string ->
('a Pxp_document.node Pxp_document.extension as 'a) Pxp_document.node ->
getOptimizeAdServingResponse
val node_of_setOptimizeAdServing : ?a:(string * string) list ->
OCSoap.ctx ->
string -> setOptimizeAdServing -> OCSoap.node
val setOptimizeAdServing_of_node : string ->
('a Pxp_document.node Pxp_document.extension as 'a) Pxp_document.node ->
setOptimizeAdServing
val node_of_setOptimizeAdServingResponse : ?a:(string * string) list -> OCSoap.ctx -> string -> unit -> OCSoap.node
val setOptimizeAdServingResponse_of_node : 'a -> 'b -> unit
val node_of_getCampaignStats : ?a:(string * string) list ->
OCSoap.ctx -> string -> getCampaignStats -> OCSoap.node
val getCampaignStats_of_node : string ->
('a Pxp_document.node Pxp_document.extension as 'a) Pxp_document.node ->
getCampaignStats
val node_of_getCampaignStatsResponse : ?a:(string * string) list ->
OCSoap.ctx ->
string -> getCampaignStatsResponse -> OCSoap.node
val getCampaignStatsResponse_of_node : string ->
('a Pxp_document.node Pxp_document.extension as 'a) Pxp_document.node ->
getCampaignStatsResponse
val node_of_statsRecord : ?a:(string * string) list ->
OCSoap.ctx -> string -> statsRecord -> OCSoap.node
val statsRecord_of_node : string ->
('a Pxp_document.node Pxp_document.extension as 'a) Pxp_document.node ->
statsRecord
val node_of_criterion : ?a:(string * string) list ->
OCSoap.ctx ->
string -> [ `Keyword of keyword ] -> OCSoap.node
val criterion_of_node : string ->
('a Pxp_document.node Pxp_document.extension as 'a) Pxp_document.node ->
[> `Keyword of keyword ]