google-adwords-api 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (125) hide show
  1. data/Rakefile +1 -1
  2. data/examples/v201101/add_conversion.rb +97 -0
  3. data/examples/v201101/add_user_list.rb +28 -2
  4. data/examples/v201101/get_all_conversions.rb +88 -0
  5. data/examples/v201101/get_keyword_opportunities.rb +103 -0
  6. data/examples/v201101/update_conversion.rb +96 -0
  7. data/lib/adwords_api/api_config.rb +6 -3
  8. data/lib/adwords_api/errors.rb +4 -1
  9. data/lib/adwords_api/extensions.rb +1 -1
  10. data/lib/adwords_api/v13/AccountServiceDriver.rb +5 -5
  11. data/lib/adwords_api/v13/ReportServiceDriver.rb +7 -7
  12. data/lib/adwords_api/v13/TrafficEstimatorServiceDriver.rb +4 -4
  13. data/lib/adwords_api/v200909/AdExtensionOverrideServiceDriver.rb +2 -2
  14. data/lib/adwords_api/v200909/AdGroupAdServiceDriver.rb +2 -2
  15. data/lib/adwords_api/v200909/AdGroupCriterionService.rb +506 -506
  16. data/lib/adwords_api/v200909/AdGroupCriterionServiceDriver.rb +2 -2
  17. data/lib/adwords_api/v200909/AdGroupCriterionServiceMappingRegistry.rb +428 -428
  18. data/lib/adwords_api/v200909/AdGroupServiceDriver.rb +2 -2
  19. data/lib/adwords_api/v200909/AdParamServiceDriver.rb +2 -2
  20. data/lib/adwords_api/v200909/BulkMutateJobServiceDriver.rb +2 -2
  21. data/lib/adwords_api/v200909/CampaignAdExtensionServiceDriver.rb +2 -2
  22. data/lib/adwords_api/v200909/CampaignCriterionService.rb +133 -133
  23. data/lib/adwords_api/v200909/CampaignCriterionServiceDriver.rb +2 -2
  24. data/lib/adwords_api/v200909/CampaignCriterionServiceMappingRegistry.rb +184 -184
  25. data/lib/adwords_api/v200909/CampaignServiceDriver.rb +2 -2
  26. data/lib/adwords_api/v200909/CampaignTargetServiceDriver.rb +2 -2
  27. data/lib/adwords_api/v200909/GeoLocationServiceDriver.rb +1 -1
  28. data/lib/adwords_api/v200909/InfoServiceDriver.rb +1 -1
  29. data/lib/adwords_api/v200909/TargetingIdeaService.rb +907 -907
  30. data/lib/adwords_api/v200909/TargetingIdeaServiceDriver.rb +2 -2
  31. data/lib/adwords_api/v200909/TargetingIdeaServiceMappingRegistry.rb +384 -384
  32. data/lib/adwords_api/v201003/AdExtensionOverrideServiceDriver.rb +2 -2
  33. data/lib/adwords_api/v201003/AdGroupAdServiceDriver.rb +2 -2
  34. data/lib/adwords_api/v201003/AdGroupCriterionService.rb +527 -527
  35. data/lib/adwords_api/v201003/AdGroupCriterionServiceDriver.rb +2 -2
  36. data/lib/adwords_api/v201003/AdGroupCriterionServiceMappingRegistry.rb +469 -469
  37. data/lib/adwords_api/v201003/AdGroupServiceDriver.rb +2 -2
  38. data/lib/adwords_api/v201003/AdParamServiceDriver.rb +2 -2
  39. data/lib/adwords_api/v201003/BidLandscapeServiceDriver.rb +1 -1
  40. data/lib/adwords_api/v201003/BulkMutateJobServiceDriver.rb +2 -2
  41. data/lib/adwords_api/v201003/CampaignAdExtensionServiceDriver.rb +2 -2
  42. data/lib/adwords_api/v201003/CampaignCriterionService.rb +133 -133
  43. data/lib/adwords_api/v201003/CampaignCriterionServiceDriver.rb +2 -2
  44. data/lib/adwords_api/v201003/CampaignCriterionServiceMappingRegistry.rb +186 -186
  45. data/lib/adwords_api/v201003/CampaignServiceDriver.rb +2 -2
  46. data/lib/adwords_api/v201003/CampaignTargetServiceDriver.rb +2 -2
  47. data/lib/adwords_api/v201003/GeoLocationServiceDriver.rb +1 -1
  48. data/lib/adwords_api/v201003/InfoServiceDriver.rb +1 -1
  49. data/lib/adwords_api/v201003/MediaServiceDriver.rb +2 -2
  50. data/lib/adwords_api/v201003/ReportDefinitionServiceDriver.rb +3 -3
  51. data/lib/adwords_api/v201003/TargetingIdeaService.rb +1304 -1304
  52. data/lib/adwords_api/v201003/TargetingIdeaServiceDriver.rb +2 -2
  53. data/lib/adwords_api/v201003/TargetingIdeaServiceMappingRegistry.rb +401 -401
  54. data/lib/adwords_api/v201008/AdExtensionOverrideServiceDriver.rb +2 -2
  55. data/lib/adwords_api/v201008/AdGroupAdServiceDriver.rb +2 -2
  56. data/lib/adwords_api/v201008/AdGroupCriterionService.rb +598 -598
  57. data/lib/adwords_api/v201008/AdGroupCriterionServiceDriver.rb +2 -2
  58. data/lib/adwords_api/v201008/AdGroupCriterionServiceMappingRegistry.rb +680 -680
  59. data/lib/adwords_api/v201008/AdGroupServiceDriver.rb +2 -2
  60. data/lib/adwords_api/v201008/AdParamServiceDriver.rb +2 -2
  61. data/lib/adwords_api/v201008/AlertServiceDriver.rb +1 -1
  62. data/lib/adwords_api/v201008/BidLandscapeServiceDriver.rb +1 -1
  63. data/lib/adwords_api/v201008/BulkMutateJobServiceDriver.rb +2 -2
  64. data/lib/adwords_api/v201008/CampaignAdExtensionServiceDriver.rb +2 -2
  65. data/lib/adwords_api/v201008/CampaignCriterionService.rb +178 -178
  66. data/lib/adwords_api/v201008/CampaignCriterionServiceDriver.rb +2 -2
  67. data/lib/adwords_api/v201008/CampaignCriterionServiceMappingRegistry.rb +228 -228
  68. data/lib/adwords_api/v201008/CampaignServiceDriver.rb +2 -2
  69. data/lib/adwords_api/v201008/CampaignTargetServiceDriver.rb +2 -2
  70. data/lib/adwords_api/v201008/CustomerSyncServiceDriver.rb +1 -1
  71. data/lib/adwords_api/v201008/ExperimentServiceDriver.rb +2 -2
  72. data/lib/adwords_api/v201008/GeoLocationServiceDriver.rb +1 -1
  73. data/lib/adwords_api/v201008/InfoServiceDriver.rb +1 -1
  74. data/lib/adwords_api/v201008/MediaServiceDriver.rb +2 -2
  75. data/lib/adwords_api/v201008/ReportDefinitionServiceDriver.rb +3 -3
  76. data/lib/adwords_api/v201008/ServicedAccountServiceDriver.rb +1 -1
  77. data/lib/adwords_api/v201008/TargetingIdeaService.rb +1459 -1459
  78. data/lib/adwords_api/v201008/TargetingIdeaServiceDriver.rb +2 -2
  79. data/lib/adwords_api/v201008/TargetingIdeaServiceMappingRegistry.rb +447 -447
  80. data/lib/adwords_api/v201008/TrafficEstimatorService.rb +855 -855
  81. data/lib/adwords_api/v201008/TrafficEstimatorServiceDriver.rb +1 -1
  82. data/lib/adwords_api/v201008/TrafficEstimatorServiceMappingRegistry.rb +126 -126
  83. data/lib/adwords_api/v201008/UserListServiceDriver.rb +2 -2
  84. data/lib/adwords_api/v201101/AdExtensionOverrideServiceDriver.rb +2 -2
  85. data/lib/adwords_api/v201101/AdGroupAdService.rb +2 -0
  86. data/lib/adwords_api/v201101/AdGroupAdServiceDriver.rb +2 -2
  87. data/lib/adwords_api/v201101/AdGroupCriterionService.rb +700 -700
  88. data/lib/adwords_api/v201101/AdGroupCriterionServiceDriver.rb +2 -2
  89. data/lib/adwords_api/v201101/AdGroupCriterionServiceMappingRegistry.rb +670 -670
  90. data/lib/adwords_api/v201101/AdGroupServiceDriver.rb +2 -2
  91. data/lib/adwords_api/v201101/AdParamServiceDriver.rb +2 -2
  92. data/lib/adwords_api/v201101/AlertServiceDriver.rb +1 -1
  93. data/lib/adwords_api/v201101/BulkMutateJobService.rb +2 -0
  94. data/lib/adwords_api/v201101/BulkMutateJobServiceDriver.rb +2 -2
  95. data/lib/adwords_api/v201101/BulkOpportunityService.rb +1367 -0
  96. data/lib/adwords_api/v201101/BulkOpportunityServiceDriver.rb +55 -0
  97. data/lib/adwords_api/v201101/BulkOpportunityServiceMappingRegistry.rb +1668 -0
  98. data/lib/adwords_api/v201101/BulkOpportunityServiceWrapper.rb +303 -0
  99. data/lib/adwords_api/v201101/CampaignAdExtensionServiceDriver.rb +2 -2
  100. data/lib/adwords_api/v201101/CampaignCriterionService.rb +216 -216
  101. data/lib/adwords_api/v201101/CampaignCriterionServiceDriver.rb +2 -2
  102. data/lib/adwords_api/v201101/CampaignCriterionServiceMappingRegistry.rb +234 -234
  103. data/lib/adwords_api/v201101/CampaignServiceDriver.rb +2 -2
  104. data/lib/adwords_api/v201101/CampaignTargetServiceDriver.rb +2 -2
  105. data/lib/adwords_api/v201101/ConversionTrackerService.rb +1105 -0
  106. data/lib/adwords_api/v201101/ConversionTrackerServiceDriver.rb +63 -0
  107. data/lib/adwords_api/v201101/ConversionTrackerServiceMappingRegistry.rb +1161 -0
  108. data/lib/adwords_api/v201101/ConversionTrackerServiceWrapper.rb +332 -0
  109. data/lib/adwords_api/v201101/CustomerSyncServiceDriver.rb +1 -1
  110. data/lib/adwords_api/v201101/DataServiceDriver.rb +2 -2
  111. data/lib/adwords_api/v201101/ExperimentServiceDriver.rb +2 -2
  112. data/lib/adwords_api/v201101/GeoLocationServiceDriver.rb +1 -1
  113. data/lib/adwords_api/v201101/InfoServiceDriver.rb +1 -1
  114. data/lib/adwords_api/v201101/MediaServiceDriver.rb +2 -2
  115. data/lib/adwords_api/v201101/ReportDefinitionServiceDriver.rb +3 -3
  116. data/lib/adwords_api/v201101/ReportDefinitionServiceWrapper.rb +14 -0
  117. data/lib/adwords_api/v201101/ServicedAccountServiceDriver.rb +1 -1
  118. data/lib/adwords_api/v201101/TargetingIdeaService.rb +1490 -1490
  119. data/lib/adwords_api/v201101/TargetingIdeaServiceDriver.rb +2 -2
  120. data/lib/adwords_api/v201101/TargetingIdeaServiceMappingRegistry.rb +507 -507
  121. data/lib/adwords_api/v201101/TrafficEstimatorService.rb +841 -841
  122. data/lib/adwords_api/v201101/TrafficEstimatorServiceDriver.rb +1 -1
  123. data/lib/adwords_api/v201101/TrafficEstimatorServiceMappingRegistry.rb +126 -126
  124. data/lib/adwords_api/v201101/UserListServiceDriver.rb +2 -2
  125. metadata +17 -5
@@ -16,7 +16,7 @@ class AdExtensionOverrideServiceInterface < ::SOAP::RPC::Driver
16
16
  ["out", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/cm/v201003", "getResponse"]] ],
17
17
  { :request_style => :document, :request_use => :literal,
18
18
  :response_style => :document, :response_use => :literal,
19
- :faults => {"AdwordsApi::V201003::AdExtensionOverrideService::ApiException"=>{:encodingstyle=>"document", :namespace=>nil, :ns=>"https://adwords.google.com/api/adwords/cm/v201003", :use=>"literal", :name=>"ApiException"}} }
19
+ :faults => {"AdwordsApi::V201003::AdExtensionOverrideService::ApiException"=>{:encodingstyle=>"document", :use=>"literal", :namespace=>nil, :ns=>"https://adwords.google.com/api/adwords/cm/v201003", :name=>"ApiException"}} }
20
20
  ],
21
21
  [ "",
22
22
  "mutate",
@@ -24,7 +24,7 @@ class AdExtensionOverrideServiceInterface < ::SOAP::RPC::Driver
24
24
  ["out", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/cm/v201003", "mutateResponse"]] ],
25
25
  { :request_style => :document, :request_use => :literal,
26
26
  :response_style => :document, :response_use => :literal,
27
- :faults => {"AdwordsApi::V201003::AdExtensionOverrideService::ApiException"=>{:encodingstyle=>"document", :namespace=>nil, :ns=>"https://adwords.google.com/api/adwords/cm/v201003", :use=>"literal", :name=>"ApiException"}} }
27
+ :faults => {"AdwordsApi::V201003::AdExtensionOverrideService::ApiException"=>{:encodingstyle=>"document", :use=>"literal", :namespace=>nil, :ns=>"https://adwords.google.com/api/adwords/cm/v201003", :name=>"ApiException"}} }
28
28
  ]
29
29
  ]
30
30
 
@@ -16,7 +16,7 @@ class AdGroupAdServiceInterface < ::SOAP::RPC::Driver
16
16
  ["out", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/cm/v201003", "getResponse"]] ],
17
17
  { :request_style => :document, :request_use => :literal,
18
18
  :response_style => :document, :response_use => :literal,
19
- :faults => {"AdwordsApi::V201003::AdGroupAdService::ApiException"=>{:encodingstyle=>"document", :namespace=>nil, :ns=>"https://adwords.google.com/api/adwords/cm/v201003", :use=>"literal", :name=>"ApiException"}} }
19
+ :faults => {"AdwordsApi::V201003::AdGroupAdService::ApiException"=>{:encodingstyle=>"document", :use=>"literal", :namespace=>nil, :ns=>"https://adwords.google.com/api/adwords/cm/v201003", :name=>"ApiException"}} }
20
20
  ],
21
21
  [ "",
22
22
  "mutate",
@@ -24,7 +24,7 @@ class AdGroupAdServiceInterface < ::SOAP::RPC::Driver
24
24
  ["out", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/cm/v201003", "mutateResponse"]] ],
25
25
  { :request_style => :document, :request_use => :literal,
26
26
  :response_style => :document, :response_use => :literal,
27
- :faults => {"AdwordsApi::V201003::AdGroupAdService::ApiException"=>{:encodingstyle=>"document", :namespace=>nil, :ns=>"https://adwords.google.com/api/adwords/cm/v201003", :use=>"literal", :name=>"ApiException"}} }
27
+ :faults => {"AdwordsApi::V201003::AdGroupAdService::ApiException"=>{:encodingstyle=>"document", :use=>"literal", :namespace=>nil, :ns=>"https://adwords.google.com/api/adwords/cm/v201003", :name=>"ApiException"}} }
28
28
  ]
29
29
  ]
30
30
 
@@ -3,276 +3,188 @@ require 'xsd/qname'
3
3
  module AdwordsApi; module V201003; module AdGroupCriterionService
4
4
 
5
5
 
6
- # AdGroupCriterionIdFilter
7
- # - campaignId - SOAP::SOAPLong
6
+ # AdGroupCriterion
8
7
  # - adGroupId - SOAP::SOAPLong
9
- # - criterionId - SOAP::SOAPLong
10
- class AdGroupCriterionIdFilter
11
- attr_accessor :campaignId
8
+ # - criterion - AdwordsApi::V201003::AdGroupCriterionService::Criterion
9
+ # - adGroupCriterion_Type - SOAP::SOAPString
10
+ class AdGroupCriterion
12
11
  attr_accessor :adGroupId
13
- attr_accessor :criterionId
12
+ attr_accessor :criterion
13
+ attr_accessor :adGroupCriterion_Type
14
14
 
15
- def initialize(campaignId = nil, adGroupId = nil, criterionId = nil)
16
- @campaignId = campaignId
15
+ def initialize(adGroupId = nil, criterion = nil, adGroupCriterion_Type = nil)
17
16
  @adGroupId = adGroupId
18
- @criterionId = criterionId
19
- end
20
- end
21
-
22
- # DateRange
23
- # - min - SOAP::SOAPString
24
- # - max - SOAP::SOAPString
25
- class DateRange
26
- attr_accessor :min
27
- attr_accessor :max
28
-
29
- def initialize(min = nil, max = nil)
30
- @min = min
31
- @max = max
32
- end
33
- end
34
-
35
- # Paging
36
- # - startIndex - SOAP::SOAPInt
37
- # - numberResults - SOAP::SOAPInt
38
- class Paging
39
- attr_accessor :startIndex
40
- attr_accessor :numberResults
41
-
42
- def initialize(startIndex = nil, numberResults = nil)
43
- @startIndex = startIndex
44
- @numberResults = numberResults
45
- end
46
- end
47
-
48
- # PolicyViolationError.Part
49
- # - index - SOAP::SOAPInt
50
- # - length - SOAP::SOAPInt
51
- class PolicyViolationErrorPart
52
- attr_accessor :index
53
- attr_accessor :length
54
-
55
- def initialize(index = nil, length = nil)
56
- @index = index
57
- @length = length
58
- end
59
- end
60
-
61
- # PolicyViolationKey
62
- # - policyName - SOAP::SOAPString
63
- # - violatingText - SOAP::SOAPString
64
- class PolicyViolationKey
65
- attr_accessor :policyName
66
- attr_accessor :violatingText
67
-
68
- def initialize(policyName = nil, violatingText = nil)
69
- @policyName = policyName
70
- @violatingText = violatingText
71
- end
72
- end
73
-
74
- # QualityInfo
75
- # - isKeywordAdRelevanceAcceptable - SOAP::SOAPBoolean
76
- # - isLandingPageQualityAcceptable - SOAP::SOAPBoolean
77
- # - isLandingPageLatencyAcceptable - SOAP::SOAPBoolean
78
- # - qualityScore - SOAP::SOAPInt
79
- class QualityInfo
80
- attr_accessor :isKeywordAdRelevanceAcceptable
81
- attr_accessor :isLandingPageQualityAcceptable
82
- attr_accessor :isLandingPageLatencyAcceptable
83
- attr_accessor :qualityScore
84
-
85
- def initialize(isKeywordAdRelevanceAcceptable = nil, isLandingPageQualityAcceptable = nil, isLandingPageLatencyAcceptable = nil, qualityScore = nil)
86
- @isKeywordAdRelevanceAcceptable = isKeywordAdRelevanceAcceptable
87
- @isLandingPageQualityAcceptable = isLandingPageQualityAcceptable
88
- @isLandingPageLatencyAcceptable = isLandingPageLatencyAcceptable
89
- @qualityScore = qualityScore
90
- end
91
- end
92
-
93
- # SoapHeader
94
- # - authToken - SOAP::SOAPString
95
- # - clientCustomerId - SOAP::SOAPString
96
- # - clientEmail - SOAP::SOAPString
97
- # - developerToken - SOAP::SOAPString
98
- # - userAgent - SOAP::SOAPString
99
- # - validateOnly - SOAP::SOAPBoolean
100
- class SoapHeader
101
- attr_accessor :authToken
102
- attr_accessor :clientCustomerId
103
- attr_accessor :clientEmail
104
- attr_accessor :developerToken
105
- attr_accessor :userAgent
106
- attr_accessor :validateOnly
107
-
108
- def initialize(authToken = nil, clientCustomerId = nil, clientEmail = nil, developerToken = nil, userAgent = nil, validateOnly = nil)
109
- @authToken = authToken
110
- @clientCustomerId = clientCustomerId
111
- @clientEmail = clientEmail
112
- @developerToken = developerToken
113
- @userAgent = userAgent
114
- @validateOnly = validateOnly
17
+ @criterion = criterion
18
+ @adGroupCriterion_Type = adGroupCriterion_Type
115
19
  end
116
20
  end
117
21
 
118
- # SoapResponseHeader
119
- # - requestId - SOAP::SOAPString
120
- # - operations - SOAP::SOAPLong
121
- # - responseTime - SOAP::SOAPLong
122
- # - units - SOAP::SOAPLong
123
- class SoapResponseHeader
124
- attr_accessor :requestId
125
- attr_accessor :operations
126
- attr_accessor :responseTime
127
- attr_accessor :units
22
+ # BiddableAdGroupCriterion
23
+ # - adGroupId - SOAP::SOAPLong
24
+ # - criterion - AdwordsApi::V201003::AdGroupCriterionService::Criterion
25
+ # - adGroupCriterion_Type - SOAP::SOAPString
26
+ # - userStatus - AdwordsApi::V201003::AdGroupCriterionService::UserStatus
27
+ # - systemServingStatus - AdwordsApi::V201003::AdGroupCriterionService::SystemServingStatus
28
+ # - approvalStatus - AdwordsApi::V201003::AdGroupCriterionService::ApprovalStatus
29
+ # - destinationUrl - SOAP::SOAPString
30
+ # - bids - AdwordsApi::V201003::AdGroupCriterionService::AdGroupCriterionBids
31
+ # - firstPageCpc - AdwordsApi::V201003::AdGroupCriterionService::Bid
32
+ # - qualityInfo - AdwordsApi::V201003::AdGroupCriterionService::QualityInfo
33
+ # - stats - AdwordsApi::V201003::AdGroupCriterionService::Stats
34
+ class BiddableAdGroupCriterion < AdGroupCriterion
35
+ attr_accessor :adGroupId
36
+ attr_accessor :criterion
37
+ attr_accessor :adGroupCriterion_Type
38
+ attr_accessor :userStatus
39
+ attr_accessor :systemServingStatus
40
+ attr_accessor :approvalStatus
41
+ attr_accessor :destinationUrl
42
+ attr_accessor :bids
43
+ attr_accessor :firstPageCpc
44
+ attr_accessor :qualityInfo
45
+ attr_accessor :stats
128
46
 
129
- def initialize(requestId = nil, operations = nil, responseTime = nil, units = nil)
130
- @requestId = requestId
131
- @operations = operations
132
- @responseTime = responseTime
133
- @units = units
47
+ def initialize(adGroupId = nil, criterion = nil, adGroupCriterion_Type = nil, userStatus = nil, systemServingStatus = nil, approvalStatus = nil, destinationUrl = nil, bids = nil, firstPageCpc = nil, qualityInfo = nil, stats = nil)
48
+ @adGroupId = adGroupId
49
+ @criterion = criterion
50
+ @adGroupCriterion_Type = adGroupCriterion_Type
51
+ @userStatus = userStatus
52
+ @systemServingStatus = systemServingStatus
53
+ @approvalStatus = approvalStatus
54
+ @destinationUrl = destinationUrl
55
+ @bids = bids
56
+ @firstPageCpc = firstPageCpc
57
+ @qualityInfo = qualityInfo
58
+ @stats = stats
134
59
  end
135
60
  end
136
61
 
137
- # StatsSelector
138
- # - dateRange - AdwordsApi::V201003::AdGroupCriterionService::DateRange
139
- # - statsSelector_Type - SOAP::SOAPString
140
- class StatsSelector
141
- attr_accessor :dateRange
142
- attr_accessor :statsSelector_Type
62
+ # NegativeAdGroupCriterion
63
+ # - adGroupId - SOAP::SOAPLong
64
+ # - criterion - AdwordsApi::V201003::AdGroupCriterionService::Criterion
65
+ # - adGroupCriterion_Type - SOAP::SOAPString
66
+ class NegativeAdGroupCriterion < AdGroupCriterion
67
+ attr_accessor :adGroupId
68
+ attr_accessor :criterion
69
+ attr_accessor :adGroupCriterion_Type
143
70
 
144
- def initialize(dateRange = nil, statsSelector_Type = nil)
145
- @dateRange = dateRange
146
- @statsSelector_Type = statsSelector_Type
71
+ def initialize(adGroupId = nil, criterion = nil, adGroupCriterion_Type = nil)
72
+ @adGroupId = adGroupId
73
+ @criterion = criterion
74
+ @adGroupCriterion_Type = adGroupCriterion_Type
147
75
  end
148
76
  end
149
77
 
150
- # ComparableValue
78
+ # AdGroupCriterionBids
151
79
  # abstract
152
- # - comparableValue_Type - SOAP::SOAPString
153
- class ComparableValue
154
- attr_accessor :comparableValue_Type
80
+ # - adGroupCriterionBids_Type - SOAP::SOAPString
81
+ class AdGroupCriterionBids
82
+ attr_accessor :adGroupCriterionBids_Type
155
83
 
156
- def initialize(comparableValue_Type = nil)
157
- @comparableValue_Type = comparableValue_Type
84
+ def initialize(adGroupCriterionBids_Type = nil)
85
+ @adGroupCriterionBids_Type = adGroupCriterionBids_Type
158
86
  end
159
87
  end
160
88
 
161
- # Money
162
- # - comparableValue_Type - SOAP::SOAPString
163
- # - microAmount - SOAP::SOAPLong
164
- class Money < ComparableValue
165
- attr_accessor :comparableValue_Type
166
- attr_accessor :microAmount
89
+ # BudgetOptimizerAdGroupCriterionBids
90
+ # - adGroupCriterionBids_Type - SOAP::SOAPString
91
+ # - proxyBid - AdwordsApi::V201003::AdGroupCriterionService::Bid
92
+ # - enhancedCpcEnabled - SOAP::SOAPBoolean
93
+ class BudgetOptimizerAdGroupCriterionBids < AdGroupCriterionBids
94
+ attr_accessor :adGroupCriterionBids_Type
95
+ attr_accessor :proxyBid
96
+ attr_accessor :enhancedCpcEnabled
167
97
 
168
- def initialize(comparableValue_Type = nil, microAmount = nil)
169
- @comparableValue_Type = comparableValue_Type
170
- @microAmount = microAmount
98
+ def initialize(adGroupCriterionBids_Type = nil, proxyBid = nil, enhancedCpcEnabled = nil)
99
+ @adGroupCriterionBids_Type = adGroupCriterionBids_Type
100
+ @proxyBid = proxyBid
101
+ @enhancedCpcEnabled = enhancedCpcEnabled
171
102
  end
172
103
  end
173
104
 
174
- # NumberValue
175
- # abstract
176
- # - comparableValue_Type - SOAP::SOAPString
177
- class NumberValue < ComparableValue
178
- attr_accessor :comparableValue_Type
105
+ # ConversionOptimizerAdGroupCriterionBids
106
+ # - adGroupCriterionBids_Type - SOAP::SOAPString
107
+ class ConversionOptimizerAdGroupCriterionBids < AdGroupCriterionBids
108
+ attr_accessor :adGroupCriterionBids_Type
179
109
 
180
- def initialize(comparableValue_Type = nil)
181
- @comparableValue_Type = comparableValue_Type
110
+ def initialize(adGroupCriterionBids_Type = nil)
111
+ @adGroupCriterionBids_Type = adGroupCriterionBids_Type
182
112
  end
183
113
  end
184
114
 
185
- # DoubleValue
186
- # - comparableValue_Type - SOAP::SOAPString
187
- # - number - SOAP::SOAPDouble
188
- class DoubleValue < NumberValue
189
- attr_accessor :comparableValue_Type
190
- attr_accessor :number
115
+ # ManualCPCAdGroupCriterionBids
116
+ # - adGroupCriterionBids_Type - SOAP::SOAPString
117
+ # - maxCpc - AdwordsApi::V201003::AdGroupCriterionService::Bid
118
+ # - bidSource - AdwordsApi::V201003::AdGroupCriterionService::BidSource
119
+ # - positionPreferenceBids - AdwordsApi::V201003::AdGroupCriterionService::PositionPreferenceAdGroupCriterionBids
120
+ # - enhancedCpcEnabled - SOAP::SOAPBoolean
121
+ class ManualCPCAdGroupCriterionBids < AdGroupCriterionBids
122
+ attr_accessor :adGroupCriterionBids_Type
123
+ attr_accessor :maxCpc
124
+ attr_accessor :bidSource
125
+ attr_accessor :positionPreferenceBids
126
+ attr_accessor :enhancedCpcEnabled
191
127
 
192
- def initialize(comparableValue_Type = nil, number = nil)
193
- @comparableValue_Type = comparableValue_Type
194
- @number = number
128
+ def initialize(adGroupCriterionBids_Type = nil, maxCpc = nil, bidSource = nil, positionPreferenceBids = nil, enhancedCpcEnabled = nil)
129
+ @adGroupCriterionBids_Type = adGroupCriterionBids_Type
130
+ @maxCpc = maxCpc
131
+ @bidSource = bidSource
132
+ @positionPreferenceBids = positionPreferenceBids
133
+ @enhancedCpcEnabled = enhancedCpcEnabled
195
134
  end
196
135
  end
197
136
 
198
- # LongValue
199
- # - comparableValue_Type - SOAP::SOAPString
200
- # - number - SOAP::SOAPLong
201
- class LongValue < NumberValue
202
- attr_accessor :comparableValue_Type
203
- attr_accessor :number
137
+ # ManualCPMAdGroupCriterionBids
138
+ # - adGroupCriterionBids_Type - SOAP::SOAPString
139
+ # - maxCpm - AdwordsApi::V201003::AdGroupCriterionService::Bid
140
+ # - bidSource - AdwordsApi::V201003::AdGroupCriterionService::BidSource
141
+ class ManualCPMAdGroupCriterionBids < AdGroupCriterionBids
142
+ attr_accessor :adGroupCriterionBids_Type
143
+ attr_accessor :maxCpm
144
+ attr_accessor :bidSource
204
145
 
205
- def initialize(comparableValue_Type = nil, number = nil)
206
- @comparableValue_Type = comparableValue_Type
207
- @number = number
146
+ def initialize(adGroupCriterionBids_Type = nil, maxCpm = nil, bidSource = nil)
147
+ @adGroupCriterionBids_Type = adGroupCriterionBids_Type
148
+ @maxCpm = maxCpm
149
+ @bidSource = bidSource
208
150
  end
209
151
  end
210
152
 
211
- # ExemptionRequest
212
- # - key - AdwordsApi::V201003::AdGroupCriterionService::PolicyViolationKey
213
- class ExemptionRequest
214
- attr_accessor :key
153
+ # AdGroupCriterionIdFilter
154
+ # - campaignId - SOAP::SOAPLong
155
+ # - adGroupId - SOAP::SOAPLong
156
+ # - criterionId - SOAP::SOAPLong
157
+ class AdGroupCriterionIdFilter
158
+ attr_accessor :campaignId
159
+ attr_accessor :adGroupId
160
+ attr_accessor :criterionId
215
161
 
216
- def initialize(key = nil)
217
- @key = key
162
+ def initialize(campaignId = nil, adGroupId = nil, criterionId = nil)
163
+ @campaignId = campaignId
164
+ @adGroupId = adGroupId
165
+ @criterionId = criterionId
218
166
  end
219
167
  end
220
168
 
221
- # Stats
222
- # - startDate - SOAP::SOAPString
223
- # - endDate - SOAP::SOAPString
224
- # - network - AdwordsApi::V201003::AdGroupCriterionService::StatsNetwork
225
- # - clicks - SOAP::SOAPLong
226
- # - impressions - SOAP::SOAPLong
227
- # - cost - AdwordsApi::V201003::AdGroupCriterionService::Money
228
- # - averagePosition - SOAP::SOAPDouble
229
- # - averageCpc - AdwordsApi::V201003::AdGroupCriterionService::Money
230
- # - averageCpm - AdwordsApi::V201003::AdGroupCriterionService::Money
231
- # - ctr - SOAP::SOAPDouble
232
- # - conversions - SOAP::SOAPLong
233
- # - conversionRate - SOAP::SOAPDouble
234
- # - costPerConversion - AdwordsApi::V201003::AdGroupCriterionService::Money
235
- # - conversionsManyPerClick - SOAP::SOAPLong
236
- # - conversionRateManyPerClick - SOAP::SOAPDouble
237
- # - costPerConversionManyPerClick - AdwordsApi::V201003::AdGroupCriterionService::Money
238
- # - stats_Type - SOAP::SOAPString
239
- class Stats
240
- attr_accessor :startDate
241
- attr_accessor :endDate
242
- attr_accessor :network
243
- attr_accessor :clicks
244
- attr_accessor :impressions
245
- attr_accessor :cost
246
- attr_accessor :averagePosition
247
- attr_accessor :averageCpc
248
- attr_accessor :averageCpm
249
- attr_accessor :ctr
250
- attr_accessor :conversions
251
- attr_accessor :conversionRate
252
- attr_accessor :costPerConversion
253
- attr_accessor :conversionsManyPerClick
254
- attr_accessor :conversionRateManyPerClick
255
- attr_accessor :costPerConversionManyPerClick
256
- attr_accessor :stats_Type
169
+ # AdGroupCriterionSelector
170
+ # - idFilters - AdwordsApi::V201003::AdGroupCriterionService::AdGroupCriterionIdFilter
171
+ # - criterionUse - AdwordsApi::V201003::AdGroupCriterionService::CriterionUse
172
+ # - userStatuses - AdwordsApi::V201003::AdGroupCriterionService::UserStatus
173
+ # - statsSelector - AdwordsApi::V201003::AdGroupCriterionService::StatsSelector
174
+ # - paging - AdwordsApi::V201003::AdGroupCriterionService::Paging
175
+ class AdGroupCriterionSelector
176
+ attr_accessor :idFilters
177
+ attr_accessor :criterionUse
178
+ attr_accessor :userStatuses
179
+ attr_accessor :statsSelector
180
+ attr_accessor :paging
257
181
 
258
- def initialize(startDate = nil, endDate = nil, network = nil, clicks = nil, impressions = nil, cost = nil, averagePosition = nil, averageCpc = nil, averageCpm = nil, ctr = nil, conversions = nil, conversionRate = nil, costPerConversion = nil, conversionsManyPerClick = nil, conversionRateManyPerClick = nil, costPerConversionManyPerClick = nil, stats_Type = nil)
259
- @startDate = startDate
260
- @endDate = endDate
261
- @network = network
262
- @clicks = clicks
263
- @impressions = impressions
264
- @cost = cost
265
- @averagePosition = averagePosition
266
- @averageCpc = averageCpc
267
- @averageCpm = averageCpm
268
- @ctr = ctr
269
- @conversions = conversions
270
- @conversionRate = conversionRate
271
- @costPerConversion = costPerConversion
272
- @conversionsManyPerClick = conversionsManyPerClick
273
- @conversionRateManyPerClick = conversionRateManyPerClick
274
- @costPerConversionManyPerClick = costPerConversionManyPerClick
275
- @stats_Type = stats_Type
182
+ def initialize(idFilters = [], criterionUse = nil, userStatuses = [], statsSelector = nil, paging = nil)
183
+ @idFilters = idFilters
184
+ @criterionUse = criterionUse
185
+ @userStatuses = userStatuses
186
+ @statsSelector = statsSelector
187
+ @paging = paging
276
188
  end
277
189
  end
278
190
 
@@ -406,6 +318,28 @@ class ClientTermsError < ApiError
406
318
  end
407
319
  end
408
320
 
321
+ # DatabaseError
322
+ # - fieldPath - SOAP::SOAPString
323
+ # - trigger - SOAP::SOAPString
324
+ # - errorString - SOAP::SOAPString
325
+ # - apiError_Type - SOAP::SOAPString
326
+ # - reason - AdwordsApi::V201003::AdGroupCriterionService::DatabaseErrorReason
327
+ class DatabaseError < ApiError
328
+ attr_accessor :fieldPath
329
+ attr_accessor :trigger
330
+ attr_accessor :errorString
331
+ attr_accessor :apiError_Type
332
+ attr_accessor :reason
333
+
334
+ def initialize(fieldPath = nil, trigger = nil, errorString = nil, apiError_Type = nil, reason = nil)
335
+ @fieldPath = fieldPath
336
+ @trigger = trigger
337
+ @errorString = errorString
338
+ @apiError_Type = apiError_Type
339
+ @reason = reason
340
+ end
341
+ end
342
+
409
343
  # DateError
410
344
  # - fieldPath - SOAP::SOAPString
411
345
  # - trigger - SOAP::SOAPString
@@ -707,6 +641,80 @@ class PagingError < ApiError
707
641
  end
708
642
  end
709
643
 
644
+ # PolicyViolationError
645
+ # - fieldPath - SOAP::SOAPString
646
+ # - trigger - SOAP::SOAPString
647
+ # - errorString - SOAP::SOAPString
648
+ # - apiError_Type - SOAP::SOAPString
649
+ # - key - AdwordsApi::V201003::AdGroupCriterionService::PolicyViolationKey
650
+ # - externalPolicyName - SOAP::SOAPString
651
+ # - externalPolicyUrl - SOAP::SOAPString
652
+ # - externalPolicyDescription - SOAP::SOAPString
653
+ # - isExemptable - SOAP::SOAPBoolean
654
+ # - violatingParts - AdwordsApi::V201003::AdGroupCriterionService::PolicyViolationErrorPart
655
+ class PolicyViolationError < ApiError
656
+ attr_accessor :fieldPath
657
+ attr_accessor :trigger
658
+ attr_accessor :errorString
659
+ attr_accessor :apiError_Type
660
+ attr_accessor :key
661
+ attr_accessor :externalPolicyName
662
+ attr_accessor :externalPolicyUrl
663
+ attr_accessor :externalPolicyDescription
664
+ attr_accessor :isExemptable
665
+ attr_accessor :violatingParts
666
+
667
+ def initialize(fieldPath = nil, trigger = nil, errorString = nil, apiError_Type = nil, key = nil, externalPolicyName = nil, externalPolicyUrl = nil, externalPolicyDescription = nil, isExemptable = nil, violatingParts = [])
668
+ @fieldPath = fieldPath
669
+ @trigger = trigger
670
+ @errorString = errorString
671
+ @apiError_Type = apiError_Type
672
+ @key = key
673
+ @externalPolicyName = externalPolicyName
674
+ @externalPolicyUrl = externalPolicyUrl
675
+ @externalPolicyDescription = externalPolicyDescription
676
+ @isExemptable = isExemptable
677
+ @violatingParts = violatingParts
678
+ end
679
+ end
680
+
681
+ # CriterionPolicyError
682
+ # - fieldPath - SOAP::SOAPString
683
+ # - trigger - SOAP::SOAPString
684
+ # - errorString - SOAP::SOAPString
685
+ # - apiError_Type - SOAP::SOAPString
686
+ # - key - AdwordsApi::V201003::AdGroupCriterionService::PolicyViolationKey
687
+ # - externalPolicyName - SOAP::SOAPString
688
+ # - externalPolicyUrl - SOAP::SOAPString
689
+ # - externalPolicyDescription - SOAP::SOAPString
690
+ # - isExemptable - SOAP::SOAPBoolean
691
+ # - violatingParts - AdwordsApi::V201003::AdGroupCriterionService::PolicyViolationErrorPart
692
+ class CriterionPolicyError < PolicyViolationError
693
+ attr_accessor :fieldPath
694
+ attr_accessor :trigger
695
+ attr_accessor :errorString
696
+ attr_accessor :apiError_Type
697
+ attr_accessor :key
698
+ attr_accessor :externalPolicyName
699
+ attr_accessor :externalPolicyUrl
700
+ attr_accessor :externalPolicyDescription
701
+ attr_accessor :isExemptable
702
+ attr_accessor :violatingParts
703
+
704
+ def initialize(fieldPath = nil, trigger = nil, errorString = nil, apiError_Type = nil, key = nil, externalPolicyName = nil, externalPolicyUrl = nil, externalPolicyDescription = nil, isExemptable = nil, violatingParts = [])
705
+ @fieldPath = fieldPath
706
+ @trigger = trigger
707
+ @errorString = errorString
708
+ @apiError_Type = apiError_Type
709
+ @key = key
710
+ @externalPolicyName = externalPolicyName
711
+ @externalPolicyUrl = externalPolicyUrl
712
+ @externalPolicyDescription = externalPolicyDescription
713
+ @isExemptable = isExemptable
714
+ @violatingParts = violatingParts
715
+ end
716
+ end
717
+
710
718
  # QuotaCheckError
711
719
  # - fieldPath - SOAP::SOAPString
712
720
  # - trigger - SOAP::SOAPString
@@ -888,125 +896,29 @@ class SizeLimitError < ApiError
888
896
  @trigger = trigger
889
897
  @errorString = errorString
890
898
  @apiError_Type = apiError_Type
891
- @reason = reason
892
- end
893
- end
894
-
895
- # StatsQueryError
896
- # - fieldPath - SOAP::SOAPString
897
- # - trigger - SOAP::SOAPString
898
- # - errorString - SOAP::SOAPString
899
- # - apiError_Type - SOAP::SOAPString
900
- # - reason - AdwordsApi::V201003::AdGroupCriterionService::StatsQueryErrorReason
901
- class StatsQueryError < ApiError
902
- attr_accessor :fieldPath
903
- attr_accessor :trigger
904
- attr_accessor :errorString
905
- attr_accessor :apiError_Type
906
- attr_accessor :reason
907
-
908
- def initialize(fieldPath = nil, trigger = nil, errorString = nil, apiError_Type = nil, reason = nil)
909
- @fieldPath = fieldPath
910
- @trigger = trigger
911
- @errorString = errorString
912
- @apiError_Type = apiError_Type
913
- @reason = reason
914
- end
915
- end
916
-
917
- # DatabaseError
918
- # - fieldPath - SOAP::SOAPString
919
- # - trigger - SOAP::SOAPString
920
- # - errorString - SOAP::SOAPString
921
- # - apiError_Type - SOAP::SOAPString
922
- # - reason - AdwordsApi::V201003::AdGroupCriterionService::DatabaseErrorReason
923
- class DatabaseError < ApiError
924
- attr_accessor :fieldPath
925
- attr_accessor :trigger
926
- attr_accessor :errorString
927
- attr_accessor :apiError_Type
928
- attr_accessor :reason
929
-
930
- def initialize(fieldPath = nil, trigger = nil, errorString = nil, apiError_Type = nil, reason = nil)
931
- @fieldPath = fieldPath
932
- @trigger = trigger
933
- @errorString = errorString
934
- @apiError_Type = apiError_Type
935
- @reason = reason
936
- end
937
- end
938
-
939
- # PolicyViolationError
940
- # - fieldPath - SOAP::SOAPString
941
- # - trigger - SOAP::SOAPString
942
- # - errorString - SOAP::SOAPString
943
- # - apiError_Type - SOAP::SOAPString
944
- # - key - AdwordsApi::V201003::AdGroupCriterionService::PolicyViolationKey
945
- # - externalPolicyName - SOAP::SOAPString
946
- # - externalPolicyUrl - SOAP::SOAPString
947
- # - externalPolicyDescription - SOAP::SOAPString
948
- # - isExemptable - SOAP::SOAPBoolean
949
- # - violatingParts - AdwordsApi::V201003::AdGroupCriterionService::PolicyViolationErrorPart
950
- class PolicyViolationError < ApiError
951
- attr_accessor :fieldPath
952
- attr_accessor :trigger
953
- attr_accessor :errorString
954
- attr_accessor :apiError_Type
955
- attr_accessor :key
956
- attr_accessor :externalPolicyName
957
- attr_accessor :externalPolicyUrl
958
- attr_accessor :externalPolicyDescription
959
- attr_accessor :isExemptable
960
- attr_accessor :violatingParts
961
-
962
- def initialize(fieldPath = nil, trigger = nil, errorString = nil, apiError_Type = nil, key = nil, externalPolicyName = nil, externalPolicyUrl = nil, externalPolicyDescription = nil, isExemptable = nil, violatingParts = [])
963
- @fieldPath = fieldPath
964
- @trigger = trigger
965
- @errorString = errorString
966
- @apiError_Type = apiError_Type
967
- @key = key
968
- @externalPolicyName = externalPolicyName
969
- @externalPolicyUrl = externalPolicyUrl
970
- @externalPolicyDescription = externalPolicyDescription
971
- @isExemptable = isExemptable
972
- @violatingParts = violatingParts
899
+ @reason = reason
973
900
  end
974
901
  end
975
902
 
976
- # CriterionPolicyError
903
+ # StatsQueryError
977
904
  # - fieldPath - SOAP::SOAPString
978
905
  # - trigger - SOAP::SOAPString
979
906
  # - errorString - SOAP::SOAPString
980
907
  # - apiError_Type - SOAP::SOAPString
981
- # - key - AdwordsApi::V201003::AdGroupCriterionService::PolicyViolationKey
982
- # - externalPolicyName - SOAP::SOAPString
983
- # - externalPolicyUrl - SOAP::SOAPString
984
- # - externalPolicyDescription - SOAP::SOAPString
985
- # - isExemptable - SOAP::SOAPBoolean
986
- # - violatingParts - AdwordsApi::V201003::AdGroupCriterionService::PolicyViolationErrorPart
987
- class CriterionPolicyError < PolicyViolationError
908
+ # - reason - AdwordsApi::V201003::AdGroupCriterionService::StatsQueryErrorReason
909
+ class StatsQueryError < ApiError
988
910
  attr_accessor :fieldPath
989
911
  attr_accessor :trigger
990
912
  attr_accessor :errorString
991
913
  attr_accessor :apiError_Type
992
- attr_accessor :key
993
- attr_accessor :externalPolicyName
994
- attr_accessor :externalPolicyUrl
995
- attr_accessor :externalPolicyDescription
996
- attr_accessor :isExemptable
997
- attr_accessor :violatingParts
914
+ attr_accessor :reason
998
915
 
999
- def initialize(fieldPath = nil, trigger = nil, errorString = nil, apiError_Type = nil, key = nil, externalPolicyName = nil, externalPolicyUrl = nil, externalPolicyDescription = nil, isExemptable = nil, violatingParts = [])
916
+ def initialize(fieldPath = nil, trigger = nil, errorString = nil, apiError_Type = nil, reason = nil)
1000
917
  @fieldPath = fieldPath
1001
918
  @trigger = trigger
1002
919
  @errorString = errorString
1003
920
  @apiError_Type = apiError_Type
1004
- @key = key
1005
- @externalPolicyName = externalPolicyName
1006
- @externalPolicyUrl = externalPolicyUrl
1007
- @externalPolicyDescription = externalPolicyDescription
1008
- @isExemptable = isExemptable
1009
- @violatingParts = violatingParts
921
+ @reason = reason
1010
922
  end
1011
923
  end
1012
924
 
@@ -1049,19 +961,64 @@ class Bid
1049
961
  end
1050
962
  end
1051
963
 
1052
- # PositionPreferenceAdGroupCriterionBids
1053
- # - proxyMaxCpc - AdwordsApi::V201003::AdGroupCriterionService::Bid
1054
- # - preferredPosition - SOAP::SOAPInt
1055
- # - bottomPosition - SOAP::SOAPInt
1056
- class PositionPreferenceAdGroupCriterionBids
1057
- attr_accessor :proxyMaxCpc
1058
- attr_accessor :preferredPosition
1059
- attr_accessor :bottomPosition
964
+ # ComparableValue
965
+ # abstract
966
+ # - comparableValue_Type - SOAP::SOAPString
967
+ class ComparableValue
968
+ attr_accessor :comparableValue_Type
1060
969
 
1061
- def initialize(proxyMaxCpc = nil, preferredPosition = nil, bottomPosition = nil)
1062
- @proxyMaxCpc = proxyMaxCpc
1063
- @preferredPosition = preferredPosition
1064
- @bottomPosition = bottomPosition
970
+ def initialize(comparableValue_Type = nil)
971
+ @comparableValue_Type = comparableValue_Type
972
+ end
973
+ end
974
+
975
+ # Money
976
+ # - comparableValue_Type - SOAP::SOAPString
977
+ # - microAmount - SOAP::SOAPLong
978
+ class Money < ComparableValue
979
+ attr_accessor :comparableValue_Type
980
+ attr_accessor :microAmount
981
+
982
+ def initialize(comparableValue_Type = nil, microAmount = nil)
983
+ @comparableValue_Type = comparableValue_Type
984
+ @microAmount = microAmount
985
+ end
986
+ end
987
+
988
+ # NumberValue
989
+ # abstract
990
+ # - comparableValue_Type - SOAP::SOAPString
991
+ class NumberValue < ComparableValue
992
+ attr_accessor :comparableValue_Type
993
+
994
+ def initialize(comparableValue_Type = nil)
995
+ @comparableValue_Type = comparableValue_Type
996
+ end
997
+ end
998
+
999
+ # DoubleValue
1000
+ # - comparableValue_Type - SOAP::SOAPString
1001
+ # - number - SOAP::SOAPDouble
1002
+ class DoubleValue < NumberValue
1003
+ attr_accessor :comparableValue_Type
1004
+ attr_accessor :number
1005
+
1006
+ def initialize(comparableValue_Type = nil, number = nil)
1007
+ @comparableValue_Type = comparableValue_Type
1008
+ @number = number
1009
+ end
1010
+ end
1011
+
1012
+ # LongValue
1013
+ # - comparableValue_Type - SOAP::SOAPString
1014
+ # - number - SOAP::SOAPLong
1015
+ class LongValue < NumberValue
1016
+ attr_accessor :comparableValue_Type
1017
+ attr_accessor :number
1018
+
1019
+ def initialize(comparableValue_Type = nil, number = nil)
1020
+ @comparableValue_Type = comparableValue_Type
1021
+ @number = number
1065
1022
  end
1066
1023
  end
1067
1024
 
@@ -1107,194 +1064,48 @@ class Placement < Criterion
1107
1064
  attr_accessor :url
1108
1065
 
1109
1066
  def initialize(id = nil, criterion_Type = nil, url = nil)
1110
- @id = id
1111
- @criterion_Type = criterion_Type
1112
- @url = url
1113
- end
1114
- end
1115
-
1116
- # Vertical
1117
- # - id - SOAP::SOAPLong
1118
- # - criterion_Type - SOAP::SOAPString
1119
- # - path - SOAP::SOAPString
1120
- class Vertical < Criterion
1121
- attr_accessor :id
1122
- attr_accessor :criterion_Type
1123
- attr_accessor :path
1124
-
1125
- def initialize(id = nil, criterion_Type = nil, path = [])
1126
- @id = id
1127
- @criterion_Type = criterion_Type
1128
- @path = path
1129
- end
1130
- end
1131
-
1132
- # AdGroupCriterionBids
1133
- # abstract
1134
- # - adGroupCriterionBids_Type - SOAP::SOAPString
1135
- class AdGroupCriterionBids
1136
- attr_accessor :adGroupCriterionBids_Type
1137
-
1138
- def initialize(adGroupCriterionBids_Type = nil)
1139
- @adGroupCriterionBids_Type = adGroupCriterionBids_Type
1140
- end
1141
- end
1142
-
1143
- # ConversionOptimizerAdGroupCriterionBids
1144
- # - adGroupCriterionBids_Type - SOAP::SOAPString
1145
- class ConversionOptimizerAdGroupCriterionBids < AdGroupCriterionBids
1146
- attr_accessor :adGroupCriterionBids_Type
1147
-
1148
- def initialize(adGroupCriterionBids_Type = nil)
1149
- @adGroupCriterionBids_Type = adGroupCriterionBids_Type
1150
- end
1151
- end
1152
-
1153
- # BudgetOptimizerAdGroupCriterionBids
1154
- # - adGroupCriterionBids_Type - SOAP::SOAPString
1155
- # - proxyBid - AdwordsApi::V201003::AdGroupCriterionService::Bid
1156
- # - enhancedCpcEnabled - SOAP::SOAPBoolean
1157
- class BudgetOptimizerAdGroupCriterionBids < AdGroupCriterionBids
1158
- attr_accessor :adGroupCriterionBids_Type
1159
- attr_accessor :proxyBid
1160
- attr_accessor :enhancedCpcEnabled
1161
-
1162
- def initialize(adGroupCriterionBids_Type = nil, proxyBid = nil, enhancedCpcEnabled = nil)
1163
- @adGroupCriterionBids_Type = adGroupCriterionBids_Type
1164
- @proxyBid = proxyBid
1165
- @enhancedCpcEnabled = enhancedCpcEnabled
1166
- end
1167
- end
1168
-
1169
- # ManualCPMAdGroupCriterionBids
1170
- # - adGroupCriterionBids_Type - SOAP::SOAPString
1171
- # - maxCpm - AdwordsApi::V201003::AdGroupCriterionService::Bid
1172
- # - bidSource - AdwordsApi::V201003::AdGroupCriterionService::BidSource
1173
- class ManualCPMAdGroupCriterionBids < AdGroupCriterionBids
1174
- attr_accessor :adGroupCriterionBids_Type
1175
- attr_accessor :maxCpm
1176
- attr_accessor :bidSource
1177
-
1178
- def initialize(adGroupCriterionBids_Type = nil, maxCpm = nil, bidSource = nil)
1179
- @adGroupCriterionBids_Type = adGroupCriterionBids_Type
1180
- @maxCpm = maxCpm
1181
- @bidSource = bidSource
1182
- end
1183
- end
1184
-
1185
- # ManualCPCAdGroupCriterionBids
1186
- # - adGroupCriterionBids_Type - SOAP::SOAPString
1187
- # - maxCpc - AdwordsApi::V201003::AdGroupCriterionService::Bid
1188
- # - bidSource - AdwordsApi::V201003::AdGroupCriterionService::BidSource
1189
- # - positionPreferenceBids - AdwordsApi::V201003::AdGroupCriterionService::PositionPreferenceAdGroupCriterionBids
1190
- # - enhancedCpcEnabled - SOAP::SOAPBoolean
1191
- class ManualCPCAdGroupCriterionBids < AdGroupCriterionBids
1192
- attr_accessor :adGroupCriterionBids_Type
1193
- attr_accessor :maxCpc
1194
- attr_accessor :bidSource
1195
- attr_accessor :positionPreferenceBids
1196
- attr_accessor :enhancedCpcEnabled
1197
-
1198
- def initialize(adGroupCriterionBids_Type = nil, maxCpc = nil, bidSource = nil, positionPreferenceBids = nil, enhancedCpcEnabled = nil)
1199
- @adGroupCriterionBids_Type = adGroupCriterionBids_Type
1200
- @maxCpc = maxCpc
1201
- @bidSource = bidSource
1202
- @positionPreferenceBids = positionPreferenceBids
1203
- @enhancedCpcEnabled = enhancedCpcEnabled
1204
- end
1205
- end
1206
-
1207
- # AdGroupCriterion
1208
- # - adGroupId - SOAP::SOAPLong
1209
- # - criterion - AdwordsApi::V201003::AdGroupCriterionService::Criterion
1210
- # - adGroupCriterion_Type - SOAP::SOAPString
1211
- class AdGroupCriterion
1212
- attr_accessor :adGroupId
1213
- attr_accessor :criterion
1214
- attr_accessor :adGroupCriterion_Type
1215
-
1216
- def initialize(adGroupId = nil, criterion = nil, adGroupCriterion_Type = nil)
1217
- @adGroupId = adGroupId
1218
- @criterion = criterion
1219
- @adGroupCriterion_Type = adGroupCriterion_Type
1220
- end
1221
- end
1222
-
1223
- # NegativeAdGroupCriterion
1224
- # - adGroupId - SOAP::SOAPLong
1225
- # - criterion - AdwordsApi::V201003::AdGroupCriterionService::Criterion
1226
- # - adGroupCriterion_Type - SOAP::SOAPString
1227
- class NegativeAdGroupCriterion < AdGroupCriterion
1228
- attr_accessor :adGroupId
1229
- attr_accessor :criterion
1230
- attr_accessor :adGroupCriterion_Type
1231
-
1232
- def initialize(adGroupId = nil, criterion = nil, adGroupCriterion_Type = nil)
1233
- @adGroupId = adGroupId
1234
- @criterion = criterion
1235
- @adGroupCriterion_Type = adGroupCriterion_Type
1236
- end
1237
- end
1238
-
1239
- # BiddableAdGroupCriterion
1240
- # - adGroupId - SOAP::SOAPLong
1241
- # - criterion - AdwordsApi::V201003::AdGroupCriterionService::Criterion
1242
- # - adGroupCriterion_Type - SOAP::SOAPString
1243
- # - userStatus - AdwordsApi::V201003::AdGroupCriterionService::UserStatus
1244
- # - systemServingStatus - AdwordsApi::V201003::AdGroupCriterionService::SystemServingStatus
1245
- # - approvalStatus - AdwordsApi::V201003::AdGroupCriterionService::ApprovalStatus
1246
- # - destinationUrl - SOAP::SOAPString
1247
- # - bids - AdwordsApi::V201003::AdGroupCriterionService::AdGroupCriterionBids
1248
- # - firstPageCpc - AdwordsApi::V201003::AdGroupCriterionService::Bid
1249
- # - qualityInfo - AdwordsApi::V201003::AdGroupCriterionService::QualityInfo
1250
- # - stats - AdwordsApi::V201003::AdGroupCriterionService::Stats
1251
- class BiddableAdGroupCriterion < AdGroupCriterion
1252
- attr_accessor :adGroupId
1253
- attr_accessor :criterion
1254
- attr_accessor :adGroupCriterion_Type
1255
- attr_accessor :userStatus
1256
- attr_accessor :systemServingStatus
1257
- attr_accessor :approvalStatus
1258
- attr_accessor :destinationUrl
1259
- attr_accessor :bids
1260
- attr_accessor :firstPageCpc
1261
- attr_accessor :qualityInfo
1262
- attr_accessor :stats
1067
+ @id = id
1068
+ @criterion_Type = criterion_Type
1069
+ @url = url
1070
+ end
1071
+ end
1263
1072
 
1264
- def initialize(adGroupId = nil, criterion = nil, adGroupCriterion_Type = nil, userStatus = nil, systemServingStatus = nil, approvalStatus = nil, destinationUrl = nil, bids = nil, firstPageCpc = nil, qualityInfo = nil, stats = nil)
1265
- @adGroupId = adGroupId
1266
- @criterion = criterion
1267
- @adGroupCriterion_Type = adGroupCriterion_Type
1268
- @userStatus = userStatus
1269
- @systemServingStatus = systemServingStatus
1270
- @approvalStatus = approvalStatus
1271
- @destinationUrl = destinationUrl
1272
- @bids = bids
1273
- @firstPageCpc = firstPageCpc
1274
- @qualityInfo = qualityInfo
1275
- @stats = stats
1073
+ # Vertical
1074
+ # - id - SOAP::SOAPLong
1075
+ # - criterion_Type - SOAP::SOAPString
1076
+ # - path - SOAP::SOAPString
1077
+ class Vertical < Criterion
1078
+ attr_accessor :id
1079
+ attr_accessor :criterion_Type
1080
+ attr_accessor :path
1081
+
1082
+ def initialize(id = nil, criterion_Type = nil, path = [])
1083
+ @id = id
1084
+ @criterion_Type = criterion_Type
1085
+ @path = path
1276
1086
  end
1277
1087
  end
1278
1088
 
1279
- # AdGroupCriterionSelector
1280
- # - idFilters - AdwordsApi::V201003::AdGroupCriterionService::AdGroupCriterionIdFilter
1281
- # - criterionUse - AdwordsApi::V201003::AdGroupCriterionService::CriterionUse
1282
- # - userStatuses - AdwordsApi::V201003::AdGroupCriterionService::UserStatus
1283
- # - statsSelector - AdwordsApi::V201003::AdGroupCriterionService::StatsSelector
1284
- # - paging - AdwordsApi::V201003::AdGroupCriterionService::Paging
1285
- class AdGroupCriterionSelector
1286
- attr_accessor :idFilters
1287
- attr_accessor :criterionUse
1288
- attr_accessor :userStatuses
1289
- attr_accessor :statsSelector
1290
- attr_accessor :paging
1089
+ # DateRange
1090
+ # - min - SOAP::SOAPString
1091
+ # - max - SOAP::SOAPString
1092
+ class DateRange
1093
+ attr_accessor :min
1094
+ attr_accessor :max
1291
1095
 
1292
- def initialize(idFilters = [], criterionUse = nil, userStatuses = [], statsSelector = nil, paging = nil)
1293
- @idFilters = idFilters
1294
- @criterionUse = criterionUse
1295
- @userStatuses = userStatuses
1296
- @statsSelector = statsSelector
1297
- @paging = paging
1096
+ def initialize(min = nil, max = nil)
1097
+ @min = min
1098
+ @max = max
1099
+ end
1100
+ end
1101
+
1102
+ # ExemptionRequest
1103
+ # - key - AdwordsApi::V201003::AdGroupCriterionService::PolicyViolationKey
1104
+ class ExemptionRequest
1105
+ attr_accessor :key
1106
+
1107
+ def initialize(key = nil)
1108
+ @key = key
1298
1109
  end
1299
1110
  end
1300
1111
 
@@ -1385,6 +1196,195 @@ class AdGroupCriterionPage < Page
1385
1196
  end
1386
1197
  end
1387
1198
 
1199
+ # Paging
1200
+ # - startIndex - SOAP::SOAPInt
1201
+ # - numberResults - SOAP::SOAPInt
1202
+ class Paging
1203
+ attr_accessor :startIndex
1204
+ attr_accessor :numberResults
1205
+
1206
+ def initialize(startIndex = nil, numberResults = nil)
1207
+ @startIndex = startIndex
1208
+ @numberResults = numberResults
1209
+ end
1210
+ end
1211
+
1212
+ # PolicyViolationError.Part
1213
+ # - index - SOAP::SOAPInt
1214
+ # - length - SOAP::SOAPInt
1215
+ class PolicyViolationErrorPart
1216
+ attr_accessor :index
1217
+ attr_accessor :length
1218
+
1219
+ def initialize(index = nil, length = nil)
1220
+ @index = index
1221
+ @length = length
1222
+ end
1223
+ end
1224
+
1225
+ # PolicyViolationKey
1226
+ # - policyName - SOAP::SOAPString
1227
+ # - violatingText - SOAP::SOAPString
1228
+ class PolicyViolationKey
1229
+ attr_accessor :policyName
1230
+ attr_accessor :violatingText
1231
+
1232
+ def initialize(policyName = nil, violatingText = nil)
1233
+ @policyName = policyName
1234
+ @violatingText = violatingText
1235
+ end
1236
+ end
1237
+
1238
+ # PositionPreferenceAdGroupCriterionBids
1239
+ # - proxyMaxCpc - AdwordsApi::V201003::AdGroupCriterionService::Bid
1240
+ # - preferredPosition - SOAP::SOAPInt
1241
+ # - bottomPosition - SOAP::SOAPInt
1242
+ class PositionPreferenceAdGroupCriterionBids
1243
+ attr_accessor :proxyMaxCpc
1244
+ attr_accessor :preferredPosition
1245
+ attr_accessor :bottomPosition
1246
+
1247
+ def initialize(proxyMaxCpc = nil, preferredPosition = nil, bottomPosition = nil)
1248
+ @proxyMaxCpc = proxyMaxCpc
1249
+ @preferredPosition = preferredPosition
1250
+ @bottomPosition = bottomPosition
1251
+ end
1252
+ end
1253
+
1254
+ # QualityInfo
1255
+ # - isKeywordAdRelevanceAcceptable - SOAP::SOAPBoolean
1256
+ # - isLandingPageQualityAcceptable - SOAP::SOAPBoolean
1257
+ # - isLandingPageLatencyAcceptable - SOAP::SOAPBoolean
1258
+ # - qualityScore - SOAP::SOAPInt
1259
+ class QualityInfo
1260
+ attr_accessor :isKeywordAdRelevanceAcceptable
1261
+ attr_accessor :isLandingPageQualityAcceptable
1262
+ attr_accessor :isLandingPageLatencyAcceptable
1263
+ attr_accessor :qualityScore
1264
+
1265
+ def initialize(isKeywordAdRelevanceAcceptable = nil, isLandingPageQualityAcceptable = nil, isLandingPageLatencyAcceptable = nil, qualityScore = nil)
1266
+ @isKeywordAdRelevanceAcceptable = isKeywordAdRelevanceAcceptable
1267
+ @isLandingPageQualityAcceptable = isLandingPageQualityAcceptable
1268
+ @isLandingPageLatencyAcceptable = isLandingPageLatencyAcceptable
1269
+ @qualityScore = qualityScore
1270
+ end
1271
+ end
1272
+
1273
+ # SoapHeader
1274
+ # - authToken - SOAP::SOAPString
1275
+ # - clientCustomerId - SOAP::SOAPString
1276
+ # - clientEmail - SOAP::SOAPString
1277
+ # - developerToken - SOAP::SOAPString
1278
+ # - userAgent - SOAP::SOAPString
1279
+ # - validateOnly - SOAP::SOAPBoolean
1280
+ class SoapHeader
1281
+ attr_accessor :authToken
1282
+ attr_accessor :clientCustomerId
1283
+ attr_accessor :clientEmail
1284
+ attr_accessor :developerToken
1285
+ attr_accessor :userAgent
1286
+ attr_accessor :validateOnly
1287
+
1288
+ def initialize(authToken = nil, clientCustomerId = nil, clientEmail = nil, developerToken = nil, userAgent = nil, validateOnly = nil)
1289
+ @authToken = authToken
1290
+ @clientCustomerId = clientCustomerId
1291
+ @clientEmail = clientEmail
1292
+ @developerToken = developerToken
1293
+ @userAgent = userAgent
1294
+ @validateOnly = validateOnly
1295
+ end
1296
+ end
1297
+
1298
+ # SoapResponseHeader
1299
+ # - requestId - SOAP::SOAPString
1300
+ # - operations - SOAP::SOAPLong
1301
+ # - responseTime - SOAP::SOAPLong
1302
+ # - units - SOAP::SOAPLong
1303
+ class SoapResponseHeader
1304
+ attr_accessor :requestId
1305
+ attr_accessor :operations
1306
+ attr_accessor :responseTime
1307
+ attr_accessor :units
1308
+
1309
+ def initialize(requestId = nil, operations = nil, responseTime = nil, units = nil)
1310
+ @requestId = requestId
1311
+ @operations = operations
1312
+ @responseTime = responseTime
1313
+ @units = units
1314
+ end
1315
+ end
1316
+
1317
+ # Stats
1318
+ # - startDate - SOAP::SOAPString
1319
+ # - endDate - SOAP::SOAPString
1320
+ # - network - AdwordsApi::V201003::AdGroupCriterionService::StatsNetwork
1321
+ # - clicks - SOAP::SOAPLong
1322
+ # - impressions - SOAP::SOAPLong
1323
+ # - cost - AdwordsApi::V201003::AdGroupCriterionService::Money
1324
+ # - averagePosition - SOAP::SOAPDouble
1325
+ # - averageCpc - AdwordsApi::V201003::AdGroupCriterionService::Money
1326
+ # - averageCpm - AdwordsApi::V201003::AdGroupCriterionService::Money
1327
+ # - ctr - SOAP::SOAPDouble
1328
+ # - conversions - SOAP::SOAPLong
1329
+ # - conversionRate - SOAP::SOAPDouble
1330
+ # - costPerConversion - AdwordsApi::V201003::AdGroupCriterionService::Money
1331
+ # - conversionsManyPerClick - SOAP::SOAPLong
1332
+ # - conversionRateManyPerClick - SOAP::SOAPDouble
1333
+ # - costPerConversionManyPerClick - AdwordsApi::V201003::AdGroupCriterionService::Money
1334
+ # - stats_Type - SOAP::SOAPString
1335
+ class Stats
1336
+ attr_accessor :startDate
1337
+ attr_accessor :endDate
1338
+ attr_accessor :network
1339
+ attr_accessor :clicks
1340
+ attr_accessor :impressions
1341
+ attr_accessor :cost
1342
+ attr_accessor :averagePosition
1343
+ attr_accessor :averageCpc
1344
+ attr_accessor :averageCpm
1345
+ attr_accessor :ctr
1346
+ attr_accessor :conversions
1347
+ attr_accessor :conversionRate
1348
+ attr_accessor :costPerConversion
1349
+ attr_accessor :conversionsManyPerClick
1350
+ attr_accessor :conversionRateManyPerClick
1351
+ attr_accessor :costPerConversionManyPerClick
1352
+ attr_accessor :stats_Type
1353
+
1354
+ def initialize(startDate = nil, endDate = nil, network = nil, clicks = nil, impressions = nil, cost = nil, averagePosition = nil, averageCpc = nil, averageCpm = nil, ctr = nil, conversions = nil, conversionRate = nil, costPerConversion = nil, conversionsManyPerClick = nil, conversionRateManyPerClick = nil, costPerConversionManyPerClick = nil, stats_Type = nil)
1355
+ @startDate = startDate
1356
+ @endDate = endDate
1357
+ @network = network
1358
+ @clicks = clicks
1359
+ @impressions = impressions
1360
+ @cost = cost
1361
+ @averagePosition = averagePosition
1362
+ @averageCpc = averageCpc
1363
+ @averageCpm = averageCpm
1364
+ @ctr = ctr
1365
+ @conversions = conversions
1366
+ @conversionRate = conversionRate
1367
+ @costPerConversion = costPerConversion
1368
+ @conversionsManyPerClick = conversionsManyPerClick
1369
+ @conversionRateManyPerClick = conversionRateManyPerClick
1370
+ @costPerConversionManyPerClick = costPerConversionManyPerClick
1371
+ @stats_Type = stats_Type
1372
+ end
1373
+ end
1374
+
1375
+ # StatsSelector
1376
+ # - dateRange - AdwordsApi::V201003::AdGroupCriterionService::DateRange
1377
+ # - statsSelector_Type - SOAP::SOAPString
1378
+ class StatsSelector
1379
+ attr_accessor :dateRange
1380
+ attr_accessor :statsSelector_Type
1381
+
1382
+ def initialize(dateRange = nil, statsSelector_Type = nil)
1383
+ @dateRange = dateRange
1384
+ @statsSelector_Type = statsSelector_Type
1385
+ end
1386
+ end
1387
+
1388
1388
  # AdGroupCriterionError.Reason
1389
1389
  class AdGroupCriterionErrorReason < ::String
1390
1390
  BID_INCOMPATIBLE_WITH_ADGROUP = AdGroupCriterionErrorReason.new("BID_INCOMPATIBLE_WITH_ADGROUP")