summaryrefslogtreecommitdiffstats
path: root/aw_api/zsi_toolkit/v13/TrafficEstimatorService_services.py
blob: f81863c3ae36c446da7c290f108dbbed9390b7b8 (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
################################################## 
# TrafficEstimatorService_services.py 
# generated by ZSI.generate.wsdl2python
##################################################


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

# Locator
class TrafficEstimatorServiceLocator:
    TrafficEstimatorInterface_address = "https://adwords.google.com:443/api/adwords/v13/TrafficEstimatorService"
    def getTrafficEstimatorInterfaceAddress(self):
        return TrafficEstimatorServiceLocator.TrafficEstimatorInterface_address
    def getTrafficEstimatorInterface(self, url=None, **kw):
        return TrafficEstimatorServiceSoapBindingSOAP(url or TrafficEstimatorServiceLocator.TrafficEstimatorInterface_address, **kw)

# Methods
class TrafficEstimatorServiceSoapBindingSOAP:
    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: checkKeywordTraffic
    def checkKeywordTraffic(self, request):
        if isinstance(request, checkKeywordTrafficRequest) 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(checkKeywordTrafficResponse.typecode)
        return response

    # op: estimateAdGroupList
    def estimateAdGroupList(self, request):
        if isinstance(request, estimateAdGroupListRequest) 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(estimateAdGroupListResponse.typecode)
        return response

    # op: estimateCampaignList
    def estimateCampaignList(self, request):
        if isinstance(request, estimateCampaignListRequest) 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(estimateCampaignListResponse.typecode)
        return response

    # op: estimateKeywordList
    def estimateKeywordList(self, request):
        if isinstance(request, estimateKeywordListRequest) 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(estimateKeywordListResponse.typecode)
        return response

checkKeywordTrafficRequest = ns0.checkKeywordTraffic_Dec().pyclass

checkKeywordTrafficResponse = ns0.checkKeywordTrafficResponse_Dec().pyclass

estimateAdGroupListRequest = ns0.estimateAdGroupList_Dec().pyclass

estimateAdGroupListResponse = ns0.estimateAdGroupListResponse_Dec().pyclass

estimateCampaignListRequest = ns0.estimateCampaignList_Dec().pyclass

estimateCampaignListResponse = ns0.estimateCampaignListResponse_Dec().pyclass

estimateKeywordListRequest = ns0.estimateKeywordList_Dec().pyclass

estimateKeywordListResponse = ns0.estimateKeywordListResponse_Dec().pyclass