| Line 64... |
Line 64... |
| 64 |
Parameters:
|
64 |
Parameters:
|
| 65 |
- adkeyword
|
65 |
- adkeyword
|
| 66 |
"""
|
66 |
"""
|
| 67 |
pass
|
67 |
pass
|
| 68 |
|
68 |
|
| - |
|
69 |
def updateAdwordsAdGroupAd(self, adgroupad):
|
| - |
|
70 |
"""
|
| - |
|
71 |
Parameters:
|
| - |
|
72 |
- adgroupad
|
| - |
|
73 |
"""
|
| - |
|
74 |
pass
|
| - |
|
75 |
|
| 69 |
def deleteAdwordsCampaign(self, campaignId):
|
76 |
def deleteAdwordsCampaign(self, campaignId):
|
| 70 |
"""
|
77 |
"""
|
| 71 |
Parameters:
|
78 |
Parameters:
|
| 72 |
- campaignId
|
79 |
- campaignId
|
| 73 |
"""
|
80 |
"""
|
| Line 113... |
Line 120... |
| 113 |
Parameters:
|
120 |
Parameters:
|
| 114 |
- adgroupadId
|
121 |
- adgroupadId
|
| 115 |
"""
|
122 |
"""
|
| 116 |
pass
|
123 |
pass
|
| 117 |
|
124 |
|
| 118 |
def getAdwordsAdKeywordByCriterionId(self, criterionId):
|
125 |
def getAdwordsAdKeywordByCriterionIdAndAdGroupId(self, criterionId, adgroupId):
|
| 119 |
"""
|
126 |
"""
|
| 120 |
Parameters:
|
127 |
Parameters:
|
| 121 |
- criterionId
|
128 |
- criterionId
|
| - |
|
129 |
- adgroupId
|
| 122 |
"""
|
130 |
"""
|
| 123 |
pass
|
131 |
pass
|
| 124 |
|
132 |
|
| 125 |
def getAdwordsAdKeywordsByAdgroupId(self, adgroupId):
|
133 |
def getAdwordsAdKeywordsByAdgroupId(self, adgroupId):
|
| 126 |
"""
|
134 |
"""
|
| Line 368... |
Line 376... |
| 368 |
self._iprot.readMessageEnd()
|
376 |
self._iprot.readMessageEnd()
|
| 369 |
if result.gasex is not None:
|
377 |
if result.gasex is not None:
|
| 370 |
raise result.gasex
|
378 |
raise result.gasex
|
| 371 |
return
|
379 |
return
|
| 372 |
|
380 |
|
| - |
|
381 |
def updateAdwordsAdGroupAd(self, adgroupad):
|
| - |
|
382 |
"""
|
| - |
|
383 |
Parameters:
|
| - |
|
384 |
- adgroupad
|
| - |
|
385 |
"""
|
| - |
|
386 |
self.send_updateAdwordsAdGroupAd(adgroupad)
|
| - |
|
387 |
self.recv_updateAdwordsAdGroupAd()
|
| - |
|
388 |
|
| - |
|
389 |
def send_updateAdwordsAdGroupAd(self, adgroupad):
|
| - |
|
390 |
self._oprot.writeMessageBegin('updateAdwordsAdGroupAd', TMessageType.CALL, self._seqid)
|
| - |
|
391 |
args = updateAdwordsAdGroupAd_args()
|
| - |
|
392 |
args.adgroupad = adgroupad
|
| - |
|
393 |
args.write(self._oprot)
|
| - |
|
394 |
self._oprot.writeMessageEnd()
|
| - |
|
395 |
self._oprot.trans.flush()
|
| - |
|
396 |
|
| - |
|
397 |
def recv_updateAdwordsAdGroupAd(self, ):
|
| - |
|
398 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
| - |
|
399 |
if mtype == TMessageType.EXCEPTION:
|
| - |
|
400 |
x = TApplicationException()
|
| - |
|
401 |
x.read(self._iprot)
|
| - |
|
402 |
self._iprot.readMessageEnd()
|
| - |
|
403 |
raise x
|
| - |
|
404 |
result = updateAdwordsAdGroupAd_result()
|
| - |
|
405 |
result.read(self._iprot)
|
| - |
|
406 |
self._iprot.readMessageEnd()
|
| - |
|
407 |
if result.gasex is not None:
|
| - |
|
408 |
raise result.gasex
|
| - |
|
409 |
return
|
| - |
|
410 |
|
| 373 |
def deleteAdwordsCampaign(self, campaignId):
|
411 |
def deleteAdwordsCampaign(self, campaignId):
|
| 374 |
"""
|
412 |
"""
|
| 375 |
Parameters:
|
413 |
Parameters:
|
| 376 |
- campaignId
|
414 |
- campaignId
|
| 377 |
"""
|
415 |
"""
|
| Line 584... |
Line 622... |
| 584 |
return result.success
|
622 |
return result.success
|
| 585 |
if result.gasex is not None:
|
623 |
if result.gasex is not None:
|
| 586 |
raise result.gasex
|
624 |
raise result.gasex
|
| 587 |
raise TApplicationException(TApplicationException.MISSING_RESULT, "getAdwordsAdgroupAdByAdId failed: unknown result");
|
625 |
raise TApplicationException(TApplicationException.MISSING_RESULT, "getAdwordsAdgroupAdByAdId failed: unknown result");
|
| 588 |
|
626 |
|
| 589 |
def getAdwordsAdKeywordByCriterionId(self, criterionId):
|
627 |
def getAdwordsAdKeywordByCriterionIdAndAdGroupId(self, criterionId, adgroupId):
|
| 590 |
"""
|
628 |
"""
|
| 591 |
Parameters:
|
629 |
Parameters:
|
| 592 |
- criterionId
|
630 |
- criterionId
|
| - |
|
631 |
- adgroupId
|
| 593 |
"""
|
632 |
"""
|
| 594 |
self.send_getAdwordsAdKeywordByCriterionId(criterionId)
|
633 |
self.send_getAdwordsAdKeywordByCriterionIdAndAdGroupId(criterionId, adgroupId)
|
| 595 |
return self.recv_getAdwordsAdKeywordByCriterionId()
|
634 |
return self.recv_getAdwordsAdKeywordByCriterionIdAndAdGroupId()
|
| 596 |
|
635 |
|
| 597 |
def send_getAdwordsAdKeywordByCriterionId(self, criterionId):
|
636 |
def send_getAdwordsAdKeywordByCriterionIdAndAdGroupId(self, criterionId, adgroupId):
|
| 598 |
self._oprot.writeMessageBegin('getAdwordsAdKeywordByCriterionId', TMessageType.CALL, self._seqid)
|
637 |
self._oprot.writeMessageBegin('getAdwordsAdKeywordByCriterionIdAndAdGroupId', TMessageType.CALL, self._seqid)
|
| 599 |
args = getAdwordsAdKeywordByCriterionId_args()
|
638 |
args = getAdwordsAdKeywordByCriterionIdAndAdGroupId_args()
|
| 600 |
args.criterionId = criterionId
|
639 |
args.criterionId = criterionId
|
| - |
|
640 |
args.adgroupId = adgroupId
|
| 601 |
args.write(self._oprot)
|
641 |
args.write(self._oprot)
|
| 602 |
self._oprot.writeMessageEnd()
|
642 |
self._oprot.writeMessageEnd()
|
| 603 |
self._oprot.trans.flush()
|
643 |
self._oprot.trans.flush()
|
| 604 |
|
644 |
|
| 605 |
def recv_getAdwordsAdKeywordByCriterionId(self, ):
|
645 |
def recv_getAdwordsAdKeywordByCriterionIdAndAdGroupId(self, ):
|
| 606 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
646 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
| 607 |
if mtype == TMessageType.EXCEPTION:
|
647 |
if mtype == TMessageType.EXCEPTION:
|
| 608 |
x = TApplicationException()
|
648 |
x = TApplicationException()
|
| 609 |
x.read(self._iprot)
|
649 |
x.read(self._iprot)
|
| 610 |
self._iprot.readMessageEnd()
|
650 |
self._iprot.readMessageEnd()
|
| 611 |
raise x
|
651 |
raise x
|
| 612 |
result = getAdwordsAdKeywordByCriterionId_result()
|
652 |
result = getAdwordsAdKeywordByCriterionIdAndAdGroupId_result()
|
| 613 |
result.read(self._iprot)
|
653 |
result.read(self._iprot)
|
| 614 |
self._iprot.readMessageEnd()
|
654 |
self._iprot.readMessageEnd()
|
| 615 |
if result.success is not None:
|
655 |
if result.success is not None:
|
| 616 |
return result.success
|
656 |
return result.success
|
| 617 |
if result.gasex is not None:
|
657 |
if result.gasex is not None:
|
| 618 |
raise result.gasex
|
658 |
raise result.gasex
|
| 619 |
raise TApplicationException(TApplicationException.MISSING_RESULT, "getAdwordsAdKeywordByCriterionId failed: unknown result");
|
659 |
raise TApplicationException(TApplicationException.MISSING_RESULT, "getAdwordsAdKeywordByCriterionIdAndAdGroupId failed: unknown result");
|
| 620 |
|
660 |
|
| 621 |
def getAdwordsAdKeywordsByAdgroupId(self, adgroupId):
|
661 |
def getAdwordsAdKeywordsByAdgroupId(self, adgroupId):
|
| 622 |
"""
|
662 |
"""
|
| 623 |
Parameters:
|
663 |
Parameters:
|
| 624 |
- adgroupId
|
664 |
- adgroupId
|
| Line 831... |
Line 871... |
| 831 |
self._processMap["addAdwordsAdGroupAd"] = Processor.process_addAdwordsAdGroupAd
|
871 |
self._processMap["addAdwordsAdGroupAd"] = Processor.process_addAdwordsAdGroupAd
|
| 832 |
self._processMap["addAdwordsAdKeyword"] = Processor.process_addAdwordsAdKeyword
|
872 |
self._processMap["addAdwordsAdKeyword"] = Processor.process_addAdwordsAdKeyword
|
| 833 |
self._processMap["updateAdwordsCampaign"] = Processor.process_updateAdwordsCampaign
|
873 |
self._processMap["updateAdwordsCampaign"] = Processor.process_updateAdwordsCampaign
|
| 834 |
self._processMap["updateAdwordsAdGroup"] = Processor.process_updateAdwordsAdGroup
|
874 |
self._processMap["updateAdwordsAdGroup"] = Processor.process_updateAdwordsAdGroup
|
| 835 |
self._processMap["updateAdwordsAdKeyword"] = Processor.process_updateAdwordsAdKeyword
|
875 |
self._processMap["updateAdwordsAdKeyword"] = Processor.process_updateAdwordsAdKeyword
|
| - |
|
876 |
self._processMap["updateAdwordsAdGroupAd"] = Processor.process_updateAdwordsAdGroupAd
|
| 836 |
self._processMap["deleteAdwordsCampaign"] = Processor.process_deleteAdwordsCampaign
|
877 |
self._processMap["deleteAdwordsCampaign"] = Processor.process_deleteAdwordsCampaign
|
| 837 |
self._processMap["deleteAdwordsAdGroup"] = Processor.process_deleteAdwordsAdGroup
|
878 |
self._processMap["deleteAdwordsAdGroup"] = Processor.process_deleteAdwordsAdGroup
|
| 838 |
self._processMap["deleteAdwordsAdGroupAd"] = Processor.process_deleteAdwordsAdGroupAd
|
879 |
self._processMap["deleteAdwordsAdGroupAd"] = Processor.process_deleteAdwordsAdGroupAd
|
| 839 |
self._processMap["deleteAdwordsAdKeyword"] = Processor.process_deleteAdwordsAdKeyword
|
880 |
self._processMap["deleteAdwordsAdKeyword"] = Processor.process_deleteAdwordsAdKeyword
|
| 840 |
self._processMap["getAdwordsCampaignByCampaignId"] = Processor.process_getAdwordsCampaignByCampaignId
|
881 |
self._processMap["getAdwordsCampaignByCampaignId"] = Processor.process_getAdwordsCampaignByCampaignId
|
| 841 |
self._processMap["getAdwordsAdGroupByAdGroupId"] = Processor.process_getAdwordsAdGroupByAdGroupId
|
882 |
self._processMap["getAdwordsAdGroupByAdGroupId"] = Processor.process_getAdwordsAdGroupByAdGroupId
|
| 842 |
self._processMap["getAdwordsAdgroupAdByAdId"] = Processor.process_getAdwordsAdgroupAdByAdId
|
883 |
self._processMap["getAdwordsAdgroupAdByAdId"] = Processor.process_getAdwordsAdgroupAdByAdId
|
| 843 |
self._processMap["getAdwordsAdKeywordByCriterionId"] = Processor.process_getAdwordsAdKeywordByCriterionId
|
884 |
self._processMap["getAdwordsAdKeywordByCriterionIdAndAdGroupId"] = Processor.process_getAdwordsAdKeywordByCriterionIdAndAdGroupId
|
| 844 |
self._processMap["getAdwordsAdKeywordsByAdgroupId"] = Processor.process_getAdwordsAdKeywordsByAdgroupId
|
885 |
self._processMap["getAdwordsAdKeywordsByAdgroupId"] = Processor.process_getAdwordsAdKeywordsByAdgroupId
|
| 845 |
self._processMap["getAdwordsAdGroupAdsByAdgroupId"] = Processor.process_getAdwordsAdGroupAdsByAdgroupId
|
886 |
self._processMap["getAdwordsAdGroupAdsByAdgroupId"] = Processor.process_getAdwordsAdGroupAdsByAdgroupId
|
| 846 |
self._processMap["getAdwordsAdGroupsByCampaignId"] = Processor.process_getAdwordsAdGroupsByCampaignId
|
887 |
self._processMap["getAdwordsAdGroupsByCampaignId"] = Processor.process_getAdwordsAdGroupsByCampaignId
|
| 847 |
self._processMap["getAllAdwordsCampaigns"] = Processor.process_getAllAdwordsCampaigns
|
888 |
self._processMap["getAllAdwordsCampaigns"] = Processor.process_getAllAdwordsCampaigns
|
| 848 |
self._processMap["getAllAdwordsAdGroups"] = Processor.process_getAllAdwordsAdGroups
|
889 |
self._processMap["getAllAdwordsAdGroups"] = Processor.process_getAllAdwordsAdGroups
|
| Line 960... |
Line 1001... |
| 960 |
oprot.writeMessageBegin("updateAdwordsAdKeyword", TMessageType.REPLY, seqid)
|
1001 |
oprot.writeMessageBegin("updateAdwordsAdKeyword", TMessageType.REPLY, seqid)
|
| 961 |
result.write(oprot)
|
1002 |
result.write(oprot)
|
| 962 |
oprot.writeMessageEnd()
|
1003 |
oprot.writeMessageEnd()
|
| 963 |
oprot.trans.flush()
|
1004 |
oprot.trans.flush()
|
| 964 |
|
1005 |
|
| - |
|
1006 |
def process_updateAdwordsAdGroupAd(self, seqid, iprot, oprot):
|
| - |
|
1007 |
args = updateAdwordsAdGroupAd_args()
|
| - |
|
1008 |
args.read(iprot)
|
| - |
|
1009 |
iprot.readMessageEnd()
|
| - |
|
1010 |
result = updateAdwordsAdGroupAd_result()
|
| - |
|
1011 |
try:
|
| - |
|
1012 |
self._handler.updateAdwordsAdGroupAd(args.adgroupad)
|
| - |
|
1013 |
except GoogleAdwordsServiceException, gasex:
|
| - |
|
1014 |
result.gasex = gasex
|
| - |
|
1015 |
oprot.writeMessageBegin("updateAdwordsAdGroupAd", TMessageType.REPLY, seqid)
|
| - |
|
1016 |
result.write(oprot)
|
| - |
|
1017 |
oprot.writeMessageEnd()
|
| - |
|
1018 |
oprot.trans.flush()
|
| - |
|
1019 |
|
| 965 |
def process_deleteAdwordsCampaign(self, seqid, iprot, oprot):
|
1020 |
def process_deleteAdwordsCampaign(self, seqid, iprot, oprot):
|
| 966 |
args = deleteAdwordsCampaign_args()
|
1021 |
args = deleteAdwordsCampaign_args()
|
| 967 |
args.read(iprot)
|
1022 |
args.read(iprot)
|
| 968 |
iprot.readMessageEnd()
|
1023 |
iprot.readMessageEnd()
|
| 969 |
result = deleteAdwordsCampaign_result()
|
1024 |
result = deleteAdwordsCampaign_result()
|
| Line 1058... |
Line 1113... |
| 1058 |
oprot.writeMessageBegin("getAdwordsAdgroupAdByAdId", TMessageType.REPLY, seqid)
|
1113 |
oprot.writeMessageBegin("getAdwordsAdgroupAdByAdId", TMessageType.REPLY, seqid)
|
| 1059 |
result.write(oprot)
|
1114 |
result.write(oprot)
|
| 1060 |
oprot.writeMessageEnd()
|
1115 |
oprot.writeMessageEnd()
|
| 1061 |
oprot.trans.flush()
|
1116 |
oprot.trans.flush()
|
| 1062 |
|
1117 |
|
| 1063 |
def process_getAdwordsAdKeywordByCriterionId(self, seqid, iprot, oprot):
|
1118 |
def process_getAdwordsAdKeywordByCriterionIdAndAdGroupId(self, seqid, iprot, oprot):
|
| 1064 |
args = getAdwordsAdKeywordByCriterionId_args()
|
1119 |
args = getAdwordsAdKeywordByCriterionIdAndAdGroupId_args()
|
| 1065 |
args.read(iprot)
|
1120 |
args.read(iprot)
|
| 1066 |
iprot.readMessageEnd()
|
1121 |
iprot.readMessageEnd()
|
| 1067 |
result = getAdwordsAdKeywordByCriterionId_result()
|
1122 |
result = getAdwordsAdKeywordByCriterionIdAndAdGroupId_result()
|
| 1068 |
try:
|
1123 |
try:
|
| 1069 |
result.success = self._handler.getAdwordsAdKeywordByCriterionId(args.criterionId)
|
1124 |
result.success = self._handler.getAdwordsAdKeywordByCriterionIdAndAdGroupId(args.criterionId, args.adgroupId)
|
| 1070 |
except GoogleAdwordsServiceException, gasex:
|
1125 |
except GoogleAdwordsServiceException, gasex:
|
| 1071 |
result.gasex = gasex
|
1126 |
result.gasex = gasex
|
| 1072 |
oprot.writeMessageBegin("getAdwordsAdKeywordByCriterionId", TMessageType.REPLY, seqid)
|
1127 |
oprot.writeMessageBegin("getAdwordsAdKeywordByCriterionIdAndAdGroupId", TMessageType.REPLY, seqid)
|
| 1073 |
result.write(oprot)
|
1128 |
result.write(oprot)
|
| 1074 |
oprot.writeMessageEnd()
|
1129 |
oprot.writeMessageEnd()
|
| 1075 |
oprot.trans.flush()
|
1130 |
oprot.trans.flush()
|
| 1076 |
|
1131 |
|
| 1077 |
def process_getAdwordsAdKeywordsByAdgroupId(self, seqid, iprot, oprot):
|
1132 |
def process_getAdwordsAdKeywordsByAdgroupId(self, seqid, iprot, oprot):
|
| Line 2027... |
Line 2082... |
| 2027 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
2082 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
| 2028 |
|
2083 |
|
| 2029 |
def __ne__(self, other):
|
2084 |
def __ne__(self, other):
|
| 2030 |
return not (self == other)
|
2085 |
return not (self == other)
|
| 2031 |
|
2086 |
|
| - |
|
2087 |
class updateAdwordsAdGroupAd_args:
|
| - |
|
2088 |
"""
|
| - |
|
2089 |
Attributes:
|
| - |
|
2090 |
- adgroupad
|
| - |
|
2091 |
"""
|
| - |
|
2092 |
|
| - |
|
2093 |
thrift_spec = (
|
| - |
|
2094 |
None, # 0
|
| - |
|
2095 |
(1, TType.STRUCT, 'adgroupad', (AdwordsAdGroupAd, AdwordsAdGroupAd.thrift_spec), None, ), # 1
|
| - |
|
2096 |
)
|
| - |
|
2097 |
|
| - |
|
2098 |
def __init__(self, adgroupad=None,):
|
| - |
|
2099 |
self.adgroupad = adgroupad
|
| - |
|
2100 |
|
| - |
|
2101 |
def read(self, iprot):
|
| - |
|
2102 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
| - |
|
2103 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
| - |
|
2104 |
return
|
| - |
|
2105 |
iprot.readStructBegin()
|
| - |
|
2106 |
while True:
|
| - |
|
2107 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
| - |
|
2108 |
if ftype == TType.STOP:
|
| - |
|
2109 |
break
|
| - |
|
2110 |
if fid == 1:
|
| - |
|
2111 |
if ftype == TType.STRUCT:
|
| - |
|
2112 |
self.adgroupad = AdwordsAdGroupAd()
|
| - |
|
2113 |
self.adgroupad.read(iprot)
|
| - |
|
2114 |
else:
|
| - |
|
2115 |
iprot.skip(ftype)
|
| - |
|
2116 |
else:
|
| - |
|
2117 |
iprot.skip(ftype)
|
| - |
|
2118 |
iprot.readFieldEnd()
|
| - |
|
2119 |
iprot.readStructEnd()
|
| - |
|
2120 |
|
| - |
|
2121 |
def write(self, oprot):
|
| - |
|
2122 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
| - |
|
2123 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
| - |
|
2124 |
return
|
| - |
|
2125 |
oprot.writeStructBegin('updateAdwordsAdGroupAd_args')
|
| - |
|
2126 |
if self.adgroupad is not None:
|
| - |
|
2127 |
oprot.writeFieldBegin('adgroupad', TType.STRUCT, 1)
|
| - |
|
2128 |
self.adgroupad.write(oprot)
|
| - |
|
2129 |
oprot.writeFieldEnd()
|
| - |
|
2130 |
oprot.writeFieldStop()
|
| - |
|
2131 |
oprot.writeStructEnd()
|
| - |
|
2132 |
|
| - |
|
2133 |
def validate(self):
|
| - |
|
2134 |
return
|
| - |
|
2135 |
|
| - |
|
2136 |
|
| - |
|
2137 |
def __repr__(self):
|
| - |
|
2138 |
L = ['%s=%r' % (key, value)
|
| - |
|
2139 |
for key, value in self.__dict__.iteritems()]
|
| - |
|
2140 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
| - |
|
2141 |
|
| - |
|
2142 |
def __eq__(self, other):
|
| - |
|
2143 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
| - |
|
2144 |
|
| - |
|
2145 |
def __ne__(self, other):
|
| - |
|
2146 |
return not (self == other)
|
| - |
|
2147 |
|
| - |
|
2148 |
class updateAdwordsAdGroupAd_result:
|
| - |
|
2149 |
"""
|
| - |
|
2150 |
Attributes:
|
| - |
|
2151 |
- gasex
|
| - |
|
2152 |
"""
|
| - |
|
2153 |
|
| - |
|
2154 |
thrift_spec = (
|
| - |
|
2155 |
None, # 0
|
| - |
|
2156 |
(1, TType.STRUCT, 'gasex', (GoogleAdwordsServiceException, GoogleAdwordsServiceException.thrift_spec), None, ), # 1
|
| - |
|
2157 |
)
|
| - |
|
2158 |
|
| - |
|
2159 |
def __init__(self, gasex=None,):
|
| - |
|
2160 |
self.gasex = gasex
|
| - |
|
2161 |
|
| - |
|
2162 |
def read(self, iprot):
|
| - |
|
2163 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
| - |
|
2164 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
| - |
|
2165 |
return
|
| - |
|
2166 |
iprot.readStructBegin()
|
| - |
|
2167 |
while True:
|
| - |
|
2168 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
| - |
|
2169 |
if ftype == TType.STOP:
|
| - |
|
2170 |
break
|
| - |
|
2171 |
if fid == 1:
|
| - |
|
2172 |
if ftype == TType.STRUCT:
|
| - |
|
2173 |
self.gasex = GoogleAdwordsServiceException()
|
| - |
|
2174 |
self.gasex.read(iprot)
|
| - |
|
2175 |
else:
|
| - |
|
2176 |
iprot.skip(ftype)
|
| - |
|
2177 |
else:
|
| - |
|
2178 |
iprot.skip(ftype)
|
| - |
|
2179 |
iprot.readFieldEnd()
|
| - |
|
2180 |
iprot.readStructEnd()
|
| - |
|
2181 |
|
| - |
|
2182 |
def write(self, oprot):
|
| - |
|
2183 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
| - |
|
2184 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
| - |
|
2185 |
return
|
| - |
|
2186 |
oprot.writeStructBegin('updateAdwordsAdGroupAd_result')
|
| - |
|
2187 |
if self.gasex is not None:
|
| - |
|
2188 |
oprot.writeFieldBegin('gasex', TType.STRUCT, 1)
|
| - |
|
2189 |
self.gasex.write(oprot)
|
| - |
|
2190 |
oprot.writeFieldEnd()
|
| - |
|
2191 |
oprot.writeFieldStop()
|
| - |
|
2192 |
oprot.writeStructEnd()
|
| - |
|
2193 |
|
| - |
|
2194 |
def validate(self):
|
| - |
|
2195 |
return
|
| - |
|
2196 |
|
| - |
|
2197 |
|
| - |
|
2198 |
def __repr__(self):
|
| - |
|
2199 |
L = ['%s=%r' % (key, value)
|
| - |
|
2200 |
for key, value in self.__dict__.iteritems()]
|
| - |
|
2201 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
| - |
|
2202 |
|
| - |
|
2203 |
def __eq__(self, other):
|
| - |
|
2204 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
| - |
|
2205 |
|
| - |
|
2206 |
def __ne__(self, other):
|
| - |
|
2207 |
return not (self == other)
|
| - |
|
2208 |
|
| 2032 |
class deleteAdwordsCampaign_args:
|
2209 |
class deleteAdwordsCampaign_args:
|
| 2033 |
"""
|
2210 |
"""
|
| 2034 |
Attributes:
|
2211 |
Attributes:
|
| 2035 |
- campaignId
|
2212 |
- campaignId
|
| 2036 |
"""
|
2213 |
"""
|
| Line 2910... |
Line 3087... |
| 2910 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
3087 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
| 2911 |
|
3088 |
|
| 2912 |
def __ne__(self, other):
|
3089 |
def __ne__(self, other):
|
| 2913 |
return not (self == other)
|
3090 |
return not (self == other)
|
| 2914 |
|
3091 |
|
| 2915 |
class getAdwordsAdKeywordByCriterionId_args:
|
3092 |
class getAdwordsAdKeywordByCriterionIdAndAdGroupId_args:
|
| 2916 |
"""
|
3093 |
"""
|
| 2917 |
Attributes:
|
3094 |
Attributes:
|
| 2918 |
- criterionId
|
3095 |
- criterionId
|
| - |
|
3096 |
- adgroupId
|
| 2919 |
"""
|
3097 |
"""
|
| 2920 |
|
3098 |
|
| 2921 |
thrift_spec = (
|
3099 |
thrift_spec = (
|
| 2922 |
None, # 0
|
3100 |
None, # 0
|
| 2923 |
(1, TType.I64, 'criterionId', None, None, ), # 1
|
3101 |
(1, TType.I64, 'criterionId', None, None, ), # 1
|
| - |
|
3102 |
(2, TType.I64, 'adgroupId', None, None, ), # 2
|
| 2924 |
)
|
3103 |
)
|
| 2925 |
|
3104 |
|
| 2926 |
def __init__(self, criterionId=None,):
|
3105 |
def __init__(self, criterionId=None, adgroupId=None,):
|
| 2927 |
self.criterionId = criterionId
|
3106 |
self.criterionId = criterionId
|
| - |
|
3107 |
self.adgroupId = adgroupId
|
| 2928 |
|
3108 |
|
| 2929 |
def read(self, iprot):
|
3109 |
def read(self, iprot):
|
| 2930 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
3110 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
| 2931 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
3111 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
| 2932 |
return
|
3112 |
return
|
| Line 2938... |
Line 3118... |
| 2938 |
if fid == 1:
|
3118 |
if fid == 1:
|
| 2939 |
if ftype == TType.I64:
|
3119 |
if ftype == TType.I64:
|
| 2940 |
self.criterionId = iprot.readI64();
|
3120 |
self.criterionId = iprot.readI64();
|
| 2941 |
else:
|
3121 |
else:
|
| 2942 |
iprot.skip(ftype)
|
3122 |
iprot.skip(ftype)
|
| - |
|
3123 |
elif fid == 2:
|
| - |
|
3124 |
if ftype == TType.I64:
|
| - |
|
3125 |
self.adgroupId = iprot.readI64();
|
| - |
|
3126 |
else:
|
| - |
|
3127 |
iprot.skip(ftype)
|
| 2943 |
else:
|
3128 |
else:
|
| 2944 |
iprot.skip(ftype)
|
3129 |
iprot.skip(ftype)
|
| 2945 |
iprot.readFieldEnd()
|
3130 |
iprot.readFieldEnd()
|
| 2946 |
iprot.readStructEnd()
|
3131 |
iprot.readStructEnd()
|
| 2947 |
|
3132 |
|
| 2948 |
def write(self, oprot):
|
3133 |
def write(self, oprot):
|
| 2949 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
3134 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
| 2950 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
3135 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
| 2951 |
return
|
3136 |
return
|
| 2952 |
oprot.writeStructBegin('getAdwordsAdKeywordByCriterionId_args')
|
3137 |
oprot.writeStructBegin('getAdwordsAdKeywordByCriterionIdAndAdGroupId_args')
|
| 2953 |
if self.criterionId is not None:
|
3138 |
if self.criterionId is not None:
|
| 2954 |
oprot.writeFieldBegin('criterionId', TType.I64, 1)
|
3139 |
oprot.writeFieldBegin('criterionId', TType.I64, 1)
|
| 2955 |
oprot.writeI64(self.criterionId)
|
3140 |
oprot.writeI64(self.criterionId)
|
| 2956 |
oprot.writeFieldEnd()
|
3141 |
oprot.writeFieldEnd()
|
| - |
|
3142 |
if self.adgroupId is not None:
|
| - |
|
3143 |
oprot.writeFieldBegin('adgroupId', TType.I64, 2)
|
| - |
|
3144 |
oprot.writeI64(self.adgroupId)
|
| - |
|
3145 |
oprot.writeFieldEnd()
|
| 2957 |
oprot.writeFieldStop()
|
3146 |
oprot.writeFieldStop()
|
| 2958 |
oprot.writeStructEnd()
|
3147 |
oprot.writeStructEnd()
|
| 2959 |
|
3148 |
|
| 2960 |
def validate(self):
|
3149 |
def validate(self):
|
| 2961 |
return
|
3150 |
return
|
| Line 2970... |
Line 3159... |
| 2970 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
3159 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
| 2971 |
|
3160 |
|
| 2972 |
def __ne__(self, other):
|
3161 |
def __ne__(self, other):
|
| 2973 |
return not (self == other)
|
3162 |
return not (self == other)
|
| 2974 |
|
3163 |
|
| 2975 |
class getAdwordsAdKeywordByCriterionId_result:
|
3164 |
class getAdwordsAdKeywordByCriterionIdAndAdGroupId_result:
|
| 2976 |
"""
|
3165 |
"""
|
| 2977 |
Attributes:
|
3166 |
Attributes:
|
| 2978 |
- success
|
3167 |
- success
|
| 2979 |
- gasex
|
3168 |
- gasex
|
| 2980 |
"""
|
3169 |
"""
|
| Line 3016... |
Line 3205... |
| 3016 |
|
3205 |
|
| 3017 |
def write(self, oprot):
|
3206 |
def write(self, oprot):
|
| 3018 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
3207 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
| 3019 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
3208 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
| 3020 |
return
|
3209 |
return
|
| 3021 |
oprot.writeStructBegin('getAdwordsAdKeywordByCriterionId_result')
|
3210 |
oprot.writeStructBegin('getAdwordsAdKeywordByCriterionIdAndAdGroupId_result')
|
| 3022 |
if self.success is not None:
|
3211 |
if self.success is not None:
|
| 3023 |
oprot.writeFieldBegin('success', TType.STRUCT, 0)
|
3212 |
oprot.writeFieldBegin('success', TType.STRUCT, 0)
|
| 3024 |
self.success.write(oprot)
|
3213 |
self.success.write(oprot)
|
| 3025 |
oprot.writeFieldEnd()
|
3214 |
oprot.writeFieldEnd()
|
| 3026 |
if self.gasex is not None:
|
3215 |
if self.gasex is not None:
|