1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
|
##################################################
# ReportService_services.py
# generated by ZSI.generate.wsdl2python
##################################################
from ReportService_services_types import *
import urlparse, types
from ZSI.TCcompound import ComplexType, Struct
from ZSI import client
import ZSI
# Locator
class ReportServiceLocator:
ReportInterface_address = "https://adwords.google.com:443/api/adwords/v13/ReportService"
def getReportInterfaceAddress(self):
return ReportServiceLocator.ReportInterface_address
def getReportInterface(self, url=None, **kw):
return ReportServiceSoapBindingSOAP(url or ReportServiceLocator.ReportInterface_address, **kw)
# Methods
class ReportServiceSoapBindingSOAP:
def __init__(self, url, **kw):
kw.setdefault("readerclass", None)
kw.setdefault("writerclass", None)
# no resource properties
self.binding = client.Binding(url=url, **kw)
# no ws-addressing
# op: deleteReport
def deleteReport(self, request):
if isinstance(request, deleteReportRequest) is False:
raise TypeError, "%s incorrect request type" % (request.__class__)
kw = {}
# no input wsaction
self.binding.Send(None, None, request, soapaction="", **kw)
# no output wsaction
response = self.binding.Receive(deleteReportResponse.typecode)
return response
# op: getAllJobs
def getAllJobs(self, request):
if isinstance(request, getAllJobsRequest) is False:
raise TypeError, "%s incorrect request type" % (request.__class__)
kw = {}
# no input wsaction
self.binding.Send(None, None, request, soapaction="", **kw)
# no output wsaction
response = self.binding.Receive(getAllJobsResponse.typecode)
return response
# op: getGzipReportDownloadUrl
def getGzipReportDownloadUrl(self, request):
if isinstance(request, getGzipReportDownloadUrlRequest) is False:
raise TypeError, "%s incorrect request type" % (request.__class__)
kw = {}
# no input wsaction
self.binding.Send(None, None, request, soapaction="", **kw)
# no output wsaction
response = self.binding.Receive(getGzipReportDownloadUrlResponse.typecode)
return response
# op: getReportDownloadUrl
def getReportDownloadUrl(self, request):
if isinstance(request, getReportDownloadUrlRequest) is False:
raise TypeError, "%s incorrect request type" % (request.__class__)
kw = {}
# no input wsaction
self.binding.Send(None, None, request, soapaction="", **kw)
# no output wsaction
response = self.binding.Receive(getReportDownloadUrlResponse.typecode)
return response
# op: getReportJobStatus
def getReportJobStatus(self, request):
if isinstance(request, getReportJobStatusRequest) is False:
raise TypeError, "%s incorrect request type" % (request.__class__)
kw = {}
# no input wsaction
self.binding.Send(None, None, request, soapaction="", **kw)
# no output wsaction
response = self.binding.Receive(getReportJobStatusResponse.typecode)
return response
# op: scheduleReportJob
def scheduleReportJob(self, request):
if isinstance(request, scheduleReportJobRequest) is False:
raise TypeError, "%s incorrect request type" % (request.__class__)
kw = {}
# no input wsaction
self.binding.Send(None, None, request, soapaction="", **kw)
# no output wsaction
response = self.binding.Receive(scheduleReportJobResponse.typecode)
return response
# op: validateReportJob
def validateReportJob(self, request):
if isinstance(request, validateReportJobRequest) is False:
raise TypeError, "%s incorrect request type" % (request.__class__)
kw = {}
# no input wsaction
self.binding.Send(None, None, request, soapaction="", **kw)
# no output wsaction
response = self.binding.Receive(validateReportJobResponse.typecode)
return response
deleteReportRequest = ns0.deleteReport_Dec().pyclass
deleteReportResponse = ns0.deleteReportResponse_Dec().pyclass
getAllJobsRequest = ns0.getAllJobs_Dec().pyclass
getAllJobsResponse = ns0.getAllJobsResponse_Dec().pyclass
getGzipReportDownloadUrlRequest = ns0.getGzipReportDownloadUrl_Dec().pyclass
getGzipReportDownloadUrlResponse = ns0.getGzipReportDownloadUrlResponse_Dec().pyclass
getReportDownloadUrlRequest = ns0.getReportDownloadUrl_Dec().pyclass
getReportDownloadUrlResponse = ns0.getReportDownloadUrlResponse_Dec().pyclass
getReportJobStatusRequest = ns0.getReportJobStatus_Dec().pyclass
getReportJobStatusResponse = ns0.getReportJobStatusResponse_Dec().pyclass
scheduleReportJobRequest = ns0.scheduleReportJob_Dec().pyclass
scheduleReportJobResponse = ns0.scheduleReportJobResponse_Dec().pyclass
validateReportJobRequest = ns0.validateReportJob_Dec().pyclass
validateReportJobResponse = ns0.validateReportJobResponse_Dec().pyclass
|