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
@@ -40,7 +40,7 @@ module AdwordsApi
40
40
  # Set other constants
41
41
  API_NAME = 'AdwordsApi'
42
42
  API_PATH = 'adwords_api'
43
- CLIENT_LIB_VERSION = '0.1.0'
43
+ CLIENT_LIB_VERSION = '0.1.1'
44
44
 
45
45
  # Configure the services available to each version
46
46
  @@service_config = {
@@ -71,8 +71,9 @@ module AdwordsApi
71
71
  :v201101 => [:AdExtensionOverrideService, :AdGroupAdService,
72
72
  :AdGroupCriterionService, :AdGroupService, :AdParamService,
73
73
  :AlertService, :BulkMutateJobService,
74
- :CampaignAdExtensionService, :CampaignCriterionService,
75
- :CampaignService, :CampaignTargetService,
74
+ :BulkOpportunityService, :CampaignAdExtensionService,
75
+ :CampaignCriterionService, :CampaignService,
76
+ :CampaignTargetService, :ConversionTrackerService,
76
77
  :CustomerSyncService, :DataService, :ExperimentService,
77
78
  :GeoLocationService, :InfoService, :MediaService,
78
79
  :ReportDefinitionService, :ServicedAccountService,
@@ -167,10 +168,12 @@ module AdwordsApi
167
168
  [:v201101, :AdParamService] => 'cm/',
168
169
  [:v201101, :AlertService] => 'mcm/',
169
170
  [:v201101, :BulkMutateJobService] => 'job/',
171
+ [:v201101, :BulkOpportunityService] => 'o/',
170
172
  [:v201101, :CampaignAdExtensionService] => 'cm/',
171
173
  [:v201101, :CampaignCriterionService] => 'cm/',
172
174
  [:v201101, :CampaignService] => 'cm/',
173
175
  [:v201101, :CampaignTargetService] => 'cm/',
176
+ [:v201101, :ConversionTrackerService] => 'cm/',
174
177
  [:v201101, :CustomerSyncService] => 'ch/',
175
178
  [:v201101, :DataService] => 'cm/',
176
179
  [:v201101, :ExperimentService] => 'cm/',
@@ -70,7 +70,10 @@ module AdwordsApi
70
70
  # Convert error objects to hashes.
71
71
  errors = nil
72
72
  if inner_fault.errors
73
- errors = inner_fault.errors.map do |error_object|
73
+ # Fix problem with single errors on mismatched namespaces.
74
+ error_array = inner_fault.errors.is_a?(Array) ? inner_fault.errors :
75
+ [inner_fault.errors]
76
+ errors = error_array.map do |error_object|
74
77
  wrapper.convert_from_object(error_object)
75
78
  end
76
79
  end
@@ -38,7 +38,7 @@ module AdwordsApi
38
38
  [:v201008, :ReportDefinitionService] => [:download_report,
39
39
  :download_report_as_file],
40
40
  [:v201101, :ReportDefinitionService] => [:download_report,
41
- :download_report_as_file, :download_mcc_report]
41
+ :download_report_as_file]
42
42
  }
43
43
 
44
44
  # Defines the parameter list for every extension method
@@ -16,7 +16,7 @@ class AccountInterface < ::SOAP::RPC::Driver
16
16
  ["out", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v13", "getAccountInfoResponse"]] ],
17
17
  { :request_style => :document, :request_use => :literal,
18
18
  :response_style => :document, :response_use => :literal,
19
- :faults => {"AdwordsApi::V13::AccountService::ApiException"=>{:encodingstyle=>"document", :namespace=>nil, :ns=>"https://adwords.google.com/api/adwords/v13", :use=>"literal", :name=>"ApiException"}} }
19
+ :faults => {"AdwordsApi::V13::AccountService::ApiException"=>{:encodingstyle=>"document", :use=>"literal", :namespace=>nil, :ns=>"https://adwords.google.com/api/adwords/v13", :name=>"ApiException"}} }
20
20
  ],
21
21
  [ "",
22
22
  "getClientAccountInfos",
@@ -24,7 +24,7 @@ class AccountInterface < ::SOAP::RPC::Driver
24
24
  ["out", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v13", "getClientAccountInfosResponse"]] ],
25
25
  { :request_style => :document, :request_use => :literal,
26
26
  :response_style => :document, :response_use => :literal,
27
- :faults => {"AdwordsApi::V13::AccountService::ApiException"=>{:encodingstyle=>"document", :namespace=>nil, :ns=>"https://adwords.google.com/api/adwords/v13", :use=>"literal", :name=>"ApiException"}} }
27
+ :faults => {"AdwordsApi::V13::AccountService::ApiException"=>{:encodingstyle=>"document", :use=>"literal", :namespace=>nil, :ns=>"https://adwords.google.com/api/adwords/v13", :name=>"ApiException"}} }
28
28
  ],
29
29
  [ "",
30
30
  "getClientAccounts",
@@ -32,7 +32,7 @@ class AccountInterface < ::SOAP::RPC::Driver
32
32
  ["out", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v13", "getClientAccountsResponse"]] ],
33
33
  { :request_style => :document, :request_use => :literal,
34
34
  :response_style => :document, :response_use => :literal,
35
- :faults => {"AdwordsApi::V13::AccountService::ApiException"=>{:encodingstyle=>"document", :namespace=>nil, :ns=>"https://adwords.google.com/api/adwords/v13", :use=>"literal", :name=>"ApiException"}} }
35
+ :faults => {"AdwordsApi::V13::AccountService::ApiException"=>{:encodingstyle=>"document", :use=>"literal", :namespace=>nil, :ns=>"https://adwords.google.com/api/adwords/v13", :name=>"ApiException"}} }
36
36
  ],
37
37
  [ "",
38
38
  "getMccAlerts",
@@ -40,7 +40,7 @@ class AccountInterface < ::SOAP::RPC::Driver
40
40
  ["out", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v13", "getMccAlertsResponse"]] ],
41
41
  { :request_style => :document, :request_use => :literal,
42
42
  :response_style => :document, :response_use => :literal,
43
- :faults => {"AdwordsApi::V13::AccountService::ApiException"=>{:encodingstyle=>"document", :namespace=>nil, :ns=>"https://adwords.google.com/api/adwords/v13", :use=>"literal", :name=>"ApiException"}} }
43
+ :faults => {"AdwordsApi::V13::AccountService::ApiException"=>{:encodingstyle=>"document", :use=>"literal", :namespace=>nil, :ns=>"https://adwords.google.com/api/adwords/v13", :name=>"ApiException"}} }
44
44
  ],
45
45
  [ "",
46
46
  "updateAccountInfo",
@@ -48,7 +48,7 @@ class AccountInterface < ::SOAP::RPC::Driver
48
48
  ["out", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v13", "updateAccountInfoResponse"]] ],
49
49
  { :request_style => :document, :request_use => :literal,
50
50
  :response_style => :document, :response_use => :literal,
51
- :faults => {"AdwordsApi::V13::AccountService::ApiException"=>{:encodingstyle=>"document", :namespace=>nil, :ns=>"https://adwords.google.com/api/adwords/v13", :use=>"literal", :name=>"ApiException"}} }
51
+ :faults => {"AdwordsApi::V13::AccountService::ApiException"=>{:encodingstyle=>"document", :use=>"literal", :namespace=>nil, :ns=>"https://adwords.google.com/api/adwords/v13", :name=>"ApiException"}} }
52
52
  ]
53
53
  ]
54
54
 
@@ -16,7 +16,7 @@ class ReportInterface < ::SOAP::RPC::Driver
16
16
  ["out", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v13", "deleteReportResponse"]] ],
17
17
  { :request_style => :document, :request_use => :literal,
18
18
  :response_style => :document, :response_use => :literal,
19
- :faults => {"AdwordsApi::V13::ReportService::ApiException"=>{:encodingstyle=>"document", :namespace=>nil, :ns=>"https://adwords.google.com/api/adwords/v13", :use=>"literal", :name=>"ApiException"}} }
19
+ :faults => {"AdwordsApi::V13::ReportService::ApiException"=>{:encodingstyle=>"document", :use=>"literal", :namespace=>nil, :ns=>"https://adwords.google.com/api/adwords/v13", :name=>"ApiException"}} }
20
20
  ],
21
21
  [ "",
22
22
  "getAllJobs",
@@ -24,7 +24,7 @@ class ReportInterface < ::SOAP::RPC::Driver
24
24
  ["out", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v13", "getAllJobsResponse"]] ],
25
25
  { :request_style => :document, :request_use => :literal,
26
26
  :response_style => :document, :response_use => :literal,
27
- :faults => {"AdwordsApi::V13::ReportService::ApiException"=>{:encodingstyle=>"document", :namespace=>nil, :ns=>"https://adwords.google.com/api/adwords/v13", :use=>"literal", :name=>"ApiException"}} }
27
+ :faults => {"AdwordsApi::V13::ReportService::ApiException"=>{:encodingstyle=>"document", :use=>"literal", :namespace=>nil, :ns=>"https://adwords.google.com/api/adwords/v13", :name=>"ApiException"}} }
28
28
  ],
29
29
  [ "",
30
30
  "getGzipReportDownloadUrl",
@@ -32,7 +32,7 @@ class ReportInterface < ::SOAP::RPC::Driver
32
32
  ["out", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v13", "getGzipReportDownloadUrlResponse"]] ],
33
33
  { :request_style => :document, :request_use => :literal,
34
34
  :response_style => :document, :response_use => :literal,
35
- :faults => {"AdwordsApi::V13::ReportService::ApiException"=>{:encodingstyle=>"document", :namespace=>nil, :ns=>"https://adwords.google.com/api/adwords/v13", :use=>"literal", :name=>"ApiException"}} }
35
+ :faults => {"AdwordsApi::V13::ReportService::ApiException"=>{:encodingstyle=>"document", :use=>"literal", :namespace=>nil, :ns=>"https://adwords.google.com/api/adwords/v13", :name=>"ApiException"}} }
36
36
  ],
37
37
  [ "",
38
38
  "getReportDownloadUrl",
@@ -40,7 +40,7 @@ class ReportInterface < ::SOAP::RPC::Driver
40
40
  ["out", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v13", "getReportDownloadUrlResponse"]] ],
41
41
  { :request_style => :document, :request_use => :literal,
42
42
  :response_style => :document, :response_use => :literal,
43
- :faults => {"AdwordsApi::V13::ReportService::ApiException"=>{:encodingstyle=>"document", :namespace=>nil, :ns=>"https://adwords.google.com/api/adwords/v13", :use=>"literal", :name=>"ApiException"}} }
43
+ :faults => {"AdwordsApi::V13::ReportService::ApiException"=>{:encodingstyle=>"document", :use=>"literal", :namespace=>nil, :ns=>"https://adwords.google.com/api/adwords/v13", :name=>"ApiException"}} }
44
44
  ],
45
45
  [ "",
46
46
  "getReportJobStatus",
@@ -48,7 +48,7 @@ class ReportInterface < ::SOAP::RPC::Driver
48
48
  ["out", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v13", "getReportJobStatusResponse"]] ],
49
49
  { :request_style => :document, :request_use => :literal,
50
50
  :response_style => :document, :response_use => :literal,
51
- :faults => {"AdwordsApi::V13::ReportService::ApiException"=>{:encodingstyle=>"document", :namespace=>nil, :ns=>"https://adwords.google.com/api/adwords/v13", :use=>"literal", :name=>"ApiException"}} }
51
+ :faults => {"AdwordsApi::V13::ReportService::ApiException"=>{:encodingstyle=>"document", :use=>"literal", :namespace=>nil, :ns=>"https://adwords.google.com/api/adwords/v13", :name=>"ApiException"}} }
52
52
  ],
53
53
  [ "",
54
54
  "scheduleReportJob",
@@ -56,7 +56,7 @@ class ReportInterface < ::SOAP::RPC::Driver
56
56
  ["out", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v13", "scheduleReportJobResponse"]] ],
57
57
  { :request_style => :document, :request_use => :literal,
58
58
  :response_style => :document, :response_use => :literal,
59
- :faults => {"AdwordsApi::V13::ReportService::ApiException"=>{:encodingstyle=>"document", :namespace=>nil, :ns=>"https://adwords.google.com/api/adwords/v13", :use=>"literal", :name=>"ApiException"}} }
59
+ :faults => {"AdwordsApi::V13::ReportService::ApiException"=>{:encodingstyle=>"document", :use=>"literal", :namespace=>nil, :ns=>"https://adwords.google.com/api/adwords/v13", :name=>"ApiException"}} }
60
60
  ],
61
61
  [ "",
62
62
  "validateReportJob",
@@ -64,7 +64,7 @@ class ReportInterface < ::SOAP::RPC::Driver
64
64
  ["out", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v13", "validateReportJobResponse"]] ],
65
65
  { :request_style => :document, :request_use => :literal,
66
66
  :response_style => :document, :response_use => :literal,
67
- :faults => {"AdwordsApi::V13::ReportService::ApiException"=>{:encodingstyle=>"document", :namespace=>nil, :ns=>"https://adwords.google.com/api/adwords/v13", :use=>"literal", :name=>"ApiException"}} }
67
+ :faults => {"AdwordsApi::V13::ReportService::ApiException"=>{:encodingstyle=>"document", :use=>"literal", :namespace=>nil, :ns=>"https://adwords.google.com/api/adwords/v13", :name=>"ApiException"}} }
68
68
  ]
69
69
  ]
70
70
 
@@ -16,7 +16,7 @@ class TrafficEstimatorInterface < ::SOAP::RPC::Driver
16
16
  ["out", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v13", "checkKeywordTrafficResponse"]] ],
17
17
  { :request_style => :document, :request_use => :literal,
18
18
  :response_style => :document, :response_use => :literal,
19
- :faults => {"AdwordsApi::V13::TrafficEstimatorService::ApiException"=>{:encodingstyle=>"document", :namespace=>nil, :ns=>"https://adwords.google.com/api/adwords/v13", :use=>"literal", :name=>"ApiException"}} }
19
+ :faults => {"AdwordsApi::V13::TrafficEstimatorService::ApiException"=>{:encodingstyle=>"document", :use=>"literal", :namespace=>nil, :ns=>"https://adwords.google.com/api/adwords/v13", :name=>"ApiException"}} }
20
20
  ],
21
21
  [ "",
22
22
  "estimateAdGroupList",
@@ -24,7 +24,7 @@ class TrafficEstimatorInterface < ::SOAP::RPC::Driver
24
24
  ["out", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v13", "estimateAdGroupListResponse"]] ],
25
25
  { :request_style => :document, :request_use => :literal,
26
26
  :response_style => :document, :response_use => :literal,
27
- :faults => {"AdwordsApi::V13::TrafficEstimatorService::ApiException"=>{:encodingstyle=>"document", :namespace=>nil, :ns=>"https://adwords.google.com/api/adwords/v13", :use=>"literal", :name=>"ApiException"}} }
27
+ :faults => {"AdwordsApi::V13::TrafficEstimatorService::ApiException"=>{:encodingstyle=>"document", :use=>"literal", :namespace=>nil, :ns=>"https://adwords.google.com/api/adwords/v13", :name=>"ApiException"}} }
28
28
  ],
29
29
  [ "",
30
30
  "estimateCampaignList",
@@ -32,7 +32,7 @@ class TrafficEstimatorInterface < ::SOAP::RPC::Driver
32
32
  ["out", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v13", "estimateCampaignListResponse"]] ],
33
33
  { :request_style => :document, :request_use => :literal,
34
34
  :response_style => :document, :response_use => :literal,
35
- :faults => {"AdwordsApi::V13::TrafficEstimatorService::ApiException"=>{:encodingstyle=>"document", :namespace=>nil, :ns=>"https://adwords.google.com/api/adwords/v13", :use=>"literal", :name=>"ApiException"}} }
35
+ :faults => {"AdwordsApi::V13::TrafficEstimatorService::ApiException"=>{:encodingstyle=>"document", :use=>"literal", :namespace=>nil, :ns=>"https://adwords.google.com/api/adwords/v13", :name=>"ApiException"}} }
36
36
  ],
37
37
  [ "",
38
38
  "estimateKeywordList",
@@ -40,7 +40,7 @@ class TrafficEstimatorInterface < ::SOAP::RPC::Driver
40
40
  ["out", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v13", "estimateKeywordListResponse"]] ],
41
41
  { :request_style => :document, :request_use => :literal,
42
42
  :response_style => :document, :response_use => :literal,
43
- :faults => {"AdwordsApi::V13::TrafficEstimatorService::ApiException"=>{:encodingstyle=>"document", :namespace=>nil, :ns=>"https://adwords.google.com/api/adwords/v13", :use=>"literal", :name=>"ApiException"}} }
43
+ :faults => {"AdwordsApi::V13::TrafficEstimatorService::ApiException"=>{:encodingstyle=>"document", :use=>"literal", :namespace=>nil, :ns=>"https://adwords.google.com/api/adwords/v13", :name=>"ApiException"}} }
44
44
  ]
45
45
  ]
46
46
 
@@ -16,7 +16,7 @@ class AdExtensionOverrideServiceInterface < ::SOAP::RPC::Driver
16
16
  ["out", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/cm/v200909", "getResponse"]] ],
17
17
  { :request_style => :document, :request_use => :literal,
18
18
  :response_style => :document, :response_use => :literal,
19
- :faults => {"AdwordsApi::V200909::AdExtensionOverrideService::ApiException"=>{:encodingstyle=>"document", :namespace=>nil, :ns=>"https://adwords.google.com/api/adwords/cm/v200909", :use=>"literal", :name=>"ApiException"}} }
19
+ :faults => {"AdwordsApi::V200909::AdExtensionOverrideService::ApiException"=>{:encodingstyle=>"document", :use=>"literal", :namespace=>nil, :ns=>"https://adwords.google.com/api/adwords/cm/v200909", :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/v200909", "mutateResponse"]] ],
25
25
  { :request_style => :document, :request_use => :literal,
26
26
  :response_style => :document, :response_use => :literal,
27
- :faults => {"AdwordsApi::V200909::AdExtensionOverrideService::ApiException"=>{:encodingstyle=>"document", :namespace=>nil, :ns=>"https://adwords.google.com/api/adwords/cm/v200909", :use=>"literal", :name=>"ApiException"}} }
27
+ :faults => {"AdwordsApi::V200909::AdExtensionOverrideService::ApiException"=>{:encodingstyle=>"document", :use=>"literal", :namespace=>nil, :ns=>"https://adwords.google.com/api/adwords/cm/v200909", :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/v200909", "getResponse"]] ],
17
17
  { :request_style => :document, :request_use => :literal,
18
18
  :response_style => :document, :response_use => :literal,
19
- :faults => {"AdwordsApi::V200909::AdGroupAdService::ApiException"=>{:encodingstyle=>"document", :namespace=>nil, :ns=>"https://adwords.google.com/api/adwords/cm/v200909", :use=>"literal", :name=>"ApiException"}} }
19
+ :faults => {"AdwordsApi::V200909::AdGroupAdService::ApiException"=>{:encodingstyle=>"document", :use=>"literal", :namespace=>nil, :ns=>"https://adwords.google.com/api/adwords/cm/v200909", :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/v200909", "mutateResponse"]] ],
25
25
  { :request_style => :document, :request_use => :literal,
26
26
  :response_style => :document, :response_use => :literal,
27
- :faults => {"AdwordsApi::V200909::AdGroupAdService::ApiException"=>{:encodingstyle=>"document", :namespace=>nil, :ns=>"https://adwords.google.com/api/adwords/cm/v200909", :use=>"literal", :name=>"ApiException"}} }
27
+ :faults => {"AdwordsApi::V200909::AdGroupAdService::ApiException"=>{:encodingstyle=>"document", :use=>"literal", :namespace=>nil, :ns=>"https://adwords.google.com/api/adwords/cm/v200909", :name=>"ApiException"}} }
28
28
  ]
29
29
  ]
30
30
 
@@ -3,279 +3,182 @@ require 'xsd/qname'
3
3
  module AdwordsApi; module V200909; 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::V200909::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
- # - applicationToken - SOAP::SOAPString
95
- # - authToken - SOAP::SOAPString
96
- # - clientCustomerId - SOAP::SOAPString
97
- # - clientEmail - SOAP::SOAPString
98
- # - developerToken - SOAP::SOAPString
99
- # - userAgent - SOAP::SOAPString
100
- # - validateOnly - SOAP::SOAPBoolean
101
- class SoapHeader
102
- attr_accessor :applicationToken
103
- attr_accessor :authToken
104
- attr_accessor :clientCustomerId
105
- attr_accessor :clientEmail
106
- attr_accessor :developerToken
107
- attr_accessor :userAgent
108
- attr_accessor :validateOnly
109
-
110
- def initialize(applicationToken = nil, authToken = nil, clientCustomerId = nil, clientEmail = nil, developerToken = nil, userAgent = nil, validateOnly = nil)
111
- @applicationToken = applicationToken
112
- @authToken = authToken
113
- @clientCustomerId = clientCustomerId
114
- @clientEmail = clientEmail
115
- @developerToken = developerToken
116
- @userAgent = userAgent
117
- @validateOnly = validateOnly
17
+ @criterion = criterion
18
+ @adGroupCriterion_Type = adGroupCriterion_Type
118
19
  end
119
20
  end
120
21
 
121
- # SoapResponseHeader
122
- # - requestId - SOAP::SOAPString
123
- # - operations - SOAP::SOAPLong
124
- # - responseTime - SOAP::SOAPLong
125
- # - units - SOAP::SOAPLong
126
- class SoapResponseHeader
127
- attr_accessor :requestId
128
- attr_accessor :operations
129
- attr_accessor :responseTime
130
- attr_accessor :units
22
+ # BiddableAdGroupCriterion
23
+ # - adGroupId - SOAP::SOAPLong
24
+ # - criterion - AdwordsApi::V200909::AdGroupCriterionService::Criterion
25
+ # - adGroupCriterion_Type - SOAP::SOAPString
26
+ # - userStatus - AdwordsApi::V200909::AdGroupCriterionService::UserStatus
27
+ # - systemServingStatus - AdwordsApi::V200909::AdGroupCriterionService::SystemServingStatus
28
+ # - approvalStatus - AdwordsApi::V200909::AdGroupCriterionService::ApprovalStatus
29
+ # - destinationUrl - SOAP::SOAPString
30
+ # - bids - AdwordsApi::V200909::AdGroupCriterionService::AdGroupCriterionBids
31
+ # - firstPageCpc - AdwordsApi::V200909::AdGroupCriterionService::Bid
32
+ # - qualityInfo - AdwordsApi::V200909::AdGroupCriterionService::QualityInfo
33
+ # - stats - AdwordsApi::V200909::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
131
46
 
132
- def initialize(requestId = nil, operations = nil, responseTime = nil, units = nil)
133
- @requestId = requestId
134
- @operations = operations
135
- @responseTime = responseTime
136
- @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
137
59
  end
138
60
  end
139
61
 
140
- # StatsSelector
141
- # - dateRange - AdwordsApi::V200909::AdGroupCriterionService::DateRange
142
- # - statsSelector_Type - SOAP::SOAPString
143
- class StatsSelector
144
- attr_accessor :dateRange
145
- attr_accessor :statsSelector_Type
62
+ # NegativeAdGroupCriterion
63
+ # - adGroupId - SOAP::SOAPLong
64
+ # - criterion - AdwordsApi::V200909::AdGroupCriterionService::Criterion
65
+ # - adGroupCriterion_Type - SOAP::SOAPString
66
+ class NegativeAdGroupCriterion < AdGroupCriterion
67
+ attr_accessor :adGroupId
68
+ attr_accessor :criterion
69
+ attr_accessor :adGroupCriterion_Type
146
70
 
147
- def initialize(dateRange = nil, statsSelector_Type = nil)
148
- @dateRange = dateRange
149
- @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
150
75
  end
151
76
  end
152
77
 
153
- # ComparableValue
78
+ # AdGroupCriterionBids
154
79
  # abstract
155
- # - comparableValue_Type - SOAP::SOAPString
156
- class ComparableValue
157
- attr_accessor :comparableValue_Type
80
+ # - adGroupCriterionBids_Type - SOAP::SOAPString
81
+ class AdGroupCriterionBids
82
+ attr_accessor :adGroupCriterionBids_Type
158
83
 
159
- def initialize(comparableValue_Type = nil)
160
- @comparableValue_Type = comparableValue_Type
84
+ def initialize(adGroupCriterionBids_Type = nil)
85
+ @adGroupCriterionBids_Type = adGroupCriterionBids_Type
161
86
  end
162
87
  end
163
88
 
164
- # Money
165
- # - comparableValue_Type - SOAP::SOAPString
166
- # - microAmount - SOAP::SOAPLong
167
- class Money < ComparableValue
168
- attr_accessor :comparableValue_Type
169
- attr_accessor :microAmount
89
+ # BudgetOptimizerAdGroupCriterionBids
90
+ # - adGroupCriterionBids_Type - SOAP::SOAPString
91
+ # - proxyBid - AdwordsApi::V200909::AdGroupCriterionService::Bid
92
+ class BudgetOptimizerAdGroupCriterionBids < AdGroupCriterionBids
93
+ attr_accessor :adGroupCriterionBids_Type
94
+ attr_accessor :proxyBid
170
95
 
171
- def initialize(comparableValue_Type = nil, microAmount = nil)
172
- @comparableValue_Type = comparableValue_Type
173
- @microAmount = microAmount
96
+ def initialize(adGroupCriterionBids_Type = nil, proxyBid = nil)
97
+ @adGroupCriterionBids_Type = adGroupCriterionBids_Type
98
+ @proxyBid = proxyBid
174
99
  end
175
100
  end
176
101
 
177
- # NumberValue
178
- # abstract
179
- # - comparableValue_Type - SOAP::SOAPString
180
- class NumberValue < ComparableValue
181
- attr_accessor :comparableValue_Type
102
+ # ConversionOptimizerAdGroupCriterionBids
103
+ # - adGroupCriterionBids_Type - SOAP::SOAPString
104
+ class ConversionOptimizerAdGroupCriterionBids < AdGroupCriterionBids
105
+ attr_accessor :adGroupCriterionBids_Type
182
106
 
183
- def initialize(comparableValue_Type = nil)
184
- @comparableValue_Type = comparableValue_Type
107
+ def initialize(adGroupCriterionBids_Type = nil)
108
+ @adGroupCriterionBids_Type = adGroupCriterionBids_Type
185
109
  end
186
110
  end
187
111
 
188
- # DoubleValue
189
- # - comparableValue_Type - SOAP::SOAPString
190
- # - number - SOAP::SOAPDouble
191
- class DoubleValue < NumberValue
192
- attr_accessor :comparableValue_Type
193
- attr_accessor :number
112
+ # ManualCPCAdGroupCriterionBids
113
+ # - adGroupCriterionBids_Type - SOAP::SOAPString
114
+ # - maxCpc - AdwordsApi::V200909::AdGroupCriterionService::Bid
115
+ # - bidSource - AdwordsApi::V200909::AdGroupCriterionService::BidSource
116
+ # - positionPreferenceBids - AdwordsApi::V200909::AdGroupCriterionService::PositionPreferenceAdGroupCriterionBids
117
+ class ManualCPCAdGroupCriterionBids < AdGroupCriterionBids
118
+ attr_accessor :adGroupCriterionBids_Type
119
+ attr_accessor :maxCpc
120
+ attr_accessor :bidSource
121
+ attr_accessor :positionPreferenceBids
194
122
 
195
- def initialize(comparableValue_Type = nil, number = nil)
196
- @comparableValue_Type = comparableValue_Type
197
- @number = number
123
+ def initialize(adGroupCriterionBids_Type = nil, maxCpc = nil, bidSource = nil, positionPreferenceBids = nil)
124
+ @adGroupCriterionBids_Type = adGroupCriterionBids_Type
125
+ @maxCpc = maxCpc
126
+ @bidSource = bidSource
127
+ @positionPreferenceBids = positionPreferenceBids
198
128
  end
199
129
  end
200
130
 
201
- # LongValue
202
- # - comparableValue_Type - SOAP::SOAPString
203
- # - number - SOAP::SOAPLong
204
- class LongValue < NumberValue
205
- attr_accessor :comparableValue_Type
206
- attr_accessor :number
131
+ # ManualCPMAdGroupCriterionBids
132
+ # - adGroupCriterionBids_Type - SOAP::SOAPString
133
+ # - maxCpm - AdwordsApi::V200909::AdGroupCriterionService::Bid
134
+ # - bidSource - AdwordsApi::V200909::AdGroupCriterionService::BidSource
135
+ class ManualCPMAdGroupCriterionBids < AdGroupCriterionBids
136
+ attr_accessor :adGroupCriterionBids_Type
137
+ attr_accessor :maxCpm
138
+ attr_accessor :bidSource
207
139
 
208
- def initialize(comparableValue_Type = nil, number = nil)
209
- @comparableValue_Type = comparableValue_Type
210
- @number = number
140
+ def initialize(adGroupCriterionBids_Type = nil, maxCpm = nil, bidSource = nil)
141
+ @adGroupCriterionBids_Type = adGroupCriterionBids_Type
142
+ @maxCpm = maxCpm
143
+ @bidSource = bidSource
211
144
  end
212
145
  end
213
146
 
214
- # ExemptionRequest
215
- # - key - AdwordsApi::V200909::AdGroupCriterionService::PolicyViolationKey
216
- class ExemptionRequest
217
- attr_accessor :key
147
+ # AdGroupCriterionIdFilter
148
+ # - campaignId - SOAP::SOAPLong
149
+ # - adGroupId - SOAP::SOAPLong
150
+ # - criterionId - SOAP::SOAPLong
151
+ class AdGroupCriterionIdFilter
152
+ attr_accessor :campaignId
153
+ attr_accessor :adGroupId
154
+ attr_accessor :criterionId
218
155
 
219
- def initialize(key = nil)
220
- @key = key
156
+ def initialize(campaignId = nil, adGroupId = nil, criterionId = nil)
157
+ @campaignId = campaignId
158
+ @adGroupId = adGroupId
159
+ @criterionId = criterionId
221
160
  end
222
161
  end
223
162
 
224
- # Stats
225
- # - startDate - SOAP::SOAPString
226
- # - endDate - SOAP::SOAPString
227
- # - network - AdwordsApi::V200909::AdGroupCriterionService::StatsNetwork
228
- # - clicks - SOAP::SOAPLong
229
- # - impressions - SOAP::SOAPLong
230
- # - cost - AdwordsApi::V200909::AdGroupCriterionService::Money
231
- # - averagePosition - SOAP::SOAPDouble
232
- # - averageCpc - AdwordsApi::V200909::AdGroupCriterionService::Money
233
- # - averageCpm - AdwordsApi::V200909::AdGroupCriterionService::Money
234
- # - ctr - SOAP::SOAPDouble
235
- # - conversions - SOAP::SOAPLong
236
- # - conversionRate - SOAP::SOAPDouble
237
- # - costPerConversion - AdwordsApi::V200909::AdGroupCriterionService::Money
238
- # - conversionsManyPerClick - SOAP::SOAPLong
239
- # - conversionRateManyPerClick - SOAP::SOAPDouble
240
- # - costPerConversionManyPerClick - AdwordsApi::V200909::AdGroupCriterionService::Money
241
- # - stats_Type - SOAP::SOAPString
242
- class Stats
243
- attr_accessor :startDate
244
- attr_accessor :endDate
245
- attr_accessor :network
246
- attr_accessor :clicks
247
- attr_accessor :impressions
248
- attr_accessor :cost
249
- attr_accessor :averagePosition
250
- attr_accessor :averageCpc
251
- attr_accessor :averageCpm
252
- attr_accessor :ctr
253
- attr_accessor :conversions
254
- attr_accessor :conversionRate
255
- attr_accessor :costPerConversion
256
- attr_accessor :conversionsManyPerClick
257
- attr_accessor :conversionRateManyPerClick
258
- attr_accessor :costPerConversionManyPerClick
259
- attr_accessor :stats_Type
163
+ # AdGroupCriterionSelector
164
+ # - idFilters - AdwordsApi::V200909::AdGroupCriterionService::AdGroupCriterionIdFilter
165
+ # - criterionUse - AdwordsApi::V200909::AdGroupCriterionService::CriterionUse
166
+ # - userStatuses - AdwordsApi::V200909::AdGroupCriterionService::UserStatus
167
+ # - statsSelector - AdwordsApi::V200909::AdGroupCriterionService::StatsSelector
168
+ # - paging - AdwordsApi::V200909::AdGroupCriterionService::Paging
169
+ class AdGroupCriterionSelector
170
+ attr_accessor :idFilters
171
+ attr_accessor :criterionUse
172
+ attr_accessor :userStatuses
173
+ attr_accessor :statsSelector
174
+ attr_accessor :paging
260
175
 
261
- 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)
262
- @startDate = startDate
263
- @endDate = endDate
264
- @network = network
265
- @clicks = clicks
266
- @impressions = impressions
267
- @cost = cost
268
- @averagePosition = averagePosition
269
- @averageCpc = averageCpc
270
- @averageCpm = averageCpm
271
- @ctr = ctr
272
- @conversions = conversions
273
- @conversionRate = conversionRate
274
- @costPerConversion = costPerConversion
275
- @conversionsManyPerClick = conversionsManyPerClick
276
- @conversionRateManyPerClick = conversionRateManyPerClick
277
- @costPerConversionManyPerClick = costPerConversionManyPerClick
278
- @stats_Type = stats_Type
176
+ def initialize(idFilters = [], criterionUse = nil, userStatuses = [], statsSelector = nil, paging = nil)
177
+ @idFilters = idFilters
178
+ @criterionUse = criterionUse
179
+ @userStatuses = userStatuses
180
+ @statsSelector = statsSelector
181
+ @paging = paging
279
182
  end
280
183
  end
281
184
 
@@ -391,6 +294,25 @@ class ClientTermsError < ApiError
391
294
  end
392
295
  end
393
296
 
297
+ # DatabaseError
298
+ # - fieldPath - SOAP::SOAPString
299
+ # - trigger - SOAP::SOAPString
300
+ # - apiError_Type - SOAP::SOAPString
301
+ # - reason - AdwordsApi::V200909::AdGroupCriterionService::DatabaseErrorReason
302
+ class DatabaseError < ApiError
303
+ attr_accessor :fieldPath
304
+ attr_accessor :trigger
305
+ attr_accessor :apiError_Type
306
+ attr_accessor :reason
307
+
308
+ def initialize(fieldPath = nil, trigger = nil, apiError_Type = nil, reason = nil)
309
+ @fieldPath = fieldPath
310
+ @trigger = trigger
311
+ @apiError_Type = apiError_Type
312
+ @reason = reason
313
+ end
314
+ end
315
+
394
316
  # DateError
395
317
  # - fieldPath - SOAP::SOAPString
396
318
  # - trigger - SOAP::SOAPString
@@ -653,69 +575,80 @@ class PagingError < ApiError
653
575
  end
654
576
  end
655
577
 
656
- # QuotaCheckError
657
- # - fieldPath - SOAP::SOAPString
658
- # - trigger - SOAP::SOAPString
659
- # - apiError_Type - SOAP::SOAPString
660
- # - reason - AdwordsApi::V200909::AdGroupCriterionService::QuotaCheckErrorReason
661
- class QuotaCheckError < ApiError
662
- attr_accessor :fieldPath
663
- attr_accessor :trigger
664
- attr_accessor :apiError_Type
665
- attr_accessor :reason
666
-
667
- def initialize(fieldPath = nil, trigger = nil, apiError_Type = nil, reason = nil)
668
- @fieldPath = fieldPath
669
- @trigger = trigger
670
- @apiError_Type = apiError_Type
671
- @reason = reason
672
- end
673
- end
674
-
675
- # QuotaExceededError
578
+ # PolicyViolationError
676
579
  # - fieldPath - SOAP::SOAPString
677
580
  # - trigger - SOAP::SOAPString
678
581
  # - apiError_Type - SOAP::SOAPString
679
- # - reason - AdwordsApi::V200909::AdGroupCriterionService::QuotaExceededErrorReason
680
- class QuotaExceededError < ApiError
582
+ # - key - AdwordsApi::V200909::AdGroupCriterionService::PolicyViolationKey
583
+ # - externalPolicyName - SOAP::SOAPString
584
+ # - externalPolicyUrl - SOAP::SOAPString
585
+ # - externalPolicyDescription - SOAP::SOAPString
586
+ # - isExemptable - SOAP::SOAPBoolean
587
+ # - violatingParts - AdwordsApi::V200909::AdGroupCriterionService::PolicyViolationErrorPart
588
+ class PolicyViolationError < ApiError
681
589
  attr_accessor :fieldPath
682
590
  attr_accessor :trigger
683
591
  attr_accessor :apiError_Type
684
- attr_accessor :reason
592
+ attr_accessor :key
593
+ attr_accessor :externalPolicyName
594
+ attr_accessor :externalPolicyUrl
595
+ attr_accessor :externalPolicyDescription
596
+ attr_accessor :isExemptable
597
+ attr_accessor :violatingParts
685
598
 
686
- def initialize(fieldPath = nil, trigger = nil, apiError_Type = nil, reason = nil)
599
+ def initialize(fieldPath = nil, trigger = nil, apiError_Type = nil, key = nil, externalPolicyName = nil, externalPolicyUrl = nil, externalPolicyDescription = nil, isExemptable = nil, violatingParts = [])
687
600
  @fieldPath = fieldPath
688
601
  @trigger = trigger
689
602
  @apiError_Type = apiError_Type
690
- @reason = reason
603
+ @key = key
604
+ @externalPolicyName = externalPolicyName
605
+ @externalPolicyUrl = externalPolicyUrl
606
+ @externalPolicyDescription = externalPolicyDescription
607
+ @isExemptable = isExemptable
608
+ @violatingParts = violatingParts
691
609
  end
692
610
  end
693
611
 
694
- # RangeError
612
+ # CriterionPolicyError
695
613
  # - fieldPath - SOAP::SOAPString
696
614
  # - trigger - SOAP::SOAPString
697
615
  # - apiError_Type - SOAP::SOAPString
698
- # - reason - AdwordsApi::V200909::AdGroupCriterionService::RangeErrorReason
699
- class C_RangeError < ApiError
616
+ # - key - AdwordsApi::V200909::AdGroupCriterionService::PolicyViolationKey
617
+ # - externalPolicyName - SOAP::SOAPString
618
+ # - externalPolicyUrl - SOAP::SOAPString
619
+ # - externalPolicyDescription - SOAP::SOAPString
620
+ # - isExemptable - SOAP::SOAPBoolean
621
+ # - violatingParts - AdwordsApi::V200909::AdGroupCriterionService::PolicyViolationErrorPart
622
+ class CriterionPolicyError < PolicyViolationError
700
623
  attr_accessor :fieldPath
701
624
  attr_accessor :trigger
702
625
  attr_accessor :apiError_Type
703
- attr_accessor :reason
626
+ attr_accessor :key
627
+ attr_accessor :externalPolicyName
628
+ attr_accessor :externalPolicyUrl
629
+ attr_accessor :externalPolicyDescription
630
+ attr_accessor :isExemptable
631
+ attr_accessor :violatingParts
704
632
 
705
- def initialize(fieldPath = nil, trigger = nil, apiError_Type = nil, reason = nil)
633
+ def initialize(fieldPath = nil, trigger = nil, apiError_Type = nil, key = nil, externalPolicyName = nil, externalPolicyUrl = nil, externalPolicyDescription = nil, isExemptable = nil, violatingParts = [])
706
634
  @fieldPath = fieldPath
707
635
  @trigger = trigger
708
636
  @apiError_Type = apiError_Type
709
- @reason = reason
637
+ @key = key
638
+ @externalPolicyName = externalPolicyName
639
+ @externalPolicyUrl = externalPolicyUrl
640
+ @externalPolicyDescription = externalPolicyDescription
641
+ @isExemptable = isExemptable
642
+ @violatingParts = violatingParts
710
643
  end
711
644
  end
712
645
 
713
- # ReadOnlyError
646
+ # QuotaCheckError
714
647
  # - fieldPath - SOAP::SOAPString
715
648
  # - trigger - SOAP::SOAPString
716
649
  # - apiError_Type - SOAP::SOAPString
717
- # - reason - AdwordsApi::V200909::AdGroupCriterionService::ReadOnlyErrorReason
718
- class ReadOnlyError < ApiError
650
+ # - reason - AdwordsApi::V200909::AdGroupCriterionService::QuotaCheckErrorReason
651
+ class QuotaCheckError < ApiError
719
652
  attr_accessor :fieldPath
720
653
  attr_accessor :trigger
721
654
  attr_accessor :apiError_Type
@@ -729,12 +662,12 @@ class ReadOnlyError < ApiError
729
662
  end
730
663
  end
731
664
 
732
- # RequiredError
665
+ # QuotaExceededError
733
666
  # - fieldPath - SOAP::SOAPString
734
667
  # - trigger - SOAP::SOAPString
735
668
  # - apiError_Type - SOAP::SOAPString
736
- # - reason - AdwordsApi::V200909::AdGroupCriterionService::RequiredErrorReason
737
- class RequiredError < ApiError
669
+ # - reason - AdwordsApi::V200909::AdGroupCriterionService::QuotaExceededErrorReason
670
+ class QuotaExceededError < ApiError
738
671
  attr_accessor :fieldPath
739
672
  attr_accessor :trigger
740
673
  attr_accessor :apiError_Type
@@ -748,12 +681,12 @@ class RequiredError < ApiError
748
681
  end
749
682
  end
750
683
 
751
- # SizeLimitError
684
+ # RangeError
752
685
  # - fieldPath - SOAP::SOAPString
753
686
  # - trigger - SOAP::SOAPString
754
687
  # - apiError_Type - SOAP::SOAPString
755
- # - reason - AdwordsApi::V200909::AdGroupCriterionService::SizeLimitErrorReason
756
- class SizeLimitError < ApiError
688
+ # - reason - AdwordsApi::V200909::AdGroupCriterionService::RangeErrorReason
689
+ class C_RangeError < ApiError
757
690
  attr_accessor :fieldPath
758
691
  attr_accessor :trigger
759
692
  attr_accessor :apiError_Type
@@ -767,12 +700,12 @@ class SizeLimitError < ApiError
767
700
  end
768
701
  end
769
702
 
770
- # StatsQueryError
703
+ # ReadOnlyError
771
704
  # - fieldPath - SOAP::SOAPString
772
705
  # - trigger - SOAP::SOAPString
773
706
  # - apiError_Type - SOAP::SOAPString
774
- # - reason - AdwordsApi::V200909::AdGroupCriterionService::StatsQueryErrorReason
775
- class StatsQueryError < ApiError
707
+ # - reason - AdwordsApi::V200909::AdGroupCriterionService::ReadOnlyErrorReason
708
+ class ReadOnlyError < ApiError
776
709
  attr_accessor :fieldPath
777
710
  attr_accessor :trigger
778
711
  attr_accessor :apiError_Type
@@ -786,12 +719,12 @@ class StatsQueryError < ApiError
786
719
  end
787
720
  end
788
721
 
789
- # DatabaseError
722
+ # RequiredError
790
723
  # - fieldPath - SOAP::SOAPString
791
724
  # - trigger - SOAP::SOAPString
792
725
  # - apiError_Type - SOAP::SOAPString
793
- # - reason - AdwordsApi::V200909::AdGroupCriterionService::DatabaseErrorReason
794
- class DatabaseError < ApiError
726
+ # - reason - AdwordsApi::V200909::AdGroupCriterionService::RequiredErrorReason
727
+ class RequiredError < ApiError
795
728
  attr_accessor :fieldPath
796
729
  attr_accessor :trigger
797
730
  attr_accessor :apiError_Type
@@ -805,71 +738,41 @@ class DatabaseError < ApiError
805
738
  end
806
739
  end
807
740
 
808
- # PolicyViolationError
741
+ # SizeLimitError
809
742
  # - fieldPath - SOAP::SOAPString
810
743
  # - trigger - SOAP::SOAPString
811
744
  # - apiError_Type - SOAP::SOAPString
812
- # - key - AdwordsApi::V200909::AdGroupCriterionService::PolicyViolationKey
813
- # - externalPolicyName - SOAP::SOAPString
814
- # - externalPolicyUrl - SOAP::SOAPString
815
- # - externalPolicyDescription - SOAP::SOAPString
816
- # - isExemptable - SOAP::SOAPBoolean
817
- # - violatingParts - AdwordsApi::V200909::AdGroupCriterionService::PolicyViolationErrorPart
818
- class PolicyViolationError < ApiError
745
+ # - reason - AdwordsApi::V200909::AdGroupCriterionService::SizeLimitErrorReason
746
+ class SizeLimitError < ApiError
819
747
  attr_accessor :fieldPath
820
748
  attr_accessor :trigger
821
749
  attr_accessor :apiError_Type
822
- attr_accessor :key
823
- attr_accessor :externalPolicyName
824
- attr_accessor :externalPolicyUrl
825
- attr_accessor :externalPolicyDescription
826
- attr_accessor :isExemptable
827
- attr_accessor :violatingParts
750
+ attr_accessor :reason
828
751
 
829
- def initialize(fieldPath = nil, trigger = nil, apiError_Type = nil, key = nil, externalPolicyName = nil, externalPolicyUrl = nil, externalPolicyDescription = nil, isExemptable = nil, violatingParts = [])
752
+ def initialize(fieldPath = nil, trigger = nil, apiError_Type = nil, reason = nil)
830
753
  @fieldPath = fieldPath
831
754
  @trigger = trigger
832
755
  @apiError_Type = apiError_Type
833
- @key = key
834
- @externalPolicyName = externalPolicyName
835
- @externalPolicyUrl = externalPolicyUrl
836
- @externalPolicyDescription = externalPolicyDescription
837
- @isExemptable = isExemptable
838
- @violatingParts = violatingParts
756
+ @reason = reason
839
757
  end
840
758
  end
841
759
 
842
- # CriterionPolicyError
760
+ # StatsQueryError
843
761
  # - fieldPath - SOAP::SOAPString
844
762
  # - trigger - SOAP::SOAPString
845
763
  # - apiError_Type - SOAP::SOAPString
846
- # - key - AdwordsApi::V200909::AdGroupCriterionService::PolicyViolationKey
847
- # - externalPolicyName - SOAP::SOAPString
848
- # - externalPolicyUrl - SOAP::SOAPString
849
- # - externalPolicyDescription - SOAP::SOAPString
850
- # - isExemptable - SOAP::SOAPBoolean
851
- # - violatingParts - AdwordsApi::V200909::AdGroupCriterionService::PolicyViolationErrorPart
852
- class CriterionPolicyError < PolicyViolationError
764
+ # - reason - AdwordsApi::V200909::AdGroupCriterionService::StatsQueryErrorReason
765
+ class StatsQueryError < ApiError
853
766
  attr_accessor :fieldPath
854
767
  attr_accessor :trigger
855
768
  attr_accessor :apiError_Type
856
- attr_accessor :key
857
- attr_accessor :externalPolicyName
858
- attr_accessor :externalPolicyUrl
859
- attr_accessor :externalPolicyDescription
860
- attr_accessor :isExemptable
861
- attr_accessor :violatingParts
769
+ attr_accessor :reason
862
770
 
863
- def initialize(fieldPath = nil, trigger = nil, apiError_Type = nil, key = nil, externalPolicyName = nil, externalPolicyUrl = nil, externalPolicyDescription = nil, isExemptable = nil, violatingParts = [])
771
+ def initialize(fieldPath = nil, trigger = nil, apiError_Type = nil, reason = nil)
864
772
  @fieldPath = fieldPath
865
773
  @trigger = trigger
866
774
  @apiError_Type = apiError_Type
867
- @key = key
868
- @externalPolicyName = externalPolicyName
869
- @externalPolicyUrl = externalPolicyUrl
870
- @externalPolicyDescription = externalPolicyDescription
871
- @isExemptable = isExemptable
872
- @violatingParts = violatingParts
775
+ @reason = reason
873
776
  end
874
777
  end
875
778
 
@@ -912,19 +815,64 @@ class Bid
912
815
  end
913
816
  end
914
817
 
915
- # PositionPreferenceAdGroupCriterionBids
916
- # - proxyMaxCpc - AdwordsApi::V200909::AdGroupCriterionService::Bid
917
- # - preferredPosition - SOAP::SOAPInt
918
- # - bottomPosition - SOAP::SOAPInt
919
- class PositionPreferenceAdGroupCriterionBids
920
- attr_accessor :proxyMaxCpc
921
- attr_accessor :preferredPosition
922
- attr_accessor :bottomPosition
818
+ # ComparableValue
819
+ # abstract
820
+ # - comparableValue_Type - SOAP::SOAPString
821
+ class ComparableValue
822
+ attr_accessor :comparableValue_Type
923
823
 
924
- def initialize(proxyMaxCpc = nil, preferredPosition = nil, bottomPosition = nil)
925
- @proxyMaxCpc = proxyMaxCpc
926
- @preferredPosition = preferredPosition
927
- @bottomPosition = bottomPosition
824
+ def initialize(comparableValue_Type = nil)
825
+ @comparableValue_Type = comparableValue_Type
826
+ end
827
+ end
828
+
829
+ # Money
830
+ # - comparableValue_Type - SOAP::SOAPString
831
+ # - microAmount - SOAP::SOAPLong
832
+ class Money < ComparableValue
833
+ attr_accessor :comparableValue_Type
834
+ attr_accessor :microAmount
835
+
836
+ def initialize(comparableValue_Type = nil, microAmount = nil)
837
+ @comparableValue_Type = comparableValue_Type
838
+ @microAmount = microAmount
839
+ end
840
+ end
841
+
842
+ # NumberValue
843
+ # abstract
844
+ # - comparableValue_Type - SOAP::SOAPString
845
+ class NumberValue < ComparableValue
846
+ attr_accessor :comparableValue_Type
847
+
848
+ def initialize(comparableValue_Type = nil)
849
+ @comparableValue_Type = comparableValue_Type
850
+ end
851
+ end
852
+
853
+ # DoubleValue
854
+ # - comparableValue_Type - SOAP::SOAPString
855
+ # - number - SOAP::SOAPDouble
856
+ class DoubleValue < NumberValue
857
+ attr_accessor :comparableValue_Type
858
+ attr_accessor :number
859
+
860
+ def initialize(comparableValue_Type = nil, number = nil)
861
+ @comparableValue_Type = comparableValue_Type
862
+ @number = number
863
+ end
864
+ end
865
+
866
+ # LongValue
867
+ # - comparableValue_Type - SOAP::SOAPString
868
+ # - number - SOAP::SOAPLong
869
+ class LongValue < NumberValue
870
+ attr_accessor :comparableValue_Type
871
+ attr_accessor :number
872
+
873
+ def initialize(comparableValue_Type = nil, number = nil)
874
+ @comparableValue_Type = comparableValue_Type
875
+ @number = number
928
876
  end
929
877
  end
930
878
 
@@ -957,185 +905,45 @@ class Keyword < Criterion
957
905
  @criterion_Type = criterion_Type
958
906
  @text = text
959
907
  @matchType = matchType
960
- end
961
- end
962
-
963
- # Placement
964
- # - id - SOAP::SOAPLong
965
- # - criterion_Type - SOAP::SOAPString
966
- # - url - SOAP::SOAPString
967
- class Placement < Criterion
968
- attr_accessor :id
969
- attr_accessor :criterion_Type
970
- attr_accessor :url
971
-
972
- def initialize(id = nil, criterion_Type = nil, url = nil)
973
- @id = id
974
- @criterion_Type = criterion_Type
975
- @url = url
976
- end
977
- end
978
-
979
- # AdGroupCriterionBids
980
- # abstract
981
- # - adGroupCriterionBids_Type - SOAP::SOAPString
982
- class AdGroupCriterionBids
983
- attr_accessor :adGroupCriterionBids_Type
984
-
985
- def initialize(adGroupCriterionBids_Type = nil)
986
- @adGroupCriterionBids_Type = adGroupCriterionBids_Type
987
- end
988
- end
989
-
990
- # ConversionOptimizerAdGroupCriterionBids
991
- # - adGroupCriterionBids_Type - SOAP::SOAPString
992
- class ConversionOptimizerAdGroupCriterionBids < AdGroupCriterionBids
993
- attr_accessor :adGroupCriterionBids_Type
994
-
995
- def initialize(adGroupCriterionBids_Type = nil)
996
- @adGroupCriterionBids_Type = adGroupCriterionBids_Type
997
- end
998
- end
999
-
1000
- # BudgetOptimizerAdGroupCriterionBids
1001
- # - adGroupCriterionBids_Type - SOAP::SOAPString
1002
- # - proxyBid - AdwordsApi::V200909::AdGroupCriterionService::Bid
1003
- class BudgetOptimizerAdGroupCriterionBids < AdGroupCriterionBids
1004
- attr_accessor :adGroupCriterionBids_Type
1005
- attr_accessor :proxyBid
1006
-
1007
- def initialize(adGroupCriterionBids_Type = nil, proxyBid = nil)
1008
- @adGroupCriterionBids_Type = adGroupCriterionBids_Type
1009
- @proxyBid = proxyBid
1010
- end
1011
- end
1012
-
1013
- # ManualCPMAdGroupCriterionBids
1014
- # - adGroupCriterionBids_Type - SOAP::SOAPString
1015
- # - maxCpm - AdwordsApi::V200909::AdGroupCriterionService::Bid
1016
- # - bidSource - AdwordsApi::V200909::AdGroupCriterionService::BidSource
1017
- class ManualCPMAdGroupCriterionBids < AdGroupCriterionBids
1018
- attr_accessor :adGroupCriterionBids_Type
1019
- attr_accessor :maxCpm
1020
- attr_accessor :bidSource
1021
-
1022
- def initialize(adGroupCriterionBids_Type = nil, maxCpm = nil, bidSource = nil)
1023
- @adGroupCriterionBids_Type = adGroupCriterionBids_Type
1024
- @maxCpm = maxCpm
1025
- @bidSource = bidSource
1026
- end
1027
- end
1028
-
1029
- # ManualCPCAdGroupCriterionBids
1030
- # - adGroupCriterionBids_Type - SOAP::SOAPString
1031
- # - maxCpc - AdwordsApi::V200909::AdGroupCriterionService::Bid
1032
- # - bidSource - AdwordsApi::V200909::AdGroupCriterionService::BidSource
1033
- # - positionPreferenceBids - AdwordsApi::V200909::AdGroupCriterionService::PositionPreferenceAdGroupCriterionBids
1034
- class ManualCPCAdGroupCriterionBids < AdGroupCriterionBids
1035
- attr_accessor :adGroupCriterionBids_Type
1036
- attr_accessor :maxCpc
1037
- attr_accessor :bidSource
1038
- attr_accessor :positionPreferenceBids
1039
-
1040
- def initialize(adGroupCriterionBids_Type = nil, maxCpc = nil, bidSource = nil, positionPreferenceBids = nil)
1041
- @adGroupCriterionBids_Type = adGroupCriterionBids_Type
1042
- @maxCpc = maxCpc
1043
- @bidSource = bidSource
1044
- @positionPreferenceBids = positionPreferenceBids
1045
- end
1046
- end
1047
-
1048
- # AdGroupCriterion
1049
- # - adGroupId - SOAP::SOAPLong
1050
- # - criterion - AdwordsApi::V200909::AdGroupCriterionService::Criterion
1051
- # - adGroupCriterion_Type - SOAP::SOAPString
1052
- class AdGroupCriterion
1053
- attr_accessor :adGroupId
1054
- attr_accessor :criterion
1055
- attr_accessor :adGroupCriterion_Type
1056
-
1057
- def initialize(adGroupId = nil, criterion = nil, adGroupCriterion_Type = nil)
1058
- @adGroupId = adGroupId
1059
- @criterion = criterion
1060
- @adGroupCriterion_Type = adGroupCriterion_Type
1061
- end
1062
- end
1063
-
1064
- # NegativeAdGroupCriterion
1065
- # - adGroupId - SOAP::SOAPLong
1066
- # - criterion - AdwordsApi::V200909::AdGroupCriterionService::Criterion
1067
- # - adGroupCriterion_Type - SOAP::SOAPString
1068
- class NegativeAdGroupCriterion < AdGroupCriterion
1069
- attr_accessor :adGroupId
1070
- attr_accessor :criterion
1071
- attr_accessor :adGroupCriterion_Type
1072
-
1073
- def initialize(adGroupId = nil, criterion = nil, adGroupCriterion_Type = nil)
1074
- @adGroupId = adGroupId
1075
- @criterion = criterion
1076
- @adGroupCriterion_Type = adGroupCriterion_Type
1077
- end
1078
- end
1079
-
1080
- # BiddableAdGroupCriterion
1081
- # - adGroupId - SOAP::SOAPLong
1082
- # - criterion - AdwordsApi::V200909::AdGroupCriterionService::Criterion
1083
- # - adGroupCriterion_Type - SOAP::SOAPString
1084
- # - userStatus - AdwordsApi::V200909::AdGroupCriterionService::UserStatus
1085
- # - systemServingStatus - AdwordsApi::V200909::AdGroupCriterionService::SystemServingStatus
1086
- # - approvalStatus - AdwordsApi::V200909::AdGroupCriterionService::ApprovalStatus
1087
- # - destinationUrl - SOAP::SOAPString
1088
- # - bids - AdwordsApi::V200909::AdGroupCriterionService::AdGroupCriterionBids
1089
- # - firstPageCpc - AdwordsApi::V200909::AdGroupCriterionService::Bid
1090
- # - qualityInfo - AdwordsApi::V200909::AdGroupCriterionService::QualityInfo
1091
- # - stats - AdwordsApi::V200909::AdGroupCriterionService::Stats
1092
- class BiddableAdGroupCriterion < AdGroupCriterion
1093
- attr_accessor :adGroupId
1094
- attr_accessor :criterion
1095
- attr_accessor :adGroupCriterion_Type
1096
- attr_accessor :userStatus
1097
- attr_accessor :systemServingStatus
1098
- attr_accessor :approvalStatus
1099
- attr_accessor :destinationUrl
1100
- attr_accessor :bids
1101
- attr_accessor :firstPageCpc
1102
- attr_accessor :qualityInfo
1103
- attr_accessor :stats
908
+ end
909
+ end
1104
910
 
1105
- 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)
1106
- @adGroupId = adGroupId
1107
- @criterion = criterion
1108
- @adGroupCriterion_Type = adGroupCriterion_Type
1109
- @userStatus = userStatus
1110
- @systemServingStatus = systemServingStatus
1111
- @approvalStatus = approvalStatus
1112
- @destinationUrl = destinationUrl
1113
- @bids = bids
1114
- @firstPageCpc = firstPageCpc
1115
- @qualityInfo = qualityInfo
1116
- @stats = stats
911
+ # Placement
912
+ # - id - SOAP::SOAPLong
913
+ # - criterion_Type - SOAP::SOAPString
914
+ # - url - SOAP::SOAPString
915
+ class Placement < Criterion
916
+ attr_accessor :id
917
+ attr_accessor :criterion_Type
918
+ attr_accessor :url
919
+
920
+ def initialize(id = nil, criterion_Type = nil, url = nil)
921
+ @id = id
922
+ @criterion_Type = criterion_Type
923
+ @url = url
1117
924
  end
1118
925
  end
1119
926
 
1120
- # AdGroupCriterionSelector
1121
- # - idFilters - AdwordsApi::V200909::AdGroupCriterionService::AdGroupCriterionIdFilter
1122
- # - criterionUse - AdwordsApi::V200909::AdGroupCriterionService::CriterionUse
1123
- # - userStatuses - AdwordsApi::V200909::AdGroupCriterionService::UserStatus
1124
- # - statsSelector - AdwordsApi::V200909::AdGroupCriterionService::StatsSelector
1125
- # - paging - AdwordsApi::V200909::AdGroupCriterionService::Paging
1126
- class AdGroupCriterionSelector
1127
- attr_accessor :idFilters
1128
- attr_accessor :criterionUse
1129
- attr_accessor :userStatuses
1130
- attr_accessor :statsSelector
1131
- attr_accessor :paging
927
+ # DateRange
928
+ # - min - SOAP::SOAPString
929
+ # - max - SOAP::SOAPString
930
+ class DateRange
931
+ attr_accessor :min
932
+ attr_accessor :max
1132
933
 
1133
- def initialize(idFilters = [], criterionUse = nil, userStatuses = [], statsSelector = nil, paging = nil)
1134
- @idFilters = idFilters
1135
- @criterionUse = criterionUse
1136
- @userStatuses = userStatuses
1137
- @statsSelector = statsSelector
1138
- @paging = paging
934
+ def initialize(min = nil, max = nil)
935
+ @min = min
936
+ @max = max
937
+ end
938
+ end
939
+
940
+ # ExemptionRequest
941
+ # - key - AdwordsApi::V200909::AdGroupCriterionService::PolicyViolationKey
942
+ class ExemptionRequest
943
+ attr_accessor :key
944
+
945
+ def initialize(key = nil)
946
+ @key = key
1139
947
  end
1140
948
  end
1141
949
 
@@ -1226,6 +1034,198 @@ class AdGroupCriterionPage < Page
1226
1034
  end
1227
1035
  end
1228
1036
 
1037
+ # Paging
1038
+ # - startIndex - SOAP::SOAPInt
1039
+ # - numberResults - SOAP::SOAPInt
1040
+ class Paging
1041
+ attr_accessor :startIndex
1042
+ attr_accessor :numberResults
1043
+
1044
+ def initialize(startIndex = nil, numberResults = nil)
1045
+ @startIndex = startIndex
1046
+ @numberResults = numberResults
1047
+ end
1048
+ end
1049
+
1050
+ # PolicyViolationError.Part
1051
+ # - index - SOAP::SOAPInt
1052
+ # - length - SOAP::SOAPInt
1053
+ class PolicyViolationErrorPart
1054
+ attr_accessor :index
1055
+ attr_accessor :length
1056
+
1057
+ def initialize(index = nil, length = nil)
1058
+ @index = index
1059
+ @length = length
1060
+ end
1061
+ end
1062
+
1063
+ # PolicyViolationKey
1064
+ # - policyName - SOAP::SOAPString
1065
+ # - violatingText - SOAP::SOAPString
1066
+ class PolicyViolationKey
1067
+ attr_accessor :policyName
1068
+ attr_accessor :violatingText
1069
+
1070
+ def initialize(policyName = nil, violatingText = nil)
1071
+ @policyName = policyName
1072
+ @violatingText = violatingText
1073
+ end
1074
+ end
1075
+
1076
+ # PositionPreferenceAdGroupCriterionBids
1077
+ # - proxyMaxCpc - AdwordsApi::V200909::AdGroupCriterionService::Bid
1078
+ # - preferredPosition - SOAP::SOAPInt
1079
+ # - bottomPosition - SOAP::SOAPInt
1080
+ class PositionPreferenceAdGroupCriterionBids
1081
+ attr_accessor :proxyMaxCpc
1082
+ attr_accessor :preferredPosition
1083
+ attr_accessor :bottomPosition
1084
+
1085
+ def initialize(proxyMaxCpc = nil, preferredPosition = nil, bottomPosition = nil)
1086
+ @proxyMaxCpc = proxyMaxCpc
1087
+ @preferredPosition = preferredPosition
1088
+ @bottomPosition = bottomPosition
1089
+ end
1090
+ end
1091
+
1092
+ # QualityInfo
1093
+ # - isKeywordAdRelevanceAcceptable - SOAP::SOAPBoolean
1094
+ # - isLandingPageQualityAcceptable - SOAP::SOAPBoolean
1095
+ # - isLandingPageLatencyAcceptable - SOAP::SOAPBoolean
1096
+ # - qualityScore - SOAP::SOAPInt
1097
+ class QualityInfo
1098
+ attr_accessor :isKeywordAdRelevanceAcceptable
1099
+ attr_accessor :isLandingPageQualityAcceptable
1100
+ attr_accessor :isLandingPageLatencyAcceptable
1101
+ attr_accessor :qualityScore
1102
+
1103
+ def initialize(isKeywordAdRelevanceAcceptable = nil, isLandingPageQualityAcceptable = nil, isLandingPageLatencyAcceptable = nil, qualityScore = nil)
1104
+ @isKeywordAdRelevanceAcceptable = isKeywordAdRelevanceAcceptable
1105
+ @isLandingPageQualityAcceptable = isLandingPageQualityAcceptable
1106
+ @isLandingPageLatencyAcceptable = isLandingPageLatencyAcceptable
1107
+ @qualityScore = qualityScore
1108
+ end
1109
+ end
1110
+
1111
+ # SoapHeader
1112
+ # - applicationToken - SOAP::SOAPString
1113
+ # - authToken - SOAP::SOAPString
1114
+ # - clientCustomerId - SOAP::SOAPString
1115
+ # - clientEmail - SOAP::SOAPString
1116
+ # - developerToken - SOAP::SOAPString
1117
+ # - userAgent - SOAP::SOAPString
1118
+ # - validateOnly - SOAP::SOAPBoolean
1119
+ class SoapHeader
1120
+ attr_accessor :applicationToken
1121
+ attr_accessor :authToken
1122
+ attr_accessor :clientCustomerId
1123
+ attr_accessor :clientEmail
1124
+ attr_accessor :developerToken
1125
+ attr_accessor :userAgent
1126
+ attr_accessor :validateOnly
1127
+
1128
+ def initialize(applicationToken = nil, authToken = nil, clientCustomerId = nil, clientEmail = nil, developerToken = nil, userAgent = nil, validateOnly = nil)
1129
+ @applicationToken = applicationToken
1130
+ @authToken = authToken
1131
+ @clientCustomerId = clientCustomerId
1132
+ @clientEmail = clientEmail
1133
+ @developerToken = developerToken
1134
+ @userAgent = userAgent
1135
+ @validateOnly = validateOnly
1136
+ end
1137
+ end
1138
+
1139
+ # SoapResponseHeader
1140
+ # - requestId - SOAP::SOAPString
1141
+ # - operations - SOAP::SOAPLong
1142
+ # - responseTime - SOAP::SOAPLong
1143
+ # - units - SOAP::SOAPLong
1144
+ class SoapResponseHeader
1145
+ attr_accessor :requestId
1146
+ attr_accessor :operations
1147
+ attr_accessor :responseTime
1148
+ attr_accessor :units
1149
+
1150
+ def initialize(requestId = nil, operations = nil, responseTime = nil, units = nil)
1151
+ @requestId = requestId
1152
+ @operations = operations
1153
+ @responseTime = responseTime
1154
+ @units = units
1155
+ end
1156
+ end
1157
+
1158
+ # Stats
1159
+ # - startDate - SOAP::SOAPString
1160
+ # - endDate - SOAP::SOAPString
1161
+ # - network - AdwordsApi::V200909::AdGroupCriterionService::StatsNetwork
1162
+ # - clicks - SOAP::SOAPLong
1163
+ # - impressions - SOAP::SOAPLong
1164
+ # - cost - AdwordsApi::V200909::AdGroupCriterionService::Money
1165
+ # - averagePosition - SOAP::SOAPDouble
1166
+ # - averageCpc - AdwordsApi::V200909::AdGroupCriterionService::Money
1167
+ # - averageCpm - AdwordsApi::V200909::AdGroupCriterionService::Money
1168
+ # - ctr - SOAP::SOAPDouble
1169
+ # - conversions - SOAP::SOAPLong
1170
+ # - conversionRate - SOAP::SOAPDouble
1171
+ # - costPerConversion - AdwordsApi::V200909::AdGroupCriterionService::Money
1172
+ # - conversionsManyPerClick - SOAP::SOAPLong
1173
+ # - conversionRateManyPerClick - SOAP::SOAPDouble
1174
+ # - costPerConversionManyPerClick - AdwordsApi::V200909::AdGroupCriterionService::Money
1175
+ # - stats_Type - SOAP::SOAPString
1176
+ class Stats
1177
+ attr_accessor :startDate
1178
+ attr_accessor :endDate
1179
+ attr_accessor :network
1180
+ attr_accessor :clicks
1181
+ attr_accessor :impressions
1182
+ attr_accessor :cost
1183
+ attr_accessor :averagePosition
1184
+ attr_accessor :averageCpc
1185
+ attr_accessor :averageCpm
1186
+ attr_accessor :ctr
1187
+ attr_accessor :conversions
1188
+ attr_accessor :conversionRate
1189
+ attr_accessor :costPerConversion
1190
+ attr_accessor :conversionsManyPerClick
1191
+ attr_accessor :conversionRateManyPerClick
1192
+ attr_accessor :costPerConversionManyPerClick
1193
+ attr_accessor :stats_Type
1194
+
1195
+ 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)
1196
+ @startDate = startDate
1197
+ @endDate = endDate
1198
+ @network = network
1199
+ @clicks = clicks
1200
+ @impressions = impressions
1201
+ @cost = cost
1202
+ @averagePosition = averagePosition
1203
+ @averageCpc = averageCpc
1204
+ @averageCpm = averageCpm
1205
+ @ctr = ctr
1206
+ @conversions = conversions
1207
+ @conversionRate = conversionRate
1208
+ @costPerConversion = costPerConversion
1209
+ @conversionsManyPerClick = conversionsManyPerClick
1210
+ @conversionRateManyPerClick = conversionRateManyPerClick
1211
+ @costPerConversionManyPerClick = costPerConversionManyPerClick
1212
+ @stats_Type = stats_Type
1213
+ end
1214
+ end
1215
+
1216
+ # StatsSelector
1217
+ # - dateRange - AdwordsApi::V200909::AdGroupCriterionService::DateRange
1218
+ # - statsSelector_Type - SOAP::SOAPString
1219
+ class StatsSelector
1220
+ attr_accessor :dateRange
1221
+ attr_accessor :statsSelector_Type
1222
+
1223
+ def initialize(dateRange = nil, statsSelector_Type = nil)
1224
+ @dateRange = dateRange
1225
+ @statsSelector_Type = statsSelector_Type
1226
+ end
1227
+ end
1228
+
1229
1229
  # AdGroupCriterionError.Reason
1230
1230
  class AdGroupCriterionErrorReason < ::String
1231
1231
  BID_INCOMPATIBLE_WITH_ADGROUP = AdGroupCriterionErrorReason.new("BID_INCOMPATIBLE_WITH_ADGROUP")