summaryrefslogtreecommitdiffstats
path: root/aw_api/zsi_toolkit/v13/InfoService_services.py
blob: 2883f4be9936aff3e7df69687c0ad53a0834e572 (plain) (blame)
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
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
################################################## 
# InfoService_services.py 
# generated by ZSI.generate.wsdl2python
##################################################


from InfoService_services_types import *
import urlparse, types
from ZSI.TCcompound import ComplexType, Struct
from ZSI import client
import ZSI

# Locator
class InfoServiceLocator:
    InfoInterface_address = "https://adwords.google.com:443/api/adwords/v13/InfoService"
    def getInfoInterfaceAddress(self):
        return InfoServiceLocator.InfoInterface_address
    def getInfoInterface(self, url=None, **kw):
        return InfoServiceSoapBindingSOAP(url or InfoServiceLocator.InfoInterface_address, **kw)

# Methods
class InfoServiceSoapBindingSOAP:
    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: getFreeUsageQuotaThisMonth
    def getFreeUsageQuotaThisMonth(self, request):
        if isinstance(request, getFreeUsageQuotaThisMonthRequest) 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(getFreeUsageQuotaThisMonthResponse.typecode)
        return response

    # op: getMethodCost
    def getMethodCost(self, request):
        if isinstance(request, getMethodCostRequest) 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(getMethodCostResponse.typecode)
        return response

    # op: getOperationCount
    def getOperationCount(self, request):
        if isinstance(request, getOperationCountRequest) 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(getOperationCountResponse.typecode)
        return response

    # op: getOperationsQuotaThisMonth
    def getOperationsQuotaThisMonth(self, request):
        if isinstance(request, getOperationsQuotaThisMonthRequest) 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(getOperationsQuotaThisMonthResponse.typecode)
        return response

    # op: getUnitCount
    def getUnitCount(self, request):
        if isinstance(request, getUnitCountRequest) 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(getUnitCountResponse.typecode)
        return response

    # op: getUnitCountForClients
    def getUnitCountForClients(self, request):
        if isinstance(request, getUnitCountForClientsRequest) 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(getUnitCountForClientsResponse.typecode)
        return response

    # op: getUnitCountForMethod
    def getUnitCountForMethod(self, request):
        if isinstance(request, getUnitCountForMethodRequest) 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(getUnitCountForMethodResponse.typecode)
        return response

    # op: getUsageQuotaThisMonth
    def getUsageQuotaThisMonth(self, request):
        if isinstance(request, getUsageQuotaThisMonthRequest) 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(getUsageQuotaThisMonthResponse.typecode)
        return response

getFreeUsageQuotaThisMonthRequest = ns0.getFreeUsageQuotaThisMonth_Dec().pyclass

getFreeUsageQuotaThisMonthResponse = ns0.getFreeUsageQuotaThisMonthResponse_Dec().pyclass

getMethodCostRequest = ns0.getMethodCost_Dec().pyclass

getMethodCostResponse = ns0.getMethodCostResponse_Dec().pyclass

getOperationCountRequest = ns0.getOperationCount_Dec().pyclass

getOperationCountResponse = ns0.getOperationCountResponse_Dec().pyclass

getOperationsQuotaThisMonthRequest = ns0.getOperationsQuotaThisMonth_Dec().pyclass

getOperationsQuotaThisMonthResponse = ns0.getOperationsQuotaThisMonthResponse_Dec().pyclass

getUnitCountRequest = ns0.getUnitCount_Dec().pyclass

getUnitCountResponse = ns0.getUnitCountResponse_Dec().pyclass

getUnitCountForClientsRequest = ns0.getUnitCountForClients_Dec().pyclass

getUnitCountForClientsResponse = ns0.getUnitCountForClientsResponse_Dec().pyclass

getUnitCountForMethodRequest = ns0.getUnitCountForMethod_Dec().pyclass

getUnitCountForMethodResponse = ns0.getUnitCountForMethodResponse_Dec().pyclass

getUsageQuotaThisMonthRequest = ns0.getUsageQuotaThisMonth_Dec().pyclass

getUsageQuotaThisMonthResponse = ns0.getUsageQuotaThisMonthResponse_Dec().pyclass