Subversion Repositories SmartDukaan

Rev

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