Subversion Repositories SmartDukaan

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
9049 manish.sha 1
#
2
# Autogenerated by Thrift Compiler (0.7.0)
3
#
4
# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5
#
6
 
7
from thrift.Thrift import *
8
import shop2020.thriftpy.generic.GenericService
9
from ttypes import *
10
from thrift.Thrift import TProcessor
11
from thrift.transport import TTransport
12
from thrift.protocol import TBinaryProtocol, TProtocol
13
try:
14
  from thrift.protocol import fastbinary
15
except:
16
  fastbinary = None
17
 
18
 
19
class Iface(shop2020.thriftpy.generic.GenericService.Iface):
20
  def addAdwordsCampaign(self, campaign):
21
    """
22
    Parameters:
23
     - campaign
24
    """
25
    pass
26
 
27
  def addAdwordsAdGroup(self, adgroup):
28
    """
29
    Parameters:
30
     - adgroup
31
    """
32
    pass
33
 
34
  def addAdwordsAdGroupAd(self, adgroupad):
35
    """
36
    Parameters:
37
     - adgroupad
38
    """
39
    pass
40
 
41
  def addAdwordsAdKeyword(self, adkeyword):
42
    """
43
    Parameters:
44
     - adkeyword
45
    """
46
    pass
47
 
48
  def updateAdwordsCampaign(self, campaign):
49
    """
50
    Parameters:
51
     - campaign
52
    """
53
    pass
54
 
55
  def updateAdwordsAdGroup(self, adgroup):
56
    """
57
    Parameters:
58
     - adgroup
59
    """
60
    pass
61
 
62
  def updateAdwordsAdKeyword(self, adkeyword):
63
    """
64
    Parameters:
65
     - adkeyword
66
    """
67
    pass
68
 
69
  def deleteAdwordsCampaign(self, campaignId):
70
    """
71
    Parameters:
72
     - campaignId
73
    """
74
    pass
75
 
76
  def deleteAdwordsAdGroup(self, adgroupId):
77
    """
78
    Parameters:
79
     - adgroupId
80
    """
81
    pass
82
 
83
  def deleteAdwordsAdGroupAd(self, adgroupadId):
84
    """
85
    Parameters:
86
     - adgroupadId
87
    """
88
    pass
89
 
90
  def deleteAdwordsAdKeyword(self, criterionId):
91
    """
92
    Parameters:
93
     - criterionId
94
    """
95
    pass
96
 
97
  def getAdwordsCampaignByCampaignId(self, campaignId):
98
    """
99
    Parameters:
100
     - campaignId
101
    """
102
    pass
103
 
104
  def getAdwordsAdGroupByAdGroupId(self, adgroupId):
105
    """
106
    Parameters:
107
     - adgroupId
108
    """
109
    pass
110
 
111
  def getAdwordsAdgroupAdByAdId(self, adgroupadId):
112
    """
113
    Parameters:
114
     - adgroupadId
115
    """
116
    pass
117
 
118
  def getAdwordsAdKeywordByCriterionId(self, criterionId):
119
    """
120
    Parameters:
121
     - criterionId
122
    """
123
    pass
124
 
125
  def getAdwordsAdKeywordsByAdgroupId(self, adgroupId):
126
    """
127
    Parameters:
128
     - adgroupId
129
    """
130
    pass
131
 
132
  def getAdwordsAdGroupAdsByAdgroupId(self, adgroupId):
133
    """
134
    Parameters:
135
     - adgroupId
136
    """
137
    pass
138
 
139
  def getAdwordsAdGroupsByCampaignId(self, campaignId):
140
    """
141
    Parameters:
142
     - campaignId
143
    """
144
    pass
145
 
146
  def getAllAdwordsCampaigns(self, ):
147
    pass
148
 
149
  def getAllAdwordsAdGroups(self, ):
150
    pass
151
 
152
  def getAllAdwordsAdGroupAds(self, ):
153
    pass
154
 
155
  def getAllAdwordsAdKeywords(self, ):
156
    pass
157
 
158
 
159
class Client(shop2020.thriftpy.generic.GenericService.Client, Iface):
160
  def __init__(self, iprot, oprot=None):
161
    shop2020.thriftpy.generic.GenericService.Client.__init__(self, iprot, oprot)
162
 
163
  def addAdwordsCampaign(self, campaign):
164
    """
165
    Parameters:
166
     - campaign
167
    """
168
    self.send_addAdwordsCampaign(campaign)
169
    self.recv_addAdwordsCampaign()
170
 
171
  def send_addAdwordsCampaign(self, campaign):
172
    self._oprot.writeMessageBegin('addAdwordsCampaign', TMessageType.CALL, self._seqid)
173
    args = addAdwordsCampaign_args()
174
    args.campaign = campaign
175
    args.write(self._oprot)
176
    self._oprot.writeMessageEnd()
177
    self._oprot.trans.flush()
178
 
179
  def recv_addAdwordsCampaign(self, ):
180
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
181
    if mtype == TMessageType.EXCEPTION:
182
      x = TApplicationException()
183
      x.read(self._iprot)
184
      self._iprot.readMessageEnd()
185
      raise x
186
    result = addAdwordsCampaign_result()
187
    result.read(self._iprot)
188
    self._iprot.readMessageEnd()
189
    if result.gasex is not None:
190
      raise result.gasex
191
    return
192
 
193
  def addAdwordsAdGroup(self, adgroup):
194
    """
195
    Parameters:
196
     - adgroup
197
    """
198
    self.send_addAdwordsAdGroup(adgroup)
199
    self.recv_addAdwordsAdGroup()
200
 
201
  def send_addAdwordsAdGroup(self, adgroup):
202
    self._oprot.writeMessageBegin('addAdwordsAdGroup', TMessageType.CALL, self._seqid)
203
    args = addAdwordsAdGroup_args()
204
    args.adgroup = adgroup
205
    args.write(self._oprot)
206
    self._oprot.writeMessageEnd()
207
    self._oprot.trans.flush()
208
 
209
  def recv_addAdwordsAdGroup(self, ):
210
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
211
    if mtype == TMessageType.EXCEPTION:
212
      x = TApplicationException()
213
      x.read(self._iprot)
214
      self._iprot.readMessageEnd()
215
      raise x
216
    result = addAdwordsAdGroup_result()
217
    result.read(self._iprot)
218
    self._iprot.readMessageEnd()
219
    if result.gasex is not None:
220
      raise result.gasex
221
    return
222
 
223
  def addAdwordsAdGroupAd(self, adgroupad):
224
    """
225
    Parameters:
226
     - adgroupad
227
    """
228
    self.send_addAdwordsAdGroupAd(adgroupad)
229
    self.recv_addAdwordsAdGroupAd()
230
 
231
  def send_addAdwordsAdGroupAd(self, adgroupad):
232
    self._oprot.writeMessageBegin('addAdwordsAdGroupAd', TMessageType.CALL, self._seqid)
233
    args = addAdwordsAdGroupAd_args()
234
    args.adgroupad = adgroupad
235
    args.write(self._oprot)
236
    self._oprot.writeMessageEnd()
237
    self._oprot.trans.flush()
238
 
239
  def recv_addAdwordsAdGroupAd(self, ):
240
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
241
    if mtype == TMessageType.EXCEPTION:
242
      x = TApplicationException()
243
      x.read(self._iprot)
244
      self._iprot.readMessageEnd()
245
      raise x
246
    result = addAdwordsAdGroupAd_result()
247
    result.read(self._iprot)
248
    self._iprot.readMessageEnd()
249
    if result.gasex is not None:
250
      raise result.gasex
251
    return
252
 
253
  def addAdwordsAdKeyword(self, adkeyword):
254
    """
255
    Parameters:
256
     - adkeyword
257
    """
258
    self.send_addAdwordsAdKeyword(adkeyword)
259
    self.recv_addAdwordsAdKeyword()
260
 
261
  def send_addAdwordsAdKeyword(self, adkeyword):
262
    self._oprot.writeMessageBegin('addAdwordsAdKeyword', TMessageType.CALL, self._seqid)
263
    args = addAdwordsAdKeyword_args()
264
    args.adkeyword = adkeyword
265
    args.write(self._oprot)
266
    self._oprot.writeMessageEnd()
267
    self._oprot.trans.flush()
268
 
269
  def recv_addAdwordsAdKeyword(self, ):
270
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
271
    if mtype == TMessageType.EXCEPTION:
272
      x = TApplicationException()
273
      x.read(self._iprot)
274
      self._iprot.readMessageEnd()
275
      raise x
276
    result = addAdwordsAdKeyword_result()
277
    result.read(self._iprot)
278
    self._iprot.readMessageEnd()
279
    if result.gasex is not None:
280
      raise result.gasex
281
    return
282
 
283
  def updateAdwordsCampaign(self, campaign):
284
    """
285
    Parameters:
286
     - campaign
287
    """
288
    self.send_updateAdwordsCampaign(campaign)
289
    self.recv_updateAdwordsCampaign()
290
 
291
  def send_updateAdwordsCampaign(self, campaign):
292
    self._oprot.writeMessageBegin('updateAdwordsCampaign', TMessageType.CALL, self._seqid)
293
    args = updateAdwordsCampaign_args()
294
    args.campaign = campaign
295
    args.write(self._oprot)
296
    self._oprot.writeMessageEnd()
297
    self._oprot.trans.flush()
298
 
299
  def recv_updateAdwordsCampaign(self, ):
300
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
301
    if mtype == TMessageType.EXCEPTION:
302
      x = TApplicationException()
303
      x.read(self._iprot)
304
      self._iprot.readMessageEnd()
305
      raise x
306
    result = updateAdwordsCampaign_result()
307
    result.read(self._iprot)
308
    self._iprot.readMessageEnd()
309
    if result.gasex is not None:
310
      raise result.gasex
311
    return
312
 
313
  def updateAdwordsAdGroup(self, adgroup):
314
    """
315
    Parameters:
316
     - adgroup
317
    """
318
    self.send_updateAdwordsAdGroup(adgroup)
319
    self.recv_updateAdwordsAdGroup()
320
 
321
  def send_updateAdwordsAdGroup(self, adgroup):
322
    self._oprot.writeMessageBegin('updateAdwordsAdGroup', TMessageType.CALL, self._seqid)
323
    args = updateAdwordsAdGroup_args()
324
    args.adgroup = adgroup
325
    args.write(self._oprot)
326
    self._oprot.writeMessageEnd()
327
    self._oprot.trans.flush()
328
 
329
  def recv_updateAdwordsAdGroup(self, ):
330
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
331
    if mtype == TMessageType.EXCEPTION:
332
      x = TApplicationException()
333
      x.read(self._iprot)
334
      self._iprot.readMessageEnd()
335
      raise x
336
    result = updateAdwordsAdGroup_result()
337
    result.read(self._iprot)
338
    self._iprot.readMessageEnd()
339
    if result.gasex is not None:
340
      raise result.gasex
341
    return
342
 
343
  def updateAdwordsAdKeyword(self, adkeyword):
344
    """
345
    Parameters:
346
     - adkeyword
347
    """
348
    self.send_updateAdwordsAdKeyword(adkeyword)
349
    self.recv_updateAdwordsAdKeyword()
350
 
351
  def send_updateAdwordsAdKeyword(self, adkeyword):
352
    self._oprot.writeMessageBegin('updateAdwordsAdKeyword', TMessageType.CALL, self._seqid)
353
    args = updateAdwordsAdKeyword_args()
354
    args.adkeyword = adkeyword
355
    args.write(self._oprot)
356
    self._oprot.writeMessageEnd()
357
    self._oprot.trans.flush()
358
 
359
  def recv_updateAdwordsAdKeyword(self, ):
360
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
361
    if mtype == TMessageType.EXCEPTION:
362
      x = TApplicationException()
363
      x.read(self._iprot)
364
      self._iprot.readMessageEnd()
365
      raise x
366
    result = updateAdwordsAdKeyword_result()
367
    result.read(self._iprot)
368
    self._iprot.readMessageEnd()
369
    if result.gasex is not None:
370
      raise result.gasex
371
    return
372
 
373
  def deleteAdwordsCampaign(self, campaignId):
374
    """
375
    Parameters:
376
     - campaignId
377
    """
378
    self.send_deleteAdwordsCampaign(campaignId)
379
    self.recv_deleteAdwordsCampaign()
380
 
381
  def send_deleteAdwordsCampaign(self, campaignId):
382
    self._oprot.writeMessageBegin('deleteAdwordsCampaign', TMessageType.CALL, self._seqid)
383
    args = deleteAdwordsCampaign_args()
384
    args.campaignId = campaignId
385
    args.write(self._oprot)
386
    self._oprot.writeMessageEnd()
387
    self._oprot.trans.flush()
388
 
389
  def recv_deleteAdwordsCampaign(self, ):
390
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
391
    if mtype == TMessageType.EXCEPTION:
392
      x = TApplicationException()
393
      x.read(self._iprot)
394
      self._iprot.readMessageEnd()
395
      raise x
396
    result = deleteAdwordsCampaign_result()
397
    result.read(self._iprot)
398
    self._iprot.readMessageEnd()
399
    if result.gasex is not None:
400
      raise result.gasex
401
    return
402
 
403
  def deleteAdwordsAdGroup(self, adgroupId):
404
    """
405
    Parameters:
406
     - adgroupId
407
    """
408
    self.send_deleteAdwordsAdGroup(adgroupId)
409
    self.recv_deleteAdwordsAdGroup()
410
 
411
  def send_deleteAdwordsAdGroup(self, adgroupId):
412
    self._oprot.writeMessageBegin('deleteAdwordsAdGroup', TMessageType.CALL, self._seqid)
413
    args = deleteAdwordsAdGroup_args()
414
    args.adgroupId = adgroupId
415
    args.write(self._oprot)
416
    self._oprot.writeMessageEnd()
417
    self._oprot.trans.flush()
418
 
419
  def recv_deleteAdwordsAdGroup(self, ):
420
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
421
    if mtype == TMessageType.EXCEPTION:
422
      x = TApplicationException()
423
      x.read(self._iprot)
424
      self._iprot.readMessageEnd()
425
      raise x
426
    result = deleteAdwordsAdGroup_result()
427
    result.read(self._iprot)
428
    self._iprot.readMessageEnd()
429
    if result.gasex is not None:
430
      raise result.gasex
431
    return
432
 
433
  def deleteAdwordsAdGroupAd(self, adgroupadId):
434
    """
435
    Parameters:
436
     - adgroupadId
437
    """
438
    self.send_deleteAdwordsAdGroupAd(adgroupadId)
439
    self.recv_deleteAdwordsAdGroupAd()
440
 
441
  def send_deleteAdwordsAdGroupAd(self, adgroupadId):
442
    self._oprot.writeMessageBegin('deleteAdwordsAdGroupAd', TMessageType.CALL, self._seqid)
443
    args = deleteAdwordsAdGroupAd_args()
444
    args.adgroupadId = adgroupadId
445
    args.write(self._oprot)
446
    self._oprot.writeMessageEnd()
447
    self._oprot.trans.flush()
448
 
449
  def recv_deleteAdwordsAdGroupAd(self, ):
450
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
451
    if mtype == TMessageType.EXCEPTION:
452
      x = TApplicationException()
453
      x.read(self._iprot)
454
      self._iprot.readMessageEnd()
455
      raise x
456
    result = deleteAdwordsAdGroupAd_result()
457
    result.read(self._iprot)
458
    self._iprot.readMessageEnd()
459
    if result.gasex is not None:
460
      raise result.gasex
461
    return
462
 
463
  def deleteAdwordsAdKeyword(self, criterionId):
464
    """
465
    Parameters:
466
     - criterionId
467
    """
468
    self.send_deleteAdwordsAdKeyword(criterionId)
469
    self.recv_deleteAdwordsAdKeyword()
470
 
471
  def send_deleteAdwordsAdKeyword(self, criterionId):
472
    self._oprot.writeMessageBegin('deleteAdwordsAdKeyword', TMessageType.CALL, self._seqid)
473
    args = deleteAdwordsAdKeyword_args()
474
    args.criterionId = criterionId
475
    args.write(self._oprot)
476
    self._oprot.writeMessageEnd()
477
    self._oprot.trans.flush()
478
 
479
  def recv_deleteAdwordsAdKeyword(self, ):
480
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
481
    if mtype == TMessageType.EXCEPTION:
482
      x = TApplicationException()
483
      x.read(self._iprot)
484
      self._iprot.readMessageEnd()
485
      raise x
486
    result = deleteAdwordsAdKeyword_result()
487
    result.read(self._iprot)
488
    self._iprot.readMessageEnd()
489
    if result.gasex is not None:
490
      raise result.gasex
491
    return
492
 
493
  def getAdwordsCampaignByCampaignId(self, campaignId):
494
    """
495
    Parameters:
496
     - campaignId
497
    """
498
    self.send_getAdwordsCampaignByCampaignId(campaignId)
499
    return self.recv_getAdwordsCampaignByCampaignId()
500
 
501
  def send_getAdwordsCampaignByCampaignId(self, campaignId):
502
    self._oprot.writeMessageBegin('getAdwordsCampaignByCampaignId', TMessageType.CALL, self._seqid)
503
    args = getAdwordsCampaignByCampaignId_args()
504
    args.campaignId = campaignId
505
    args.write(self._oprot)
506
    self._oprot.writeMessageEnd()
507
    self._oprot.trans.flush()
508
 
509
  def recv_getAdwordsCampaignByCampaignId(self, ):
510
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
511
    if mtype == TMessageType.EXCEPTION:
512
      x = TApplicationException()
513
      x.read(self._iprot)
514
      self._iprot.readMessageEnd()
515
      raise x
516
    result = getAdwordsCampaignByCampaignId_result()
517
    result.read(self._iprot)
518
    self._iprot.readMessageEnd()
519
    if result.success is not None:
520
      return result.success
521
    if result.gasex is not None:
522
      raise result.gasex
523
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAdwordsCampaignByCampaignId failed: unknown result");
524
 
525
  def getAdwordsAdGroupByAdGroupId(self, adgroupId):
526
    """
527
    Parameters:
528
     - adgroupId
529
    """
530
    self.send_getAdwordsAdGroupByAdGroupId(adgroupId)
531
    return self.recv_getAdwordsAdGroupByAdGroupId()
532
 
533
  def send_getAdwordsAdGroupByAdGroupId(self, adgroupId):
534
    self._oprot.writeMessageBegin('getAdwordsAdGroupByAdGroupId', TMessageType.CALL, self._seqid)
535
    args = getAdwordsAdGroupByAdGroupId_args()
536
    args.adgroupId = adgroupId
537
    args.write(self._oprot)
538
    self._oprot.writeMessageEnd()
539
    self._oprot.trans.flush()
540
 
541
  def recv_getAdwordsAdGroupByAdGroupId(self, ):
542
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
543
    if mtype == TMessageType.EXCEPTION:
544
      x = TApplicationException()
545
      x.read(self._iprot)
546
      self._iprot.readMessageEnd()
547
      raise x
548
    result = getAdwordsAdGroupByAdGroupId_result()
549
    result.read(self._iprot)
550
    self._iprot.readMessageEnd()
551
    if result.success is not None:
552
      return result.success
553
    if result.gasex is not None:
554
      raise result.gasex
555
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAdwordsAdGroupByAdGroupId failed: unknown result");
556
 
557
  def getAdwordsAdgroupAdByAdId(self, adgroupadId):
558
    """
559
    Parameters:
560
     - adgroupadId
561
    """
562
    self.send_getAdwordsAdgroupAdByAdId(adgroupadId)
563
    return self.recv_getAdwordsAdgroupAdByAdId()
564
 
565
  def send_getAdwordsAdgroupAdByAdId(self, adgroupadId):
566
    self._oprot.writeMessageBegin('getAdwordsAdgroupAdByAdId', TMessageType.CALL, self._seqid)
567
    args = getAdwordsAdgroupAdByAdId_args()
568
    args.adgroupadId = adgroupadId
569
    args.write(self._oprot)
570
    self._oprot.writeMessageEnd()
571
    self._oprot.trans.flush()
572
 
573
  def recv_getAdwordsAdgroupAdByAdId(self, ):
574
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
575
    if mtype == TMessageType.EXCEPTION:
576
      x = TApplicationException()
577
      x.read(self._iprot)
578
      self._iprot.readMessageEnd()
579
      raise x
580
    result = getAdwordsAdgroupAdByAdId_result()
581
    result.read(self._iprot)
582
    self._iprot.readMessageEnd()
583
    if result.success is not None:
584
      return result.success
585
    if result.gasex is not None:
586
      raise result.gasex
587
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAdwordsAdgroupAdByAdId failed: unknown result");
588
 
589
  def getAdwordsAdKeywordByCriterionId(self, criterionId):
590
    """
591
    Parameters:
592
     - criterionId
593
    """
594
    self.send_getAdwordsAdKeywordByCriterionId(criterionId)
595
    return self.recv_getAdwordsAdKeywordByCriterionId()
596
 
597
  def send_getAdwordsAdKeywordByCriterionId(self, criterionId):
598
    self._oprot.writeMessageBegin('getAdwordsAdKeywordByCriterionId', TMessageType.CALL, self._seqid)
599
    args = getAdwordsAdKeywordByCriterionId_args()
600
    args.criterionId = criterionId
601
    args.write(self._oprot)
602
    self._oprot.writeMessageEnd()
603
    self._oprot.trans.flush()
604
 
605
  def recv_getAdwordsAdKeywordByCriterionId(self, ):
606
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
607
    if mtype == TMessageType.EXCEPTION:
608
      x = TApplicationException()
609
      x.read(self._iprot)
610
      self._iprot.readMessageEnd()
611
      raise x
612
    result = getAdwordsAdKeywordByCriterionId_result()
613
    result.read(self._iprot)
614
    self._iprot.readMessageEnd()
615
    if result.success is not None:
616
      return result.success
617
    if result.gasex is not None:
618
      raise result.gasex
619
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAdwordsAdKeywordByCriterionId failed: unknown result");
620
 
621
  def getAdwordsAdKeywordsByAdgroupId(self, adgroupId):
622
    """
623
    Parameters:
624
     - adgroupId
625
    """
626
    self.send_getAdwordsAdKeywordsByAdgroupId(adgroupId)
627
    return self.recv_getAdwordsAdKeywordsByAdgroupId()
628
 
629
  def send_getAdwordsAdKeywordsByAdgroupId(self, adgroupId):
630
    self._oprot.writeMessageBegin('getAdwordsAdKeywordsByAdgroupId', TMessageType.CALL, self._seqid)
631
    args = getAdwordsAdKeywordsByAdgroupId_args()
632
    args.adgroupId = adgroupId
633
    args.write(self._oprot)
634
    self._oprot.writeMessageEnd()
635
    self._oprot.trans.flush()
636
 
637
  def recv_getAdwordsAdKeywordsByAdgroupId(self, ):
638
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
639
    if mtype == TMessageType.EXCEPTION:
640
      x = TApplicationException()
641
      x.read(self._iprot)
642
      self._iprot.readMessageEnd()
643
      raise x
644
    result = getAdwordsAdKeywordsByAdgroupId_result()
645
    result.read(self._iprot)
646
    self._iprot.readMessageEnd()
647
    if result.success is not None:
648
      return result.success
649
    if result.gasex is not None:
650
      raise result.gasex
651
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAdwordsAdKeywordsByAdgroupId failed: unknown result");
652
 
653
  def getAdwordsAdGroupAdsByAdgroupId(self, adgroupId):
654
    """
655
    Parameters:
656
     - adgroupId
657
    """
658
    self.send_getAdwordsAdGroupAdsByAdgroupId(adgroupId)
659
    return self.recv_getAdwordsAdGroupAdsByAdgroupId()
660
 
661
  def send_getAdwordsAdGroupAdsByAdgroupId(self, adgroupId):
662
    self._oprot.writeMessageBegin('getAdwordsAdGroupAdsByAdgroupId', TMessageType.CALL, self._seqid)
663
    args = getAdwordsAdGroupAdsByAdgroupId_args()
664
    args.adgroupId = adgroupId
665
    args.write(self._oprot)
666
    self._oprot.writeMessageEnd()
667
    self._oprot.trans.flush()
668
 
669
  def recv_getAdwordsAdGroupAdsByAdgroupId(self, ):
670
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
671
    if mtype == TMessageType.EXCEPTION:
672
      x = TApplicationException()
673
      x.read(self._iprot)
674
      self._iprot.readMessageEnd()
675
      raise x
676
    result = getAdwordsAdGroupAdsByAdgroupId_result()
677
    result.read(self._iprot)
678
    self._iprot.readMessageEnd()
679
    if result.success is not None:
680
      return result.success
681
    if result.gasex is not None:
682
      raise result.gasex
683
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAdwordsAdGroupAdsByAdgroupId failed: unknown result");
684
 
685
  def getAdwordsAdGroupsByCampaignId(self, campaignId):
686
    """
687
    Parameters:
688
     - campaignId
689
    """
690
    self.send_getAdwordsAdGroupsByCampaignId(campaignId)
691
    return self.recv_getAdwordsAdGroupsByCampaignId()
692
 
693
  def send_getAdwordsAdGroupsByCampaignId(self, campaignId):
694
    self._oprot.writeMessageBegin('getAdwordsAdGroupsByCampaignId', TMessageType.CALL, self._seqid)
695
    args = getAdwordsAdGroupsByCampaignId_args()
696
    args.campaignId = campaignId
697
    args.write(self._oprot)
698
    self._oprot.writeMessageEnd()
699
    self._oprot.trans.flush()
700
 
701
  def recv_getAdwordsAdGroupsByCampaignId(self, ):
702
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
703
    if mtype == TMessageType.EXCEPTION:
704
      x = TApplicationException()
705
      x.read(self._iprot)
706
      self._iprot.readMessageEnd()
707
      raise x
708
    result = getAdwordsAdGroupsByCampaignId_result()
709
    result.read(self._iprot)
710
    self._iprot.readMessageEnd()
711
    if result.success is not None:
712
      return result.success
713
    if result.gasex is not None:
714
      raise result.gasex
715
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAdwordsAdGroupsByCampaignId failed: unknown result");
716
 
717
  def getAllAdwordsCampaigns(self, ):
718
    self.send_getAllAdwordsCampaigns()
719
    return self.recv_getAllAdwordsCampaigns()
720
 
721
  def send_getAllAdwordsCampaigns(self, ):
722
    self._oprot.writeMessageBegin('getAllAdwordsCampaigns', TMessageType.CALL, self._seqid)
723
    args = getAllAdwordsCampaigns_args()
724
    args.write(self._oprot)
725
    self._oprot.writeMessageEnd()
726
    self._oprot.trans.flush()
727
 
728
  def recv_getAllAdwordsCampaigns(self, ):
729
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
730
    if mtype == TMessageType.EXCEPTION:
731
      x = TApplicationException()
732
      x.read(self._iprot)
733
      self._iprot.readMessageEnd()
734
      raise x
735
    result = getAllAdwordsCampaigns_result()
736
    result.read(self._iprot)
737
    self._iprot.readMessageEnd()
738
    if result.success is not None:
739
      return result.success
740
    if result.gasex is not None:
741
      raise result.gasex
742
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllAdwordsCampaigns failed: unknown result");
743
 
744
  def getAllAdwordsAdGroups(self, ):
745
    self.send_getAllAdwordsAdGroups()
746
    return self.recv_getAllAdwordsAdGroups()
747
 
748
  def send_getAllAdwordsAdGroups(self, ):
749
    self._oprot.writeMessageBegin('getAllAdwordsAdGroups', TMessageType.CALL, self._seqid)
750
    args = getAllAdwordsAdGroups_args()
751
    args.write(self._oprot)
752
    self._oprot.writeMessageEnd()
753
    self._oprot.trans.flush()
754
 
755
  def recv_getAllAdwordsAdGroups(self, ):
756
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
757
    if mtype == TMessageType.EXCEPTION:
758
      x = TApplicationException()
759
      x.read(self._iprot)
760
      self._iprot.readMessageEnd()
761
      raise x
762
    result = getAllAdwordsAdGroups_result()
763
    result.read(self._iprot)
764
    self._iprot.readMessageEnd()
765
    if result.success is not None:
766
      return result.success
767
    if result.gasex is not None:
768
      raise result.gasex
769
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllAdwordsAdGroups failed: unknown result");
770
 
771
  def getAllAdwordsAdGroupAds(self, ):
772
    self.send_getAllAdwordsAdGroupAds()
773
    return self.recv_getAllAdwordsAdGroupAds()
774
 
775
  def send_getAllAdwordsAdGroupAds(self, ):
776
    self._oprot.writeMessageBegin('getAllAdwordsAdGroupAds', TMessageType.CALL, self._seqid)
777
    args = getAllAdwordsAdGroupAds_args()
778
    args.write(self._oprot)
779
    self._oprot.writeMessageEnd()
780
    self._oprot.trans.flush()
781
 
782
  def recv_getAllAdwordsAdGroupAds(self, ):
783
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
784
    if mtype == TMessageType.EXCEPTION:
785
      x = TApplicationException()
786
      x.read(self._iprot)
787
      self._iprot.readMessageEnd()
788
      raise x
789
    result = getAllAdwordsAdGroupAds_result()
790
    result.read(self._iprot)
791
    self._iprot.readMessageEnd()
792
    if result.success is not None:
793
      return result.success
794
    if result.gasex is not None:
795
      raise result.gasex
796
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllAdwordsAdGroupAds failed: unknown result");
797
 
798
  def getAllAdwordsAdKeywords(self, ):
799
    self.send_getAllAdwordsAdKeywords()
800
    return self.recv_getAllAdwordsAdKeywords()
801
 
802
  def send_getAllAdwordsAdKeywords(self, ):
803
    self._oprot.writeMessageBegin('getAllAdwordsAdKeywords', TMessageType.CALL, self._seqid)
804
    args = getAllAdwordsAdKeywords_args()
805
    args.write(self._oprot)
806
    self._oprot.writeMessageEnd()
807
    self._oprot.trans.flush()
808
 
809
  def recv_getAllAdwordsAdKeywords(self, ):
810
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
811
    if mtype == TMessageType.EXCEPTION:
812
      x = TApplicationException()
813
      x.read(self._iprot)
814
      self._iprot.readMessageEnd()
815
      raise x
816
    result = getAllAdwordsAdKeywords_result()
817
    result.read(self._iprot)
818
    self._iprot.readMessageEnd()
819
    if result.success is not None:
820
      return result.success
821
    if result.gasex is not None:
822
      raise result.gasex
823
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllAdwordsAdKeywords failed: unknown result");
824
 
825
 
826
class Processor(shop2020.thriftpy.generic.GenericService.Processor, Iface, TProcessor):
827
  def __init__(self, handler):
828
    shop2020.thriftpy.generic.GenericService.Processor.__init__(self, handler)
829
    self._processMap["addAdwordsCampaign"] = Processor.process_addAdwordsCampaign
830
    self._processMap["addAdwordsAdGroup"] = Processor.process_addAdwordsAdGroup
831
    self._processMap["addAdwordsAdGroupAd"] = Processor.process_addAdwordsAdGroupAd
832
    self._processMap["addAdwordsAdKeyword"] = Processor.process_addAdwordsAdKeyword
833
    self._processMap["updateAdwordsCampaign"] = Processor.process_updateAdwordsCampaign
834
    self._processMap["updateAdwordsAdGroup"] = Processor.process_updateAdwordsAdGroup
835
    self._processMap["updateAdwordsAdKeyword"] = Processor.process_updateAdwordsAdKeyword
836
    self._processMap["deleteAdwordsCampaign"] = Processor.process_deleteAdwordsCampaign
837
    self._processMap["deleteAdwordsAdGroup"] = Processor.process_deleteAdwordsAdGroup
838
    self._processMap["deleteAdwordsAdGroupAd"] = Processor.process_deleteAdwordsAdGroupAd
839
    self._processMap["deleteAdwordsAdKeyword"] = Processor.process_deleteAdwordsAdKeyword
840
    self._processMap["getAdwordsCampaignByCampaignId"] = Processor.process_getAdwordsCampaignByCampaignId
841
    self._processMap["getAdwordsAdGroupByAdGroupId"] = Processor.process_getAdwordsAdGroupByAdGroupId
842
    self._processMap["getAdwordsAdgroupAdByAdId"] = Processor.process_getAdwordsAdgroupAdByAdId
843
    self._processMap["getAdwordsAdKeywordByCriterionId"] = Processor.process_getAdwordsAdKeywordByCriterionId
844
    self._processMap["getAdwordsAdKeywordsByAdgroupId"] = Processor.process_getAdwordsAdKeywordsByAdgroupId
845
    self._processMap["getAdwordsAdGroupAdsByAdgroupId"] = Processor.process_getAdwordsAdGroupAdsByAdgroupId
846
    self._processMap["getAdwordsAdGroupsByCampaignId"] = Processor.process_getAdwordsAdGroupsByCampaignId
847
    self._processMap["getAllAdwordsCampaigns"] = Processor.process_getAllAdwordsCampaigns
848
    self._processMap["getAllAdwordsAdGroups"] = Processor.process_getAllAdwordsAdGroups
849
    self._processMap["getAllAdwordsAdGroupAds"] = Processor.process_getAllAdwordsAdGroupAds
850
    self._processMap["getAllAdwordsAdKeywords"] = Processor.process_getAllAdwordsAdKeywords
851
 
852
  def process(self, iprot, oprot):
853
    (name, type, seqid) = iprot.readMessageBegin()
854
    if name not in self._processMap:
855
      iprot.skip(TType.STRUCT)
856
      iprot.readMessageEnd()
857
      x = TApplicationException(TApplicationException.UNKNOWN_METHOD, 'Unknown function %s' % (name))
858
      oprot.writeMessageBegin(name, TMessageType.EXCEPTION, seqid)
859
      x.write(oprot)
860
      oprot.writeMessageEnd()
861
      oprot.trans.flush()
862
      return
863
    else:
864
      self._processMap[name](self, seqid, iprot, oprot)
865
    return True
866
 
867
  def process_addAdwordsCampaign(self, seqid, iprot, oprot):
868
    args = addAdwordsCampaign_args()
869
    args.read(iprot)
870
    iprot.readMessageEnd()
871
    result = addAdwordsCampaign_result()
872
    try:
873
      self._handler.addAdwordsCampaign(args.campaign)
874
    except GoogleAdwordsServiceException, gasex:
875
      result.gasex = gasex
876
    oprot.writeMessageBegin("addAdwordsCampaign", TMessageType.REPLY, seqid)
877
    result.write(oprot)
878
    oprot.writeMessageEnd()
879
    oprot.trans.flush()
880
 
881
  def process_addAdwordsAdGroup(self, seqid, iprot, oprot):
882
    args = addAdwordsAdGroup_args()
883
    args.read(iprot)
884
    iprot.readMessageEnd()
885
    result = addAdwordsAdGroup_result()
886
    try:
887
      self._handler.addAdwordsAdGroup(args.adgroup)
888
    except GoogleAdwordsServiceException, gasex:
889
      result.gasex = gasex
890
    oprot.writeMessageBegin("addAdwordsAdGroup", TMessageType.REPLY, seqid)
891
    result.write(oprot)
892
    oprot.writeMessageEnd()
893
    oprot.trans.flush()
894
 
895
  def process_addAdwordsAdGroupAd(self, seqid, iprot, oprot):
896
    args = addAdwordsAdGroupAd_args()
897
    args.read(iprot)
898
    iprot.readMessageEnd()
899
    result = addAdwordsAdGroupAd_result()
900
    try:
901
      self._handler.addAdwordsAdGroupAd(args.adgroupad)
902
    except GoogleAdwordsServiceException, gasex:
903
      result.gasex = gasex
904
    oprot.writeMessageBegin("addAdwordsAdGroupAd", TMessageType.REPLY, seqid)
905
    result.write(oprot)
906
    oprot.writeMessageEnd()
907
    oprot.trans.flush()
908
 
909
  def process_addAdwordsAdKeyword(self, seqid, iprot, oprot):
910
    args = addAdwordsAdKeyword_args()
911
    args.read(iprot)
912
    iprot.readMessageEnd()
913
    result = addAdwordsAdKeyword_result()
914
    try:
915
      self._handler.addAdwordsAdKeyword(args.adkeyword)
916
    except GoogleAdwordsServiceException, gasex:
917
      result.gasex = gasex
918
    oprot.writeMessageBegin("addAdwordsAdKeyword", TMessageType.REPLY, seqid)
919
    result.write(oprot)
920
    oprot.writeMessageEnd()
921
    oprot.trans.flush()
922
 
923
  def process_updateAdwordsCampaign(self, seqid, iprot, oprot):
924
    args = updateAdwordsCampaign_args()
925
    args.read(iprot)
926
    iprot.readMessageEnd()
927
    result = updateAdwordsCampaign_result()
928
    try:
929
      self._handler.updateAdwordsCampaign(args.campaign)
930
    except GoogleAdwordsServiceException, gasex:
931
      result.gasex = gasex
932
    oprot.writeMessageBegin("updateAdwordsCampaign", TMessageType.REPLY, seqid)
933
    result.write(oprot)
934
    oprot.writeMessageEnd()
935
    oprot.trans.flush()
936
 
937
  def process_updateAdwordsAdGroup(self, seqid, iprot, oprot):
938
    args = updateAdwordsAdGroup_args()
939
    args.read(iprot)
940
    iprot.readMessageEnd()
941
    result = updateAdwordsAdGroup_result()
942
    try:
943
      self._handler.updateAdwordsAdGroup(args.adgroup)
944
    except GoogleAdwordsServiceException, gasex:
945
      result.gasex = gasex
946
    oprot.writeMessageBegin("updateAdwordsAdGroup", TMessageType.REPLY, seqid)
947
    result.write(oprot)
948
    oprot.writeMessageEnd()
949
    oprot.trans.flush()
950
 
951
  def process_updateAdwordsAdKeyword(self, seqid, iprot, oprot):
952
    args = updateAdwordsAdKeyword_args()
953
    args.read(iprot)
954
    iprot.readMessageEnd()
955
    result = updateAdwordsAdKeyword_result()
956
    try:
957
      self._handler.updateAdwordsAdKeyword(args.adkeyword)
958
    except GoogleAdwordsServiceException, gasex:
959
      result.gasex = gasex
960
    oprot.writeMessageBegin("updateAdwordsAdKeyword", TMessageType.REPLY, seqid)
961
    result.write(oprot)
962
    oprot.writeMessageEnd()
963
    oprot.trans.flush()
964
 
965
  def process_deleteAdwordsCampaign(self, seqid, iprot, oprot):
966
    args = deleteAdwordsCampaign_args()
967
    args.read(iprot)
968
    iprot.readMessageEnd()
969
    result = deleteAdwordsCampaign_result()
970
    try:
971
      self._handler.deleteAdwordsCampaign(args.campaignId)
972
    except GoogleAdwordsServiceException, gasex:
973
      result.gasex = gasex
974
    oprot.writeMessageBegin("deleteAdwordsCampaign", TMessageType.REPLY, seqid)
975
    result.write(oprot)
976
    oprot.writeMessageEnd()
977
    oprot.trans.flush()
978
 
979
  def process_deleteAdwordsAdGroup(self, seqid, iprot, oprot):
980
    args = deleteAdwordsAdGroup_args()
981
    args.read(iprot)
982
    iprot.readMessageEnd()
983
    result = deleteAdwordsAdGroup_result()
984
    try:
985
      self._handler.deleteAdwordsAdGroup(args.adgroupId)
986
    except GoogleAdwordsServiceException, gasex:
987
      result.gasex = gasex
988
    oprot.writeMessageBegin("deleteAdwordsAdGroup", TMessageType.REPLY, seqid)
989
    result.write(oprot)
990
    oprot.writeMessageEnd()
991
    oprot.trans.flush()
992
 
993
  def process_deleteAdwordsAdGroupAd(self, seqid, iprot, oprot):
994
    args = deleteAdwordsAdGroupAd_args()
995
    args.read(iprot)
996
    iprot.readMessageEnd()
997
    result = deleteAdwordsAdGroupAd_result()
998
    try:
999
      self._handler.deleteAdwordsAdGroupAd(args.adgroupadId)
1000
    except GoogleAdwordsServiceException, gasex:
1001
      result.gasex = gasex
1002
    oprot.writeMessageBegin("deleteAdwordsAdGroupAd", TMessageType.REPLY, seqid)
1003
    result.write(oprot)
1004
    oprot.writeMessageEnd()
1005
    oprot.trans.flush()
1006
 
1007
  def process_deleteAdwordsAdKeyword(self, seqid, iprot, oprot):
1008
    args = deleteAdwordsAdKeyword_args()
1009
    args.read(iprot)
1010
    iprot.readMessageEnd()
1011
    result = deleteAdwordsAdKeyword_result()
1012
    try:
1013
      self._handler.deleteAdwordsAdKeyword(args.criterionId)
1014
    except GoogleAdwordsServiceException, gasex:
1015
      result.gasex = gasex
1016
    oprot.writeMessageBegin("deleteAdwordsAdKeyword", TMessageType.REPLY, seqid)
1017
    result.write(oprot)
1018
    oprot.writeMessageEnd()
1019
    oprot.trans.flush()
1020
 
1021
  def process_getAdwordsCampaignByCampaignId(self, seqid, iprot, oprot):
1022
    args = getAdwordsCampaignByCampaignId_args()
1023
    args.read(iprot)
1024
    iprot.readMessageEnd()
1025
    result = getAdwordsCampaignByCampaignId_result()
1026
    try:
1027
      result.success = self._handler.getAdwordsCampaignByCampaignId(args.campaignId)
1028
    except GoogleAdwordsServiceException, gasex:
1029
      result.gasex = gasex
1030
    oprot.writeMessageBegin("getAdwordsCampaignByCampaignId", TMessageType.REPLY, seqid)
1031
    result.write(oprot)
1032
    oprot.writeMessageEnd()
1033
    oprot.trans.flush()
1034
 
1035
  def process_getAdwordsAdGroupByAdGroupId(self, seqid, iprot, oprot):
1036
    args = getAdwordsAdGroupByAdGroupId_args()
1037
    args.read(iprot)
1038
    iprot.readMessageEnd()
1039
    result = getAdwordsAdGroupByAdGroupId_result()
1040
    try:
1041
      result.success = self._handler.getAdwordsAdGroupByAdGroupId(args.adgroupId)
1042
    except GoogleAdwordsServiceException, gasex:
1043
      result.gasex = gasex
1044
    oprot.writeMessageBegin("getAdwordsAdGroupByAdGroupId", TMessageType.REPLY, seqid)
1045
    result.write(oprot)
1046
    oprot.writeMessageEnd()
1047
    oprot.trans.flush()
1048
 
1049
  def process_getAdwordsAdgroupAdByAdId(self, seqid, iprot, oprot):
1050
    args = getAdwordsAdgroupAdByAdId_args()
1051
    args.read(iprot)
1052
    iprot.readMessageEnd()
1053
    result = getAdwordsAdgroupAdByAdId_result()
1054
    try:
1055
      result.success = self._handler.getAdwordsAdgroupAdByAdId(args.adgroupadId)
1056
    except GoogleAdwordsServiceException, gasex:
1057
      result.gasex = gasex
1058
    oprot.writeMessageBegin("getAdwordsAdgroupAdByAdId", TMessageType.REPLY, seqid)
1059
    result.write(oprot)
1060
    oprot.writeMessageEnd()
1061
    oprot.trans.flush()
1062
 
1063
  def process_getAdwordsAdKeywordByCriterionId(self, seqid, iprot, oprot):
1064
    args = getAdwordsAdKeywordByCriterionId_args()
1065
    args.read(iprot)
1066
    iprot.readMessageEnd()
1067
    result = getAdwordsAdKeywordByCriterionId_result()
1068
    try:
1069
      result.success = self._handler.getAdwordsAdKeywordByCriterionId(args.criterionId)
1070
    except GoogleAdwordsServiceException, gasex:
1071
      result.gasex = gasex
1072
    oprot.writeMessageBegin("getAdwordsAdKeywordByCriterionId", TMessageType.REPLY, seqid)
1073
    result.write(oprot)
1074
    oprot.writeMessageEnd()
1075
    oprot.trans.flush()
1076
 
1077
  def process_getAdwordsAdKeywordsByAdgroupId(self, seqid, iprot, oprot):
1078
    args = getAdwordsAdKeywordsByAdgroupId_args()
1079
    args.read(iprot)
1080
    iprot.readMessageEnd()
1081
    result = getAdwordsAdKeywordsByAdgroupId_result()
1082
    try:
1083
      result.success = self._handler.getAdwordsAdKeywordsByAdgroupId(args.adgroupId)
1084
    except GoogleAdwordsServiceException, gasex:
1085
      result.gasex = gasex
1086
    oprot.writeMessageBegin("getAdwordsAdKeywordsByAdgroupId", TMessageType.REPLY, seqid)
1087
    result.write(oprot)
1088
    oprot.writeMessageEnd()
1089
    oprot.trans.flush()
1090
 
1091
  def process_getAdwordsAdGroupAdsByAdgroupId(self, seqid, iprot, oprot):
1092
    args = getAdwordsAdGroupAdsByAdgroupId_args()
1093
    args.read(iprot)
1094
    iprot.readMessageEnd()
1095
    result = getAdwordsAdGroupAdsByAdgroupId_result()
1096
    try:
1097
      result.success = self._handler.getAdwordsAdGroupAdsByAdgroupId(args.adgroupId)
1098
    except GoogleAdwordsServiceException, gasex:
1099
      result.gasex = gasex
1100
    oprot.writeMessageBegin("getAdwordsAdGroupAdsByAdgroupId", TMessageType.REPLY, seqid)
1101
    result.write(oprot)
1102
    oprot.writeMessageEnd()
1103
    oprot.trans.flush()
1104
 
1105
  def process_getAdwordsAdGroupsByCampaignId(self, seqid, iprot, oprot):
1106
    args = getAdwordsAdGroupsByCampaignId_args()
1107
    args.read(iprot)
1108
    iprot.readMessageEnd()
1109
    result = getAdwordsAdGroupsByCampaignId_result()
1110
    try:
1111
      result.success = self._handler.getAdwordsAdGroupsByCampaignId(args.campaignId)
1112
    except GoogleAdwordsServiceException, gasex:
1113
      result.gasex = gasex
1114
    oprot.writeMessageBegin("getAdwordsAdGroupsByCampaignId", TMessageType.REPLY, seqid)
1115
    result.write(oprot)
1116
    oprot.writeMessageEnd()
1117
    oprot.trans.flush()
1118
 
1119
  def process_getAllAdwordsCampaigns(self, seqid, iprot, oprot):
1120
    args = getAllAdwordsCampaigns_args()
1121
    args.read(iprot)
1122
    iprot.readMessageEnd()
1123
    result = getAllAdwordsCampaigns_result()
1124
    try:
1125
      result.success = self._handler.getAllAdwordsCampaigns()
1126
    except GoogleAdwordsServiceException, gasex:
1127
      result.gasex = gasex
1128
    oprot.writeMessageBegin("getAllAdwordsCampaigns", TMessageType.REPLY, seqid)
1129
    result.write(oprot)
1130
    oprot.writeMessageEnd()
1131
    oprot.trans.flush()
1132
 
1133
  def process_getAllAdwordsAdGroups(self, seqid, iprot, oprot):
1134
    args = getAllAdwordsAdGroups_args()
1135
    args.read(iprot)
1136
    iprot.readMessageEnd()
1137
    result = getAllAdwordsAdGroups_result()
1138
    try:
1139
      result.success = self._handler.getAllAdwordsAdGroups()
1140
    except GoogleAdwordsServiceException, gasex:
1141
      result.gasex = gasex
1142
    oprot.writeMessageBegin("getAllAdwordsAdGroups", TMessageType.REPLY, seqid)
1143
    result.write(oprot)
1144
    oprot.writeMessageEnd()
1145
    oprot.trans.flush()
1146
 
1147
  def process_getAllAdwordsAdGroupAds(self, seqid, iprot, oprot):
1148
    args = getAllAdwordsAdGroupAds_args()
1149
    args.read(iprot)
1150
    iprot.readMessageEnd()
1151
    result = getAllAdwordsAdGroupAds_result()
1152
    try:
1153
      result.success = self._handler.getAllAdwordsAdGroupAds()
1154
    except GoogleAdwordsServiceException, gasex:
1155
      result.gasex = gasex
1156
    oprot.writeMessageBegin("getAllAdwordsAdGroupAds", TMessageType.REPLY, seqid)
1157
    result.write(oprot)
1158
    oprot.writeMessageEnd()
1159
    oprot.trans.flush()
1160
 
1161
  def process_getAllAdwordsAdKeywords(self, seqid, iprot, oprot):
1162
    args = getAllAdwordsAdKeywords_args()
1163
    args.read(iprot)
1164
    iprot.readMessageEnd()
1165
    result = getAllAdwordsAdKeywords_result()
1166
    try:
1167
      result.success = self._handler.getAllAdwordsAdKeywords()
1168
    except GoogleAdwordsServiceException, gasex:
1169
      result.gasex = gasex
1170
    oprot.writeMessageBegin("getAllAdwordsAdKeywords", TMessageType.REPLY, seqid)
1171
    result.write(oprot)
1172
    oprot.writeMessageEnd()
1173
    oprot.trans.flush()
1174
 
1175
 
1176
# HELPER FUNCTIONS AND STRUCTURES
1177
 
1178
class addAdwordsCampaign_args:
1179
  """
1180
  Attributes:
1181
   - campaign
1182
  """
1183
 
1184
  thrift_spec = (
1185
    None, # 0
1186
    (1, TType.STRUCT, 'campaign', (AdwordsCampaign, AdwordsCampaign.thrift_spec), None, ), # 1
1187
  )
1188
 
1189
  def __init__(self, campaign=None,):
1190
    self.campaign = campaign
1191
 
1192
  def read(self, iprot):
1193
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
1194
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
1195
      return
1196
    iprot.readStructBegin()
1197
    while True:
1198
      (fname, ftype, fid) = iprot.readFieldBegin()
1199
      if ftype == TType.STOP:
1200
        break
1201
      if fid == 1:
1202
        if ftype == TType.STRUCT:
1203
          self.campaign = AdwordsCampaign()
1204
          self.campaign.read(iprot)
1205
        else:
1206
          iprot.skip(ftype)
1207
      else:
1208
        iprot.skip(ftype)
1209
      iprot.readFieldEnd()
1210
    iprot.readStructEnd()
1211
 
1212
  def write(self, oprot):
1213
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
1214
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
1215
      return
1216
    oprot.writeStructBegin('addAdwordsCampaign_args')
1217
    if self.campaign is not None:
1218
      oprot.writeFieldBegin('campaign', TType.STRUCT, 1)
1219
      self.campaign.write(oprot)
1220
      oprot.writeFieldEnd()
1221
    oprot.writeFieldStop()
1222
    oprot.writeStructEnd()
1223
 
1224
  def validate(self):
1225
    return
1226
 
1227
 
1228
  def __repr__(self):
1229
    L = ['%s=%r' % (key, value)
1230
      for key, value in self.__dict__.iteritems()]
1231
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
1232
 
1233
  def __eq__(self, other):
1234
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
1235
 
1236
  def __ne__(self, other):
1237
    return not (self == other)
1238
 
1239
class addAdwordsCampaign_result:
1240
  """
1241
  Attributes:
1242
   - gasex
1243
  """
1244
 
1245
  thrift_spec = (
1246
    None, # 0
1247
    (1, TType.STRUCT, 'gasex', (GoogleAdwordsServiceException, GoogleAdwordsServiceException.thrift_spec), None, ), # 1
1248
  )
1249
 
1250
  def __init__(self, gasex=None,):
1251
    self.gasex = gasex
1252
 
1253
  def read(self, iprot):
1254
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
1255
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
1256
      return
1257
    iprot.readStructBegin()
1258
    while True:
1259
      (fname, ftype, fid) = iprot.readFieldBegin()
1260
      if ftype == TType.STOP:
1261
        break
1262
      if fid == 1:
1263
        if ftype == TType.STRUCT:
1264
          self.gasex = GoogleAdwordsServiceException()
1265
          self.gasex.read(iprot)
1266
        else:
1267
          iprot.skip(ftype)
1268
      else:
1269
        iprot.skip(ftype)
1270
      iprot.readFieldEnd()
1271
    iprot.readStructEnd()
1272
 
1273
  def write(self, oprot):
1274
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
1275
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
1276
      return
1277
    oprot.writeStructBegin('addAdwordsCampaign_result')
1278
    if self.gasex is not None:
1279
      oprot.writeFieldBegin('gasex', TType.STRUCT, 1)
1280
      self.gasex.write(oprot)
1281
      oprot.writeFieldEnd()
1282
    oprot.writeFieldStop()
1283
    oprot.writeStructEnd()
1284
 
1285
  def validate(self):
1286
    return
1287
 
1288
 
1289
  def __repr__(self):
1290
    L = ['%s=%r' % (key, value)
1291
      for key, value in self.__dict__.iteritems()]
1292
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
1293
 
1294
  def __eq__(self, other):
1295
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
1296
 
1297
  def __ne__(self, other):
1298
    return not (self == other)
1299
 
1300
class addAdwordsAdGroup_args:
1301
  """
1302
  Attributes:
1303
   - adgroup
1304
  """
1305
 
1306
  thrift_spec = (
1307
    None, # 0
1308
    (1, TType.STRUCT, 'adgroup', (AdwordsAdGroup, AdwordsAdGroup.thrift_spec), None, ), # 1
1309
  )
1310
 
1311
  def __init__(self, adgroup=None,):
1312
    self.adgroup = adgroup
1313
 
1314
  def read(self, iprot):
1315
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
1316
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
1317
      return
1318
    iprot.readStructBegin()
1319
    while True:
1320
      (fname, ftype, fid) = iprot.readFieldBegin()
1321
      if ftype == TType.STOP:
1322
        break
1323
      if fid == 1:
1324
        if ftype == TType.STRUCT:
1325
          self.adgroup = AdwordsAdGroup()
1326
          self.adgroup.read(iprot)
1327
        else:
1328
          iprot.skip(ftype)
1329
      else:
1330
        iprot.skip(ftype)
1331
      iprot.readFieldEnd()
1332
    iprot.readStructEnd()
1333
 
1334
  def write(self, oprot):
1335
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
1336
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
1337
      return
1338
    oprot.writeStructBegin('addAdwordsAdGroup_args')
1339
    if self.adgroup is not None:
1340
      oprot.writeFieldBegin('adgroup', TType.STRUCT, 1)
1341
      self.adgroup.write(oprot)
1342
      oprot.writeFieldEnd()
1343
    oprot.writeFieldStop()
1344
    oprot.writeStructEnd()
1345
 
1346
  def validate(self):
1347
    return
1348
 
1349
 
1350
  def __repr__(self):
1351
    L = ['%s=%r' % (key, value)
1352
      for key, value in self.__dict__.iteritems()]
1353
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
1354
 
1355
  def __eq__(self, other):
1356
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
1357
 
1358
  def __ne__(self, other):
1359
    return not (self == other)
1360
 
1361
class addAdwordsAdGroup_result:
1362
  """
1363
  Attributes:
1364
   - gasex
1365
  """
1366
 
1367
  thrift_spec = (
1368
    None, # 0
1369
    (1, TType.STRUCT, 'gasex', (GoogleAdwordsServiceException, GoogleAdwordsServiceException.thrift_spec), None, ), # 1
1370
  )
1371
 
1372
  def __init__(self, gasex=None,):
1373
    self.gasex = gasex
1374
 
1375
  def read(self, iprot):
1376
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
1377
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
1378
      return
1379
    iprot.readStructBegin()
1380
    while True:
1381
      (fname, ftype, fid) = iprot.readFieldBegin()
1382
      if ftype == TType.STOP:
1383
        break
1384
      if fid == 1:
1385
        if ftype == TType.STRUCT:
1386
          self.gasex = GoogleAdwordsServiceException()
1387
          self.gasex.read(iprot)
1388
        else:
1389
          iprot.skip(ftype)
1390
      else:
1391
        iprot.skip(ftype)
1392
      iprot.readFieldEnd()
1393
    iprot.readStructEnd()
1394
 
1395
  def write(self, oprot):
1396
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
1397
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
1398
      return
1399
    oprot.writeStructBegin('addAdwordsAdGroup_result')
1400
    if self.gasex is not None:
1401
      oprot.writeFieldBegin('gasex', TType.STRUCT, 1)
1402
      self.gasex.write(oprot)
1403
      oprot.writeFieldEnd()
1404
    oprot.writeFieldStop()
1405
    oprot.writeStructEnd()
1406
 
1407
  def validate(self):
1408
    return
1409
 
1410
 
1411
  def __repr__(self):
1412
    L = ['%s=%r' % (key, value)
1413
      for key, value in self.__dict__.iteritems()]
1414
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
1415
 
1416
  def __eq__(self, other):
1417
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
1418
 
1419
  def __ne__(self, other):
1420
    return not (self == other)
1421
 
1422
class addAdwordsAdGroupAd_args:
1423
  """
1424
  Attributes:
1425
   - adgroupad
1426
  """
1427
 
1428
  thrift_spec = (
1429
    None, # 0
1430
    (1, TType.STRUCT, 'adgroupad', (AdwordsAdGroupAd, AdwordsAdGroupAd.thrift_spec), None, ), # 1
1431
  )
1432
 
1433
  def __init__(self, adgroupad=None,):
1434
    self.adgroupad = adgroupad
1435
 
1436
  def read(self, iprot):
1437
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
1438
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
1439
      return
1440
    iprot.readStructBegin()
1441
    while True:
1442
      (fname, ftype, fid) = iprot.readFieldBegin()
1443
      if ftype == TType.STOP:
1444
        break
1445
      if fid == 1:
1446
        if ftype == TType.STRUCT:
1447
          self.adgroupad = AdwordsAdGroupAd()
1448
          self.adgroupad.read(iprot)
1449
        else:
1450
          iprot.skip(ftype)
1451
      else:
1452
        iprot.skip(ftype)
1453
      iprot.readFieldEnd()
1454
    iprot.readStructEnd()
1455
 
1456
  def write(self, oprot):
1457
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
1458
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
1459
      return
1460
    oprot.writeStructBegin('addAdwordsAdGroupAd_args')
1461
    if self.adgroupad is not None:
1462
      oprot.writeFieldBegin('adgroupad', TType.STRUCT, 1)
1463
      self.adgroupad.write(oprot)
1464
      oprot.writeFieldEnd()
1465
    oprot.writeFieldStop()
1466
    oprot.writeStructEnd()
1467
 
1468
  def validate(self):
1469
    return
1470
 
1471
 
1472
  def __repr__(self):
1473
    L = ['%s=%r' % (key, value)
1474
      for key, value in self.__dict__.iteritems()]
1475
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
1476
 
1477
  def __eq__(self, other):
1478
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
1479
 
1480
  def __ne__(self, other):
1481
    return not (self == other)
1482
 
1483
class addAdwordsAdGroupAd_result:
1484
  """
1485
  Attributes:
1486
   - gasex
1487
  """
1488
 
1489
  thrift_spec = (
1490
    None, # 0
1491
    (1, TType.STRUCT, 'gasex', (GoogleAdwordsServiceException, GoogleAdwordsServiceException.thrift_spec), None, ), # 1
1492
  )
1493
 
1494
  def __init__(self, gasex=None,):
1495
    self.gasex = gasex
1496
 
1497
  def read(self, iprot):
1498
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
1499
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
1500
      return
1501
    iprot.readStructBegin()
1502
    while True:
1503
      (fname, ftype, fid) = iprot.readFieldBegin()
1504
      if ftype == TType.STOP:
1505
        break
1506
      if fid == 1:
1507
        if ftype == TType.STRUCT:
1508
          self.gasex = GoogleAdwordsServiceException()
1509
          self.gasex.read(iprot)
1510
        else:
1511
          iprot.skip(ftype)
1512
      else:
1513
        iprot.skip(ftype)
1514
      iprot.readFieldEnd()
1515
    iprot.readStructEnd()
1516
 
1517
  def write(self, oprot):
1518
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
1519
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
1520
      return
1521
    oprot.writeStructBegin('addAdwordsAdGroupAd_result')
1522
    if self.gasex is not None:
1523
      oprot.writeFieldBegin('gasex', TType.STRUCT, 1)
1524
      self.gasex.write(oprot)
1525
      oprot.writeFieldEnd()
1526
    oprot.writeFieldStop()
1527
    oprot.writeStructEnd()
1528
 
1529
  def validate(self):
1530
    return
1531
 
1532
 
1533
  def __repr__(self):
1534
    L = ['%s=%r' % (key, value)
1535
      for key, value in self.__dict__.iteritems()]
1536
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
1537
 
1538
  def __eq__(self, other):
1539
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
1540
 
1541
  def __ne__(self, other):
1542
    return not (self == other)
1543
 
1544
class addAdwordsAdKeyword_args:
1545
  """
1546
  Attributes:
1547
   - adkeyword
1548
  """
1549
 
1550
  thrift_spec = (
1551
    None, # 0
1552
    (1, TType.STRUCT, 'adkeyword', (AdwordsAdKeyword, AdwordsAdKeyword.thrift_spec), None, ), # 1
1553
  )
1554
 
1555
  def __init__(self, adkeyword=None,):
1556
    self.adkeyword = adkeyword
1557
 
1558
  def read(self, iprot):
1559
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
1560
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
1561
      return
1562
    iprot.readStructBegin()
1563
    while True:
1564
      (fname, ftype, fid) = iprot.readFieldBegin()
1565
      if ftype == TType.STOP:
1566
        break
1567
      if fid == 1:
1568
        if ftype == TType.STRUCT:
1569
          self.adkeyword = AdwordsAdKeyword()
1570
          self.adkeyword.read(iprot)
1571
        else:
1572
          iprot.skip(ftype)
1573
      else:
1574
        iprot.skip(ftype)
1575
      iprot.readFieldEnd()
1576
    iprot.readStructEnd()
1577
 
1578
  def write(self, oprot):
1579
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
1580
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
1581
      return
1582
    oprot.writeStructBegin('addAdwordsAdKeyword_args')
1583
    if self.adkeyword is not None:
1584
      oprot.writeFieldBegin('adkeyword', TType.STRUCT, 1)
1585
      self.adkeyword.write(oprot)
1586
      oprot.writeFieldEnd()
1587
    oprot.writeFieldStop()
1588
    oprot.writeStructEnd()
1589
 
1590
  def validate(self):
1591
    return
1592
 
1593
 
1594
  def __repr__(self):
1595
    L = ['%s=%r' % (key, value)
1596
      for key, value in self.__dict__.iteritems()]
1597
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
1598
 
1599
  def __eq__(self, other):
1600
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
1601
 
1602
  def __ne__(self, other):
1603
    return not (self == other)
1604
 
1605
class addAdwordsAdKeyword_result:
1606
  """
1607
  Attributes:
1608
   - gasex
1609
  """
1610
 
1611
  thrift_spec = (
1612
    None, # 0
1613
    (1, TType.STRUCT, 'gasex', (GoogleAdwordsServiceException, GoogleAdwordsServiceException.thrift_spec), None, ), # 1
1614
  )
1615
 
1616
  def __init__(self, gasex=None,):
1617
    self.gasex = gasex
1618
 
1619
  def read(self, iprot):
1620
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
1621
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
1622
      return
1623
    iprot.readStructBegin()
1624
    while True:
1625
      (fname, ftype, fid) = iprot.readFieldBegin()
1626
      if ftype == TType.STOP:
1627
        break
1628
      if fid == 1:
1629
        if ftype == TType.STRUCT:
1630
          self.gasex = GoogleAdwordsServiceException()
1631
          self.gasex.read(iprot)
1632
        else:
1633
          iprot.skip(ftype)
1634
      else:
1635
        iprot.skip(ftype)
1636
      iprot.readFieldEnd()
1637
    iprot.readStructEnd()
1638
 
1639
  def write(self, oprot):
1640
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
1641
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
1642
      return
1643
    oprot.writeStructBegin('addAdwordsAdKeyword_result')
1644
    if self.gasex is not None:
1645
      oprot.writeFieldBegin('gasex', TType.STRUCT, 1)
1646
      self.gasex.write(oprot)
1647
      oprot.writeFieldEnd()
1648
    oprot.writeFieldStop()
1649
    oprot.writeStructEnd()
1650
 
1651
  def validate(self):
1652
    return
1653
 
1654
 
1655
  def __repr__(self):
1656
    L = ['%s=%r' % (key, value)
1657
      for key, value in self.__dict__.iteritems()]
1658
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
1659
 
1660
  def __eq__(self, other):
1661
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
1662
 
1663
  def __ne__(self, other):
1664
    return not (self == other)
1665
 
1666
class updateAdwordsCampaign_args:
1667
  """
1668
  Attributes:
1669
   - campaign
1670
  """
1671
 
1672
  thrift_spec = (
1673
    None, # 0
1674
    (1, TType.STRUCT, 'campaign', (AdwordsCampaign, AdwordsCampaign.thrift_spec), None, ), # 1
1675
  )
1676
 
1677
  def __init__(self, campaign=None,):
1678
    self.campaign = campaign
1679
 
1680
  def read(self, iprot):
1681
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
1682
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
1683
      return
1684
    iprot.readStructBegin()
1685
    while True:
1686
      (fname, ftype, fid) = iprot.readFieldBegin()
1687
      if ftype == TType.STOP:
1688
        break
1689
      if fid == 1:
1690
        if ftype == TType.STRUCT:
1691
          self.campaign = AdwordsCampaign()
1692
          self.campaign.read(iprot)
1693
        else:
1694
          iprot.skip(ftype)
1695
      else:
1696
        iprot.skip(ftype)
1697
      iprot.readFieldEnd()
1698
    iprot.readStructEnd()
1699
 
1700
  def write(self, oprot):
1701
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
1702
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
1703
      return
1704
    oprot.writeStructBegin('updateAdwordsCampaign_args')
1705
    if self.campaign is not None:
1706
      oprot.writeFieldBegin('campaign', TType.STRUCT, 1)
1707
      self.campaign.write(oprot)
1708
      oprot.writeFieldEnd()
1709
    oprot.writeFieldStop()
1710
    oprot.writeStructEnd()
1711
 
1712
  def validate(self):
1713
    return
1714
 
1715
 
1716
  def __repr__(self):
1717
    L = ['%s=%r' % (key, value)
1718
      for key, value in self.__dict__.iteritems()]
1719
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
1720
 
1721
  def __eq__(self, other):
1722
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
1723
 
1724
  def __ne__(self, other):
1725
    return not (self == other)
1726
 
1727
class updateAdwordsCampaign_result:
1728
  """
1729
  Attributes:
1730
   - gasex
1731
  """
1732
 
1733
  thrift_spec = (
1734
    None, # 0
1735
    (1, TType.STRUCT, 'gasex', (GoogleAdwordsServiceException, GoogleAdwordsServiceException.thrift_spec), None, ), # 1
1736
  )
1737
 
1738
  def __init__(self, gasex=None,):
1739
    self.gasex = gasex
1740
 
1741
  def read(self, iprot):
1742
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
1743
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
1744
      return
1745
    iprot.readStructBegin()
1746
    while True:
1747
      (fname, ftype, fid) = iprot.readFieldBegin()
1748
      if ftype == TType.STOP:
1749
        break
1750
      if fid == 1:
1751
        if ftype == TType.STRUCT:
1752
          self.gasex = GoogleAdwordsServiceException()
1753
          self.gasex.read(iprot)
1754
        else:
1755
          iprot.skip(ftype)
1756
      else:
1757
        iprot.skip(ftype)
1758
      iprot.readFieldEnd()
1759
    iprot.readStructEnd()
1760
 
1761
  def write(self, oprot):
1762
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
1763
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
1764
      return
1765
    oprot.writeStructBegin('updateAdwordsCampaign_result')
1766
    if self.gasex is not None:
1767
      oprot.writeFieldBegin('gasex', TType.STRUCT, 1)
1768
      self.gasex.write(oprot)
1769
      oprot.writeFieldEnd()
1770
    oprot.writeFieldStop()
1771
    oprot.writeStructEnd()
1772
 
1773
  def validate(self):
1774
    return
1775
 
1776
 
1777
  def __repr__(self):
1778
    L = ['%s=%r' % (key, value)
1779
      for key, value in self.__dict__.iteritems()]
1780
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
1781
 
1782
  def __eq__(self, other):
1783
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
1784
 
1785
  def __ne__(self, other):
1786
    return not (self == other)
1787
 
1788
class updateAdwordsAdGroup_args:
1789
  """
1790
  Attributes:
1791
   - adgroup
1792
  """
1793
 
1794
  thrift_spec = (
1795
    None, # 0
1796
    (1, TType.STRUCT, 'adgroup', (AdwordsAdGroup, AdwordsAdGroup.thrift_spec), None, ), # 1
1797
  )
1798
 
1799
  def __init__(self, adgroup=None,):
1800
    self.adgroup = adgroup
1801
 
1802
  def read(self, iprot):
1803
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
1804
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
1805
      return
1806
    iprot.readStructBegin()
1807
    while True:
1808
      (fname, ftype, fid) = iprot.readFieldBegin()
1809
      if ftype == TType.STOP:
1810
        break
1811
      if fid == 1:
1812
        if ftype == TType.STRUCT:
1813
          self.adgroup = AdwordsAdGroup()
1814
          self.adgroup.read(iprot)
1815
        else:
1816
          iprot.skip(ftype)
1817
      else:
1818
        iprot.skip(ftype)
1819
      iprot.readFieldEnd()
1820
    iprot.readStructEnd()
1821
 
1822
  def write(self, oprot):
1823
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
1824
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
1825
      return
1826
    oprot.writeStructBegin('updateAdwordsAdGroup_args')
1827
    if self.adgroup is not None:
1828
      oprot.writeFieldBegin('adgroup', TType.STRUCT, 1)
1829
      self.adgroup.write(oprot)
1830
      oprot.writeFieldEnd()
1831
    oprot.writeFieldStop()
1832
    oprot.writeStructEnd()
1833
 
1834
  def validate(self):
1835
    return
1836
 
1837
 
1838
  def __repr__(self):
1839
    L = ['%s=%r' % (key, value)
1840
      for key, value in self.__dict__.iteritems()]
1841
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
1842
 
1843
  def __eq__(self, other):
1844
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
1845
 
1846
  def __ne__(self, other):
1847
    return not (self == other)
1848
 
1849
class updateAdwordsAdGroup_result:
1850
  """
1851
  Attributes:
1852
   - gasex
1853
  """
1854
 
1855
  thrift_spec = (
1856
    None, # 0
1857
    (1, TType.STRUCT, 'gasex', (GoogleAdwordsServiceException, GoogleAdwordsServiceException.thrift_spec), None, ), # 1
1858
  )
1859
 
1860
  def __init__(self, gasex=None,):
1861
    self.gasex = gasex
1862
 
1863
  def read(self, iprot):
1864
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
1865
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
1866
      return
1867
    iprot.readStructBegin()
1868
    while True:
1869
      (fname, ftype, fid) = iprot.readFieldBegin()
1870
      if ftype == TType.STOP:
1871
        break
1872
      if fid == 1:
1873
        if ftype == TType.STRUCT:
1874
          self.gasex = GoogleAdwordsServiceException()
1875
          self.gasex.read(iprot)
1876
        else:
1877
          iprot.skip(ftype)
1878
      else:
1879
        iprot.skip(ftype)
1880
      iprot.readFieldEnd()
1881
    iprot.readStructEnd()
1882
 
1883
  def write(self, oprot):
1884
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
1885
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
1886
      return
1887
    oprot.writeStructBegin('updateAdwordsAdGroup_result')
1888
    if self.gasex is not None:
1889
      oprot.writeFieldBegin('gasex', TType.STRUCT, 1)
1890
      self.gasex.write(oprot)
1891
      oprot.writeFieldEnd()
1892
    oprot.writeFieldStop()
1893
    oprot.writeStructEnd()
1894
 
1895
  def validate(self):
1896
    return
1897
 
1898
 
1899
  def __repr__(self):
1900
    L = ['%s=%r' % (key, value)
1901
      for key, value in self.__dict__.iteritems()]
1902
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
1903
 
1904
  def __eq__(self, other):
1905
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
1906
 
1907
  def __ne__(self, other):
1908
    return not (self == other)
1909
 
1910
class updateAdwordsAdKeyword_args:
1911
  """
1912
  Attributes:
1913
   - adkeyword
1914
  """
1915
 
1916
  thrift_spec = (
1917
    None, # 0
1918
    (1, TType.STRUCT, 'adkeyword', (AdwordsAdKeyword, AdwordsAdKeyword.thrift_spec), None, ), # 1
1919
  )
1920
 
1921
  def __init__(self, adkeyword=None,):
1922
    self.adkeyword = adkeyword
1923
 
1924
  def read(self, iprot):
1925
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
1926
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
1927
      return
1928
    iprot.readStructBegin()
1929
    while True:
1930
      (fname, ftype, fid) = iprot.readFieldBegin()
1931
      if ftype == TType.STOP:
1932
        break
1933
      if fid == 1:
1934
        if ftype == TType.STRUCT:
1935
          self.adkeyword = AdwordsAdKeyword()
1936
          self.adkeyword.read(iprot)
1937
        else:
1938
          iprot.skip(ftype)
1939
      else:
1940
        iprot.skip(ftype)
1941
      iprot.readFieldEnd()
1942
    iprot.readStructEnd()
1943
 
1944
  def write(self, oprot):
1945
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
1946
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
1947
      return
1948
    oprot.writeStructBegin('updateAdwordsAdKeyword_args')
1949
    if self.adkeyword is not None:
1950
      oprot.writeFieldBegin('adkeyword', TType.STRUCT, 1)
1951
      self.adkeyword.write(oprot)
1952
      oprot.writeFieldEnd()
1953
    oprot.writeFieldStop()
1954
    oprot.writeStructEnd()
1955
 
1956
  def validate(self):
1957
    return
1958
 
1959
 
1960
  def __repr__(self):
1961
    L = ['%s=%r' % (key, value)
1962
      for key, value in self.__dict__.iteritems()]
1963
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
1964
 
1965
  def __eq__(self, other):
1966
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
1967
 
1968
  def __ne__(self, other):
1969
    return not (self == other)
1970
 
1971
class updateAdwordsAdKeyword_result:
1972
  """
1973
  Attributes:
1974
   - gasex
1975
  """
1976
 
1977
  thrift_spec = (
1978
    None, # 0
1979
    (1, TType.STRUCT, 'gasex', (GoogleAdwordsServiceException, GoogleAdwordsServiceException.thrift_spec), None, ), # 1
1980
  )
1981
 
1982
  def __init__(self, gasex=None,):
1983
    self.gasex = gasex
1984
 
1985
  def read(self, iprot):
1986
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
1987
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
1988
      return
1989
    iprot.readStructBegin()
1990
    while True:
1991
      (fname, ftype, fid) = iprot.readFieldBegin()
1992
      if ftype == TType.STOP:
1993
        break
1994
      if fid == 1:
1995
        if ftype == TType.STRUCT:
1996
          self.gasex = GoogleAdwordsServiceException()
1997
          self.gasex.read(iprot)
1998
        else:
1999
          iprot.skip(ftype)
2000
      else:
2001
        iprot.skip(ftype)
2002
      iprot.readFieldEnd()
2003
    iprot.readStructEnd()
2004
 
2005
  def write(self, oprot):
2006
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2007
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2008
      return
2009
    oprot.writeStructBegin('updateAdwordsAdKeyword_result')
2010
    if self.gasex is not None:
2011
      oprot.writeFieldBegin('gasex', TType.STRUCT, 1)
2012
      self.gasex.write(oprot)
2013
      oprot.writeFieldEnd()
2014
    oprot.writeFieldStop()
2015
    oprot.writeStructEnd()
2016
 
2017
  def validate(self):
2018
    return
2019
 
2020
 
2021
  def __repr__(self):
2022
    L = ['%s=%r' % (key, value)
2023
      for key, value in self.__dict__.iteritems()]
2024
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
2025
 
2026
  def __eq__(self, other):
2027
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
2028
 
2029
  def __ne__(self, other):
2030
    return not (self == other)
2031
 
2032
class deleteAdwordsCampaign_args:
2033
  """
2034
  Attributes:
2035
   - campaignId
2036
  """
2037
 
2038
  thrift_spec = (
2039
    None, # 0
2040
    (1, TType.I64, 'campaignId', None, None, ), # 1
2041
  )
2042
 
2043
  def __init__(self, campaignId=None,):
2044
    self.campaignId = campaignId
2045
 
2046
  def read(self, iprot):
2047
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
2048
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
2049
      return
2050
    iprot.readStructBegin()
2051
    while True:
2052
      (fname, ftype, fid) = iprot.readFieldBegin()
2053
      if ftype == TType.STOP:
2054
        break
2055
      if fid == 1:
2056
        if ftype == TType.I64:
2057
          self.campaignId = iprot.readI64();
2058
        else:
2059
          iprot.skip(ftype)
2060
      else:
2061
        iprot.skip(ftype)
2062
      iprot.readFieldEnd()
2063
    iprot.readStructEnd()
2064
 
2065
  def write(self, oprot):
2066
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2067
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2068
      return
2069
    oprot.writeStructBegin('deleteAdwordsCampaign_args')
2070
    if self.campaignId is not None:
2071
      oprot.writeFieldBegin('campaignId', TType.I64, 1)
2072
      oprot.writeI64(self.campaignId)
2073
      oprot.writeFieldEnd()
2074
    oprot.writeFieldStop()
2075
    oprot.writeStructEnd()
2076
 
2077
  def validate(self):
2078
    return
2079
 
2080
 
2081
  def __repr__(self):
2082
    L = ['%s=%r' % (key, value)
2083
      for key, value in self.__dict__.iteritems()]
2084
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
2085
 
2086
  def __eq__(self, other):
2087
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
2088
 
2089
  def __ne__(self, other):
2090
    return not (self == other)
2091
 
2092
class deleteAdwordsCampaign_result:
2093
  """
2094
  Attributes:
2095
   - gasex
2096
  """
2097
 
2098
  thrift_spec = (
2099
    None, # 0
2100
    (1, TType.STRUCT, 'gasex', (GoogleAdwordsServiceException, GoogleAdwordsServiceException.thrift_spec), None, ), # 1
2101
  )
2102
 
2103
  def __init__(self, gasex=None,):
2104
    self.gasex = gasex
2105
 
2106
  def read(self, iprot):
2107
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
2108
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
2109
      return
2110
    iprot.readStructBegin()
2111
    while True:
2112
      (fname, ftype, fid) = iprot.readFieldBegin()
2113
      if ftype == TType.STOP:
2114
        break
2115
      if fid == 1:
2116
        if ftype == TType.STRUCT:
2117
          self.gasex = GoogleAdwordsServiceException()
2118
          self.gasex.read(iprot)
2119
        else:
2120
          iprot.skip(ftype)
2121
      else:
2122
        iprot.skip(ftype)
2123
      iprot.readFieldEnd()
2124
    iprot.readStructEnd()
2125
 
2126
  def write(self, oprot):
2127
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2128
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2129
      return
2130
    oprot.writeStructBegin('deleteAdwordsCampaign_result')
2131
    if self.gasex is not None:
2132
      oprot.writeFieldBegin('gasex', TType.STRUCT, 1)
2133
      self.gasex.write(oprot)
2134
      oprot.writeFieldEnd()
2135
    oprot.writeFieldStop()
2136
    oprot.writeStructEnd()
2137
 
2138
  def validate(self):
2139
    return
2140
 
2141
 
2142
  def __repr__(self):
2143
    L = ['%s=%r' % (key, value)
2144
      for key, value in self.__dict__.iteritems()]
2145
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
2146
 
2147
  def __eq__(self, other):
2148
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
2149
 
2150
  def __ne__(self, other):
2151
    return not (self == other)
2152
 
2153
class deleteAdwordsAdGroup_args:
2154
  """
2155
  Attributes:
2156
   - adgroupId
2157
  """
2158
 
2159
  thrift_spec = (
2160
    None, # 0
2161
    (1, TType.I64, 'adgroupId', None, None, ), # 1
2162
  )
2163
 
2164
  def __init__(self, adgroupId=None,):
2165
    self.adgroupId = adgroupId
2166
 
2167
  def read(self, iprot):
2168
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
2169
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
2170
      return
2171
    iprot.readStructBegin()
2172
    while True:
2173
      (fname, ftype, fid) = iprot.readFieldBegin()
2174
      if ftype == TType.STOP:
2175
        break
2176
      if fid == 1:
2177
        if ftype == TType.I64:
2178
          self.adgroupId = iprot.readI64();
2179
        else:
2180
          iprot.skip(ftype)
2181
      else:
2182
        iprot.skip(ftype)
2183
      iprot.readFieldEnd()
2184
    iprot.readStructEnd()
2185
 
2186
  def write(self, oprot):
2187
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2188
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2189
      return
2190
    oprot.writeStructBegin('deleteAdwordsAdGroup_args')
2191
    if self.adgroupId is not None:
2192
      oprot.writeFieldBegin('adgroupId', TType.I64, 1)
2193
      oprot.writeI64(self.adgroupId)
2194
      oprot.writeFieldEnd()
2195
    oprot.writeFieldStop()
2196
    oprot.writeStructEnd()
2197
 
2198
  def validate(self):
2199
    return
2200
 
2201
 
2202
  def __repr__(self):
2203
    L = ['%s=%r' % (key, value)
2204
      for key, value in self.__dict__.iteritems()]
2205
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
2206
 
2207
  def __eq__(self, other):
2208
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
2209
 
2210
  def __ne__(self, other):
2211
    return not (self == other)
2212
 
2213
class deleteAdwordsAdGroup_result:
2214
  """
2215
  Attributes:
2216
   - gasex
2217
  """
2218
 
2219
  thrift_spec = (
2220
    None, # 0
2221
    (1, TType.STRUCT, 'gasex', (GoogleAdwordsServiceException, GoogleAdwordsServiceException.thrift_spec), None, ), # 1
2222
  )
2223
 
2224
  def __init__(self, gasex=None,):
2225
    self.gasex = gasex
2226
 
2227
  def read(self, iprot):
2228
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
2229
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
2230
      return
2231
    iprot.readStructBegin()
2232
    while True:
2233
      (fname, ftype, fid) = iprot.readFieldBegin()
2234
      if ftype == TType.STOP:
2235
        break
2236
      if fid == 1:
2237
        if ftype == TType.STRUCT:
2238
          self.gasex = GoogleAdwordsServiceException()
2239
          self.gasex.read(iprot)
2240
        else:
2241
          iprot.skip(ftype)
2242
      else:
2243
        iprot.skip(ftype)
2244
      iprot.readFieldEnd()
2245
    iprot.readStructEnd()
2246
 
2247
  def write(self, oprot):
2248
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2249
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2250
      return
2251
    oprot.writeStructBegin('deleteAdwordsAdGroup_result')
2252
    if self.gasex is not None:
2253
      oprot.writeFieldBegin('gasex', TType.STRUCT, 1)
2254
      self.gasex.write(oprot)
2255
      oprot.writeFieldEnd()
2256
    oprot.writeFieldStop()
2257
    oprot.writeStructEnd()
2258
 
2259
  def validate(self):
2260
    return
2261
 
2262
 
2263
  def __repr__(self):
2264
    L = ['%s=%r' % (key, value)
2265
      for key, value in self.__dict__.iteritems()]
2266
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
2267
 
2268
  def __eq__(self, other):
2269
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
2270
 
2271
  def __ne__(self, other):
2272
    return not (self == other)
2273
 
2274
class deleteAdwordsAdGroupAd_args:
2275
  """
2276
  Attributes:
2277
   - adgroupadId
2278
  """
2279
 
2280
  thrift_spec = (
2281
    None, # 0
2282
    (1, TType.I64, 'adgroupadId', None, None, ), # 1
2283
  )
2284
 
2285
  def __init__(self, adgroupadId=None,):
2286
    self.adgroupadId = adgroupadId
2287
 
2288
  def read(self, iprot):
2289
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
2290
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
2291
      return
2292
    iprot.readStructBegin()
2293
    while True:
2294
      (fname, ftype, fid) = iprot.readFieldBegin()
2295
      if ftype == TType.STOP:
2296
        break
2297
      if fid == 1:
2298
        if ftype == TType.I64:
2299
          self.adgroupadId = iprot.readI64();
2300
        else:
2301
          iprot.skip(ftype)
2302
      else:
2303
        iprot.skip(ftype)
2304
      iprot.readFieldEnd()
2305
    iprot.readStructEnd()
2306
 
2307
  def write(self, oprot):
2308
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2309
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2310
      return
2311
    oprot.writeStructBegin('deleteAdwordsAdGroupAd_args')
2312
    if self.adgroupadId is not None:
2313
      oprot.writeFieldBegin('adgroupadId', TType.I64, 1)
2314
      oprot.writeI64(self.adgroupadId)
2315
      oprot.writeFieldEnd()
2316
    oprot.writeFieldStop()
2317
    oprot.writeStructEnd()
2318
 
2319
  def validate(self):
2320
    return
2321
 
2322
 
2323
  def __repr__(self):
2324
    L = ['%s=%r' % (key, value)
2325
      for key, value in self.__dict__.iteritems()]
2326
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
2327
 
2328
  def __eq__(self, other):
2329
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
2330
 
2331
  def __ne__(self, other):
2332
    return not (self == other)
2333
 
2334
class deleteAdwordsAdGroupAd_result:
2335
  """
2336
  Attributes:
2337
   - gasex
2338
  """
2339
 
2340
  thrift_spec = (
2341
    None, # 0
2342
    (1, TType.STRUCT, 'gasex', (GoogleAdwordsServiceException, GoogleAdwordsServiceException.thrift_spec), None, ), # 1
2343
  )
2344
 
2345
  def __init__(self, gasex=None,):
2346
    self.gasex = gasex
2347
 
2348
  def read(self, iprot):
2349
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
2350
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
2351
      return
2352
    iprot.readStructBegin()
2353
    while True:
2354
      (fname, ftype, fid) = iprot.readFieldBegin()
2355
      if ftype == TType.STOP:
2356
        break
2357
      if fid == 1:
2358
        if ftype == TType.STRUCT:
2359
          self.gasex = GoogleAdwordsServiceException()
2360
          self.gasex.read(iprot)
2361
        else:
2362
          iprot.skip(ftype)
2363
      else:
2364
        iprot.skip(ftype)
2365
      iprot.readFieldEnd()
2366
    iprot.readStructEnd()
2367
 
2368
  def write(self, oprot):
2369
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2370
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2371
      return
2372
    oprot.writeStructBegin('deleteAdwordsAdGroupAd_result')
2373
    if self.gasex is not None:
2374
      oprot.writeFieldBegin('gasex', TType.STRUCT, 1)
2375
      self.gasex.write(oprot)
2376
      oprot.writeFieldEnd()
2377
    oprot.writeFieldStop()
2378
    oprot.writeStructEnd()
2379
 
2380
  def validate(self):
2381
    return
2382
 
2383
 
2384
  def __repr__(self):
2385
    L = ['%s=%r' % (key, value)
2386
      for key, value in self.__dict__.iteritems()]
2387
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
2388
 
2389
  def __eq__(self, other):
2390
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
2391
 
2392
  def __ne__(self, other):
2393
    return not (self == other)
2394
 
2395
class deleteAdwordsAdKeyword_args:
2396
  """
2397
  Attributes:
2398
   - criterionId
2399
  """
2400
 
2401
  thrift_spec = (
2402
    None, # 0
2403
    (1, TType.I64, 'criterionId', None, None, ), # 1
2404
  )
2405
 
2406
  def __init__(self, criterionId=None,):
2407
    self.criterionId = criterionId
2408
 
2409
  def read(self, iprot):
2410
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
2411
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
2412
      return
2413
    iprot.readStructBegin()
2414
    while True:
2415
      (fname, ftype, fid) = iprot.readFieldBegin()
2416
      if ftype == TType.STOP:
2417
        break
2418
      if fid == 1:
2419
        if ftype == TType.I64:
2420
          self.criterionId = iprot.readI64();
2421
        else:
2422
          iprot.skip(ftype)
2423
      else:
2424
        iprot.skip(ftype)
2425
      iprot.readFieldEnd()
2426
    iprot.readStructEnd()
2427
 
2428
  def write(self, oprot):
2429
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2430
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2431
      return
2432
    oprot.writeStructBegin('deleteAdwordsAdKeyword_args')
2433
    if self.criterionId is not None:
2434
      oprot.writeFieldBegin('criterionId', TType.I64, 1)
2435
      oprot.writeI64(self.criterionId)
2436
      oprot.writeFieldEnd()
2437
    oprot.writeFieldStop()
2438
    oprot.writeStructEnd()
2439
 
2440
  def validate(self):
2441
    return
2442
 
2443
 
2444
  def __repr__(self):
2445
    L = ['%s=%r' % (key, value)
2446
      for key, value in self.__dict__.iteritems()]
2447
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
2448
 
2449
  def __eq__(self, other):
2450
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
2451
 
2452
  def __ne__(self, other):
2453
    return not (self == other)
2454
 
2455
class deleteAdwordsAdKeyword_result:
2456
  """
2457
  Attributes:
2458
   - gasex
2459
  """
2460
 
2461
  thrift_spec = (
2462
    None, # 0
2463
    (1, TType.STRUCT, 'gasex', (GoogleAdwordsServiceException, GoogleAdwordsServiceException.thrift_spec), None, ), # 1
2464
  )
2465
 
2466
  def __init__(self, gasex=None,):
2467
    self.gasex = gasex
2468
 
2469
  def read(self, iprot):
2470
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
2471
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
2472
      return
2473
    iprot.readStructBegin()
2474
    while True:
2475
      (fname, ftype, fid) = iprot.readFieldBegin()
2476
      if ftype == TType.STOP:
2477
        break
2478
      if fid == 1:
2479
        if ftype == TType.STRUCT:
2480
          self.gasex = GoogleAdwordsServiceException()
2481
          self.gasex.read(iprot)
2482
        else:
2483
          iprot.skip(ftype)
2484
      else:
2485
        iprot.skip(ftype)
2486
      iprot.readFieldEnd()
2487
    iprot.readStructEnd()
2488
 
2489
  def write(self, oprot):
2490
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2491
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2492
      return
2493
    oprot.writeStructBegin('deleteAdwordsAdKeyword_result')
2494
    if self.gasex is not None:
2495
      oprot.writeFieldBegin('gasex', TType.STRUCT, 1)
2496
      self.gasex.write(oprot)
2497
      oprot.writeFieldEnd()
2498
    oprot.writeFieldStop()
2499
    oprot.writeStructEnd()
2500
 
2501
  def validate(self):
2502
    return
2503
 
2504
 
2505
  def __repr__(self):
2506
    L = ['%s=%r' % (key, value)
2507
      for key, value in self.__dict__.iteritems()]
2508
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
2509
 
2510
  def __eq__(self, other):
2511
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
2512
 
2513
  def __ne__(self, other):
2514
    return not (self == other)
2515
 
2516
class getAdwordsCampaignByCampaignId_args:
2517
  """
2518
  Attributes:
2519
   - campaignId
2520
  """
2521
 
2522
  thrift_spec = (
2523
    None, # 0
2524
    (1, TType.I64, 'campaignId', None, None, ), # 1
2525
  )
2526
 
2527
  def __init__(self, campaignId=None,):
2528
    self.campaignId = campaignId
2529
 
2530
  def read(self, iprot):
2531
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
2532
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
2533
      return
2534
    iprot.readStructBegin()
2535
    while True:
2536
      (fname, ftype, fid) = iprot.readFieldBegin()
2537
      if ftype == TType.STOP:
2538
        break
2539
      if fid == 1:
2540
        if ftype == TType.I64:
2541
          self.campaignId = iprot.readI64();
2542
        else:
2543
          iprot.skip(ftype)
2544
      else:
2545
        iprot.skip(ftype)
2546
      iprot.readFieldEnd()
2547
    iprot.readStructEnd()
2548
 
2549
  def write(self, oprot):
2550
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2551
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2552
      return
2553
    oprot.writeStructBegin('getAdwordsCampaignByCampaignId_args')
2554
    if self.campaignId is not None:
2555
      oprot.writeFieldBegin('campaignId', TType.I64, 1)
2556
      oprot.writeI64(self.campaignId)
2557
      oprot.writeFieldEnd()
2558
    oprot.writeFieldStop()
2559
    oprot.writeStructEnd()
2560
 
2561
  def validate(self):
2562
    return
2563
 
2564
 
2565
  def __repr__(self):
2566
    L = ['%s=%r' % (key, value)
2567
      for key, value in self.__dict__.iteritems()]
2568
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
2569
 
2570
  def __eq__(self, other):
2571
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
2572
 
2573
  def __ne__(self, other):
2574
    return not (self == other)
2575
 
2576
class getAdwordsCampaignByCampaignId_result:
2577
  """
2578
  Attributes:
2579
   - success
2580
   - gasex
2581
  """
2582
 
2583
  thrift_spec = (
2584
    (0, TType.STRUCT, 'success', (AdwordsCampaign, AdwordsCampaign.thrift_spec), None, ), # 0
2585
    (1, TType.STRUCT, 'gasex', (GoogleAdwordsServiceException, GoogleAdwordsServiceException.thrift_spec), None, ), # 1
2586
  )
2587
 
2588
  def __init__(self, success=None, gasex=None,):
2589
    self.success = success
2590
    self.gasex = gasex
2591
 
2592
  def read(self, iprot):
2593
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
2594
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
2595
      return
2596
    iprot.readStructBegin()
2597
    while True:
2598
      (fname, ftype, fid) = iprot.readFieldBegin()
2599
      if ftype == TType.STOP:
2600
        break
2601
      if fid == 0:
2602
        if ftype == TType.STRUCT:
2603
          self.success = AdwordsCampaign()
2604
          self.success.read(iprot)
2605
        else:
2606
          iprot.skip(ftype)
2607
      elif fid == 1:
2608
        if ftype == TType.STRUCT:
2609
          self.gasex = GoogleAdwordsServiceException()
2610
          self.gasex.read(iprot)
2611
        else:
2612
          iprot.skip(ftype)
2613
      else:
2614
        iprot.skip(ftype)
2615
      iprot.readFieldEnd()
2616
    iprot.readStructEnd()
2617
 
2618
  def write(self, oprot):
2619
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2620
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2621
      return
2622
    oprot.writeStructBegin('getAdwordsCampaignByCampaignId_result')
2623
    if self.success is not None:
2624
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
2625
      self.success.write(oprot)
2626
      oprot.writeFieldEnd()
2627
    if self.gasex is not None:
2628
      oprot.writeFieldBegin('gasex', TType.STRUCT, 1)
2629
      self.gasex.write(oprot)
2630
      oprot.writeFieldEnd()
2631
    oprot.writeFieldStop()
2632
    oprot.writeStructEnd()
2633
 
2634
  def validate(self):
2635
    return
2636
 
2637
 
2638
  def __repr__(self):
2639
    L = ['%s=%r' % (key, value)
2640
      for key, value in self.__dict__.iteritems()]
2641
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
2642
 
2643
  def __eq__(self, other):
2644
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
2645
 
2646
  def __ne__(self, other):
2647
    return not (self == other)
2648
 
2649
class getAdwordsAdGroupByAdGroupId_args:
2650
  """
2651
  Attributes:
2652
   - adgroupId
2653
  """
2654
 
2655
  thrift_spec = (
2656
    None, # 0
2657
    (1, TType.I64, 'adgroupId', None, None, ), # 1
2658
  )
2659
 
2660
  def __init__(self, adgroupId=None,):
2661
    self.adgroupId = adgroupId
2662
 
2663
  def read(self, iprot):
2664
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
2665
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
2666
      return
2667
    iprot.readStructBegin()
2668
    while True:
2669
      (fname, ftype, fid) = iprot.readFieldBegin()
2670
      if ftype == TType.STOP:
2671
        break
2672
      if fid == 1:
2673
        if ftype == TType.I64:
2674
          self.adgroupId = iprot.readI64();
2675
        else:
2676
          iprot.skip(ftype)
2677
      else:
2678
        iprot.skip(ftype)
2679
      iprot.readFieldEnd()
2680
    iprot.readStructEnd()
2681
 
2682
  def write(self, oprot):
2683
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2684
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2685
      return
2686
    oprot.writeStructBegin('getAdwordsAdGroupByAdGroupId_args')
2687
    if self.adgroupId is not None:
2688
      oprot.writeFieldBegin('adgroupId', TType.I64, 1)
2689
      oprot.writeI64(self.adgroupId)
2690
      oprot.writeFieldEnd()
2691
    oprot.writeFieldStop()
2692
    oprot.writeStructEnd()
2693
 
2694
  def validate(self):
2695
    return
2696
 
2697
 
2698
  def __repr__(self):
2699
    L = ['%s=%r' % (key, value)
2700
      for key, value in self.__dict__.iteritems()]
2701
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
2702
 
2703
  def __eq__(self, other):
2704
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
2705
 
2706
  def __ne__(self, other):
2707
    return not (self == other)
2708
 
2709
class getAdwordsAdGroupByAdGroupId_result:
2710
  """
2711
  Attributes:
2712
   - success
2713
   - gasex
2714
  """
2715
 
2716
  thrift_spec = (
2717
    (0, TType.STRUCT, 'success', (AdwordsAdGroup, AdwordsAdGroup.thrift_spec), None, ), # 0
2718
    (1, TType.STRUCT, 'gasex', (GoogleAdwordsServiceException, GoogleAdwordsServiceException.thrift_spec), None, ), # 1
2719
  )
2720
 
2721
  def __init__(self, success=None, gasex=None,):
2722
    self.success = success
2723
    self.gasex = gasex
2724
 
2725
  def read(self, iprot):
2726
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
2727
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
2728
      return
2729
    iprot.readStructBegin()
2730
    while True:
2731
      (fname, ftype, fid) = iprot.readFieldBegin()
2732
      if ftype == TType.STOP:
2733
        break
2734
      if fid == 0:
2735
        if ftype == TType.STRUCT:
2736
          self.success = AdwordsAdGroup()
2737
          self.success.read(iprot)
2738
        else:
2739
          iprot.skip(ftype)
2740
      elif fid == 1:
2741
        if ftype == TType.STRUCT:
2742
          self.gasex = GoogleAdwordsServiceException()
2743
          self.gasex.read(iprot)
2744
        else:
2745
          iprot.skip(ftype)
2746
      else:
2747
        iprot.skip(ftype)
2748
      iprot.readFieldEnd()
2749
    iprot.readStructEnd()
2750
 
2751
  def write(self, oprot):
2752
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2753
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2754
      return
2755
    oprot.writeStructBegin('getAdwordsAdGroupByAdGroupId_result')
2756
    if self.success is not None:
2757
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
2758
      self.success.write(oprot)
2759
      oprot.writeFieldEnd()
2760
    if self.gasex is not None:
2761
      oprot.writeFieldBegin('gasex', TType.STRUCT, 1)
2762
      self.gasex.write(oprot)
2763
      oprot.writeFieldEnd()
2764
    oprot.writeFieldStop()
2765
    oprot.writeStructEnd()
2766
 
2767
  def validate(self):
2768
    return
2769
 
2770
 
2771
  def __repr__(self):
2772
    L = ['%s=%r' % (key, value)
2773
      for key, value in self.__dict__.iteritems()]
2774
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
2775
 
2776
  def __eq__(self, other):
2777
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
2778
 
2779
  def __ne__(self, other):
2780
    return not (self == other)
2781
 
2782
class getAdwordsAdgroupAdByAdId_args:
2783
  """
2784
  Attributes:
2785
   - adgroupadId
2786
  """
2787
 
2788
  thrift_spec = (
2789
    None, # 0
2790
    (1, TType.I64, 'adgroupadId', None, None, ), # 1
2791
  )
2792
 
2793
  def __init__(self, adgroupadId=None,):
2794
    self.adgroupadId = adgroupadId
2795
 
2796
  def read(self, iprot):
2797
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
2798
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
2799
      return
2800
    iprot.readStructBegin()
2801
    while True:
2802
      (fname, ftype, fid) = iprot.readFieldBegin()
2803
      if ftype == TType.STOP:
2804
        break
2805
      if fid == 1:
2806
        if ftype == TType.I64:
2807
          self.adgroupadId = iprot.readI64();
2808
        else:
2809
          iprot.skip(ftype)
2810
      else:
2811
        iprot.skip(ftype)
2812
      iprot.readFieldEnd()
2813
    iprot.readStructEnd()
2814
 
2815
  def write(self, oprot):
2816
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2817
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2818
      return
2819
    oprot.writeStructBegin('getAdwordsAdgroupAdByAdId_args')
2820
    if self.adgroupadId is not None:
2821
      oprot.writeFieldBegin('adgroupadId', TType.I64, 1)
2822
      oprot.writeI64(self.adgroupadId)
2823
      oprot.writeFieldEnd()
2824
    oprot.writeFieldStop()
2825
    oprot.writeStructEnd()
2826
 
2827
  def validate(self):
2828
    return
2829
 
2830
 
2831
  def __repr__(self):
2832
    L = ['%s=%r' % (key, value)
2833
      for key, value in self.__dict__.iteritems()]
2834
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
2835
 
2836
  def __eq__(self, other):
2837
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
2838
 
2839
  def __ne__(self, other):
2840
    return not (self == other)
2841
 
2842
class getAdwordsAdgroupAdByAdId_result:
2843
  """
2844
  Attributes:
2845
   - success
2846
   - gasex
2847
  """
2848
 
2849
  thrift_spec = (
2850
    (0, TType.STRUCT, 'success', (AdwordsAdGroupAd, AdwordsAdGroupAd.thrift_spec), None, ), # 0
2851
    (1, TType.STRUCT, 'gasex', (GoogleAdwordsServiceException, GoogleAdwordsServiceException.thrift_spec), None, ), # 1
2852
  )
2853
 
2854
  def __init__(self, success=None, gasex=None,):
2855
    self.success = success
2856
    self.gasex = gasex
2857
 
2858
  def read(self, iprot):
2859
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
2860
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
2861
      return
2862
    iprot.readStructBegin()
2863
    while True:
2864
      (fname, ftype, fid) = iprot.readFieldBegin()
2865
      if ftype == TType.STOP:
2866
        break
2867
      if fid == 0:
2868
        if ftype == TType.STRUCT:
2869
          self.success = AdwordsAdGroupAd()
2870
          self.success.read(iprot)
2871
        else:
2872
          iprot.skip(ftype)
2873
      elif fid == 1:
2874
        if ftype == TType.STRUCT:
2875
          self.gasex = GoogleAdwordsServiceException()
2876
          self.gasex.read(iprot)
2877
        else:
2878
          iprot.skip(ftype)
2879
      else:
2880
        iprot.skip(ftype)
2881
      iprot.readFieldEnd()
2882
    iprot.readStructEnd()
2883
 
2884
  def write(self, oprot):
2885
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2886
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2887
      return
2888
    oprot.writeStructBegin('getAdwordsAdgroupAdByAdId_result')
2889
    if self.success is not None:
2890
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
2891
      self.success.write(oprot)
2892
      oprot.writeFieldEnd()
2893
    if self.gasex is not None:
2894
      oprot.writeFieldBegin('gasex', TType.STRUCT, 1)
2895
      self.gasex.write(oprot)
2896
      oprot.writeFieldEnd()
2897
    oprot.writeFieldStop()
2898
    oprot.writeStructEnd()
2899
 
2900
  def validate(self):
2901
    return
2902
 
2903
 
2904
  def __repr__(self):
2905
    L = ['%s=%r' % (key, value)
2906
      for key, value in self.__dict__.iteritems()]
2907
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
2908
 
2909
  def __eq__(self, other):
2910
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
2911
 
2912
  def __ne__(self, other):
2913
    return not (self == other)
2914
 
2915
class getAdwordsAdKeywordByCriterionId_args:
2916
  """
2917
  Attributes:
2918
   - criterionId
2919
  """
2920
 
2921
  thrift_spec = (
2922
    None, # 0
2923
    (1, TType.I64, 'criterionId', None, None, ), # 1
2924
  )
2925
 
2926
  def __init__(self, criterionId=None,):
2927
    self.criterionId = criterionId
2928
 
2929
  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:
2931
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
2932
      return
2933
    iprot.readStructBegin()
2934
    while True:
2935
      (fname, ftype, fid) = iprot.readFieldBegin()
2936
      if ftype == TType.STOP:
2937
        break
2938
      if fid == 1:
2939
        if ftype == TType.I64:
2940
          self.criterionId = iprot.readI64();
2941
        else:
2942
          iprot.skip(ftype)
2943
      else:
2944
        iprot.skip(ftype)
2945
      iprot.readFieldEnd()
2946
    iprot.readStructEnd()
2947
 
2948
  def write(self, oprot):
2949
    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)))
2951
      return
2952
    oprot.writeStructBegin('getAdwordsAdKeywordByCriterionId_args')
2953
    if self.criterionId is not None:
2954
      oprot.writeFieldBegin('criterionId', TType.I64, 1)
2955
      oprot.writeI64(self.criterionId)
2956
      oprot.writeFieldEnd()
2957
    oprot.writeFieldStop()
2958
    oprot.writeStructEnd()
2959
 
2960
  def validate(self):
2961
    return
2962
 
2963
 
2964
  def __repr__(self):
2965
    L = ['%s=%r' % (key, value)
2966
      for key, value in self.__dict__.iteritems()]
2967
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
2968
 
2969
  def __eq__(self, other):
2970
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
2971
 
2972
  def __ne__(self, other):
2973
    return not (self == other)
2974
 
2975
class getAdwordsAdKeywordByCriterionId_result:
2976
  """
2977
  Attributes:
2978
   - success
2979
   - gasex
2980
  """
2981
 
2982
  thrift_spec = (
2983
    (0, TType.STRUCT, 'success', (AdwordsAdKeyword, AdwordsAdKeyword.thrift_spec), None, ), # 0
2984
    (1, TType.STRUCT, 'gasex', (GoogleAdwordsServiceException, GoogleAdwordsServiceException.thrift_spec), None, ), # 1
2985
  )
2986
 
2987
  def __init__(self, success=None, gasex=None,):
2988
    self.success = success
2989
    self.gasex = gasex
2990
 
2991
  def read(self, iprot):
2992
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
2993
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
2994
      return
2995
    iprot.readStructBegin()
2996
    while True:
2997
      (fname, ftype, fid) = iprot.readFieldBegin()
2998
      if ftype == TType.STOP:
2999
        break
3000
      if fid == 0:
3001
        if ftype == TType.STRUCT:
3002
          self.success = AdwordsAdKeyword()
3003
          self.success.read(iprot)
3004
        else:
3005
          iprot.skip(ftype)
3006
      elif fid == 1:
3007
        if ftype == TType.STRUCT:
3008
          self.gasex = GoogleAdwordsServiceException()
3009
          self.gasex.read(iprot)
3010
        else:
3011
          iprot.skip(ftype)
3012
      else:
3013
        iprot.skip(ftype)
3014
      iprot.readFieldEnd()
3015
    iprot.readStructEnd()
3016
 
3017
  def write(self, oprot):
3018
    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)))
3020
      return
3021
    oprot.writeStructBegin('getAdwordsAdKeywordByCriterionId_result')
3022
    if self.success is not None:
3023
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
3024
      self.success.write(oprot)
3025
      oprot.writeFieldEnd()
3026
    if self.gasex is not None:
3027
      oprot.writeFieldBegin('gasex', TType.STRUCT, 1)
3028
      self.gasex.write(oprot)
3029
      oprot.writeFieldEnd()
3030
    oprot.writeFieldStop()
3031
    oprot.writeStructEnd()
3032
 
3033
  def validate(self):
3034
    return
3035
 
3036
 
3037
  def __repr__(self):
3038
    L = ['%s=%r' % (key, value)
3039
      for key, value in self.__dict__.iteritems()]
3040
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3041
 
3042
  def __eq__(self, other):
3043
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3044
 
3045
  def __ne__(self, other):
3046
    return not (self == other)
3047
 
3048
class getAdwordsAdKeywordsByAdgroupId_args:
3049
  """
3050
  Attributes:
3051
   - adgroupId
3052
  """
3053
 
3054
  thrift_spec = (
3055
    None, # 0
3056
    (1, TType.I64, 'adgroupId', None, None, ), # 1
3057
  )
3058
 
3059
  def __init__(self, adgroupId=None,):
3060
    self.adgroupId = adgroupId
3061
 
3062
  def read(self, iprot):
3063
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
3064
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
3065
      return
3066
    iprot.readStructBegin()
3067
    while True:
3068
      (fname, ftype, fid) = iprot.readFieldBegin()
3069
      if ftype == TType.STOP:
3070
        break
3071
      if fid == 1:
3072
        if ftype == TType.I64:
3073
          self.adgroupId = iprot.readI64();
3074
        else:
3075
          iprot.skip(ftype)
3076
      else:
3077
        iprot.skip(ftype)
3078
      iprot.readFieldEnd()
3079
    iprot.readStructEnd()
3080
 
3081
  def write(self, oprot):
3082
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3083
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3084
      return
3085
    oprot.writeStructBegin('getAdwordsAdKeywordsByAdgroupId_args')
3086
    if self.adgroupId is not None:
3087
      oprot.writeFieldBegin('adgroupId', TType.I64, 1)
3088
      oprot.writeI64(self.adgroupId)
3089
      oprot.writeFieldEnd()
3090
    oprot.writeFieldStop()
3091
    oprot.writeStructEnd()
3092
 
3093
  def validate(self):
3094
    return
3095
 
3096
 
3097
  def __repr__(self):
3098
    L = ['%s=%r' % (key, value)
3099
      for key, value in self.__dict__.iteritems()]
3100
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3101
 
3102
  def __eq__(self, other):
3103
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3104
 
3105
  def __ne__(self, other):
3106
    return not (self == other)
3107
 
3108
class getAdwordsAdKeywordsByAdgroupId_result:
3109
  """
3110
  Attributes:
3111
   - success
3112
   - gasex
3113
  """
3114
 
3115
  thrift_spec = (
3116
    (0, TType.LIST, 'success', (TType.STRUCT,(AdwordsAdKeyword, AdwordsAdKeyword.thrift_spec)), None, ), # 0
3117
    (1, TType.STRUCT, 'gasex', (GoogleAdwordsServiceException, GoogleAdwordsServiceException.thrift_spec), None, ), # 1
3118
  )
3119
 
3120
  def __init__(self, success=None, gasex=None,):
3121
    self.success = success
3122
    self.gasex = gasex
3123
 
3124
  def read(self, iprot):
3125
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
3126
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
3127
      return
3128
    iprot.readStructBegin()
3129
    while True:
3130
      (fname, ftype, fid) = iprot.readFieldBegin()
3131
      if ftype == TType.STOP:
3132
        break
3133
      if fid == 0:
3134
        if ftype == TType.LIST:
3135
          self.success = []
3136
          (_etype3, _size0) = iprot.readListBegin()
3137
          for _i4 in xrange(_size0):
3138
            _elem5 = AdwordsAdKeyword()
3139
            _elem5.read(iprot)
3140
            self.success.append(_elem5)
3141
          iprot.readListEnd()
3142
        else:
3143
          iprot.skip(ftype)
3144
      elif fid == 1:
3145
        if ftype == TType.STRUCT:
3146
          self.gasex = GoogleAdwordsServiceException()
3147
          self.gasex.read(iprot)
3148
        else:
3149
          iprot.skip(ftype)
3150
      else:
3151
        iprot.skip(ftype)
3152
      iprot.readFieldEnd()
3153
    iprot.readStructEnd()
3154
 
3155
  def write(self, oprot):
3156
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3157
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3158
      return
3159
    oprot.writeStructBegin('getAdwordsAdKeywordsByAdgroupId_result')
3160
    if self.success is not None:
3161
      oprot.writeFieldBegin('success', TType.LIST, 0)
3162
      oprot.writeListBegin(TType.STRUCT, len(self.success))
3163
      for iter6 in self.success:
3164
        iter6.write(oprot)
3165
      oprot.writeListEnd()
3166
      oprot.writeFieldEnd()
3167
    if self.gasex is not None:
3168
      oprot.writeFieldBegin('gasex', TType.STRUCT, 1)
3169
      self.gasex.write(oprot)
3170
      oprot.writeFieldEnd()
3171
    oprot.writeFieldStop()
3172
    oprot.writeStructEnd()
3173
 
3174
  def validate(self):
3175
    return
3176
 
3177
 
3178
  def __repr__(self):
3179
    L = ['%s=%r' % (key, value)
3180
      for key, value in self.__dict__.iteritems()]
3181
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3182
 
3183
  def __eq__(self, other):
3184
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3185
 
3186
  def __ne__(self, other):
3187
    return not (self == other)
3188
 
3189
class getAdwordsAdGroupAdsByAdgroupId_args:
3190
  """
3191
  Attributes:
3192
   - adgroupId
3193
  """
3194
 
3195
  thrift_spec = (
3196
    None, # 0
3197
    (1, TType.I64, 'adgroupId', None, None, ), # 1
3198
  )
3199
 
3200
  def __init__(self, adgroupId=None,):
3201
    self.adgroupId = adgroupId
3202
 
3203
  def read(self, iprot):
3204
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
3205
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
3206
      return
3207
    iprot.readStructBegin()
3208
    while True:
3209
      (fname, ftype, fid) = iprot.readFieldBegin()
3210
      if ftype == TType.STOP:
3211
        break
3212
      if fid == 1:
3213
        if ftype == TType.I64:
3214
          self.adgroupId = iprot.readI64();
3215
        else:
3216
          iprot.skip(ftype)
3217
      else:
3218
        iprot.skip(ftype)
3219
      iprot.readFieldEnd()
3220
    iprot.readStructEnd()
3221
 
3222
  def write(self, oprot):
3223
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3224
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3225
      return
3226
    oprot.writeStructBegin('getAdwordsAdGroupAdsByAdgroupId_args')
3227
    if self.adgroupId is not None:
3228
      oprot.writeFieldBegin('adgroupId', TType.I64, 1)
3229
      oprot.writeI64(self.adgroupId)
3230
      oprot.writeFieldEnd()
3231
    oprot.writeFieldStop()
3232
    oprot.writeStructEnd()
3233
 
3234
  def validate(self):
3235
    return
3236
 
3237
 
3238
  def __repr__(self):
3239
    L = ['%s=%r' % (key, value)
3240
      for key, value in self.__dict__.iteritems()]
3241
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3242
 
3243
  def __eq__(self, other):
3244
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3245
 
3246
  def __ne__(self, other):
3247
    return not (self == other)
3248
 
3249
class getAdwordsAdGroupAdsByAdgroupId_result:
3250
  """
3251
  Attributes:
3252
   - success
3253
   - gasex
3254
  """
3255
 
3256
  thrift_spec = (
3257
    (0, TType.LIST, 'success', (TType.STRUCT,(AdwordsAdGroupAd, AdwordsAdGroupAd.thrift_spec)), None, ), # 0
3258
    (1, TType.STRUCT, 'gasex', (GoogleAdwordsServiceException, GoogleAdwordsServiceException.thrift_spec), None, ), # 1
3259
  )
3260
 
3261
  def __init__(self, success=None, gasex=None,):
3262
    self.success = success
3263
    self.gasex = gasex
3264
 
3265
  def read(self, iprot):
3266
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
3267
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
3268
      return
3269
    iprot.readStructBegin()
3270
    while True:
3271
      (fname, ftype, fid) = iprot.readFieldBegin()
3272
      if ftype == TType.STOP:
3273
        break
3274
      if fid == 0:
3275
        if ftype == TType.LIST:
3276
          self.success = []
3277
          (_etype10, _size7) = iprot.readListBegin()
3278
          for _i11 in xrange(_size7):
3279
            _elem12 = AdwordsAdGroupAd()
3280
            _elem12.read(iprot)
3281
            self.success.append(_elem12)
3282
          iprot.readListEnd()
3283
        else:
3284
          iprot.skip(ftype)
3285
      elif fid == 1:
3286
        if ftype == TType.STRUCT:
3287
          self.gasex = GoogleAdwordsServiceException()
3288
          self.gasex.read(iprot)
3289
        else:
3290
          iprot.skip(ftype)
3291
      else:
3292
        iprot.skip(ftype)
3293
      iprot.readFieldEnd()
3294
    iprot.readStructEnd()
3295
 
3296
  def write(self, oprot):
3297
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3298
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3299
      return
3300
    oprot.writeStructBegin('getAdwordsAdGroupAdsByAdgroupId_result')
3301
    if self.success is not None:
3302
      oprot.writeFieldBegin('success', TType.LIST, 0)
3303
      oprot.writeListBegin(TType.STRUCT, len(self.success))
3304
      for iter13 in self.success:
3305
        iter13.write(oprot)
3306
      oprot.writeListEnd()
3307
      oprot.writeFieldEnd()
3308
    if self.gasex is not None:
3309
      oprot.writeFieldBegin('gasex', TType.STRUCT, 1)
3310
      self.gasex.write(oprot)
3311
      oprot.writeFieldEnd()
3312
    oprot.writeFieldStop()
3313
    oprot.writeStructEnd()
3314
 
3315
  def validate(self):
3316
    return
3317
 
3318
 
3319
  def __repr__(self):
3320
    L = ['%s=%r' % (key, value)
3321
      for key, value in self.__dict__.iteritems()]
3322
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3323
 
3324
  def __eq__(self, other):
3325
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3326
 
3327
  def __ne__(self, other):
3328
    return not (self == other)
3329
 
3330
class getAdwordsAdGroupsByCampaignId_args:
3331
  """
3332
  Attributes:
3333
   - campaignId
3334
  """
3335
 
3336
  thrift_spec = (
3337
    None, # 0
3338
    (1, TType.I64, 'campaignId', None, None, ), # 1
3339
  )
3340
 
3341
  def __init__(self, campaignId=None,):
3342
    self.campaignId = campaignId
3343
 
3344
  def read(self, iprot):
3345
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
3346
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
3347
      return
3348
    iprot.readStructBegin()
3349
    while True:
3350
      (fname, ftype, fid) = iprot.readFieldBegin()
3351
      if ftype == TType.STOP:
3352
        break
3353
      if fid == 1:
3354
        if ftype == TType.I64:
3355
          self.campaignId = iprot.readI64();
3356
        else:
3357
          iprot.skip(ftype)
3358
      else:
3359
        iprot.skip(ftype)
3360
      iprot.readFieldEnd()
3361
    iprot.readStructEnd()
3362
 
3363
  def write(self, oprot):
3364
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3365
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3366
      return
3367
    oprot.writeStructBegin('getAdwordsAdGroupsByCampaignId_args')
3368
    if self.campaignId is not None:
3369
      oprot.writeFieldBegin('campaignId', TType.I64, 1)
3370
      oprot.writeI64(self.campaignId)
3371
      oprot.writeFieldEnd()
3372
    oprot.writeFieldStop()
3373
    oprot.writeStructEnd()
3374
 
3375
  def validate(self):
3376
    return
3377
 
3378
 
3379
  def __repr__(self):
3380
    L = ['%s=%r' % (key, value)
3381
      for key, value in self.__dict__.iteritems()]
3382
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3383
 
3384
  def __eq__(self, other):
3385
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3386
 
3387
  def __ne__(self, other):
3388
    return not (self == other)
3389
 
3390
class getAdwordsAdGroupsByCampaignId_result:
3391
  """
3392
  Attributes:
3393
   - success
3394
   - gasex
3395
  """
3396
 
3397
  thrift_spec = (
3398
    (0, TType.LIST, 'success', (TType.STRUCT,(AdwordsAdGroup, AdwordsAdGroup.thrift_spec)), None, ), # 0
3399
    (1, TType.STRUCT, 'gasex', (GoogleAdwordsServiceException, GoogleAdwordsServiceException.thrift_spec), None, ), # 1
3400
  )
3401
 
3402
  def __init__(self, success=None, gasex=None,):
3403
    self.success = success
3404
    self.gasex = gasex
3405
 
3406
  def read(self, iprot):
3407
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
3408
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
3409
      return
3410
    iprot.readStructBegin()
3411
    while True:
3412
      (fname, ftype, fid) = iprot.readFieldBegin()
3413
      if ftype == TType.STOP:
3414
        break
3415
      if fid == 0:
3416
        if ftype == TType.LIST:
3417
          self.success = []
3418
          (_etype17, _size14) = iprot.readListBegin()
3419
          for _i18 in xrange(_size14):
3420
            _elem19 = AdwordsAdGroup()
3421
            _elem19.read(iprot)
3422
            self.success.append(_elem19)
3423
          iprot.readListEnd()
3424
        else:
3425
          iprot.skip(ftype)
3426
      elif fid == 1:
3427
        if ftype == TType.STRUCT:
3428
          self.gasex = GoogleAdwordsServiceException()
3429
          self.gasex.read(iprot)
3430
        else:
3431
          iprot.skip(ftype)
3432
      else:
3433
        iprot.skip(ftype)
3434
      iprot.readFieldEnd()
3435
    iprot.readStructEnd()
3436
 
3437
  def write(self, oprot):
3438
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3439
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3440
      return
3441
    oprot.writeStructBegin('getAdwordsAdGroupsByCampaignId_result')
3442
    if self.success is not None:
3443
      oprot.writeFieldBegin('success', TType.LIST, 0)
3444
      oprot.writeListBegin(TType.STRUCT, len(self.success))
3445
      for iter20 in self.success:
3446
        iter20.write(oprot)
3447
      oprot.writeListEnd()
3448
      oprot.writeFieldEnd()
3449
    if self.gasex is not None:
3450
      oprot.writeFieldBegin('gasex', TType.STRUCT, 1)
3451
      self.gasex.write(oprot)
3452
      oprot.writeFieldEnd()
3453
    oprot.writeFieldStop()
3454
    oprot.writeStructEnd()
3455
 
3456
  def validate(self):
3457
    return
3458
 
3459
 
3460
  def __repr__(self):
3461
    L = ['%s=%r' % (key, value)
3462
      for key, value in self.__dict__.iteritems()]
3463
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3464
 
3465
  def __eq__(self, other):
3466
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3467
 
3468
  def __ne__(self, other):
3469
    return not (self == other)
3470
 
3471
class getAllAdwordsCampaigns_args:
3472
 
3473
  thrift_spec = (
3474
  )
3475
 
3476
  def read(self, iprot):
3477
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
3478
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
3479
      return
3480
    iprot.readStructBegin()
3481
    while True:
3482
      (fname, ftype, fid) = iprot.readFieldBegin()
3483
      if ftype == TType.STOP:
3484
        break
3485
      else:
3486
        iprot.skip(ftype)
3487
      iprot.readFieldEnd()
3488
    iprot.readStructEnd()
3489
 
3490
  def write(self, oprot):
3491
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3492
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3493
      return
3494
    oprot.writeStructBegin('getAllAdwordsCampaigns_args')
3495
    oprot.writeFieldStop()
3496
    oprot.writeStructEnd()
3497
 
3498
  def validate(self):
3499
    return
3500
 
3501
 
3502
  def __repr__(self):
3503
    L = ['%s=%r' % (key, value)
3504
      for key, value in self.__dict__.iteritems()]
3505
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3506
 
3507
  def __eq__(self, other):
3508
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3509
 
3510
  def __ne__(self, other):
3511
    return not (self == other)
3512
 
3513
class getAllAdwordsCampaigns_result:
3514
  """
3515
  Attributes:
3516
   - success
3517
   - gasex
3518
  """
3519
 
3520
  thrift_spec = (
3521
    (0, TType.LIST, 'success', (TType.STRUCT,(AdwordsCampaign, AdwordsCampaign.thrift_spec)), None, ), # 0
3522
    (1, TType.STRUCT, 'gasex', (GoogleAdwordsServiceException, GoogleAdwordsServiceException.thrift_spec), None, ), # 1
3523
  )
3524
 
3525
  def __init__(self, success=None, gasex=None,):
3526
    self.success = success
3527
    self.gasex = gasex
3528
 
3529
  def read(self, iprot):
3530
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
3531
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
3532
      return
3533
    iprot.readStructBegin()
3534
    while True:
3535
      (fname, ftype, fid) = iprot.readFieldBegin()
3536
      if ftype == TType.STOP:
3537
        break
3538
      if fid == 0:
3539
        if ftype == TType.LIST:
3540
          self.success = []
3541
          (_etype24, _size21) = iprot.readListBegin()
3542
          for _i25 in xrange(_size21):
3543
            _elem26 = AdwordsCampaign()
3544
            _elem26.read(iprot)
3545
            self.success.append(_elem26)
3546
          iprot.readListEnd()
3547
        else:
3548
          iprot.skip(ftype)
3549
      elif fid == 1:
3550
        if ftype == TType.STRUCT:
3551
          self.gasex = GoogleAdwordsServiceException()
3552
          self.gasex.read(iprot)
3553
        else:
3554
          iprot.skip(ftype)
3555
      else:
3556
        iprot.skip(ftype)
3557
      iprot.readFieldEnd()
3558
    iprot.readStructEnd()
3559
 
3560
  def write(self, oprot):
3561
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3562
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3563
      return
3564
    oprot.writeStructBegin('getAllAdwordsCampaigns_result')
3565
    if self.success is not None:
3566
      oprot.writeFieldBegin('success', TType.LIST, 0)
3567
      oprot.writeListBegin(TType.STRUCT, len(self.success))
3568
      for iter27 in self.success:
3569
        iter27.write(oprot)
3570
      oprot.writeListEnd()
3571
      oprot.writeFieldEnd()
3572
    if self.gasex is not None:
3573
      oprot.writeFieldBegin('gasex', TType.STRUCT, 1)
3574
      self.gasex.write(oprot)
3575
      oprot.writeFieldEnd()
3576
    oprot.writeFieldStop()
3577
    oprot.writeStructEnd()
3578
 
3579
  def validate(self):
3580
    return
3581
 
3582
 
3583
  def __repr__(self):
3584
    L = ['%s=%r' % (key, value)
3585
      for key, value in self.__dict__.iteritems()]
3586
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3587
 
3588
  def __eq__(self, other):
3589
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3590
 
3591
  def __ne__(self, other):
3592
    return not (self == other)
3593
 
3594
class getAllAdwordsAdGroups_args:
3595
 
3596
  thrift_spec = (
3597
  )
3598
 
3599
  def read(self, iprot):
3600
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
3601
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
3602
      return
3603
    iprot.readStructBegin()
3604
    while True:
3605
      (fname, ftype, fid) = iprot.readFieldBegin()
3606
      if ftype == TType.STOP:
3607
        break
3608
      else:
3609
        iprot.skip(ftype)
3610
      iprot.readFieldEnd()
3611
    iprot.readStructEnd()
3612
 
3613
  def write(self, oprot):
3614
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3615
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3616
      return
3617
    oprot.writeStructBegin('getAllAdwordsAdGroups_args')
3618
    oprot.writeFieldStop()
3619
    oprot.writeStructEnd()
3620
 
3621
  def validate(self):
3622
    return
3623
 
3624
 
3625
  def __repr__(self):
3626
    L = ['%s=%r' % (key, value)
3627
      for key, value in self.__dict__.iteritems()]
3628
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3629
 
3630
  def __eq__(self, other):
3631
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3632
 
3633
  def __ne__(self, other):
3634
    return not (self == other)
3635
 
3636
class getAllAdwordsAdGroups_result:
3637
  """
3638
  Attributes:
3639
   - success
3640
   - gasex
3641
  """
3642
 
3643
  thrift_spec = (
3644
    (0, TType.LIST, 'success', (TType.STRUCT,(AdwordsAdGroup, AdwordsAdGroup.thrift_spec)), None, ), # 0
3645
    (1, TType.STRUCT, 'gasex', (GoogleAdwordsServiceException, GoogleAdwordsServiceException.thrift_spec), None, ), # 1
3646
  )
3647
 
3648
  def __init__(self, success=None, gasex=None,):
3649
    self.success = success
3650
    self.gasex = gasex
3651
 
3652
  def read(self, iprot):
3653
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
3654
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
3655
      return
3656
    iprot.readStructBegin()
3657
    while True:
3658
      (fname, ftype, fid) = iprot.readFieldBegin()
3659
      if ftype == TType.STOP:
3660
        break
3661
      if fid == 0:
3662
        if ftype == TType.LIST:
3663
          self.success = []
3664
          (_etype31, _size28) = iprot.readListBegin()
3665
          for _i32 in xrange(_size28):
3666
            _elem33 = AdwordsAdGroup()
3667
            _elem33.read(iprot)
3668
            self.success.append(_elem33)
3669
          iprot.readListEnd()
3670
        else:
3671
          iprot.skip(ftype)
3672
      elif fid == 1:
3673
        if ftype == TType.STRUCT:
3674
          self.gasex = GoogleAdwordsServiceException()
3675
          self.gasex.read(iprot)
3676
        else:
3677
          iprot.skip(ftype)
3678
      else:
3679
        iprot.skip(ftype)
3680
      iprot.readFieldEnd()
3681
    iprot.readStructEnd()
3682
 
3683
  def write(self, oprot):
3684
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3685
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3686
      return
3687
    oprot.writeStructBegin('getAllAdwordsAdGroups_result')
3688
    if self.success is not None:
3689
      oprot.writeFieldBegin('success', TType.LIST, 0)
3690
      oprot.writeListBegin(TType.STRUCT, len(self.success))
3691
      for iter34 in self.success:
3692
        iter34.write(oprot)
3693
      oprot.writeListEnd()
3694
      oprot.writeFieldEnd()
3695
    if self.gasex is not None:
3696
      oprot.writeFieldBegin('gasex', TType.STRUCT, 1)
3697
      self.gasex.write(oprot)
3698
      oprot.writeFieldEnd()
3699
    oprot.writeFieldStop()
3700
    oprot.writeStructEnd()
3701
 
3702
  def validate(self):
3703
    return
3704
 
3705
 
3706
  def __repr__(self):
3707
    L = ['%s=%r' % (key, value)
3708
      for key, value in self.__dict__.iteritems()]
3709
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3710
 
3711
  def __eq__(self, other):
3712
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3713
 
3714
  def __ne__(self, other):
3715
    return not (self == other)
3716
 
3717
class getAllAdwordsAdGroupAds_args:
3718
 
3719
  thrift_spec = (
3720
  )
3721
 
3722
  def read(self, iprot):
3723
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
3724
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
3725
      return
3726
    iprot.readStructBegin()
3727
    while True:
3728
      (fname, ftype, fid) = iprot.readFieldBegin()
3729
      if ftype == TType.STOP:
3730
        break
3731
      else:
3732
        iprot.skip(ftype)
3733
      iprot.readFieldEnd()
3734
    iprot.readStructEnd()
3735
 
3736
  def write(self, oprot):
3737
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3738
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3739
      return
3740
    oprot.writeStructBegin('getAllAdwordsAdGroupAds_args')
3741
    oprot.writeFieldStop()
3742
    oprot.writeStructEnd()
3743
 
3744
  def validate(self):
3745
    return
3746
 
3747
 
3748
  def __repr__(self):
3749
    L = ['%s=%r' % (key, value)
3750
      for key, value in self.__dict__.iteritems()]
3751
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3752
 
3753
  def __eq__(self, other):
3754
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3755
 
3756
  def __ne__(self, other):
3757
    return not (self == other)
3758
 
3759
class getAllAdwordsAdGroupAds_result:
3760
  """
3761
  Attributes:
3762
   - success
3763
   - gasex
3764
  """
3765
 
3766
  thrift_spec = (
3767
    (0, TType.LIST, 'success', (TType.STRUCT,(AdwordsAdGroupAd, AdwordsAdGroupAd.thrift_spec)), None, ), # 0
3768
    (1, TType.STRUCT, 'gasex', (GoogleAdwordsServiceException, GoogleAdwordsServiceException.thrift_spec), None, ), # 1
3769
  )
3770
 
3771
  def __init__(self, success=None, gasex=None,):
3772
    self.success = success
3773
    self.gasex = gasex
3774
 
3775
  def read(self, iprot):
3776
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
3777
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
3778
      return
3779
    iprot.readStructBegin()
3780
    while True:
3781
      (fname, ftype, fid) = iprot.readFieldBegin()
3782
      if ftype == TType.STOP:
3783
        break
3784
      if fid == 0:
3785
        if ftype == TType.LIST:
3786
          self.success = []
3787
          (_etype38, _size35) = iprot.readListBegin()
3788
          for _i39 in xrange(_size35):
3789
            _elem40 = AdwordsAdGroupAd()
3790
            _elem40.read(iprot)
3791
            self.success.append(_elem40)
3792
          iprot.readListEnd()
3793
        else:
3794
          iprot.skip(ftype)
3795
      elif fid == 1:
3796
        if ftype == TType.STRUCT:
3797
          self.gasex = GoogleAdwordsServiceException()
3798
          self.gasex.read(iprot)
3799
        else:
3800
          iprot.skip(ftype)
3801
      else:
3802
        iprot.skip(ftype)
3803
      iprot.readFieldEnd()
3804
    iprot.readStructEnd()
3805
 
3806
  def write(self, oprot):
3807
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3808
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3809
      return
3810
    oprot.writeStructBegin('getAllAdwordsAdGroupAds_result')
3811
    if self.success is not None:
3812
      oprot.writeFieldBegin('success', TType.LIST, 0)
3813
      oprot.writeListBegin(TType.STRUCT, len(self.success))
3814
      for iter41 in self.success:
3815
        iter41.write(oprot)
3816
      oprot.writeListEnd()
3817
      oprot.writeFieldEnd()
3818
    if self.gasex is not None:
3819
      oprot.writeFieldBegin('gasex', TType.STRUCT, 1)
3820
      self.gasex.write(oprot)
3821
      oprot.writeFieldEnd()
3822
    oprot.writeFieldStop()
3823
    oprot.writeStructEnd()
3824
 
3825
  def validate(self):
3826
    return
3827
 
3828
 
3829
  def __repr__(self):
3830
    L = ['%s=%r' % (key, value)
3831
      for key, value in self.__dict__.iteritems()]
3832
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3833
 
3834
  def __eq__(self, other):
3835
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3836
 
3837
  def __ne__(self, other):
3838
    return not (self == other)
3839
 
3840
class getAllAdwordsAdKeywords_args:
3841
 
3842
  thrift_spec = (
3843
  )
3844
 
3845
  def read(self, iprot):
3846
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
3847
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
3848
      return
3849
    iprot.readStructBegin()
3850
    while True:
3851
      (fname, ftype, fid) = iprot.readFieldBegin()
3852
      if ftype == TType.STOP:
3853
        break
3854
      else:
3855
        iprot.skip(ftype)
3856
      iprot.readFieldEnd()
3857
    iprot.readStructEnd()
3858
 
3859
  def write(self, oprot):
3860
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3861
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3862
      return
3863
    oprot.writeStructBegin('getAllAdwordsAdKeywords_args')
3864
    oprot.writeFieldStop()
3865
    oprot.writeStructEnd()
3866
 
3867
  def validate(self):
3868
    return
3869
 
3870
 
3871
  def __repr__(self):
3872
    L = ['%s=%r' % (key, value)
3873
      for key, value in self.__dict__.iteritems()]
3874
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3875
 
3876
  def __eq__(self, other):
3877
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3878
 
3879
  def __ne__(self, other):
3880
    return not (self == other)
3881
 
3882
class getAllAdwordsAdKeywords_result:
3883
  """
3884
  Attributes:
3885
   - success
3886
   - gasex
3887
  """
3888
 
3889
  thrift_spec = (
3890
    (0, TType.LIST, 'success', (TType.STRUCT,(AdwordsAdKeyword, AdwordsAdKeyword.thrift_spec)), None, ), # 0
3891
    (1, TType.STRUCT, 'gasex', (GoogleAdwordsServiceException, GoogleAdwordsServiceException.thrift_spec), None, ), # 1
3892
  )
3893
 
3894
  def __init__(self, success=None, gasex=None,):
3895
    self.success = success
3896
    self.gasex = gasex
3897
 
3898
  def read(self, iprot):
3899
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
3900
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
3901
      return
3902
    iprot.readStructBegin()
3903
    while True:
3904
      (fname, ftype, fid) = iprot.readFieldBegin()
3905
      if ftype == TType.STOP:
3906
        break
3907
      if fid == 0:
3908
        if ftype == TType.LIST:
3909
          self.success = []
3910
          (_etype45, _size42) = iprot.readListBegin()
3911
          for _i46 in xrange(_size42):
3912
            _elem47 = AdwordsAdKeyword()
3913
            _elem47.read(iprot)
3914
            self.success.append(_elem47)
3915
          iprot.readListEnd()
3916
        else:
3917
          iprot.skip(ftype)
3918
      elif fid == 1:
3919
        if ftype == TType.STRUCT:
3920
          self.gasex = GoogleAdwordsServiceException()
3921
          self.gasex.read(iprot)
3922
        else:
3923
          iprot.skip(ftype)
3924
      else:
3925
        iprot.skip(ftype)
3926
      iprot.readFieldEnd()
3927
    iprot.readStructEnd()
3928
 
3929
  def write(self, oprot):
3930
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3931
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3932
      return
3933
    oprot.writeStructBegin('getAllAdwordsAdKeywords_result')
3934
    if self.success is not None:
3935
      oprot.writeFieldBegin('success', TType.LIST, 0)
3936
      oprot.writeListBegin(TType.STRUCT, len(self.success))
3937
      for iter48 in self.success:
3938
        iter48.write(oprot)
3939
      oprot.writeListEnd()
3940
      oprot.writeFieldEnd()
3941
    if self.gasex is not None:
3942
      oprot.writeFieldBegin('gasex', TType.STRUCT, 1)
3943
      self.gasex.write(oprot)
3944
      oprot.writeFieldEnd()
3945
    oprot.writeFieldStop()
3946
    oprot.writeStructEnd()
3947
 
3948
  def validate(self):
3949
    return
3950
 
3951
 
3952
  def __repr__(self):
3953
    L = ['%s=%r' % (key, value)
3954
      for key, value in self.__dict__.iteritems()]
3955
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3956
 
3957
  def __eq__(self, other):
3958
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3959
 
3960
  def __ne__(self, other):
3961
    return not (self == other)