google-adwords-api 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (527) hide show
  1. data/README +178 -0
  2. data/Rakefile +117 -0
  3. data/adwords_api.yml +21 -0
  4. data/examples/v200909/add_ad_extension_override.rb +91 -0
  5. data/examples/v200909/add_ad_group.rb +98 -0
  6. data/examples/v200909/add_ad_group_criteria.rb +117 -0
  7. data/examples/v200909/add_ads.rb +129 -0
  8. data/examples/v200909/add_campaign.rb +101 -0
  9. data/examples/v200909/add_campaign_ad_extension.rb +130 -0
  10. data/examples/v200909/add_negative_campaign_criterion.rb +96 -0
  11. data/examples/v200909/check_campaigns.rb +132 -0
  12. data/examples/v200909/delete_ad.rb +94 -0
  13. data/examples/v200909/delete_ad_group.rb +86 -0
  14. data/examples/v200909/delete_ad_group_criterion.rb +95 -0
  15. data/examples/v200909/delete_campaign.rb +87 -0
  16. data/examples/v200909/get_all_active_ad_group_criteria.rb +93 -0
  17. data/examples/v200909/get_all_ad_extension_overrides.rb +91 -0
  18. data/examples/v200909/get_all_ad_group_criteria.rb +91 -0
  19. data/examples/v200909/get_all_ad_groups.rb +88 -0
  20. data/examples/v200909/get_all_ad_params.rb +89 -0
  21. data/examples/v200909/get_all_ads.rb +88 -0
  22. data/examples/v200909/get_all_campaign_ad_extensions.rb +90 -0
  23. data/examples/v200909/get_all_campaign_targets.rb +83 -0
  24. data/examples/v200909/get_all_campaigns.rb +83 -0
  25. data/examples/v200909/get_all_disapproved_ads.rb +94 -0
  26. data/examples/v200909/get_all_paused_campaigns.rb +86 -0
  27. data/examples/v200909/get_conversion_optimizer_eligibility.rb +112 -0
  28. data/examples/v200909/get_geo_location_info.rb +108 -0
  29. data/examples/v200909/get_method_cost.rb +96 -0
  30. data/examples/v200909/get_operation_count.rb +88 -0
  31. data/examples/v200909/get_related_keywords.rb +115 -0
  32. data/examples/v200909/get_related_placements.rb +114 -0
  33. data/examples/v200909/get_total_usage_units_per_month.rb +83 -0
  34. data/examples/v200909/get_unit_count.rb +88 -0
  35. data/examples/v200909/perform_bulk_mutate_job.rb +221 -0
  36. data/examples/v200909/set_ad_params.rb +124 -0
  37. data/examples/v200909/set_campaign_targets.rb +125 -0
  38. data/examples/v200909/update_ad.rb +95 -0
  39. data/examples/v200909/update_ad_group.rb +90 -0
  40. data/examples/v200909/update_ad_group_criterion.rb +108 -0
  41. data/examples/v200909/update_campaign.rb +93 -0
  42. data/examples/v201003/add_ad_extension_override.rb +91 -0
  43. data/examples/v201003/add_ad_group.rb +98 -0
  44. data/examples/v201003/add_ad_group_criteria.rb +117 -0
  45. data/examples/v201003/add_ads.rb +182 -0
  46. data/examples/v201003/add_campaign.rb +101 -0
  47. data/examples/v201003/add_campaign_ad_extension.rb +130 -0
  48. data/examples/v201003/add_keywords_performance_report_definition.rb +108 -0
  49. data/examples/v201003/add_negative_campaign_criterion.rb +96 -0
  50. data/examples/v201003/check_campaigns.rb +132 -0
  51. data/examples/v201003/delete_ad.rb +94 -0
  52. data/examples/v201003/delete_ad_group.rb +86 -0
  53. data/examples/v201003/delete_ad_group_criterion.rb +95 -0
  54. data/examples/v201003/delete_campaign.rb +87 -0
  55. data/examples/v201003/download_report.rb +71 -0
  56. data/examples/v201003/get_all_active_ad_group_criteria.rb +93 -0
  57. data/examples/v201003/get_all_ad_extension_overrides.rb +91 -0
  58. data/examples/v201003/get_all_ad_group_criteria.rb +91 -0
  59. data/examples/v201003/get_all_ad_groups.rb +88 -0
  60. data/examples/v201003/get_all_ad_params.rb +89 -0
  61. data/examples/v201003/get_all_ads.rb +91 -0
  62. data/examples/v201003/get_all_campaign_ad_extensions.rb +90 -0
  63. data/examples/v201003/get_all_campaign_targets.rb +83 -0
  64. data/examples/v201003/get_all_campaigns.rb +83 -0
  65. data/examples/v201003/get_all_disapproved_ads.rb +94 -0
  66. data/examples/v201003/get_all_images.rb +88 -0
  67. data/examples/v201003/get_all_paused_campaigns.rb +86 -0
  68. data/examples/v201003/get_all_report_definitions.rb +84 -0
  69. data/examples/v201003/get_all_videos.rb +85 -0
  70. data/examples/v201003/get_conversion_optimizer_eligibility.rb +112 -0
  71. data/examples/v201003/get_criterion_bid_landscape.rb +105 -0
  72. data/examples/v201003/get_geo_location_info.rb +108 -0
  73. data/examples/v201003/get_method_cost.rb +96 -0
  74. data/examples/v201003/get_operation_count.rb +88 -0
  75. data/examples/v201003/get_related_keywords.rb +115 -0
  76. data/examples/v201003/get_related_placements.rb +114 -0
  77. data/examples/v201003/get_report_fields.rb +81 -0
  78. data/examples/v201003/get_total_usage_units_per_month.rb +83 -0
  79. data/examples/v201003/get_unit_count.rb +88 -0
  80. data/examples/v201003/perform_bulk_mutate_job.rb +221 -0
  81. data/examples/v201003/set_ad_params.rb +124 -0
  82. data/examples/v201003/set_campaign_targets.rb +125 -0
  83. data/examples/v201003/update_ad.rb +95 -0
  84. data/examples/v201003/update_ad_group.rb +90 -0
  85. data/examples/v201003/update_ad_group_criterion.rb +108 -0
  86. data/examples/v201003/update_campaign.rb +92 -0
  87. data/examples/v201003/upload_image.rb +97 -0
  88. data/examples/v201008/add_ad_extension_override.rb +91 -0
  89. data/examples/v201008/add_ad_group.rb +98 -0
  90. data/examples/v201008/add_ad_group_criteria.rb +117 -0
  91. data/examples/v201008/add_ads.rb +182 -0
  92. data/examples/v201008/add_campaign.rb +101 -0
  93. data/examples/v201008/add_campaign_ad_extension.rb +130 -0
  94. data/examples/v201008/add_experiment.rb +162 -0
  95. data/examples/v201008/add_keywords_performance_report_definition.rb +108 -0
  96. data/examples/v201008/add_negative_campaign_criterion.rb +96 -0
  97. data/examples/v201008/add_user_list.rb +96 -0
  98. data/examples/v201008/check_campaigns.rb +132 -0
  99. data/examples/v201008/delete_ad.rb +94 -0
  100. data/examples/v201008/delete_ad_group.rb +86 -0
  101. data/examples/v201008/delete_ad_group_criterion.rb +95 -0
  102. data/examples/v201008/delete_bulk_mutate_job.rb +96 -0
  103. data/examples/v201008/delete_campaign.rb +87 -0
  104. data/examples/v201008/delete_experiment.rb +87 -0
  105. data/examples/v201008/delete_user_list.rb +87 -0
  106. data/examples/v201008/download_report.rb +71 -0
  107. data/examples/v201008/get_account_hierarchy.rb +112 -0
  108. data/examples/v201008/get_all_account_changes.rb +144 -0
  109. data/examples/v201008/get_all_active_ad_group_criteria.rb +93 -0
  110. data/examples/v201008/get_all_ad_extension_overrides.rb +91 -0
  111. data/examples/v201008/get_all_ad_group_criteria.rb +91 -0
  112. data/examples/v201008/get_all_ad_groups.rb +88 -0
  113. data/examples/v201008/get_all_ad_params.rb +89 -0
  114. data/examples/v201008/get_all_ads.rb +91 -0
  115. data/examples/v201008/get_all_campaign_ad_extensions.rb +90 -0
  116. data/examples/v201008/get_all_campaign_targets.rb +83 -0
  117. data/examples/v201008/get_all_campaigns.rb +83 -0
  118. data/examples/v201008/get_all_disapproved_ads.rb +94 -0
  119. data/examples/v201008/get_all_experiments.rb +93 -0
  120. data/examples/v201008/get_all_images.rb +88 -0
  121. data/examples/v201008/get_all_paused_campaigns.rb +86 -0
  122. data/examples/v201008/get_all_report_definitions.rb +84 -0
  123. data/examples/v201008/get_all_user_lists.rb +84 -0
  124. data/examples/v201008/get_all_videos.rb +85 -0
  125. data/examples/v201008/get_bulk_mutate_job.rb +106 -0
  126. data/examples/v201008/get_campaign_alerts.rb +103 -0
  127. data/examples/v201008/get_conversion_optimizer_eligibility.rb +97 -0
  128. data/examples/v201008/get_criterion_bid_landscape.rb +105 -0
  129. data/examples/v201008/get_geo_location_info.rb +108 -0
  130. data/examples/v201008/get_method_cost.rb +96 -0
  131. data/examples/v201008/get_operation_count.rb +88 -0
  132. data/examples/v201008/get_related_keywords.rb +115 -0
  133. data/examples/v201008/get_related_placements.rb +114 -0
  134. data/examples/v201008/get_report_fields.rb +81 -0
  135. data/examples/v201008/get_total_usage_units_per_month.rb +83 -0
  136. data/examples/v201008/get_traffic_estimates.rb +156 -0
  137. data/examples/v201008/get_unit_count.rb +88 -0
  138. data/examples/v201008/handle_partial_failures.rb +135 -0
  139. data/examples/v201008/handle_policy_violation_error.rb +146 -0
  140. data/examples/v201008/perform_bulk_mutate_job.rb +221 -0
  141. data/examples/v201008/promote_experiment.rb +88 -0
  142. data/examples/v201008/set_ad_params.rb +124 -0
  143. data/examples/v201008/set_campaign_targets.rb +125 -0
  144. data/examples/v201008/update_ad.rb +95 -0
  145. data/examples/v201008/update_ad_group.rb +90 -0
  146. data/examples/v201008/update_ad_group_criterion.rb +108 -0
  147. data/examples/v201008/update_campaign.rb +93 -0
  148. data/examples/v201008/update_user_list.rb +91 -0
  149. data/examples/v201008/upload_image.rb +97 -0
  150. data/examples/v201101/add_ad_extension_override.rb +91 -0
  151. data/examples/v201101/add_ad_group.rb +98 -0
  152. data/examples/v201101/add_ad_group_criteria.rb +117 -0
  153. data/examples/v201101/add_ads.rb +182 -0
  154. data/examples/v201101/add_campaign.rb +108 -0
  155. data/examples/v201101/add_campaign_ad_extension.rb +130 -0
  156. data/examples/v201101/add_experiment.rb +162 -0
  157. data/examples/v201101/add_keywords_performance_report_definition.rb +108 -0
  158. data/examples/v201101/add_mcc_report_definition.rb +103 -0
  159. data/examples/v201101/add_negative_campaign_criterion.rb +96 -0
  160. data/examples/v201101/add_user_list.rb +96 -0
  161. data/examples/v201101/check_campaigns.rb +132 -0
  162. data/examples/v201101/delete_ad.rb +94 -0
  163. data/examples/v201101/delete_ad_group.rb +86 -0
  164. data/examples/v201101/delete_ad_group_criterion.rb +95 -0
  165. data/examples/v201101/delete_bulk_mutate_job.rb +96 -0
  166. data/examples/v201101/delete_campaign.rb +87 -0
  167. data/examples/v201101/delete_experiment.rb +87 -0
  168. data/examples/v201101/delete_user_list.rb +87 -0
  169. data/examples/v201101/download_mcc_report.rb +93 -0
  170. data/examples/v201101/download_report.rb +71 -0
  171. data/examples/v201101/get_account_hierarchy.rb +112 -0
  172. data/examples/v201101/get_ad_group_bid_landscape.rb +103 -0
  173. data/examples/v201101/get_all_account_changes.rb +146 -0
  174. data/examples/v201101/get_all_active_ad_group_criteria.rb +106 -0
  175. data/examples/v201101/get_all_ad_extension_overrides.rb +91 -0
  176. data/examples/v201101/get_all_ad_group_criteria.rb +97 -0
  177. data/examples/v201101/get_all_ad_groups.rb +94 -0
  178. data/examples/v201101/get_all_ad_params.rb +89 -0
  179. data/examples/v201101/get_all_ads.rb +99 -0
  180. data/examples/v201101/get_all_campaign_ad_extensions.rb +96 -0
  181. data/examples/v201101/get_all_campaign_targets.rb +83 -0
  182. data/examples/v201101/get_all_campaigns.rb +86 -0
  183. data/examples/v201101/get_all_disapproved_ads.rb +102 -0
  184. data/examples/v201101/get_all_experiments.rb +98 -0
  185. data/examples/v201101/get_all_images.rb +90 -0
  186. data/examples/v201101/get_all_paused_campaigns.rb +92 -0
  187. data/examples/v201101/get_all_report_definitions.rb +84 -0
  188. data/examples/v201101/get_all_user_lists.rb +87 -0
  189. data/examples/v201101/get_all_videos.rb +87 -0
  190. data/examples/v201101/get_bulk_mutate_job.rb +106 -0
  191. data/examples/v201101/get_campaign_alerts.rb +103 -0
  192. data/examples/v201101/get_conversion_optimizer_eligibility.rb +102 -0
  193. data/examples/v201101/get_criterion_bid_landscape.rb +102 -0
  194. data/examples/v201101/get_geo_location_info.rb +108 -0
  195. data/examples/v201101/get_method_cost.rb +96 -0
  196. data/examples/v201101/get_operation_count.rb +88 -0
  197. data/examples/v201101/get_related_keywords.rb +115 -0
  198. data/examples/v201101/get_related_placements.rb +114 -0
  199. data/examples/v201101/get_report_fields.rb +81 -0
  200. data/examples/v201101/get_total_usage_units_per_month.rb +83 -0
  201. data/examples/v201101/get_traffic_estimates.rb +157 -0
  202. data/examples/v201101/get_unit_count.rb +88 -0
  203. data/examples/v201101/handle_partial_failures.rb +135 -0
  204. data/examples/v201101/handle_policy_violation_error.rb +146 -0
  205. data/examples/v201101/perform_bulk_mutate_job.rb +221 -0
  206. data/examples/v201101/promote_experiment.rb +88 -0
  207. data/examples/v201101/set_ad_params.rb +124 -0
  208. data/examples/v201101/set_campaign_targets.rb +111 -0
  209. data/examples/v201101/update_ad.rb +95 -0
  210. data/examples/v201101/update_ad_group.rb +90 -0
  211. data/examples/v201101/update_ad_group_criterion.rb +108 -0
  212. data/examples/v201101/update_campaign.rb +93 -0
  213. data/examples/v201101/update_user_list.rb +91 -0
  214. data/examples/v201101/upload_image.rb +97 -0
  215. data/lib/adwords_api.rb +273 -0
  216. data/lib/adwords_api/api_config.rb +270 -0
  217. data/lib/adwords_api/auth/v13_login_handler.rb +36 -0
  218. data/lib/adwords_api/credential_handler.rb +111 -0
  219. data/lib/adwords_api/errors.rb +85 -0
  220. data/lib/adwords_api/extensions.rb +245 -0
  221. data/lib/adwords_api/soap4r_response_handler.rb +121 -0
  222. data/lib/adwords_api/utils.rb +80 -0
  223. data/lib/adwords_api/v13/AccountService.rb +321 -0
  224. data/lib/adwords_api/v13/AccountServiceDriver.rb +87 -0
  225. data/lib/adwords_api/v13/AccountServiceMappingRegistry.rb +337 -0
  226. data/lib/adwords_api/v13/AccountServiceWrapper.rb +407 -0
  227. data/lib/adwords_api/v13/ReportService.rb +328 -0
  228. data/lib/adwords_api/v13/ReportServiceDriver.rb +103 -0
  229. data/lib/adwords_api/v13/ReportServiceMappingRegistry.rb +298 -0
  230. data/lib/adwords_api/v13/ReportServiceWrapper.rb +500 -0
  231. data/lib/adwords_api/v13/TrafficEstimatorService.rb +414 -0
  232. data/lib/adwords_api/v13/TrafficEstimatorServiceDriver.rb +79 -0
  233. data/lib/adwords_api/v13/TrafficEstimatorServiceMappingRegistry.rb +491 -0
  234. data/lib/adwords_api/v13/TrafficEstimatorServiceWrapper.rb +402 -0
  235. data/lib/adwords_api/v200909/AdExtensionOverrideService.rb +1105 -0
  236. data/lib/adwords_api/v200909/AdExtensionOverrideServiceDriver.rb +63 -0
  237. data/lib/adwords_api/v200909/AdExtensionOverrideServiceMappingRegistry.rb +1265 -0
  238. data/lib/adwords_api/v200909/AdExtensionOverrideServiceWrapper.rb +332 -0
  239. data/lib/adwords_api/v200909/AdGroupAdService.rb +2603 -0
  240. data/lib/adwords_api/v200909/AdGroupAdServiceDriver.rb +63 -0
  241. data/lib/adwords_api/v200909/AdGroupAdServiceMappingRegistry.rb +2755 -0
  242. data/lib/adwords_api/v200909/AdGroupAdServiceWrapper.rb +332 -0
  243. data/lib/adwords_api/v200909/AdGroupCriterionService.rb +1577 -0
  244. data/lib/adwords_api/v200909/AdGroupCriterionServiceDriver.rb +63 -0
  245. data/lib/adwords_api/v200909/AdGroupCriterionServiceMappingRegistry.rb +1821 -0
  246. data/lib/adwords_api/v200909/AdGroupCriterionServiceWrapper.rb +332 -0
  247. data/lib/adwords_api/v200909/AdGroupService.rb +1251 -0
  248. data/lib/adwords_api/v200909/AdGroupServiceDriver.rb +63 -0
  249. data/lib/adwords_api/v200909/AdGroupServiceMappingRegistry.rb +1395 -0
  250. data/lib/adwords_api/v200909/AdGroupServiceWrapper.rb +332 -0
  251. data/lib/adwords_api/v200909/AdParamService.rb +765 -0
  252. data/lib/adwords_api/v200909/AdParamServiceDriver.rb +63 -0
  253. data/lib/adwords_api/v200909/AdParamServiceMappingRegistry.rb +927 -0
  254. data/lib/adwords_api/v200909/AdParamServiceWrapper.rb +332 -0
  255. data/lib/adwords_api/v200909/BulkMutateJobService.rb +4778 -0
  256. data/lib/adwords_api/v200909/BulkMutateJobServiceDriver.rb +63 -0
  257. data/lib/adwords_api/v200909/BulkMutateJobServiceMappingRegistry.rb +5077 -0
  258. data/lib/adwords_api/v200909/BulkMutateJobServiceWrapper.rb +332 -0
  259. data/lib/adwords_api/v200909/CampaignAdExtensionService.rb +1065 -0
  260. data/lib/adwords_api/v200909/CampaignAdExtensionServiceDriver.rb +63 -0
  261. data/lib/adwords_api/v200909/CampaignAdExtensionServiceMappingRegistry.rb +1273 -0
  262. data/lib/adwords_api/v200909/CampaignAdExtensionServiceWrapper.rb +332 -0
  263. data/lib/adwords_api/v200909/CampaignCriterionService.rb +1019 -0
  264. data/lib/adwords_api/v200909/CampaignCriterionServiceDriver.rb +63 -0
  265. data/lib/adwords_api/v200909/CampaignCriterionServiceMappingRegistry.rb +1237 -0
  266. data/lib/adwords_api/v200909/CampaignCriterionServiceWrapper.rb +332 -0
  267. data/lib/adwords_api/v200909/CampaignService.rb +1633 -0
  268. data/lib/adwords_api/v200909/CampaignServiceDriver.rb +63 -0
  269. data/lib/adwords_api/v200909/CampaignServiceMappingRegistry.rb +1785 -0
  270. data/lib/adwords_api/v200909/CampaignServiceWrapper.rb +332 -0
  271. data/lib/adwords_api/v200909/CampaignTargetService.rb +1435 -0
  272. data/lib/adwords_api/v200909/CampaignTargetServiceDriver.rb +63 -0
  273. data/lib/adwords_api/v200909/CampaignTargetServiceMappingRegistry.rb +1569 -0
  274. data/lib/adwords_api/v200909/CampaignTargetServiceWrapper.rb +332 -0
  275. data/lib/adwords_api/v200909/GeoLocationService.rb +611 -0
  276. data/lib/adwords_api/v200909/GeoLocationServiceDriver.rb +55 -0
  277. data/lib/adwords_api/v200909/GeoLocationServiceMappingRegistry.rb +771 -0
  278. data/lib/adwords_api/v200909/GeoLocationServiceWrapper.rb +303 -0
  279. data/lib/adwords_api/v200909/InfoService.rb +605 -0
  280. data/lib/adwords_api/v200909/InfoServiceDriver.rb +55 -0
  281. data/lib/adwords_api/v200909/InfoServiceMappingRegistry.rb +764 -0
  282. data/lib/adwords_api/v200909/InfoServiceWrapper.rb +303 -0
  283. data/lib/adwords_api/v200909/TargetingIdeaService.rb +2253 -0
  284. data/lib/adwords_api/v200909/TargetingIdeaServiceDriver.rb +63 -0
  285. data/lib/adwords_api/v200909/TargetingIdeaServiceMappingRegistry.rb +2688 -0
  286. data/lib/adwords_api/v200909/TargetingIdeaServiceWrapper.rb +335 -0
  287. data/lib/adwords_api/v201003/AdExtensionOverrideService.rb +1301 -0
  288. data/lib/adwords_api/v201003/AdExtensionOverrideServiceDriver.rb +63 -0
  289. data/lib/adwords_api/v201003/AdExtensionOverrideServiceMappingRegistry.rb +1468 -0
  290. data/lib/adwords_api/v201003/AdExtensionOverrideServiceWrapper.rb +332 -0
  291. data/lib/adwords_api/v201003/AdGroupAdService.rb +2909 -0
  292. data/lib/adwords_api/v201003/AdGroupAdServiceDriver.rb +63 -0
  293. data/lib/adwords_api/v201003/AdGroupAdServiceMappingRegistry.rb +2970 -0
  294. data/lib/adwords_api/v201003/AdGroupAdServiceWrapper.rb +332 -0
  295. data/lib/adwords_api/v201003/AdGroupCriterionService.rb +1762 -0
  296. data/lib/adwords_api/v201003/AdGroupCriterionServiceDriver.rb +63 -0
  297. data/lib/adwords_api/v201003/AdGroupCriterionServiceMappingRegistry.rb +1978 -0
  298. data/lib/adwords_api/v201003/AdGroupCriterionServiceWrapper.rb +332 -0
  299. data/lib/adwords_api/v201003/AdGroupService.rb +1421 -0
  300. data/lib/adwords_api/v201003/AdGroupServiceDriver.rb +63 -0
  301. data/lib/adwords_api/v201003/AdGroupServiceMappingRegistry.rb +1546 -0
  302. data/lib/adwords_api/v201003/AdGroupServiceWrapper.rb +332 -0
  303. data/lib/adwords_api/v201003/AdParamService.rb +859 -0
  304. data/lib/adwords_api/v201003/AdParamServiceDriver.rb +63 -0
  305. data/lib/adwords_api/v201003/AdParamServiceMappingRegistry.rb +1002 -0
  306. data/lib/adwords_api/v201003/AdParamServiceWrapper.rb +332 -0
  307. data/lib/adwords_api/v201003/BidLandscapeService.rb +847 -0
  308. data/lib/adwords_api/v201003/BidLandscapeServiceDriver.rb +55 -0
  309. data/lib/adwords_api/v201003/BidLandscapeServiceMappingRegistry.rb +958 -0
  310. data/lib/adwords_api/v201003/BidLandscapeServiceWrapper.rb +306 -0
  311. data/lib/adwords_api/v201003/BulkMutateJobService.rb +5401 -0
  312. data/lib/adwords_api/v201003/BulkMutateJobServiceDriver.rb +63 -0
  313. data/lib/adwords_api/v201003/BulkMutateJobServiceMappingRegistry.rb +5600 -0
  314. data/lib/adwords_api/v201003/BulkMutateJobServiceWrapper.rb +332 -0
  315. data/lib/adwords_api/v201003/CampaignAdExtensionService.rb +1255 -0
  316. data/lib/adwords_api/v201003/CampaignAdExtensionServiceDriver.rb +63 -0
  317. data/lib/adwords_api/v201003/CampaignAdExtensionServiceMappingRegistry.rb +1452 -0
  318. data/lib/adwords_api/v201003/CampaignAdExtensionServiceWrapper.rb +332 -0
  319. data/lib/adwords_api/v201003/CampaignCriterionService.rb +1145 -0
  320. data/lib/adwords_api/v201003/CampaignCriterionServiceDriver.rb +63 -0
  321. data/lib/adwords_api/v201003/CampaignCriterionServiceMappingRegistry.rb +1344 -0
  322. data/lib/adwords_api/v201003/CampaignCriterionServiceWrapper.rb +332 -0
  323. data/lib/adwords_api/v201003/CampaignService.rb +1901 -0
  324. data/lib/adwords_api/v201003/CampaignServiceDriver.rb +63 -0
  325. data/lib/adwords_api/v201003/CampaignServiceMappingRegistry.rb +2010 -0
  326. data/lib/adwords_api/v201003/CampaignServiceWrapper.rb +332 -0
  327. data/lib/adwords_api/v201003/CampaignTargetService.rb +1642 -0
  328. data/lib/adwords_api/v201003/CampaignTargetServiceDriver.rb +63 -0
  329. data/lib/adwords_api/v201003/CampaignTargetServiceMappingRegistry.rb +1754 -0
  330. data/lib/adwords_api/v201003/CampaignTargetServiceWrapper.rb +332 -0
  331. data/lib/adwords_api/v201003/GeoLocationService.rb +692 -0
  332. data/lib/adwords_api/v201003/GeoLocationServiceDriver.rb +55 -0
  333. data/lib/adwords_api/v201003/GeoLocationServiceMappingRegistry.rb +840 -0
  334. data/lib/adwords_api/v201003/GeoLocationServiceWrapper.rb +303 -0
  335. data/lib/adwords_api/v201003/InfoService.rb +687 -0
  336. data/lib/adwords_api/v201003/InfoServiceDriver.rb +55 -0
  337. data/lib/adwords_api/v201003/InfoServiceMappingRegistry.rb +833 -0
  338. data/lib/adwords_api/v201003/InfoServiceWrapper.rb +303 -0
  339. data/lib/adwords_api/v201003/MediaService.rb +1192 -0
  340. data/lib/adwords_api/v201003/MediaServiceDriver.rb +63 -0
  341. data/lib/adwords_api/v201003/MediaServiceMappingRegistry.rb +1290 -0
  342. data/lib/adwords_api/v201003/MediaServiceWrapper.rb +332 -0
  343. data/lib/adwords_api/v201003/ReportDefinitionService.rb +905 -0
  344. data/lib/adwords_api/v201003/ReportDefinitionServiceDriver.rb +71 -0
  345. data/lib/adwords_api/v201003/ReportDefinitionServiceMappingRegistry.rb +1036 -0
  346. data/lib/adwords_api/v201003/ReportDefinitionServiceWrapper.rb +378 -0
  347. data/lib/adwords_api/v201003/TargetingIdeaService.rb +2517 -0
  348. data/lib/adwords_api/v201003/TargetingIdeaServiceDriver.rb +63 -0
  349. data/lib/adwords_api/v201003/TargetingIdeaServiceMappingRegistry.rb +2925 -0
  350. data/lib/adwords_api/v201003/TargetingIdeaServiceWrapper.rb +335 -0
  351. data/lib/adwords_api/v201008/AdExtensionOverrideService.rb +1383 -0
  352. data/lib/adwords_api/v201008/AdExtensionOverrideServiceDriver.rb +63 -0
  353. data/lib/adwords_api/v201008/AdExtensionOverrideServiceMappingRegistry.rb +1563 -0
  354. data/lib/adwords_api/v201008/AdExtensionOverrideServiceWrapper.rb +332 -0
  355. data/lib/adwords_api/v201008/AdGroupAdService.rb +2928 -0
  356. data/lib/adwords_api/v201008/AdGroupAdServiceDriver.rb +63 -0
  357. data/lib/adwords_api/v201008/AdGroupAdServiceMappingRegistry.rb +2969 -0
  358. data/lib/adwords_api/v201008/AdGroupAdServiceWrapper.rb +332 -0
  359. data/lib/adwords_api/v201008/AdGroupCriterionService.rb +1981 -0
  360. data/lib/adwords_api/v201008/AdGroupCriterionServiceDriver.rb +63 -0
  361. data/lib/adwords_api/v201008/AdGroupCriterionServiceMappingRegistry.rb +2229 -0
  362. data/lib/adwords_api/v201008/AdGroupCriterionServiceWrapper.rb +332 -0
  363. data/lib/adwords_api/v201008/AdGroupService.rb +1548 -0
  364. data/lib/adwords_api/v201008/AdGroupServiceDriver.rb +63 -0
  365. data/lib/adwords_api/v201008/AdGroupServiceMappingRegistry.rb +1687 -0
  366. data/lib/adwords_api/v201008/AdGroupServiceWrapper.rb +332 -0
  367. data/lib/adwords_api/v201008/AdParamService.rb +889 -0
  368. data/lib/adwords_api/v201008/AdParamServiceDriver.rb +63 -0
  369. data/lib/adwords_api/v201008/AdParamServiceMappingRegistry.rb +1041 -0
  370. data/lib/adwords_api/v201008/AdParamServiceWrapper.rb +332 -0
  371. data/lib/adwords_api/v201008/AlertService.rb +743 -0
  372. data/lib/adwords_api/v201008/AlertServiceDriver.rb +55 -0
  373. data/lib/adwords_api/v201008/AlertServiceMappingRegistry.rb +836 -0
  374. data/lib/adwords_api/v201008/AlertServiceWrapper.rb +303 -0
  375. data/lib/adwords_api/v201008/BidLandscapeService.rb +928 -0
  376. data/lib/adwords_api/v201008/BidLandscapeServiceDriver.rb +55 -0
  377. data/lib/adwords_api/v201008/BidLandscapeServiceMappingRegistry.rb +1059 -0
  378. data/lib/adwords_api/v201008/BidLandscapeServiceWrapper.rb +306 -0
  379. data/lib/adwords_api/v201008/BulkMutateJobService.rb +6063 -0
  380. data/lib/adwords_api/v201008/BulkMutateJobServiceDriver.rb +63 -0
  381. data/lib/adwords_api/v201008/BulkMutateJobServiceMappingRegistry.rb +6265 -0
  382. data/lib/adwords_api/v201008/BulkMutateJobServiceWrapper.rb +332 -0
  383. data/lib/adwords_api/v201008/CampaignAdExtensionService.rb +1594 -0
  384. data/lib/adwords_api/v201008/CampaignAdExtensionServiceDriver.rb +63 -0
  385. data/lib/adwords_api/v201008/CampaignAdExtensionServiceMappingRegistry.rb +1789 -0
  386. data/lib/adwords_api/v201008/CampaignAdExtensionServiceWrapper.rb +332 -0
  387. data/lib/adwords_api/v201008/CampaignCriterionService.rb +1243 -0
  388. data/lib/adwords_api/v201008/CampaignCriterionServiceDriver.rb +63 -0
  389. data/lib/adwords_api/v201008/CampaignCriterionServiceMappingRegistry.rb +1467 -0
  390. data/lib/adwords_api/v201008/CampaignCriterionServiceWrapper.rb +332 -0
  391. data/lib/adwords_api/v201008/CampaignService.rb +1979 -0
  392. data/lib/adwords_api/v201008/CampaignServiceDriver.rb +63 -0
  393. data/lib/adwords_api/v201008/CampaignServiceMappingRegistry.rb +2089 -0
  394. data/lib/adwords_api/v201008/CampaignServiceWrapper.rb +332 -0
  395. data/lib/adwords_api/v201008/CampaignTargetService.rb +1651 -0
  396. data/lib/adwords_api/v201008/CampaignTargetServiceDriver.rb +63 -0
  397. data/lib/adwords_api/v201008/CampaignTargetServiceMappingRegistry.rb +1757 -0
  398. data/lib/adwords_api/v201008/CampaignTargetServiceWrapper.rb +332 -0
  399. data/lib/adwords_api/v201008/CustomerSyncService.rb +693 -0
  400. data/lib/adwords_api/v201008/CustomerSyncServiceDriver.rb +55 -0
  401. data/lib/adwords_api/v201008/CustomerSyncServiceMappingRegistry.rb +820 -0
  402. data/lib/adwords_api/v201008/CustomerSyncServiceWrapper.rb +303 -0
  403. data/lib/adwords_api/v201008/ExperimentService.rb +1124 -0
  404. data/lib/adwords_api/v201008/ExperimentServiceDriver.rb +63 -0
  405. data/lib/adwords_api/v201008/ExperimentServiceMappingRegistry.rb +1281 -0
  406. data/lib/adwords_api/v201008/ExperimentServiceWrapper.rb +332 -0
  407. data/lib/adwords_api/v201008/GeoLocationService.rb +695 -0
  408. data/lib/adwords_api/v201008/GeoLocationServiceDriver.rb +55 -0
  409. data/lib/adwords_api/v201008/GeoLocationServiceMappingRegistry.rb +843 -0
  410. data/lib/adwords_api/v201008/GeoLocationServiceWrapper.rb +303 -0
  411. data/lib/adwords_api/v201008/InfoService.rb +690 -0
  412. data/lib/adwords_api/v201008/InfoServiceDriver.rb +55 -0
  413. data/lib/adwords_api/v201008/InfoServiceMappingRegistry.rb +836 -0
  414. data/lib/adwords_api/v201008/InfoServiceWrapper.rb +303 -0
  415. data/lib/adwords_api/v201008/MediaService.rb +1144 -0
  416. data/lib/adwords_api/v201008/MediaServiceDriver.rb +63 -0
  417. data/lib/adwords_api/v201008/MediaServiceMappingRegistry.rb +1241 -0
  418. data/lib/adwords_api/v201008/MediaServiceWrapper.rb +332 -0
  419. data/lib/adwords_api/v201008/ReportDefinitionService.rb +976 -0
  420. data/lib/adwords_api/v201008/ReportDefinitionServiceDriver.rb +71 -0
  421. data/lib/adwords_api/v201008/ReportDefinitionServiceMappingRegistry.rb +1115 -0
  422. data/lib/adwords_api/v201008/ReportDefinitionServiceWrapper.rb +378 -0
  423. data/lib/adwords_api/v201008/ServicedAccountService.rb +630 -0
  424. data/lib/adwords_api/v201008/ServicedAccountServiceDriver.rb +55 -0
  425. data/lib/adwords_api/v201008/ServicedAccountServiceMappingRegistry.rb +752 -0
  426. data/lib/adwords_api/v201008/ServicedAccountServiceWrapper.rb +303 -0
  427. data/lib/adwords_api/v201008/TargetingIdeaService.rb +2645 -0
  428. data/lib/adwords_api/v201008/TargetingIdeaServiceDriver.rb +63 -0
  429. data/lib/adwords_api/v201008/TargetingIdeaServiceMappingRegistry.rb +3080 -0
  430. data/lib/adwords_api/v201008/TargetingIdeaServiceWrapper.rb +335 -0
  431. data/lib/adwords_api/v201008/TrafficEstimatorService.rb +1833 -0
  432. data/lib/adwords_api/v201008/TrafficEstimatorServiceDriver.rb +55 -0
  433. data/lib/adwords_api/v201008/TrafficEstimatorServiceMappingRegistry.rb +2124 -0
  434. data/lib/adwords_api/v201008/TrafficEstimatorServiceWrapper.rb +303 -0
  435. data/lib/adwords_api/v201008/UserListService.rb +846 -0
  436. data/lib/adwords_api/v201008/UserListServiceDriver.rb +63 -0
  437. data/lib/adwords_api/v201008/UserListServiceMappingRegistry.rb +915 -0
  438. data/lib/adwords_api/v201008/UserListServiceWrapper.rb +332 -0
  439. data/lib/adwords_api/v201101/AdExtensionOverrideService.rb +1399 -0
  440. data/lib/adwords_api/v201101/AdExtensionOverrideServiceDriver.rb +63 -0
  441. data/lib/adwords_api/v201101/AdExtensionOverrideServiceMappingRegistry.rb +1573 -0
  442. data/lib/adwords_api/v201101/AdExtensionOverrideServiceWrapper.rb +332 -0
  443. data/lib/adwords_api/v201101/AdGroupAdService.rb +2585 -0
  444. data/lib/adwords_api/v201101/AdGroupAdServiceDriver.rb +63 -0
  445. data/lib/adwords_api/v201101/AdGroupAdServiceMappingRegistry.rb +2583 -0
  446. data/lib/adwords_api/v201101/AdGroupAdServiceWrapper.rb +332 -0
  447. data/lib/adwords_api/v201101/AdGroupCriterionService.rb +2099 -0
  448. data/lib/adwords_api/v201101/AdGroupCriterionServiceDriver.rb +63 -0
  449. data/lib/adwords_api/v201101/AdGroupCriterionServiceMappingRegistry.rb +2327 -0
  450. data/lib/adwords_api/v201101/AdGroupCriterionServiceWrapper.rb +332 -0
  451. data/lib/adwords_api/v201101/AdGroupService.rb +1610 -0
  452. data/lib/adwords_api/v201101/AdGroupServiceDriver.rb +63 -0
  453. data/lib/adwords_api/v201101/AdGroupServiceMappingRegistry.rb +1765 -0
  454. data/lib/adwords_api/v201101/AdGroupServiceWrapper.rb +332 -0
  455. data/lib/adwords_api/v201101/AdParamService.rb +922 -0
  456. data/lib/adwords_api/v201101/AdParamServiceDriver.rb +63 -0
  457. data/lib/adwords_api/v201101/AdParamServiceMappingRegistry.rb +1077 -0
  458. data/lib/adwords_api/v201101/AdParamServiceWrapper.rb +332 -0
  459. data/lib/adwords_api/v201101/AlertService.rb +747 -0
  460. data/lib/adwords_api/v201101/AlertServiceDriver.rb +55 -0
  461. data/lib/adwords_api/v201101/AlertServiceMappingRegistry.rb +838 -0
  462. data/lib/adwords_api/v201101/AlertServiceWrapper.rb +303 -0
  463. data/lib/adwords_api/v201101/BulkMutateJobService.rb +6208 -0
  464. data/lib/adwords_api/v201101/BulkMutateJobServiceDriver.rb +63 -0
  465. data/lib/adwords_api/v201101/BulkMutateJobServiceMappingRegistry.rb +6433 -0
  466. data/lib/adwords_api/v201101/BulkMutateJobServiceWrapper.rb +332 -0
  467. data/lib/adwords_api/v201101/CampaignAdExtensionService.rb +1677 -0
  468. data/lib/adwords_api/v201101/CampaignAdExtensionServiceDriver.rb +63 -0
  469. data/lib/adwords_api/v201101/CampaignAdExtensionServiceMappingRegistry.rb +1855 -0
  470. data/lib/adwords_api/v201101/CampaignAdExtensionServiceWrapper.rb +332 -0
  471. data/lib/adwords_api/v201101/CampaignCriterionService.rb +1388 -0
  472. data/lib/adwords_api/v201101/CampaignCriterionServiceDriver.rb +63 -0
  473. data/lib/adwords_api/v201101/CampaignCriterionServiceMappingRegistry.rb +1601 -0
  474. data/lib/adwords_api/v201101/CampaignCriterionServiceWrapper.rb +332 -0
  475. data/lib/adwords_api/v201101/CampaignService.rb +2188 -0
  476. data/lib/adwords_api/v201101/CampaignServiceDriver.rb +63 -0
  477. data/lib/adwords_api/v201101/CampaignServiceMappingRegistry.rb +2301 -0
  478. data/lib/adwords_api/v201101/CampaignServiceWrapper.rb +332 -0
  479. data/lib/adwords_api/v201101/CampaignTargetService.rb +1629 -0
  480. data/lib/adwords_api/v201101/CampaignTargetServiceDriver.rb +63 -0
  481. data/lib/adwords_api/v201101/CampaignTargetServiceMappingRegistry.rb +1725 -0
  482. data/lib/adwords_api/v201101/CampaignTargetServiceWrapper.rb +332 -0
  483. data/lib/adwords_api/v201101/CustomerSyncService.rb +694 -0
  484. data/lib/adwords_api/v201101/CustomerSyncServiceDriver.rb +55 -0
  485. data/lib/adwords_api/v201101/CustomerSyncServiceMappingRegistry.rb +820 -0
  486. data/lib/adwords_api/v201101/CustomerSyncServiceWrapper.rb +303 -0
  487. data/lib/adwords_api/v201101/DataService.rb +1079 -0
  488. data/lib/adwords_api/v201101/DataServiceDriver.rb +63 -0
  489. data/lib/adwords_api/v201101/DataServiceMappingRegistry.rb +1177 -0
  490. data/lib/adwords_api/v201101/DataServiceWrapper.rb +338 -0
  491. data/lib/adwords_api/v201101/ExperimentService.rb +1256 -0
  492. data/lib/adwords_api/v201101/ExperimentServiceDriver.rb +63 -0
  493. data/lib/adwords_api/v201101/ExperimentServiceMappingRegistry.rb +1417 -0
  494. data/lib/adwords_api/v201101/ExperimentServiceWrapper.rb +332 -0
  495. data/lib/adwords_api/v201101/GeoLocationService.rb +695 -0
  496. data/lib/adwords_api/v201101/GeoLocationServiceDriver.rb +55 -0
  497. data/lib/adwords_api/v201101/GeoLocationServiceMappingRegistry.rb +843 -0
  498. data/lib/adwords_api/v201101/GeoLocationServiceWrapper.rb +303 -0
  499. data/lib/adwords_api/v201101/InfoService.rb +690 -0
  500. data/lib/adwords_api/v201101/InfoServiceDriver.rb +55 -0
  501. data/lib/adwords_api/v201101/InfoServiceMappingRegistry.rb +836 -0
  502. data/lib/adwords_api/v201101/InfoServiceWrapper.rb +303 -0
  503. data/lib/adwords_api/v201101/MediaService.rb +1247 -0
  504. data/lib/adwords_api/v201101/MediaServiceDriver.rb +63 -0
  505. data/lib/adwords_api/v201101/MediaServiceMappingRegistry.rb +1357 -0
  506. data/lib/adwords_api/v201101/MediaServiceWrapper.rb +332 -0
  507. data/lib/adwords_api/v201101/ReportDefinitionService.rb +1121 -0
  508. data/lib/adwords_api/v201101/ReportDefinitionServiceDriver.rb +71 -0
  509. data/lib/adwords_api/v201101/ReportDefinitionServiceMappingRegistry.rb +1263 -0
  510. data/lib/adwords_api/v201101/ReportDefinitionServiceWrapper.rb +364 -0
  511. data/lib/adwords_api/v201101/ServicedAccountService.rb +636 -0
  512. data/lib/adwords_api/v201101/ServicedAccountServiceDriver.rb +55 -0
  513. data/lib/adwords_api/v201101/ServicedAccountServiceMappingRegistry.rb +756 -0
  514. data/lib/adwords_api/v201101/ServicedAccountServiceWrapper.rb +303 -0
  515. data/lib/adwords_api/v201101/TargetingIdeaService.rb +2827 -0
  516. data/lib/adwords_api/v201101/TargetingIdeaServiceDriver.rb +63 -0
  517. data/lib/adwords_api/v201101/TargetingIdeaServiceMappingRegistry.rb +3262 -0
  518. data/lib/adwords_api/v201101/TargetingIdeaServiceWrapper.rb +335 -0
  519. data/lib/adwords_api/v201101/TrafficEstimatorService.rb +1839 -0
  520. data/lib/adwords_api/v201101/TrafficEstimatorServiceDriver.rb +55 -0
  521. data/lib/adwords_api/v201101/TrafficEstimatorServiceMappingRegistry.rb +2128 -0
  522. data/lib/adwords_api/v201101/TrafficEstimatorServiceWrapper.rb +303 -0
  523. data/lib/adwords_api/v201101/UserListService.rb +1206 -0
  524. data/lib/adwords_api/v201101/UserListServiceDriver.rb +63 -0
  525. data/lib/adwords_api/v201101/UserListServiceMappingRegistry.rb +1323 -0
  526. data/lib/adwords_api/v201101/UserListServiceWrapper.rb +332 -0
  527. metadata +649 -0
@@ -0,0 +1,332 @@
1
+ # This file was automatically generated during the "rake generate" step of
2
+ # library setup.
3
+ require 'adwords_api/v201101/AdGroupAdServiceDriver.rb'
4
+
5
+ module AdwordsApi
6
+ module V201101
7
+ module AdGroupAdService
8
+
9
+ # Wrapper class for the v201101 AdGroupAdService service.
10
+ # This class is automatically generated.
11
+ class AdGroupAdServiceWrapper
12
+
13
+ # Holds the API object to which the wrapper belongs.
14
+ attr_reader :api
15
+
16
+ # Version and service utility fields.
17
+ attr_reader :version, :service
18
+
19
+ REGISTRY = AdwordsApi::V201101::AdGroupAdService::DefaultMappingRegistry::LiteralRegistry
20
+ # This takes advantage of the code generated by soap4r to get the
21
+ # correct namespace for a given service. It accesses one of the fields
22
+ # in the description of the service's methods, which indicates the
23
+ # namespace.
24
+ # Since we're using a fixed version of soap4r (1.5.8), and this is
25
+ # automatically generated as part of the stub generation, it will
26
+ # always point to what we want.
27
+ NAMESPACE = 'https://adwords.google.com/api/adwords/cm/v201101'
28
+
29
+ # Holds a shortcut to the parent module.
30
+ # Use this to avoid typing the full class name when creating classes
31
+ # belonging to this service, e.g.
32
+ # service_object.module::ClassName
33
+ # instead of
34
+ # AdwordsApi::V201101::AdGroupAdService::ClassName
35
+ # This will make it easier to migrate your code between API versions.
36
+ attr_reader :module
37
+
38
+ public
39
+
40
+ # Constructor for AdGroupAdServiceWrapper.
41
+ #
42
+ # Args:
43
+ # - driver: SOAP::RPC::Driver object with the remote SOAP methods for
44
+ # this service
45
+ # - api: the API object to which the wrapper belongs
46
+ #
47
+ def initialize(driver, api)
48
+ @driver = driver
49
+ @api = api
50
+ @module = AdwordsApi::V201101::AdGroupAdService
51
+ @version = :v201101
52
+ @service = :AdGroupAdService
53
+ end
54
+
55
+ # Returns the namespace for this service.
56
+ def namespace
57
+ return NAMESPACE
58
+ end
59
+
60
+ private
61
+
62
+ # Converts from underscore_separated names to camelCase names.
63
+ #
64
+ # Args:
65
+ # - text: the text to be converted
66
+ #
67
+ def camel_case(text)
68
+ text.gsub(/_\w/) {|match| match[1..-1].upcase}
69
+ end
70
+
71
+ # Converts from camelCase names to underscore_separated names.
72
+ #
73
+ # Args:
74
+ # - text: the text to be converted
75
+ #
76
+ def underscore(text)
77
+ text.gsub(/[a-z0-9][A-Z]/) do |match|
78
+ match[0,1] + '_' + match[1,1].downcase
79
+ end
80
+ end
81
+
82
+ # Validates whether an object is of the correct type.
83
+ # This method is invoked by the hash to object converter during
84
+ # runtime to check the type validity of every object.
85
+ #
86
+ # Args:
87
+ # - object: the hash "object" being evaluated
88
+ # - type: the expected type (the class object itself)
89
+ #
90
+ # Returns:
91
+ # nil, upon success
92
+ #
93
+ # Raises:
94
+ # - ArgumentError: in case of an unexpected type
95
+ #
96
+ def validate_object(object, type)
97
+ return nil if object.is_a? type
98
+
99
+ wsdl_type_obj = type.new
100
+
101
+ if object.is_a? Hash
102
+ xsi_type = object[:xsi_type] or object['xsi_type']
103
+ if xsi_type
104
+ begin
105
+ subtype = @module.class_eval(xsi_type)
106
+ user_type_obj = subtype.new
107
+ rescue
108
+ raise ArgumentError, "Specified xsi_type '" + xsi_type +
109
+ "' is unknown"
110
+ end
111
+ unless user_type_obj.is_a? type
112
+ raise ArgumentError, "Specified xsi_type '" + xsi_type +
113
+ "' is not a subclass of " + type.to_s
114
+ end
115
+ else
116
+ object.each do |key, value|
117
+ if key.to_s != 'xsi_type'
118
+ if !wsdl_type_obj.respond_to?(camel_case(key.to_s).to_sym)
119
+ raise ArgumentError, "Unknown property '" + key.to_s +
120
+ "' for type " + type.to_s
121
+ end
122
+ end
123
+ end
124
+ end
125
+ end
126
+ return nil
127
+ end
128
+
129
+ # Sets a property on a real (soap4r-generated) object.
130
+ #
131
+ # Args:
132
+ # - object: the object being modified
133
+ # - property: the property being set
134
+ # - value: the value it's being set to
135
+ #
136
+ def set_object_property(object, property, value)
137
+ begin
138
+ object.send(property.to_s + '=', value)
139
+ rescue
140
+ object_class = object.class.name.split('::').last
141
+ error = AdsCommon::Errors::MissingPropertyError.new(
142
+ property, object_class)
143
+ message = "'Missing property `" + property.to_s +
144
+ "' for object class `" + object_class + "'"
145
+ raise(error, message)
146
+ end
147
+ end
148
+
149
+ public
150
+
151
+ # Converts dynamic objects (property hashes) into real soap4r objects.
152
+ # This is meant to be called when setting properties on a class, so
153
+ # the method receives an optional parameter specifying the class and
154
+ # property. This way, it's possible to determine the default type for
155
+ # the object if none is provided.
156
+ #
157
+ # Args:
158
+ # - object: the object being converted
159
+ # - parent_class: the class whose property is being set
160
+ # - property: the property being set
161
+ #
162
+ def convert_to_object(object, parent_class = nil, property = nil)
163
+ property = camel_case(property.to_s) if property
164
+ if object.is_a? Hash
165
+ # Process a hash.
166
+ specified_class = object[:xsi_type] or object['xsi_type']
167
+ default_class = nil
168
+ # Determine default class for this object, given the property
169
+ # being set.
170
+ if parent_class and property
171
+ parent = REGISTRY.schema_definition_from_class(parent_class)
172
+ element = parent.elements.entries.find do |entry|
173
+ entry.varname.to_s == property.to_s
174
+ end
175
+ default_class = element.mapped_class if element
176
+ end
177
+ validate_object(object, default_class)
178
+ real_class = nil
179
+ if specified_class
180
+ real_class = @module.class_eval(specified_class)
181
+ else
182
+ real_class = default_class
183
+ end
184
+ # Instance real object.
185
+ real_object = real_class.new
186
+ # Set each of its properties.
187
+ object.each do |entry, value|
188
+ entry = entry.to_s
189
+ unless entry == 'xsi_type'
190
+ if @api.config.read('service.use_ruby_names')
191
+ entry = camel_case(entry)
192
+ end
193
+ if value.is_a? Hash
194
+ # Recurse.
195
+ set_object_property(real_object, entry,
196
+ convert_to_object(value, real_class, entry))
197
+ elsif value.is_a? Array
198
+ set_object_property(real_object, entry,
199
+ value.map do |item|
200
+ # Recurse.
201
+ convert_to_object(item, real_class, entry)
202
+ end
203
+ )
204
+ else
205
+ set_object_property(real_object, entry, value)
206
+ end
207
+ end
208
+ end
209
+ return real_object
210
+ elsif object.is_a? Array
211
+ # Process an array
212
+ return object.map do |entry|
213
+ # Recurse.
214
+ convert_to_object(entry, parent_class, property)
215
+ end
216
+ else
217
+ return object
218
+ end
219
+ end
220
+
221
+ # Converts real soap4r objects into dynamic ones (property hashes).
222
+ # This is meant to be called for return objects of remote calls.
223
+ #
224
+ # Args:
225
+ # - object: the object being converted
226
+ #
227
+ def convert_from_object(object)
228
+ if object.class.name =~
229
+ /AdwordsApi::V201101::\w+::\w+/
230
+ # Handle soap4r object
231
+ object_class = REGISTRY.schema_definition_from_class(object.class)
232
+ if object_class.elements and !object_class.elements.entries.empty?
233
+ # Process complex object.
234
+ hash = {}
235
+ hash[:xsi_type] = object.class.name.split('::').last
236
+ object_class.elements.entries.each do |entry|
237
+ property = entry.varname.to_s
238
+ if object.respond_to? property and !property.include?('_Type')
239
+ value = object.send(property)
240
+ property_name = nil
241
+ if @api.config.read('service.use_ruby_names')
242
+ property_name = underscore(property).to_sym
243
+ else
244
+ property_name = property.to_sym
245
+ end
246
+ # Recurse.
247
+ hash[property_name] = convert_from_object(value) if value
248
+ end
249
+ end
250
+ return hash
251
+ else
252
+ # Process simple object.
253
+ parent = object.class.superclass
254
+ return parent.new(object)
255
+ end
256
+ elsif object.is_a? Array
257
+ # Handle arrays
258
+ return object.map do |entry|
259
+ # Recurse.
260
+ convert_from_object(entry)
261
+ end
262
+ else
263
+ # Handle native objects
264
+ return object
265
+ end
266
+ end
267
+
268
+
269
+ public
270
+
271
+ # Calls the {get}[http://code.google.com/apis/adwords/docs/reference/v201101/AdGroupAdService.html#get] method of the AdGroupAdService service.
272
+ # Check {the online documentation for this method}[http://code.google.com/apis/adwords/docs/reference/v201101/AdGroupAdService.html#get].
273
+ #
274
+ # Args:
275
+ # - serviceSelector: AdwordsApi::V201101::AdGroupAdService::Selector
276
+ #
277
+ # Returns:
278
+ # - rval: AdwordsApi::V201101::AdGroupAdService::AdGroupAdPage
279
+ #
280
+ # Raises:
281
+ # Error::ApiError (or a subclass thereof) if a SOAP fault occurs.
282
+ #
283
+ def get(serviceSelector)
284
+ begin
285
+ arg_array = []
286
+ validate_object(serviceSelector, AdwordsApi::V201101::AdGroupAdService::Selector)
287
+ arg_array << convert_to_object(serviceSelector, AdwordsApi::V201101::AdGroupAdService::Get,
288
+ 'serviceSelector')
289
+ # Construct request object and make API call
290
+ obj = AdwordsApi::V201101::AdGroupAdService::Get.new(*arg_array)
291
+ reply = convert_from_object(@driver.get(obj))
292
+ reply = reply[:rval] if reply.include?(:rval)
293
+ return reply
294
+ rescue SOAP::FaultError => fault
295
+ raise AdwordsApi::Errors.create_api_exception(fault,
296
+ self)
297
+ end
298
+ end
299
+
300
+ # Calls the {mutate}[http://code.google.com/apis/adwords/docs/reference/v201101/AdGroupAdService.html#mutate] method of the AdGroupAdService service.
301
+ # Check {the online documentation for this method}[http://code.google.com/apis/adwords/docs/reference/v201101/AdGroupAdService.html#mutate].
302
+ #
303
+ # Args:
304
+ # - operations: SOAP::SOAPArray of AdwordsApi::V201101::AdGroupAdService::AdGroupAdOperation
305
+ #
306
+ # Returns:
307
+ # - rval: AdwordsApi::V201101::AdGroupAdService::AdGroupAdReturnValue
308
+ #
309
+ # Raises:
310
+ # Error::ApiError (or a subclass thereof) if a SOAP fault occurs.
311
+ #
312
+ def mutate(operations)
313
+ begin
314
+ arg_array = []
315
+ validate_object(operations, SOAP::SOAPArray)
316
+ arg_array << convert_to_object(operations, AdwordsApi::V201101::AdGroupAdService::Mutate,
317
+ 'operations')
318
+ # Construct request object and make API call
319
+ obj = AdwordsApi::V201101::AdGroupAdService::Mutate.new(*arg_array)
320
+ reply = convert_from_object(@driver.mutate(obj))
321
+ reply = reply[:rval] if reply.include?(:rval)
322
+ return reply
323
+ rescue SOAP::FaultError => fault
324
+ raise AdwordsApi::Errors.create_api_exception(fault,
325
+ self)
326
+ end
327
+ end
328
+
329
+ end
330
+ end
331
+ end
332
+ end
@@ -0,0 +1,2099 @@
1
+ require 'xsd/qname'
2
+
3
+ module AdwordsApi; module V201101; module AdGroupCriterionService
4
+
5
+
6
+ # DateRange
7
+ # - min - SOAP::SOAPString
8
+ # - max - SOAP::SOAPString
9
+ class DateRange
10
+ attr_accessor :min
11
+ attr_accessor :max
12
+
13
+ def initialize(min = nil, max = nil)
14
+ @min = min
15
+ @max = max
16
+ end
17
+ end
18
+
19
+ # OrderBy
20
+ # - field - SOAP::SOAPString
21
+ # - sortOrder - AdwordsApi::V201101::AdGroupCriterionService::SortOrder
22
+ class OrderBy
23
+ attr_accessor :field
24
+ attr_accessor :sortOrder
25
+
26
+ def initialize(field = nil, sortOrder = nil)
27
+ @field = field
28
+ @sortOrder = sortOrder
29
+ end
30
+ end
31
+
32
+ # Paging
33
+ # - startIndex - SOAP::SOAPInt
34
+ # - numberResults - SOAP::SOAPInt
35
+ class Paging
36
+ attr_accessor :startIndex
37
+ attr_accessor :numberResults
38
+
39
+ def initialize(startIndex = nil, numberResults = nil)
40
+ @startIndex = startIndex
41
+ @numberResults = numberResults
42
+ end
43
+ end
44
+
45
+ # PolicyViolationError.Part
46
+ # - index - SOAP::SOAPInt
47
+ # - length - SOAP::SOAPInt
48
+ class PolicyViolationErrorPart
49
+ attr_accessor :index
50
+ attr_accessor :length
51
+
52
+ def initialize(index = nil, length = nil)
53
+ @index = index
54
+ @length = length
55
+ end
56
+ end
57
+
58
+ # PolicyViolationKey
59
+ # - policyName - SOAP::SOAPString
60
+ # - violatingText - SOAP::SOAPString
61
+ class PolicyViolationKey
62
+ attr_accessor :policyName
63
+ attr_accessor :violatingText
64
+
65
+ def initialize(policyName = nil, violatingText = nil)
66
+ @policyName = policyName
67
+ @violatingText = violatingText
68
+ end
69
+ end
70
+
71
+ # Predicate
72
+ # - field - SOAP::SOAPString
73
+ # - operator - AdwordsApi::V201101::AdGroupCriterionService::PredicateOperator
74
+ # - values - SOAP::SOAPString
75
+ class Predicate
76
+ attr_accessor :field
77
+ attr_accessor :operator
78
+ attr_accessor :values
79
+
80
+ def initialize(field = nil, operator = nil, values = [])
81
+ @field = field
82
+ @operator = operator
83
+ @values = values
84
+ end
85
+ end
86
+
87
+ # ProductConditionOperand
88
+ # - operand - SOAP::SOAPString
89
+ class ProductConditionOperand
90
+ attr_accessor :operand
91
+
92
+ def initialize(operand = nil)
93
+ @operand = operand
94
+ end
95
+ end
96
+
97
+ # QualityInfo
98
+ # - isKeywordAdRelevanceAcceptable - SOAP::SOAPBoolean
99
+ # - isLandingPageQualityAcceptable - SOAP::SOAPBoolean
100
+ # - isLandingPageLatencyAcceptable - SOAP::SOAPBoolean
101
+ # - qualityScore - SOAP::SOAPInt
102
+ class QualityInfo
103
+ attr_accessor :isKeywordAdRelevanceAcceptable
104
+ attr_accessor :isLandingPageQualityAcceptable
105
+ attr_accessor :isLandingPageLatencyAcceptable
106
+ attr_accessor :qualityScore
107
+
108
+ def initialize(isKeywordAdRelevanceAcceptable = nil, isLandingPageQualityAcceptable = nil, isLandingPageLatencyAcceptable = nil, qualityScore = nil)
109
+ @isKeywordAdRelevanceAcceptable = isKeywordAdRelevanceAcceptable
110
+ @isLandingPageQualityAcceptable = isLandingPageQualityAcceptable
111
+ @isLandingPageLatencyAcceptable = isLandingPageLatencyAcceptable
112
+ @qualityScore = qualityScore
113
+ end
114
+ end
115
+
116
+ # SoapHeader
117
+ # - authToken - SOAP::SOAPString
118
+ # - clientCustomerId - SOAP::SOAPString
119
+ # - clientEmail - SOAP::SOAPString
120
+ # - developerToken - SOAP::SOAPString
121
+ # - userAgent - SOAP::SOAPString
122
+ # - validateOnly - SOAP::SOAPBoolean
123
+ # - partialFailure - SOAP::SOAPBoolean
124
+ class SoapHeader
125
+ attr_accessor :authToken
126
+ attr_accessor :clientCustomerId
127
+ attr_accessor :clientEmail
128
+ attr_accessor :developerToken
129
+ attr_accessor :userAgent
130
+ attr_accessor :validateOnly
131
+ attr_accessor :partialFailure
132
+
133
+ def initialize(authToken = nil, clientCustomerId = nil, clientEmail = nil, developerToken = nil, userAgent = nil, validateOnly = nil, partialFailure = nil)
134
+ @authToken = authToken
135
+ @clientCustomerId = clientCustomerId
136
+ @clientEmail = clientEmail
137
+ @developerToken = developerToken
138
+ @userAgent = userAgent
139
+ @validateOnly = validateOnly
140
+ @partialFailure = partialFailure
141
+ end
142
+ end
143
+
144
+ # SoapResponseHeader
145
+ # - requestId - SOAP::SOAPString
146
+ # - operations - SOAP::SOAPLong
147
+ # - responseTime - SOAP::SOAPLong
148
+ # - units - SOAP::SOAPLong
149
+ class SoapResponseHeader
150
+ attr_accessor :requestId
151
+ attr_accessor :operations
152
+ attr_accessor :responseTime
153
+ attr_accessor :units
154
+
155
+ def initialize(requestId = nil, operations = nil, responseTime = nil, units = nil)
156
+ @requestId = requestId
157
+ @operations = operations
158
+ @responseTime = responseTime
159
+ @units = units
160
+ end
161
+ end
162
+
163
+ # ComparableValue
164
+ # abstract
165
+ # - comparableValue_Type - SOAP::SOAPString
166
+ class ComparableValue
167
+ attr_accessor :comparableValue_Type
168
+
169
+ def initialize(comparableValue_Type = nil)
170
+ @comparableValue_Type = comparableValue_Type
171
+ end
172
+ end
173
+
174
+ # Money
175
+ # - comparableValue_Type - SOAP::SOAPString
176
+ # - microAmount - SOAP::SOAPLong
177
+ class Money < ComparableValue
178
+ attr_accessor :comparableValue_Type
179
+ attr_accessor :microAmount
180
+
181
+ def initialize(comparableValue_Type = nil, microAmount = nil)
182
+ @comparableValue_Type = comparableValue_Type
183
+ @microAmount = microAmount
184
+ end
185
+ end
186
+
187
+ # NumberValue
188
+ # abstract
189
+ # - comparableValue_Type - SOAP::SOAPString
190
+ class NumberValue < ComparableValue
191
+ attr_accessor :comparableValue_Type
192
+
193
+ def initialize(comparableValue_Type = nil)
194
+ @comparableValue_Type = comparableValue_Type
195
+ end
196
+ end
197
+
198
+ # DoubleValue
199
+ # - comparableValue_Type - SOAP::SOAPString
200
+ # - number - SOAP::SOAPDouble
201
+ class DoubleValue < NumberValue
202
+ attr_accessor :comparableValue_Type
203
+ attr_accessor :number
204
+
205
+ def initialize(comparableValue_Type = nil, number = nil)
206
+ @comparableValue_Type = comparableValue_Type
207
+ @number = number
208
+ end
209
+ end
210
+
211
+ # LongValue
212
+ # - comparableValue_Type - SOAP::SOAPString
213
+ # - number - SOAP::SOAPLong
214
+ class LongValue < NumberValue
215
+ attr_accessor :comparableValue_Type
216
+ attr_accessor :number
217
+
218
+ def initialize(comparableValue_Type = nil, number = nil)
219
+ @comparableValue_Type = comparableValue_Type
220
+ @number = number
221
+ end
222
+ end
223
+
224
+ # ExemptionRequest
225
+ # - key - AdwordsApi::V201101::AdGroupCriterionService::PolicyViolationKey
226
+ class ExemptionRequest
227
+ attr_accessor :key
228
+
229
+ def initialize(key = nil)
230
+ @key = key
231
+ end
232
+ end
233
+
234
+ # ProductCondition
235
+ # - argument - SOAP::SOAPString
236
+ # - operand - AdwordsApi::V201101::AdGroupCriterionService::ProductConditionOperand
237
+ class ProductCondition
238
+ attr_accessor :argument
239
+ attr_accessor :operand
240
+
241
+ def initialize(argument = nil, operand = nil)
242
+ @argument = argument
243
+ @operand = operand
244
+ end
245
+ end
246
+
247
+ # Selector
248
+ # - fields - SOAP::SOAPString
249
+ # - predicates - AdwordsApi::V201101::AdGroupCriterionService::Predicate
250
+ # - dateRange - AdwordsApi::V201101::AdGroupCriterionService::DateRange
251
+ # - ordering - AdwordsApi::V201101::AdGroupCriterionService::OrderBy
252
+ # - paging - AdwordsApi::V201101::AdGroupCriterionService::Paging
253
+ class Selector
254
+ attr_accessor :fields
255
+ attr_accessor :predicates
256
+ attr_accessor :dateRange
257
+ attr_accessor :ordering
258
+ attr_accessor :paging
259
+
260
+ def initialize(fields = [], predicates = [], dateRange = nil, ordering = [], paging = nil)
261
+ @fields = fields
262
+ @predicates = predicates
263
+ @dateRange = dateRange
264
+ @ordering = ordering
265
+ @paging = paging
266
+ end
267
+ end
268
+
269
+ # Stats
270
+ # - startDate - SOAP::SOAPString
271
+ # - endDate - SOAP::SOAPString
272
+ # - network - AdwordsApi::V201101::AdGroupCriterionService::StatsNetwork
273
+ # - clicks - SOAP::SOAPLong
274
+ # - impressions - SOAP::SOAPLong
275
+ # - cost - AdwordsApi::V201101::AdGroupCriterionService::Money
276
+ # - averagePosition - SOAP::SOAPDouble
277
+ # - averageCpc - AdwordsApi::V201101::AdGroupCriterionService::Money
278
+ # - averageCpm - AdwordsApi::V201101::AdGroupCriterionService::Money
279
+ # - ctr - SOAP::SOAPDouble
280
+ # - conversions - SOAP::SOAPLong
281
+ # - conversionRate - SOAP::SOAPDouble
282
+ # - costPerConversion - AdwordsApi::V201101::AdGroupCriterionService::Money
283
+ # - conversionsManyPerClick - SOAP::SOAPLong
284
+ # - conversionRateManyPerClick - SOAP::SOAPDouble
285
+ # - costPerConversionManyPerClick - AdwordsApi::V201101::AdGroupCriterionService::Money
286
+ # - viewThroughConversions - SOAP::SOAPLong
287
+ # - totalConvValue - SOAP::SOAPLong
288
+ # - valuePerConv - SOAP::SOAPDouble
289
+ # - valuePerConvManyPerClick - SOAP::SOAPDouble
290
+ # - invalidClicks - SOAP::SOAPLong
291
+ # - invalidClickRate - SOAP::SOAPDouble
292
+ # - stats_Type - SOAP::SOAPString
293
+ class Stats
294
+ attr_accessor :startDate
295
+ attr_accessor :endDate
296
+ attr_accessor :network
297
+ attr_accessor :clicks
298
+ attr_accessor :impressions
299
+ attr_accessor :cost
300
+ attr_accessor :averagePosition
301
+ attr_accessor :averageCpc
302
+ attr_accessor :averageCpm
303
+ attr_accessor :ctr
304
+ attr_accessor :conversions
305
+ attr_accessor :conversionRate
306
+ attr_accessor :costPerConversion
307
+ attr_accessor :conversionsManyPerClick
308
+ attr_accessor :conversionRateManyPerClick
309
+ attr_accessor :costPerConversionManyPerClick
310
+ attr_accessor :viewThroughConversions
311
+ attr_accessor :totalConvValue
312
+ attr_accessor :valuePerConv
313
+ attr_accessor :valuePerConvManyPerClick
314
+ attr_accessor :invalidClicks
315
+ attr_accessor :invalidClickRate
316
+ attr_accessor :stats_Type
317
+
318
+ 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, viewThroughConversions = nil, totalConvValue = nil, valuePerConv = nil, valuePerConvManyPerClick = nil, invalidClicks = nil, invalidClickRate = nil, stats_Type = nil)
319
+ @startDate = startDate
320
+ @endDate = endDate
321
+ @network = network
322
+ @clicks = clicks
323
+ @impressions = impressions
324
+ @cost = cost
325
+ @averagePosition = averagePosition
326
+ @averageCpc = averageCpc
327
+ @averageCpm = averageCpm
328
+ @ctr = ctr
329
+ @conversions = conversions
330
+ @conversionRate = conversionRate
331
+ @costPerConversion = costPerConversion
332
+ @conversionsManyPerClick = conversionsManyPerClick
333
+ @conversionRateManyPerClick = conversionRateManyPerClick
334
+ @costPerConversionManyPerClick = costPerConversionManyPerClick
335
+ @viewThroughConversions = viewThroughConversions
336
+ @totalConvValue = totalConvValue
337
+ @valuePerConv = valuePerConv
338
+ @valuePerConvManyPerClick = valuePerConvManyPerClick
339
+ @invalidClicks = invalidClicks
340
+ @invalidClickRate = invalidClickRate
341
+ @stats_Type = stats_Type
342
+ end
343
+ end
344
+
345
+ # ApiError
346
+ # abstract
347
+ # - fieldPath - SOAP::SOAPString
348
+ # - trigger - SOAP::SOAPString
349
+ # - errorString - SOAP::SOAPString
350
+ # - apiError_Type - SOAP::SOAPString
351
+ class ApiError
352
+ attr_accessor :fieldPath
353
+ attr_accessor :trigger
354
+ attr_accessor :errorString
355
+ attr_accessor :apiError_Type
356
+
357
+ def initialize(fieldPath = nil, trigger = nil, errorString = nil, apiError_Type = nil)
358
+ @fieldPath = fieldPath
359
+ @trigger = trigger
360
+ @errorString = errorString
361
+ @apiError_Type = apiError_Type
362
+ end
363
+ end
364
+
365
+ # AdGroupCriterionError
366
+ # - fieldPath - SOAP::SOAPString
367
+ # - trigger - SOAP::SOAPString
368
+ # - errorString - SOAP::SOAPString
369
+ # - apiError_Type - SOAP::SOAPString
370
+ # - reason - AdwordsApi::V201101::AdGroupCriterionService::AdGroupCriterionErrorReason
371
+ class AdGroupCriterionError < ApiError
372
+ attr_accessor :fieldPath
373
+ attr_accessor :trigger
374
+ attr_accessor :errorString
375
+ attr_accessor :apiError_Type
376
+ attr_accessor :reason
377
+
378
+ def initialize(fieldPath = nil, trigger = nil, errorString = nil, apiError_Type = nil, reason = nil)
379
+ @fieldPath = fieldPath
380
+ @trigger = trigger
381
+ @errorString = errorString
382
+ @apiError_Type = apiError_Type
383
+ @reason = reason
384
+ end
385
+ end
386
+
387
+ # AuthenticationError
388
+ # - fieldPath - SOAP::SOAPString
389
+ # - trigger - SOAP::SOAPString
390
+ # - errorString - SOAP::SOAPString
391
+ # - apiError_Type - SOAP::SOAPString
392
+ # - reason - AdwordsApi::V201101::AdGroupCriterionService::AuthenticationErrorReason
393
+ class AuthenticationError < ApiError
394
+ attr_accessor :fieldPath
395
+ attr_accessor :trigger
396
+ attr_accessor :errorString
397
+ attr_accessor :apiError_Type
398
+ attr_accessor :reason
399
+
400
+ def initialize(fieldPath = nil, trigger = nil, errorString = nil, apiError_Type = nil, reason = nil)
401
+ @fieldPath = fieldPath
402
+ @trigger = trigger
403
+ @errorString = errorString
404
+ @apiError_Type = apiError_Type
405
+ @reason = reason
406
+ end
407
+ end
408
+
409
+ # AuthorizationError
410
+ # - fieldPath - SOAP::SOAPString
411
+ # - trigger - SOAP::SOAPString
412
+ # - errorString - SOAP::SOAPString
413
+ # - apiError_Type - SOAP::SOAPString
414
+ # - reason - AdwordsApi::V201101::AdGroupCriterionService::AuthorizationErrorReason
415
+ class AuthorizationError < ApiError
416
+ attr_accessor :fieldPath
417
+ attr_accessor :trigger
418
+ attr_accessor :errorString
419
+ attr_accessor :apiError_Type
420
+ attr_accessor :reason
421
+
422
+ def initialize(fieldPath = nil, trigger = nil, errorString = nil, apiError_Type = nil, reason = nil)
423
+ @fieldPath = fieldPath
424
+ @trigger = trigger
425
+ @errorString = errorString
426
+ @apiError_Type = apiError_Type
427
+ @reason = reason
428
+ end
429
+ end
430
+
431
+ # BiddingError
432
+ # - fieldPath - SOAP::SOAPString
433
+ # - trigger - SOAP::SOAPString
434
+ # - errorString - SOAP::SOAPString
435
+ # - apiError_Type - SOAP::SOAPString
436
+ # - reason - AdwordsApi::V201101::AdGroupCriterionService::BiddingErrorReason
437
+ class BiddingError < ApiError
438
+ attr_accessor :fieldPath
439
+ attr_accessor :trigger
440
+ attr_accessor :errorString
441
+ attr_accessor :apiError_Type
442
+ attr_accessor :reason
443
+
444
+ def initialize(fieldPath = nil, trigger = nil, errorString = nil, apiError_Type = nil, reason = nil)
445
+ @fieldPath = fieldPath
446
+ @trigger = trigger
447
+ @errorString = errorString
448
+ @apiError_Type = apiError_Type
449
+ @reason = reason
450
+ end
451
+ end
452
+
453
+ # ClientTermsError
454
+ # - fieldPath - SOAP::SOAPString
455
+ # - trigger - SOAP::SOAPString
456
+ # - errorString - SOAP::SOAPString
457
+ # - apiError_Type - SOAP::SOAPString
458
+ # - reason - AdwordsApi::V201101::AdGroupCriterionService::ClientTermsErrorReason
459
+ class ClientTermsError < ApiError
460
+ attr_accessor :fieldPath
461
+ attr_accessor :trigger
462
+ attr_accessor :errorString
463
+ attr_accessor :apiError_Type
464
+ attr_accessor :reason
465
+
466
+ def initialize(fieldPath = nil, trigger = nil, errorString = nil, apiError_Type = nil, reason = nil)
467
+ @fieldPath = fieldPath
468
+ @trigger = trigger
469
+ @errorString = errorString
470
+ @apiError_Type = apiError_Type
471
+ @reason = reason
472
+ end
473
+ end
474
+
475
+ # CriterionError
476
+ # - fieldPath - SOAP::SOAPString
477
+ # - trigger - SOAP::SOAPString
478
+ # - errorString - SOAP::SOAPString
479
+ # - apiError_Type - SOAP::SOAPString
480
+ # - reason - AdwordsApi::V201101::AdGroupCriterionService::CriterionErrorReason
481
+ class CriterionError < ApiError
482
+ attr_accessor :fieldPath
483
+ attr_accessor :trigger
484
+ attr_accessor :errorString
485
+ attr_accessor :apiError_Type
486
+ attr_accessor :reason
487
+
488
+ def initialize(fieldPath = nil, trigger = nil, errorString = nil, apiError_Type = nil, reason = nil)
489
+ @fieldPath = fieldPath
490
+ @trigger = trigger
491
+ @errorString = errorString
492
+ @apiError_Type = apiError_Type
493
+ @reason = reason
494
+ end
495
+ end
496
+
497
+ # DateError
498
+ # - fieldPath - SOAP::SOAPString
499
+ # - trigger - SOAP::SOAPString
500
+ # - errorString - SOAP::SOAPString
501
+ # - apiError_Type - SOAP::SOAPString
502
+ # - reason - AdwordsApi::V201101::AdGroupCriterionService::DateErrorReason
503
+ class DateError < ApiError
504
+ attr_accessor :fieldPath
505
+ attr_accessor :trigger
506
+ attr_accessor :errorString
507
+ attr_accessor :apiError_Type
508
+ attr_accessor :reason
509
+
510
+ def initialize(fieldPath = nil, trigger = nil, errorString = nil, apiError_Type = nil, reason = nil)
511
+ @fieldPath = fieldPath
512
+ @trigger = trigger
513
+ @errorString = errorString
514
+ @apiError_Type = apiError_Type
515
+ @reason = reason
516
+ end
517
+ end
518
+
519
+ # DistinctError
520
+ # - fieldPath - SOAP::SOAPString
521
+ # - trigger - SOAP::SOAPString
522
+ # - errorString - SOAP::SOAPString
523
+ # - apiError_Type - SOAP::SOAPString
524
+ # - reason - AdwordsApi::V201101::AdGroupCriterionService::DistinctErrorReason
525
+ class DistinctError < ApiError
526
+ attr_accessor :fieldPath
527
+ attr_accessor :trigger
528
+ attr_accessor :errorString
529
+ attr_accessor :apiError_Type
530
+ attr_accessor :reason
531
+
532
+ def initialize(fieldPath = nil, trigger = nil, errorString = nil, apiError_Type = nil, reason = nil)
533
+ @fieldPath = fieldPath
534
+ @trigger = trigger
535
+ @errorString = errorString
536
+ @apiError_Type = apiError_Type
537
+ @reason = reason
538
+ end
539
+ end
540
+
541
+ # EntityAccessDenied
542
+ # - fieldPath - SOAP::SOAPString
543
+ # - trigger - SOAP::SOAPString
544
+ # - errorString - SOAP::SOAPString
545
+ # - apiError_Type - SOAP::SOAPString
546
+ # - reason - AdwordsApi::V201101::AdGroupCriterionService::EntityAccessDeniedReason
547
+ class EntityAccessDenied < ApiError
548
+ attr_accessor :fieldPath
549
+ attr_accessor :trigger
550
+ attr_accessor :errorString
551
+ attr_accessor :apiError_Type
552
+ attr_accessor :reason
553
+
554
+ def initialize(fieldPath = nil, trigger = nil, errorString = nil, apiError_Type = nil, reason = nil)
555
+ @fieldPath = fieldPath
556
+ @trigger = trigger
557
+ @errorString = errorString
558
+ @apiError_Type = apiError_Type
559
+ @reason = reason
560
+ end
561
+ end
562
+
563
+ # EntityCountLimitExceeded
564
+ # - fieldPath - SOAP::SOAPString
565
+ # - trigger - SOAP::SOAPString
566
+ # - errorString - SOAP::SOAPString
567
+ # - apiError_Type - SOAP::SOAPString
568
+ # - reason - AdwordsApi::V201101::AdGroupCriterionService::EntityCountLimitExceededReason
569
+ # - enclosingId - SOAP::SOAPString
570
+ # - limit - SOAP::SOAPInt
571
+ class EntityCountLimitExceeded < ApiError
572
+ attr_accessor :fieldPath
573
+ attr_accessor :trigger
574
+ attr_accessor :errorString
575
+ attr_accessor :apiError_Type
576
+ attr_accessor :reason
577
+ attr_accessor :enclosingId
578
+ attr_accessor :limit
579
+
580
+ def initialize(fieldPath = nil, trigger = nil, errorString = nil, apiError_Type = nil, reason = nil, enclosingId = nil, limit = nil)
581
+ @fieldPath = fieldPath
582
+ @trigger = trigger
583
+ @errorString = errorString
584
+ @apiError_Type = apiError_Type
585
+ @reason = reason
586
+ @enclosingId = enclosingId
587
+ @limit = limit
588
+ end
589
+ end
590
+
591
+ # AdGroupCriterionLimitExceeded
592
+ # - fieldPath - SOAP::SOAPString
593
+ # - trigger - SOAP::SOAPString
594
+ # - errorString - SOAP::SOAPString
595
+ # - apiError_Type - SOAP::SOAPString
596
+ # - reason - AdwordsApi::V201101::AdGroupCriterionService::EntityCountLimitExceededReason
597
+ # - enclosingId - SOAP::SOAPString
598
+ # - limit - SOAP::SOAPInt
599
+ # - limitType - AdwordsApi::V201101::AdGroupCriterionService::AdGroupCriterionLimitExceededCriteriaLimitType
600
+ class AdGroupCriterionLimitExceeded < EntityCountLimitExceeded
601
+ attr_accessor :fieldPath
602
+ attr_accessor :trigger
603
+ attr_accessor :errorString
604
+ attr_accessor :apiError_Type
605
+ attr_accessor :reason
606
+ attr_accessor :enclosingId
607
+ attr_accessor :limit
608
+ attr_accessor :limitType
609
+
610
+ def initialize(fieldPath = nil, trigger = nil, errorString = nil, apiError_Type = nil, reason = nil, enclosingId = nil, limit = nil, limitType = nil)
611
+ @fieldPath = fieldPath
612
+ @trigger = trigger
613
+ @errorString = errorString
614
+ @apiError_Type = apiError_Type
615
+ @reason = reason
616
+ @enclosingId = enclosingId
617
+ @limit = limit
618
+ @limitType = limitType
619
+ end
620
+ end
621
+
622
+ # EntityNotFound
623
+ # - fieldPath - SOAP::SOAPString
624
+ # - trigger - SOAP::SOAPString
625
+ # - errorString - SOAP::SOAPString
626
+ # - apiError_Type - SOAP::SOAPString
627
+ # - reason - AdwordsApi::V201101::AdGroupCriterionService::EntityNotFoundReason
628
+ class EntityNotFound < ApiError
629
+ attr_accessor :fieldPath
630
+ attr_accessor :trigger
631
+ attr_accessor :errorString
632
+ attr_accessor :apiError_Type
633
+ attr_accessor :reason
634
+
635
+ def initialize(fieldPath = nil, trigger = nil, errorString = nil, apiError_Type = nil, reason = nil)
636
+ @fieldPath = fieldPath
637
+ @trigger = trigger
638
+ @errorString = errorString
639
+ @apiError_Type = apiError_Type
640
+ @reason = reason
641
+ end
642
+ end
643
+
644
+ # InternalApiError
645
+ # - fieldPath - SOAP::SOAPString
646
+ # - trigger - SOAP::SOAPString
647
+ # - errorString - SOAP::SOAPString
648
+ # - apiError_Type - SOAP::SOAPString
649
+ # - reason - AdwordsApi::V201101::AdGroupCriterionService::InternalApiErrorReason
650
+ class InternalApiError < ApiError
651
+ attr_accessor :fieldPath
652
+ attr_accessor :trigger
653
+ attr_accessor :errorString
654
+ attr_accessor :apiError_Type
655
+ attr_accessor :reason
656
+
657
+ def initialize(fieldPath = nil, trigger = nil, errorString = nil, apiError_Type = nil, reason = nil)
658
+ @fieldPath = fieldPath
659
+ @trigger = trigger
660
+ @errorString = errorString
661
+ @apiError_Type = apiError_Type
662
+ @reason = reason
663
+ end
664
+ end
665
+
666
+ # NewEntityCreationError
667
+ # - fieldPath - SOAP::SOAPString
668
+ # - trigger - SOAP::SOAPString
669
+ # - errorString - SOAP::SOAPString
670
+ # - apiError_Type - SOAP::SOAPString
671
+ # - reason - AdwordsApi::V201101::AdGroupCriterionService::NewEntityCreationErrorReason
672
+ class NewEntityCreationError < ApiError
673
+ attr_accessor :fieldPath
674
+ attr_accessor :trigger
675
+ attr_accessor :errorString
676
+ attr_accessor :apiError_Type
677
+ attr_accessor :reason
678
+
679
+ def initialize(fieldPath = nil, trigger = nil, errorString = nil, apiError_Type = nil, reason = nil)
680
+ @fieldPath = fieldPath
681
+ @trigger = trigger
682
+ @errorString = errorString
683
+ @apiError_Type = apiError_Type
684
+ @reason = reason
685
+ end
686
+ end
687
+
688
+ # NotEmptyError
689
+ # - fieldPath - SOAP::SOAPString
690
+ # - trigger - SOAP::SOAPString
691
+ # - errorString - SOAP::SOAPString
692
+ # - apiError_Type - SOAP::SOAPString
693
+ # - reason - AdwordsApi::V201101::AdGroupCriterionService::NotEmptyErrorReason
694
+ class NotEmptyError < ApiError
695
+ attr_accessor :fieldPath
696
+ attr_accessor :trigger
697
+ attr_accessor :errorString
698
+ attr_accessor :apiError_Type
699
+ attr_accessor :reason
700
+
701
+ def initialize(fieldPath = nil, trigger = nil, errorString = nil, apiError_Type = nil, reason = nil)
702
+ @fieldPath = fieldPath
703
+ @trigger = trigger
704
+ @errorString = errorString
705
+ @apiError_Type = apiError_Type
706
+ @reason = reason
707
+ end
708
+ end
709
+
710
+ # NotWhitelistedError
711
+ # - fieldPath - SOAP::SOAPString
712
+ # - trigger - SOAP::SOAPString
713
+ # - errorString - SOAP::SOAPString
714
+ # - apiError_Type - SOAP::SOAPString
715
+ # - reason - AdwordsApi::V201101::AdGroupCriterionService::NotWhitelistedErrorReason
716
+ class NotWhitelistedError < ApiError
717
+ attr_accessor :fieldPath
718
+ attr_accessor :trigger
719
+ attr_accessor :errorString
720
+ attr_accessor :apiError_Type
721
+ attr_accessor :reason
722
+
723
+ def initialize(fieldPath = nil, trigger = nil, errorString = nil, apiError_Type = nil, reason = nil)
724
+ @fieldPath = fieldPath
725
+ @trigger = trigger
726
+ @errorString = errorString
727
+ @apiError_Type = apiError_Type
728
+ @reason = reason
729
+ end
730
+ end
731
+
732
+ # NullError
733
+ # - fieldPath - SOAP::SOAPString
734
+ # - trigger - SOAP::SOAPString
735
+ # - errorString - SOAP::SOAPString
736
+ # - apiError_Type - SOAP::SOAPString
737
+ # - reason - AdwordsApi::V201101::AdGroupCriterionService::NullErrorReason
738
+ class NullError < ApiError
739
+ attr_accessor :fieldPath
740
+ attr_accessor :trigger
741
+ attr_accessor :errorString
742
+ attr_accessor :apiError_Type
743
+ attr_accessor :reason
744
+
745
+ def initialize(fieldPath = nil, trigger = nil, errorString = nil, apiError_Type = nil, reason = nil)
746
+ @fieldPath = fieldPath
747
+ @trigger = trigger
748
+ @errorString = errorString
749
+ @apiError_Type = apiError_Type
750
+ @reason = reason
751
+ end
752
+ end
753
+
754
+ # OperationAccessDenied
755
+ # - fieldPath - SOAP::SOAPString
756
+ # - trigger - SOAP::SOAPString
757
+ # - errorString - SOAP::SOAPString
758
+ # - apiError_Type - SOAP::SOAPString
759
+ # - reason - AdwordsApi::V201101::AdGroupCriterionService::OperationAccessDeniedReason
760
+ class OperationAccessDenied < ApiError
761
+ attr_accessor :fieldPath
762
+ attr_accessor :trigger
763
+ attr_accessor :errorString
764
+ attr_accessor :apiError_Type
765
+ attr_accessor :reason
766
+
767
+ def initialize(fieldPath = nil, trigger = nil, errorString = nil, apiError_Type = nil, reason = nil)
768
+ @fieldPath = fieldPath
769
+ @trigger = trigger
770
+ @errorString = errorString
771
+ @apiError_Type = apiError_Type
772
+ @reason = reason
773
+ end
774
+ end
775
+
776
+ # PagingError
777
+ # - fieldPath - SOAP::SOAPString
778
+ # - trigger - SOAP::SOAPString
779
+ # - errorString - SOAP::SOAPString
780
+ # - apiError_Type - SOAP::SOAPString
781
+ # - reason - AdwordsApi::V201101::AdGroupCriterionService::PagingErrorReason
782
+ class PagingError < ApiError
783
+ attr_accessor :fieldPath
784
+ attr_accessor :trigger
785
+ attr_accessor :errorString
786
+ attr_accessor :apiError_Type
787
+ attr_accessor :reason
788
+
789
+ def initialize(fieldPath = nil, trigger = nil, errorString = nil, apiError_Type = nil, reason = nil)
790
+ @fieldPath = fieldPath
791
+ @trigger = trigger
792
+ @errorString = errorString
793
+ @apiError_Type = apiError_Type
794
+ @reason = reason
795
+ end
796
+ end
797
+
798
+ # QuotaCheckError
799
+ # - fieldPath - SOAP::SOAPString
800
+ # - trigger - SOAP::SOAPString
801
+ # - errorString - SOAP::SOAPString
802
+ # - apiError_Type - SOAP::SOAPString
803
+ # - reason - AdwordsApi::V201101::AdGroupCriterionService::QuotaCheckErrorReason
804
+ class QuotaCheckError < ApiError
805
+ attr_accessor :fieldPath
806
+ attr_accessor :trigger
807
+ attr_accessor :errorString
808
+ attr_accessor :apiError_Type
809
+ attr_accessor :reason
810
+
811
+ def initialize(fieldPath = nil, trigger = nil, errorString = nil, apiError_Type = nil, reason = nil)
812
+ @fieldPath = fieldPath
813
+ @trigger = trigger
814
+ @errorString = errorString
815
+ @apiError_Type = apiError_Type
816
+ @reason = reason
817
+ end
818
+ end
819
+
820
+ # RangeError
821
+ # - fieldPath - SOAP::SOAPString
822
+ # - trigger - SOAP::SOAPString
823
+ # - errorString - SOAP::SOAPString
824
+ # - apiError_Type - SOAP::SOAPString
825
+ # - reason - AdwordsApi::V201101::AdGroupCriterionService::RangeErrorReason
826
+ class C_RangeError < ApiError
827
+ attr_accessor :fieldPath
828
+ attr_accessor :trigger
829
+ attr_accessor :errorString
830
+ attr_accessor :apiError_Type
831
+ attr_accessor :reason
832
+
833
+ def initialize(fieldPath = nil, trigger = nil, errorString = nil, apiError_Type = nil, reason = nil)
834
+ @fieldPath = fieldPath
835
+ @trigger = trigger
836
+ @errorString = errorString
837
+ @apiError_Type = apiError_Type
838
+ @reason = reason
839
+ end
840
+ end
841
+
842
+ # RateExceededError
843
+ # - fieldPath - SOAP::SOAPString
844
+ # - trigger - SOAP::SOAPString
845
+ # - errorString - SOAP::SOAPString
846
+ # - apiError_Type - SOAP::SOAPString
847
+ # - reason - AdwordsApi::V201101::AdGroupCriterionService::RateExceededErrorReason
848
+ # - rateName - SOAP::SOAPString
849
+ # - rateScope - SOAP::SOAPString
850
+ # - retryAfterSeconds - SOAP::SOAPInt
851
+ class RateExceededError < ApiError
852
+ attr_accessor :fieldPath
853
+ attr_accessor :trigger
854
+ attr_accessor :errorString
855
+ attr_accessor :apiError_Type
856
+ attr_accessor :reason
857
+ attr_accessor :rateName
858
+ attr_accessor :rateScope
859
+ attr_accessor :retryAfterSeconds
860
+
861
+ def initialize(fieldPath = nil, trigger = nil, errorString = nil, apiError_Type = nil, reason = nil, rateName = nil, rateScope = nil, retryAfterSeconds = nil)
862
+ @fieldPath = fieldPath
863
+ @trigger = trigger
864
+ @errorString = errorString
865
+ @apiError_Type = apiError_Type
866
+ @reason = reason
867
+ @rateName = rateName
868
+ @rateScope = rateScope
869
+ @retryAfterSeconds = retryAfterSeconds
870
+ end
871
+ end
872
+
873
+ # ReadOnlyError
874
+ # - fieldPath - SOAP::SOAPString
875
+ # - trigger - SOAP::SOAPString
876
+ # - errorString - SOAP::SOAPString
877
+ # - apiError_Type - SOAP::SOAPString
878
+ # - reason - AdwordsApi::V201101::AdGroupCriterionService::ReadOnlyErrorReason
879
+ class ReadOnlyError < ApiError
880
+ attr_accessor :fieldPath
881
+ attr_accessor :trigger
882
+ attr_accessor :errorString
883
+ attr_accessor :apiError_Type
884
+ attr_accessor :reason
885
+
886
+ def initialize(fieldPath = nil, trigger = nil, errorString = nil, apiError_Type = nil, reason = nil)
887
+ @fieldPath = fieldPath
888
+ @trigger = trigger
889
+ @errorString = errorString
890
+ @apiError_Type = apiError_Type
891
+ @reason = reason
892
+ end
893
+ end
894
+
895
+ # RejectedError
896
+ # - fieldPath - SOAP::SOAPString
897
+ # - trigger - SOAP::SOAPString
898
+ # - errorString - SOAP::SOAPString
899
+ # - apiError_Type - SOAP::SOAPString
900
+ # - reason - AdwordsApi::V201101::AdGroupCriterionService::RejectedErrorReason
901
+ class RejectedError < 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
+ # RequestError
918
+ # - fieldPath - SOAP::SOAPString
919
+ # - trigger - SOAP::SOAPString
920
+ # - errorString - SOAP::SOAPString
921
+ # - apiError_Type - SOAP::SOAPString
922
+ # - reason - AdwordsApi::V201101::AdGroupCriterionService::RequestErrorReason
923
+ class RequestError < 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
+ # RequiredError
940
+ # - fieldPath - SOAP::SOAPString
941
+ # - trigger - SOAP::SOAPString
942
+ # - errorString - SOAP::SOAPString
943
+ # - apiError_Type - SOAP::SOAPString
944
+ # - reason - AdwordsApi::V201101::AdGroupCriterionService::RequiredErrorReason
945
+ class RequiredError < ApiError
946
+ attr_accessor :fieldPath
947
+ attr_accessor :trigger
948
+ attr_accessor :errorString
949
+ attr_accessor :apiError_Type
950
+ attr_accessor :reason
951
+
952
+ def initialize(fieldPath = nil, trigger = nil, errorString = nil, apiError_Type = nil, reason = nil)
953
+ @fieldPath = fieldPath
954
+ @trigger = trigger
955
+ @errorString = errorString
956
+ @apiError_Type = apiError_Type
957
+ @reason = reason
958
+ end
959
+ end
960
+
961
+ # SelectorError
962
+ # - fieldPath - SOAP::SOAPString
963
+ # - trigger - SOAP::SOAPString
964
+ # - errorString - SOAP::SOAPString
965
+ # - apiError_Type - SOAP::SOAPString
966
+ # - reason - AdwordsApi::V201101::AdGroupCriterionService::SelectorErrorReason
967
+ class SelectorError < ApiError
968
+ attr_accessor :fieldPath
969
+ attr_accessor :trigger
970
+ attr_accessor :errorString
971
+ attr_accessor :apiError_Type
972
+ attr_accessor :reason
973
+
974
+ def initialize(fieldPath = nil, trigger = nil, errorString = nil, apiError_Type = nil, reason = nil)
975
+ @fieldPath = fieldPath
976
+ @trigger = trigger
977
+ @errorString = errorString
978
+ @apiError_Type = apiError_Type
979
+ @reason = reason
980
+ end
981
+ end
982
+
983
+ # SizeLimitError
984
+ # - fieldPath - SOAP::SOAPString
985
+ # - trigger - SOAP::SOAPString
986
+ # - errorString - SOAP::SOAPString
987
+ # - apiError_Type - SOAP::SOAPString
988
+ # - reason - AdwordsApi::V201101::AdGroupCriterionService::SizeLimitErrorReason
989
+ class SizeLimitError < ApiError
990
+ attr_accessor :fieldPath
991
+ attr_accessor :trigger
992
+ attr_accessor :errorString
993
+ attr_accessor :apiError_Type
994
+ attr_accessor :reason
995
+
996
+ def initialize(fieldPath = nil, trigger = nil, errorString = nil, apiError_Type = nil, reason = nil)
997
+ @fieldPath = fieldPath
998
+ @trigger = trigger
999
+ @errorString = errorString
1000
+ @apiError_Type = apiError_Type
1001
+ @reason = reason
1002
+ end
1003
+ end
1004
+
1005
+ # StatsQueryError
1006
+ # - fieldPath - SOAP::SOAPString
1007
+ # - trigger - SOAP::SOAPString
1008
+ # - errorString - SOAP::SOAPString
1009
+ # - apiError_Type - SOAP::SOAPString
1010
+ # - reason - AdwordsApi::V201101::AdGroupCriterionService::StatsQueryErrorReason
1011
+ class StatsQueryError < ApiError
1012
+ attr_accessor :fieldPath
1013
+ attr_accessor :trigger
1014
+ attr_accessor :errorString
1015
+ attr_accessor :apiError_Type
1016
+ attr_accessor :reason
1017
+
1018
+ def initialize(fieldPath = nil, trigger = nil, errorString = nil, apiError_Type = nil, reason = nil)
1019
+ @fieldPath = fieldPath
1020
+ @trigger = trigger
1021
+ @errorString = errorString
1022
+ @apiError_Type = apiError_Type
1023
+ @reason = reason
1024
+ end
1025
+ end
1026
+
1027
+ # DatabaseError
1028
+ # - fieldPath - SOAP::SOAPString
1029
+ # - trigger - SOAP::SOAPString
1030
+ # - errorString - SOAP::SOAPString
1031
+ # - apiError_Type - SOAP::SOAPString
1032
+ # - reason - AdwordsApi::V201101::AdGroupCriterionService::DatabaseErrorReason
1033
+ class DatabaseError < ApiError
1034
+ attr_accessor :fieldPath
1035
+ attr_accessor :trigger
1036
+ attr_accessor :errorString
1037
+ attr_accessor :apiError_Type
1038
+ attr_accessor :reason
1039
+
1040
+ def initialize(fieldPath = nil, trigger = nil, errorString = nil, apiError_Type = nil, reason = nil)
1041
+ @fieldPath = fieldPath
1042
+ @trigger = trigger
1043
+ @errorString = errorString
1044
+ @apiError_Type = apiError_Type
1045
+ @reason = reason
1046
+ end
1047
+ end
1048
+
1049
+ # PolicyViolationError
1050
+ # - fieldPath - SOAP::SOAPString
1051
+ # - trigger - SOAP::SOAPString
1052
+ # - errorString - SOAP::SOAPString
1053
+ # - apiError_Type - SOAP::SOAPString
1054
+ # - key - AdwordsApi::V201101::AdGroupCriterionService::PolicyViolationKey
1055
+ # - externalPolicyName - SOAP::SOAPString
1056
+ # - externalPolicyUrl - SOAP::SOAPString
1057
+ # - externalPolicyDescription - SOAP::SOAPString
1058
+ # - isExemptable - SOAP::SOAPBoolean
1059
+ # - violatingParts - AdwordsApi::V201101::AdGroupCriterionService::PolicyViolationErrorPart
1060
+ class PolicyViolationError < ApiError
1061
+ attr_accessor :fieldPath
1062
+ attr_accessor :trigger
1063
+ attr_accessor :errorString
1064
+ attr_accessor :apiError_Type
1065
+ attr_accessor :key
1066
+ attr_accessor :externalPolicyName
1067
+ attr_accessor :externalPolicyUrl
1068
+ attr_accessor :externalPolicyDescription
1069
+ attr_accessor :isExemptable
1070
+ attr_accessor :violatingParts
1071
+
1072
+ def initialize(fieldPath = nil, trigger = nil, errorString = nil, apiError_Type = nil, key = nil, externalPolicyName = nil, externalPolicyUrl = nil, externalPolicyDescription = nil, isExemptable = nil, violatingParts = [])
1073
+ @fieldPath = fieldPath
1074
+ @trigger = trigger
1075
+ @errorString = errorString
1076
+ @apiError_Type = apiError_Type
1077
+ @key = key
1078
+ @externalPolicyName = externalPolicyName
1079
+ @externalPolicyUrl = externalPolicyUrl
1080
+ @externalPolicyDescription = externalPolicyDescription
1081
+ @isExemptable = isExemptable
1082
+ @violatingParts = violatingParts
1083
+ end
1084
+ end
1085
+
1086
+ # CriterionPolicyError
1087
+ # - fieldPath - SOAP::SOAPString
1088
+ # - trigger - SOAP::SOAPString
1089
+ # - errorString - SOAP::SOAPString
1090
+ # - apiError_Type - SOAP::SOAPString
1091
+ # - key - AdwordsApi::V201101::AdGroupCriterionService::PolicyViolationKey
1092
+ # - externalPolicyName - SOAP::SOAPString
1093
+ # - externalPolicyUrl - SOAP::SOAPString
1094
+ # - externalPolicyDescription - SOAP::SOAPString
1095
+ # - isExemptable - SOAP::SOAPBoolean
1096
+ # - violatingParts - AdwordsApi::V201101::AdGroupCriterionService::PolicyViolationErrorPart
1097
+ class CriterionPolicyError < PolicyViolationError
1098
+ attr_accessor :fieldPath
1099
+ attr_accessor :trigger
1100
+ attr_accessor :errorString
1101
+ attr_accessor :apiError_Type
1102
+ attr_accessor :key
1103
+ attr_accessor :externalPolicyName
1104
+ attr_accessor :externalPolicyUrl
1105
+ attr_accessor :externalPolicyDescription
1106
+ attr_accessor :isExemptable
1107
+ attr_accessor :violatingParts
1108
+
1109
+ def initialize(fieldPath = nil, trigger = nil, errorString = nil, apiError_Type = nil, key = nil, externalPolicyName = nil, externalPolicyUrl = nil, externalPolicyDescription = nil, isExemptable = nil, violatingParts = [])
1110
+ @fieldPath = fieldPath
1111
+ @trigger = trigger
1112
+ @errorString = errorString
1113
+ @apiError_Type = apiError_Type
1114
+ @key = key
1115
+ @externalPolicyName = externalPolicyName
1116
+ @externalPolicyUrl = externalPolicyUrl
1117
+ @externalPolicyDescription = externalPolicyDescription
1118
+ @isExemptable = isExemptable
1119
+ @violatingParts = violatingParts
1120
+ end
1121
+ end
1122
+
1123
+ # ApplicationException
1124
+ # - message - SOAP::SOAPString
1125
+ # - applicationException_Type - SOAP::SOAPString
1126
+ class ApplicationException
1127
+ attr_accessor :message
1128
+ attr_accessor :applicationException_Type
1129
+
1130
+ def initialize(message = nil, applicationException_Type = nil)
1131
+ @message = message
1132
+ @applicationException_Type = applicationException_Type
1133
+ end
1134
+ end
1135
+
1136
+ # ApiException
1137
+ # - message - SOAP::SOAPString
1138
+ # - applicationException_Type - SOAP::SOAPString
1139
+ # - errors - AdwordsApi::V201101::AdGroupCriterionService::ApiError
1140
+ class ApiException < ApplicationException
1141
+ attr_accessor :message
1142
+ attr_accessor :applicationException_Type
1143
+ attr_accessor :errors
1144
+
1145
+ def initialize(message = nil, applicationException_Type = nil, errors = [])
1146
+ @message = message
1147
+ @applicationException_Type = applicationException_Type
1148
+ @errors = errors
1149
+ end
1150
+ end
1151
+
1152
+ # Bid
1153
+ # - amount - AdwordsApi::V201101::AdGroupCriterionService::Money
1154
+ class Bid
1155
+ attr_accessor :amount
1156
+
1157
+ def initialize(amount = nil)
1158
+ @amount = amount
1159
+ end
1160
+ end
1161
+
1162
+ # BidMultiplier
1163
+ # - multiplier - SOAP::SOAPDouble
1164
+ # - multipliedBid - AdwordsApi::V201101::AdGroupCriterionService::Bid
1165
+ class BidMultiplier
1166
+ attr_accessor :multiplier
1167
+ attr_accessor :multipliedBid
1168
+
1169
+ def initialize(multiplier = nil, multipliedBid = nil)
1170
+ @multiplier = multiplier
1171
+ @multipliedBid = multipliedBid
1172
+ end
1173
+ end
1174
+
1175
+ # PositionPreferenceAdGroupCriterionBids
1176
+ # - proxyMaxCpc - AdwordsApi::V201101::AdGroupCriterionService::Bid
1177
+ # - preferredPosition - SOAP::SOAPInt
1178
+ # - bottomPosition - SOAP::SOAPInt
1179
+ class PositionPreferenceAdGroupCriterionBids
1180
+ attr_accessor :proxyMaxCpc
1181
+ attr_accessor :preferredPosition
1182
+ attr_accessor :bottomPosition
1183
+
1184
+ def initialize(proxyMaxCpc = nil, preferredPosition = nil, bottomPosition = nil)
1185
+ @proxyMaxCpc = proxyMaxCpc
1186
+ @preferredPosition = preferredPosition
1187
+ @bottomPosition = bottomPosition
1188
+ end
1189
+ end
1190
+
1191
+ # AdGroupCriterionExperimentBidMultiplier
1192
+ # abstract
1193
+ # - adGroupCriterionExperimentBidMultiplier_Type - SOAP::SOAPString
1194
+ class AdGroupCriterionExperimentBidMultiplier
1195
+ attr_accessor :adGroupCriterionExperimentBidMultiplier_Type
1196
+
1197
+ def initialize(adGroupCriterionExperimentBidMultiplier_Type = nil)
1198
+ @adGroupCriterionExperimentBidMultiplier_Type = adGroupCriterionExperimentBidMultiplier_Type
1199
+ end
1200
+ end
1201
+
1202
+ # ManualCPCAdGroupCriterionExperimentBidMultiplier
1203
+ # - adGroupCriterionExperimentBidMultiplier_Type - SOAP::SOAPString
1204
+ # - maxCpcMultiplier - AdwordsApi::V201101::AdGroupCriterionService::BidMultiplier
1205
+ # - multiplierSource - AdwordsApi::V201101::AdGroupCriterionService::MultiplierSource
1206
+ class ManualCPCAdGroupCriterionExperimentBidMultiplier < AdGroupCriterionExperimentBidMultiplier
1207
+ attr_accessor :adGroupCriterionExperimentBidMultiplier_Type
1208
+ attr_accessor :maxCpcMultiplier
1209
+ attr_accessor :multiplierSource
1210
+
1211
+ def initialize(adGroupCriterionExperimentBidMultiplier_Type = nil, maxCpcMultiplier = nil, multiplierSource = nil)
1212
+ @adGroupCriterionExperimentBidMultiplier_Type = adGroupCriterionExperimentBidMultiplier_Type
1213
+ @maxCpcMultiplier = maxCpcMultiplier
1214
+ @multiplierSource = multiplierSource
1215
+ end
1216
+ end
1217
+
1218
+ # BiddableAdGroupCriterionExperimentData
1219
+ # - experimentId - SOAP::SOAPLong
1220
+ # - experimentDeltaStatus - AdwordsApi::V201101::AdGroupCriterionService::ExperimentDeltaStatus
1221
+ # - experimentDataStatus - AdwordsApi::V201101::AdGroupCriterionService::ExperimentDataStatus
1222
+ # - experimentBidMultiplier - AdwordsApi::V201101::AdGroupCriterionService::AdGroupCriterionExperimentBidMultiplier
1223
+ class BiddableAdGroupCriterionExperimentData
1224
+ attr_accessor :experimentId
1225
+ attr_accessor :experimentDeltaStatus
1226
+ attr_accessor :experimentDataStatus
1227
+ attr_accessor :experimentBidMultiplier
1228
+
1229
+ def initialize(experimentId = nil, experimentDeltaStatus = nil, experimentDataStatus = nil, experimentBidMultiplier = nil)
1230
+ @experimentId = experimentId
1231
+ @experimentDeltaStatus = experimentDeltaStatus
1232
+ @experimentDataStatus = experimentDataStatus
1233
+ @experimentBidMultiplier = experimentBidMultiplier
1234
+ end
1235
+ end
1236
+
1237
+ # Criterion
1238
+ # - id - SOAP::SOAPLong
1239
+ # - criterion_Type - SOAP::SOAPString
1240
+ class Criterion
1241
+ attr_accessor :id
1242
+ attr_accessor :criterion_Type
1243
+
1244
+ def initialize(id = nil, criterion_Type = nil)
1245
+ @id = id
1246
+ @criterion_Type = criterion_Type
1247
+ end
1248
+ end
1249
+
1250
+ # Keyword
1251
+ # - id - SOAP::SOAPLong
1252
+ # - criterion_Type - SOAP::SOAPString
1253
+ # - text - SOAP::SOAPString
1254
+ # - matchType - AdwordsApi::V201101::AdGroupCriterionService::KeywordMatchType
1255
+ class Keyword < Criterion
1256
+ attr_accessor :id
1257
+ attr_accessor :criterion_Type
1258
+ attr_accessor :text
1259
+ attr_accessor :matchType
1260
+
1261
+ def initialize(id = nil, criterion_Type = nil, text = nil, matchType = nil)
1262
+ @id = id
1263
+ @criterion_Type = criterion_Type
1264
+ @text = text
1265
+ @matchType = matchType
1266
+ end
1267
+ end
1268
+
1269
+ # Placement
1270
+ # - id - SOAP::SOAPLong
1271
+ # - criterion_Type - SOAP::SOAPString
1272
+ # - url - SOAP::SOAPString
1273
+ class Placement < Criterion
1274
+ attr_accessor :id
1275
+ attr_accessor :criterion_Type
1276
+ attr_accessor :url
1277
+
1278
+ def initialize(id = nil, criterion_Type = nil, url = nil)
1279
+ @id = id
1280
+ @criterion_Type = criterion_Type
1281
+ @url = url
1282
+ end
1283
+ end
1284
+
1285
+ # CriterionUserInterest
1286
+ # - id - SOAP::SOAPLong
1287
+ # - criterion_Type - SOAP::SOAPString
1288
+ # - userInterestId - SOAP::SOAPLong
1289
+ # - userInterestName - SOAP::SOAPString
1290
+ class CriterionUserInterest < Criterion
1291
+ attr_accessor :id
1292
+ attr_accessor :criterion_Type
1293
+ attr_accessor :userInterestId
1294
+ attr_accessor :userInterestName
1295
+
1296
+ def initialize(id = nil, criterion_Type = nil, userInterestId = nil, userInterestName = nil)
1297
+ @id = id
1298
+ @criterion_Type = criterion_Type
1299
+ @userInterestId = userInterestId
1300
+ @userInterestName = userInterestName
1301
+ end
1302
+ end
1303
+
1304
+ # CriterionUserList
1305
+ # - id - SOAP::SOAPLong
1306
+ # - criterion_Type - SOAP::SOAPString
1307
+ # - userListId - SOAP::SOAPLong
1308
+ # - userListName - SOAP::SOAPString
1309
+ # - userListMembershipStatus - AdwordsApi::V201101::AdGroupCriterionService::CriterionUserListMembershipStatus
1310
+ class CriterionUserList < Criterion
1311
+ attr_accessor :id
1312
+ attr_accessor :criterion_Type
1313
+ attr_accessor :userListId
1314
+ attr_accessor :userListName
1315
+ attr_accessor :userListMembershipStatus
1316
+
1317
+ def initialize(id = nil, criterion_Type = nil, userListId = nil, userListName = nil, userListMembershipStatus = nil)
1318
+ @id = id
1319
+ @criterion_Type = criterion_Type
1320
+ @userListId = userListId
1321
+ @userListName = userListName
1322
+ @userListMembershipStatus = userListMembershipStatus
1323
+ end
1324
+ end
1325
+
1326
+ # Vertical
1327
+ # - id - SOAP::SOAPLong
1328
+ # - criterion_Type - SOAP::SOAPString
1329
+ # - path - SOAP::SOAPString
1330
+ class Vertical < Criterion
1331
+ attr_accessor :id
1332
+ attr_accessor :criterion_Type
1333
+ attr_accessor :path
1334
+
1335
+ def initialize(id = nil, criterion_Type = nil, path = [])
1336
+ @id = id
1337
+ @criterion_Type = criterion_Type
1338
+ @path = path
1339
+ end
1340
+ end
1341
+
1342
+ # Product
1343
+ # - id - SOAP::SOAPLong
1344
+ # - criterion_Type - SOAP::SOAPString
1345
+ # - conditions - AdwordsApi::V201101::AdGroupCriterionService::ProductCondition
1346
+ # - text - SOAP::SOAPString
1347
+ class Product < Criterion
1348
+ attr_accessor :id
1349
+ attr_accessor :criterion_Type
1350
+ attr_accessor :conditions
1351
+ attr_accessor :text
1352
+
1353
+ def initialize(id = nil, criterion_Type = nil, conditions = [], text = nil)
1354
+ @id = id
1355
+ @criterion_Type = criterion_Type
1356
+ @conditions = conditions
1357
+ @text = text
1358
+ end
1359
+ end
1360
+
1361
+ # AdGroupCriterionBids
1362
+ # abstract
1363
+ # - adGroupCriterionBids_Type - SOAP::SOAPString
1364
+ class AdGroupCriterionBids
1365
+ attr_accessor :adGroupCriterionBids_Type
1366
+
1367
+ def initialize(adGroupCriterionBids_Type = nil)
1368
+ @adGroupCriterionBids_Type = adGroupCriterionBids_Type
1369
+ end
1370
+ end
1371
+
1372
+ # ConversionOptimizerAdGroupCriterionBids
1373
+ # - adGroupCriterionBids_Type - SOAP::SOAPString
1374
+ class ConversionOptimizerAdGroupCriterionBids < AdGroupCriterionBids
1375
+ attr_accessor :adGroupCriterionBids_Type
1376
+
1377
+ def initialize(adGroupCriterionBids_Type = nil)
1378
+ @adGroupCriterionBids_Type = adGroupCriterionBids_Type
1379
+ end
1380
+ end
1381
+
1382
+ # PercentCPAAdGroupCriterionBids
1383
+ # - adGroupCriterionBids_Type - SOAP::SOAPString
1384
+ # - percentCpa - SOAP::SOAPInt
1385
+ # - source - AdwordsApi::V201101::AdGroupCriterionService::BidSource
1386
+ class PercentCPAAdGroupCriterionBids < AdGroupCriterionBids
1387
+ attr_accessor :adGroupCriterionBids_Type
1388
+ attr_accessor :percentCpa
1389
+ attr_accessor :source
1390
+
1391
+ def initialize(adGroupCriterionBids_Type = nil, percentCpa = nil, source = nil)
1392
+ @adGroupCriterionBids_Type = adGroupCriterionBids_Type
1393
+ @percentCpa = percentCpa
1394
+ @source = source
1395
+ end
1396
+ end
1397
+
1398
+ # BudgetOptimizerAdGroupCriterionBids
1399
+ # - adGroupCriterionBids_Type - SOAP::SOAPString
1400
+ # - proxyBid - AdwordsApi::V201101::AdGroupCriterionService::Bid
1401
+ # - enhancedCpcEnabled - SOAP::SOAPBoolean
1402
+ class BudgetOptimizerAdGroupCriterionBids < AdGroupCriterionBids
1403
+ attr_accessor :adGroupCriterionBids_Type
1404
+ attr_accessor :proxyBid
1405
+ attr_accessor :enhancedCpcEnabled
1406
+
1407
+ def initialize(adGroupCriterionBids_Type = nil, proxyBid = nil, enhancedCpcEnabled = nil)
1408
+ @adGroupCriterionBids_Type = adGroupCriterionBids_Type
1409
+ @proxyBid = proxyBid
1410
+ @enhancedCpcEnabled = enhancedCpcEnabled
1411
+ end
1412
+ end
1413
+
1414
+ # ManualCPMAdGroupCriterionBids
1415
+ # - adGroupCriterionBids_Type - SOAP::SOAPString
1416
+ # - maxCpm - AdwordsApi::V201101::AdGroupCriterionService::Bid
1417
+ # - bidSource - AdwordsApi::V201101::AdGroupCriterionService::BidSource
1418
+ class ManualCPMAdGroupCriterionBids < AdGroupCriterionBids
1419
+ attr_accessor :adGroupCriterionBids_Type
1420
+ attr_accessor :maxCpm
1421
+ attr_accessor :bidSource
1422
+
1423
+ def initialize(adGroupCriterionBids_Type = nil, maxCpm = nil, bidSource = nil)
1424
+ @adGroupCriterionBids_Type = adGroupCriterionBids_Type
1425
+ @maxCpm = maxCpm
1426
+ @bidSource = bidSource
1427
+ end
1428
+ end
1429
+
1430
+ # ManualCPCAdGroupCriterionBids
1431
+ # - adGroupCriterionBids_Type - SOAP::SOAPString
1432
+ # - maxCpc - AdwordsApi::V201101::AdGroupCriterionService::Bid
1433
+ # - bidSource - AdwordsApi::V201101::AdGroupCriterionService::BidSource
1434
+ # - positionPreferenceBids - AdwordsApi::V201101::AdGroupCriterionService::PositionPreferenceAdGroupCriterionBids
1435
+ # - enhancedCpcEnabled - SOAP::SOAPBoolean
1436
+ class ManualCPCAdGroupCriterionBids < AdGroupCriterionBids
1437
+ attr_accessor :adGroupCriterionBids_Type
1438
+ attr_accessor :maxCpc
1439
+ attr_accessor :bidSource
1440
+ attr_accessor :positionPreferenceBids
1441
+ attr_accessor :enhancedCpcEnabled
1442
+
1443
+ def initialize(adGroupCriterionBids_Type = nil, maxCpc = nil, bidSource = nil, positionPreferenceBids = nil, enhancedCpcEnabled = nil)
1444
+ @adGroupCriterionBids_Type = adGroupCriterionBids_Type
1445
+ @maxCpc = maxCpc
1446
+ @bidSource = bidSource
1447
+ @positionPreferenceBids = positionPreferenceBids
1448
+ @enhancedCpcEnabled = enhancedCpcEnabled
1449
+ end
1450
+ end
1451
+
1452
+ # AdGroupCriterion
1453
+ # - adGroupId - SOAP::SOAPLong
1454
+ # - criterionUse - AdwordsApi::V201101::AdGroupCriterionService::CriterionUse
1455
+ # - criterion - AdwordsApi::V201101::AdGroupCriterionService::Criterion
1456
+ # - adGroupCriterion_Type - SOAP::SOAPString
1457
+ class AdGroupCriterion
1458
+ attr_accessor :adGroupId
1459
+ attr_accessor :criterionUse
1460
+ attr_accessor :criterion
1461
+ attr_accessor :adGroupCriterion_Type
1462
+
1463
+ def initialize(adGroupId = nil, criterionUse = nil, criterion = nil, adGroupCriterion_Type = nil)
1464
+ @adGroupId = adGroupId
1465
+ @criterionUse = criterionUse
1466
+ @criterion = criterion
1467
+ @adGroupCriterion_Type = adGroupCriterion_Type
1468
+ end
1469
+ end
1470
+
1471
+ # NegativeAdGroupCriterion
1472
+ # - adGroupId - SOAP::SOAPLong
1473
+ # - criterionUse - AdwordsApi::V201101::AdGroupCriterionService::CriterionUse
1474
+ # - criterion - AdwordsApi::V201101::AdGroupCriterionService::Criterion
1475
+ # - adGroupCriterion_Type - SOAP::SOAPString
1476
+ class NegativeAdGroupCriterion < AdGroupCriterion
1477
+ attr_accessor :adGroupId
1478
+ attr_accessor :criterionUse
1479
+ attr_accessor :criterion
1480
+ attr_accessor :adGroupCriterion_Type
1481
+
1482
+ def initialize(adGroupId = nil, criterionUse = nil, criterion = nil, adGroupCriterion_Type = nil)
1483
+ @adGroupId = adGroupId
1484
+ @criterionUse = criterionUse
1485
+ @criterion = criterion
1486
+ @adGroupCriterion_Type = adGroupCriterion_Type
1487
+ end
1488
+ end
1489
+
1490
+ # BiddableAdGroupCriterion
1491
+ # - adGroupId - SOAP::SOAPLong
1492
+ # - criterionUse - AdwordsApi::V201101::AdGroupCriterionService::CriterionUse
1493
+ # - criterion - AdwordsApi::V201101::AdGroupCriterionService::Criterion
1494
+ # - adGroupCriterion_Type - SOAP::SOAPString
1495
+ # - userStatus - AdwordsApi::V201101::AdGroupCriterionService::UserStatus
1496
+ # - systemServingStatus - AdwordsApi::V201101::AdGroupCriterionService::SystemServingStatus
1497
+ # - approvalStatus - AdwordsApi::V201101::AdGroupCriterionService::ApprovalStatus
1498
+ # - destinationUrl - SOAP::SOAPString
1499
+ # - bids - AdwordsApi::V201101::AdGroupCriterionService::AdGroupCriterionBids
1500
+ # - experimentData - AdwordsApi::V201101::AdGroupCriterionService::BiddableAdGroupCriterionExperimentData
1501
+ # - firstPageCpc - AdwordsApi::V201101::AdGroupCriterionService::Bid
1502
+ # - qualityInfo - AdwordsApi::V201101::AdGroupCriterionService::QualityInfo
1503
+ # - stats - AdwordsApi::V201101::AdGroupCriterionService::Stats
1504
+ class BiddableAdGroupCriterion < AdGroupCriterion
1505
+ attr_accessor :adGroupId
1506
+ attr_accessor :criterionUse
1507
+ attr_accessor :criterion
1508
+ attr_accessor :adGroupCriterion_Type
1509
+ attr_accessor :userStatus
1510
+ attr_accessor :systemServingStatus
1511
+ attr_accessor :approvalStatus
1512
+ attr_accessor :destinationUrl
1513
+ attr_accessor :bids
1514
+ attr_accessor :experimentData
1515
+ attr_accessor :firstPageCpc
1516
+ attr_accessor :qualityInfo
1517
+ attr_accessor :stats
1518
+
1519
+ def initialize(adGroupId = nil, criterionUse = nil, criterion = nil, adGroupCriterion_Type = nil, userStatus = nil, systemServingStatus = nil, approvalStatus = nil, destinationUrl = nil, bids = nil, experimentData = nil, firstPageCpc = nil, qualityInfo = nil, stats = nil)
1520
+ @adGroupId = adGroupId
1521
+ @criterionUse = criterionUse
1522
+ @criterion = criterion
1523
+ @adGroupCriterion_Type = adGroupCriterion_Type
1524
+ @userStatus = userStatus
1525
+ @systemServingStatus = systemServingStatus
1526
+ @approvalStatus = approvalStatus
1527
+ @destinationUrl = destinationUrl
1528
+ @bids = bids
1529
+ @experimentData = experimentData
1530
+ @firstPageCpc = firstPageCpc
1531
+ @qualityInfo = qualityInfo
1532
+ @stats = stats
1533
+ end
1534
+ end
1535
+
1536
+ # ListReturnValue
1537
+ # abstract
1538
+ # - listReturnValue_Type - SOAP::SOAPString
1539
+ class ListReturnValue
1540
+ attr_accessor :listReturnValue_Type
1541
+
1542
+ def initialize(listReturnValue_Type = nil)
1543
+ @listReturnValue_Type = listReturnValue_Type
1544
+ end
1545
+ end
1546
+
1547
+ # AdGroupCriterionReturnValue
1548
+ # - listReturnValue_Type - SOAP::SOAPString
1549
+ # - value - AdwordsApi::V201101::AdGroupCriterionService::AdGroupCriterion
1550
+ # - partialFailureErrors - AdwordsApi::V201101::AdGroupCriterionService::ApiError
1551
+ class AdGroupCriterionReturnValue < ListReturnValue
1552
+ attr_accessor :listReturnValue_Type
1553
+ attr_accessor :value
1554
+ attr_accessor :partialFailureErrors
1555
+
1556
+ def initialize(listReturnValue_Type = nil, value = [], partialFailureErrors = [])
1557
+ @listReturnValue_Type = listReturnValue_Type
1558
+ @value = value
1559
+ @partialFailureErrors = partialFailureErrors
1560
+ end
1561
+ end
1562
+
1563
+ # Operation
1564
+ # abstract
1565
+ # - operator - AdwordsApi::V201101::AdGroupCriterionService::Operator
1566
+ # - operation_Type - SOAP::SOAPString
1567
+ class Operation
1568
+ attr_accessor :operator
1569
+ attr_accessor :operation_Type
1570
+
1571
+ def initialize(operator = nil, operation_Type = nil)
1572
+ @operator = operator
1573
+ @operation_Type = operation_Type
1574
+ end
1575
+ end
1576
+
1577
+ # AdGroupCriterionOperation
1578
+ # - operator - AdwordsApi::V201101::AdGroupCriterionService::Operator
1579
+ # - operation_Type - SOAP::SOAPString
1580
+ # - operand - AdwordsApi::V201101::AdGroupCriterionService::AdGroupCriterion
1581
+ # - exemptionRequests - AdwordsApi::V201101::AdGroupCriterionService::ExemptionRequest
1582
+ class AdGroupCriterionOperation < Operation
1583
+ attr_accessor :operator
1584
+ attr_accessor :operation_Type
1585
+ attr_accessor :operand
1586
+ attr_accessor :exemptionRequests
1587
+
1588
+ def initialize(operator = nil, operation_Type = nil, operand = nil, exemptionRequests = [])
1589
+ @operator = operator
1590
+ @operation_Type = operation_Type
1591
+ @operand = operand
1592
+ @exemptionRequests = exemptionRequests
1593
+ end
1594
+ end
1595
+
1596
+ # Page
1597
+ # abstract
1598
+ # - totalNumEntries - SOAP::SOAPInt
1599
+ # - page_Type - SOAP::SOAPString
1600
+ class Page
1601
+ attr_accessor :totalNumEntries
1602
+ attr_accessor :page_Type
1603
+
1604
+ def initialize(totalNumEntries = nil, page_Type = nil)
1605
+ @totalNumEntries = totalNumEntries
1606
+ @page_Type = page_Type
1607
+ end
1608
+ end
1609
+
1610
+ # AdGroupCriterionPage
1611
+ # - totalNumEntries - SOAP::SOAPInt
1612
+ # - page_Type - SOAP::SOAPString
1613
+ # - entries - AdwordsApi::V201101::AdGroupCriterionService::AdGroupCriterion
1614
+ class AdGroupCriterionPage < Page
1615
+ attr_accessor :totalNumEntries
1616
+ attr_accessor :page_Type
1617
+ attr_accessor :entries
1618
+
1619
+ def initialize(totalNumEntries = nil, page_Type = nil, entries = [])
1620
+ @totalNumEntries = totalNumEntries
1621
+ @page_Type = page_Type
1622
+ @entries = entries
1623
+ end
1624
+ end
1625
+
1626
+ # AdGroupCriterionError.Reason
1627
+ class AdGroupCriterionErrorReason < ::String
1628
+ BID_INCOMPATIBLE_WITH_ADGROUP = AdGroupCriterionErrorReason.new("BID_INCOMPATIBLE_WITH_ADGROUP")
1629
+ CANNOT_ADD_CRITERIA_TYPE = AdGroupCriterionErrorReason.new("CANNOT_ADD_CRITERIA_TYPE")
1630
+ CANNOT_EXCLUDE_CRITERIA_TYPE = AdGroupCriterionErrorReason.new("CANNOT_EXCLUDE_CRITERIA_TYPE")
1631
+ CANNOT_TARGET_AND_EXCLUDE = AdGroupCriterionErrorReason.new("CANNOT_TARGET_AND_EXCLUDE")
1632
+ CANT_UPDATE_NEGATIVE = AdGroupCriterionErrorReason.new("CANT_UPDATE_NEGATIVE")
1633
+ CONCRETE_TYPE_REQUIRED = AdGroupCriterionErrorReason.new("CONCRETE_TYPE_REQUIRED")
1634
+ CRITERION_NOT_TARGETED = AdGroupCriterionErrorReason.new("CRITERION_NOT_TARGETED")
1635
+ CURRENCY_MISMATCH = AdGroupCriterionErrorReason.new("CURRENCY_MISMATCH")
1636
+ ID_FILTERS_HAVE_DIFF_FIELDS_SET = AdGroupCriterionErrorReason.new("ID_FILTERS_HAVE_DIFF_FIELDS_SET")
1637
+ ILLEGAL_URL = AdGroupCriterionErrorReason.new("ILLEGAL_URL")
1638
+ INAPPLICABLE_FILTER_SPECIFIED = AdGroupCriterionErrorReason.new("INAPPLICABLE_FILTER_SPECIFIED")
1639
+ INAPPLICABLE_FOR_NEGATIVE = AdGroupCriterionErrorReason.new("INAPPLICABLE_FOR_NEGATIVE")
1640
+ INVALID_DESTINATION_URL = AdGroupCriterionErrorReason.new("INVALID_DESTINATION_URL")
1641
+ INVALID_ID_FILTER_TYPE = AdGroupCriterionErrorReason.new("INVALID_ID_FILTER_TYPE")
1642
+ INVALID_KEYWORD_TEXT = AdGroupCriterionErrorReason.new("INVALID_KEYWORD_TEXT")
1643
+ INVALID_PRODUCT_FILTER = AdGroupCriterionErrorReason.new("INVALID_PRODUCT_FILTER")
1644
+ INVALID_USER_STATUS = AdGroupCriterionErrorReason.new("INVALID_USER_STATUS")
1645
+ INVALID_VERTICAL_PATH = AdGroupCriterionErrorReason.new("INVALID_VERTICAL_PATH")
1646
+ KEYWORD_LEVEL_BID_NOT_SUPPORTED_FOR_MANUALCPM = AdGroupCriterionErrorReason.new("KEYWORD_LEVEL_BID_NOT_SUPPORTED_FOR_MANUALCPM")
1647
+ NETWORK_NOT_OVERRIDABLE = AdGroupCriterionErrorReason.new("NETWORK_NOT_OVERRIDABLE")
1648
+ NO_EFFECTIVE_BID_FOR_THIS_CRITERION = AdGroupCriterionErrorReason.new("NO_EFFECTIVE_BID_FOR_THIS_CRITERION")
1649
+ PRODUCT_FILTER_TOO_LONG = AdGroupCriterionErrorReason.new("PRODUCT_FILTER_TOO_LONG")
1650
+ TOO_MANY_OPERTAIONS = AdGroupCriterionErrorReason.new("TOO_MANY_OPERTAIONS")
1651
+ TYPE_MISMATCH = AdGroupCriterionErrorReason.new("TYPE_MISMATCH")
1652
+ UNKNOWN = AdGroupCriterionErrorReason.new("UNKNOWN")
1653
+ end
1654
+
1655
+ # AdGroupCriterionLimitExceeded.CriteriaLimitType
1656
+ class AdGroupCriterionLimitExceededCriteriaLimitType < ::String
1657
+ ADGROUP_KEYWORD = AdGroupCriterionLimitExceededCriteriaLimitType.new("ADGROUP_KEYWORD")
1658
+ ADGROUP_WEBSITE = AdGroupCriterionLimitExceededCriteriaLimitType.new("ADGROUP_WEBSITE")
1659
+ end
1660
+
1661
+ # ApprovalStatus
1662
+ class ApprovalStatus < ::String
1663
+ APPROVED = ApprovalStatus.new("APPROVED")
1664
+ DISAPPROVED = ApprovalStatus.new("DISAPPROVED")
1665
+ PENDING_REVIEW = ApprovalStatus.new("PENDING_REVIEW")
1666
+ UNDER_REVIEW = ApprovalStatus.new("UNDER_REVIEW")
1667
+ end
1668
+
1669
+ # AuthenticationError.Reason
1670
+ class AuthenticationErrorReason < ::String
1671
+ AUTHENTICATION_FAILED = AuthenticationErrorReason.new("AUTHENTICATION_FAILED")
1672
+ CLIENT_CUSTOMER_ID_INVALID = AuthenticationErrorReason.new("CLIENT_CUSTOMER_ID_INVALID")
1673
+ CLIENT_CUSTOMER_ID_IS_REQUIRED = AuthenticationErrorReason.new("CLIENT_CUSTOMER_ID_IS_REQUIRED")
1674
+ CLIENT_EMAIL_FAILED_TO_AUTHENTICATE = AuthenticationErrorReason.new("CLIENT_EMAIL_FAILED_TO_AUTHENTICATE")
1675
+ CLIENT_EMAIL_INVALID = AuthenticationErrorReason.new("CLIENT_EMAIL_INVALID")
1676
+ CLIENT_EMAIL_REQUIRED = AuthenticationErrorReason.new("CLIENT_EMAIL_REQUIRED")
1677
+ CUSTOMER_NOT_FOUND = AuthenticationErrorReason.new("CUSTOMER_NOT_FOUND")
1678
+ FAILED_TO_AUTHENTICATE_GOOGLE_ACCOUNT = AuthenticationErrorReason.new("FAILED_TO_AUTHENTICATE_GOOGLE_ACCOUNT")
1679
+ FAILED_TO_RETRIEVE_LOGIN_COOKIE = AuthenticationErrorReason.new("FAILED_TO_RETRIEVE_LOGIN_COOKIE")
1680
+ GOOGLE_ACCOUNT_COOKIE_INVALID = AuthenticationErrorReason.new("GOOGLE_ACCOUNT_COOKIE_INVALID")
1681
+ GOOGLE_ACCOUNT_DELETED = AuthenticationErrorReason.new("GOOGLE_ACCOUNT_DELETED")
1682
+ GOOGLE_ACCOUNT_USER_AND_ADS_USER_MISMATCH = AuthenticationErrorReason.new("GOOGLE_ACCOUNT_USER_AND_ADS_USER_MISMATCH")
1683
+ LOGIN_COOKIE_INVALID = AuthenticationErrorReason.new("LOGIN_COOKIE_INVALID")
1684
+ LOGIN_COOKIE_REQUIRED = AuthenticationErrorReason.new("LOGIN_COOKIE_REQUIRED")
1685
+ NOT_ADS_USER = AuthenticationErrorReason.new("NOT_ADS_USER")
1686
+ OAUTH_TOKEN_DISABLED = AuthenticationErrorReason.new("OAUTH_TOKEN_DISABLED")
1687
+ OAUTH_TOKEN_EXPIRED = AuthenticationErrorReason.new("OAUTH_TOKEN_EXPIRED")
1688
+ OAUTH_TOKEN_HEADER_INVALID = AuthenticationErrorReason.new("OAUTH_TOKEN_HEADER_INVALID")
1689
+ OAUTH_TOKEN_INVALID = AuthenticationErrorReason.new("OAUTH_TOKEN_INVALID")
1690
+ OAUTH_TOKEN_REVOKED = AuthenticationErrorReason.new("OAUTH_TOKEN_REVOKED")
1691
+ USER_ID_INVALID = AuthenticationErrorReason.new("USER_ID_INVALID")
1692
+ end
1693
+
1694
+ # AuthorizationError.Reason
1695
+ class AuthorizationErrorReason < ::String
1696
+ EFFECTIVE_USER_PERMISSION_DENIED = AuthorizationErrorReason.new("EFFECTIVE_USER_PERMISSION_DENIED")
1697
+ NO_ADWORDS_ACCOUNT_FOR_CUSTOMER = AuthorizationErrorReason.new("NO_ADWORDS_ACCOUNT_FOR_CUSTOMER")
1698
+ NO_CUSTOMER_FOUND = AuthorizationErrorReason.new("NO_CUSTOMER_FOUND")
1699
+ UNABLE_TO_AUTHORIZE = AuthorizationErrorReason.new("UNABLE_TO_AUTHORIZE")
1700
+ USER_HAS_READONLY_PERMISSION = AuthorizationErrorReason.new("USER_HAS_READONLY_PERMISSION")
1701
+ USER_PERMISSION_DENIED = AuthorizationErrorReason.new("USER_PERMISSION_DENIED")
1702
+ end
1703
+
1704
+ # BidSource
1705
+ class BidSource < ::String
1706
+ ADGROUP = BidSource.new("ADGROUP")
1707
+ CRITERION = BidSource.new("CRITERION")
1708
+ end
1709
+
1710
+ # BiddingError.Reason
1711
+ class BiddingErrorReason < ::String
1712
+ ADGROUPS_DO_NOT_MATCH_CONSTRAINT = BiddingErrorReason.new("ADGROUPS_DO_NOT_MATCH_CONSTRAINT")
1713
+ AUCTION_STRATEGY_INCOMPATIBLE_WITH_PROXY_BIDDER = BiddingErrorReason.new("AUCTION_STRATEGY_INCOMPATIBLE_WITH_PROXY_BIDDER")
1714
+ BAD_BID_COMBINATION = BiddingErrorReason.new("BAD_BID_COMBINATION")
1715
+ BIDS_DO_NOT_FULFILL_SPEC = BiddingErrorReason.new("BIDS_DO_NOT_FULFILL_SPEC")
1716
+ BID_AMOUNT_REQUIRED = BiddingErrorReason.new("BID_AMOUNT_REQUIRED")
1717
+ BID_ERROR = BiddingErrorReason.new("BID_ERROR")
1718
+ BID_INCOMPATIBLE_WITH_ADGROUP = BiddingErrorReason.new("BID_INCOMPATIBLE_WITH_ADGROUP")
1719
+ BID_TOO_BIG = BiddingErrorReason.new("BID_TOO_BIG")
1720
+ BID_TOO_HIGH_FOR_DAILY_BUDGET = BiddingErrorReason.new("BID_TOO_HIGH_FOR_DAILY_BUDGET")
1721
+ BID_TOO_HIGH_FOR_MONTHLY_BUDGET = BiddingErrorReason.new("BID_TOO_HIGH_FOR_MONTHLY_BUDGET")
1722
+ BID_TOO_MANY_FRACTIONAL_DIGITS = BiddingErrorReason.new("BID_TOO_MANY_FRACTIONAL_DIGITS")
1723
+ BID_TOO_SMALL = BiddingErrorReason.new("BID_TOO_SMALL")
1724
+ BID_TO_POSITION_NOT_ENABLED = BiddingErrorReason.new("BID_TO_POSITION_NOT_ENABLED")
1725
+ BID_UNIVERSAL_CRITERIA_EXPECTED = BiddingErrorReason.new("BID_UNIVERSAL_CRITERIA_EXPECTED")
1726
+ BOTTOM_POSITION_OUT_OF_RANGE = BiddingErrorReason.new("BOTTOM_POSITION_OUT_OF_RANGE")
1727
+ CAMPAIGN_ALREADY_SET = BiddingErrorReason.new("CAMPAIGN_ALREADY_SET")
1728
+ CAMPAIGN_MUST_HAVE_A_BUDGET_TO_ENABLE_BUDGET_OPTIMIZER = BiddingErrorReason.new("CAMPAIGN_MUST_HAVE_A_BUDGET_TO_ENABLE_BUDGET_OPTIMIZER")
1729
+ CANNOT_CREATE_CAMPAIGN_WITH_CONVERSION_OPTIMIZER = BiddingErrorReason.new("CANNOT_CREATE_CAMPAIGN_WITH_CONVERSION_OPTIMIZER")
1730
+ CANNOT_EXCLUDE_DEFAULT = BiddingErrorReason.new("CANNOT_EXCLUDE_DEFAULT")
1731
+ CANNOT_SET_CONTENT_BID_WITHOUT_SETTING_KEYWORD_MAX_CPC_AS_WELL = BiddingErrorReason.new("CANNOT_SET_CONTENT_BID_WITHOUT_SETTING_KEYWORD_MAX_CPC_AS_WELL")
1732
+ CANNOT_SET_SITE_MAX_CPC = BiddingErrorReason.new("CANNOT_SET_SITE_MAX_CPC")
1733
+ CANNOT_TARGET_AND_EXCLUDE = BiddingErrorReason.new("CANNOT_TARGET_AND_EXCLUDE")
1734
+ CANNOT_TARGET_UNIVERSE = BiddingErrorReason.new("CANNOT_TARGET_UNIVERSE")
1735
+ CANNOT_UPDATE_SITE_BIDS_WHILE_PROXY_BIDDING = BiddingErrorReason.new("CANNOT_UPDATE_SITE_BIDS_WHILE_PROXY_BIDDING")
1736
+ CRITERION_NOT_TARGETED = BiddingErrorReason.new("CRITERION_NOT_TARGETED")
1737
+ CURRENCY_MISMATCH = BiddingErrorReason.new("CURRENCY_MISMATCH")
1738
+ GOAL_DOES_NOT_FULFILL_SPEC = BiddingErrorReason.new("GOAL_DOES_NOT_FULFILL_SPEC")
1739
+ GOAL_VALIDATION_FAILED = BiddingErrorReason.new("GOAL_VALIDATION_FAILED")
1740
+ ILLEGAL_URL = BiddingErrorReason.new("ILLEGAL_URL")
1741
+ MANY_PER_CLICK_NOT_AVAILABLE_FOR_CUSTOMER = BiddingErrorReason.new("MANY_PER_CLICK_NOT_AVAILABLE_FOR_CUSTOMER")
1742
+ MUST_EXCLUDE_0_TO_17_WITH_OTHER_AGE_EXCLUSIONS = BiddingErrorReason.new("MUST_EXCLUDE_0_TO_17_WITH_OTHER_AGE_EXCLUSIONS")
1743
+ NETWORK_NOT_OVERRIDEABLE = BiddingErrorReason.new("NETWORK_NOT_OVERRIDEABLE")
1744
+ NETWORK_SETTINGS_DO_NOT_SUPPORT_TRANSITION = BiddingErrorReason.new("NETWORK_SETTINGS_DO_NOT_SUPPORT_TRANSITION")
1745
+ NON_POSITIVE_BID = BiddingErrorReason.new("NON_POSITIVE_BID")
1746
+ NO_DESTINATION_URL_SPECIFIED = BiddingErrorReason.new("NO_DESTINATION_URL_SPECIFIED")
1747
+ NO_EFFECTIVE_BID = BiddingErrorReason.new("NO_EFFECTIVE_BID")
1748
+ PAY_PER_CONVERSION_NOT_ALLOWED_WITH_MANY_PER_CLICK = BiddingErrorReason.new("PAY_PER_CONVERSION_NOT_ALLOWED_WITH_MANY_PER_CLICK")
1749
+ PAY_PER_CONVERSION_NOT_ALLOWED_WITH_TARGET_CPA = BiddingErrorReason.new("PAY_PER_CONVERSION_NOT_ALLOWED_WITH_TARGET_CPA")
1750
+ PAY_PER_CONVERSION_NOT_AVAILABLE_FOR_CUSTOMER = BiddingErrorReason.new("PAY_PER_CONVERSION_NOT_AVAILABLE_FOR_CUSTOMER")
1751
+ POSITION_PREFERENCE_NOT_ENABLED = BiddingErrorReason.new("POSITION_PREFERENCE_NOT_ENABLED")
1752
+ POSITION_PREFERENCE_NOT_SUPPORTED_FOR_CRITERIA_TYPE = BiddingErrorReason.new("POSITION_PREFERENCE_NOT_SUPPORTED_FOR_CRITERIA_TYPE")
1753
+ PREFERRED_POSITION_CANNOT_BE_HIGHER_THAN_BOTTOM = BiddingErrorReason.new("PREFERRED_POSITION_CANNOT_BE_HIGHER_THAN_BOTTOM")
1754
+ PREFERRED_POSITION_OUT_OF_RANGE = BiddingErrorReason.new("PREFERRED_POSITION_OUT_OF_RANGE")
1755
+ PROXY_BIDDER_STRATEGY_INCOMPATIBLE_WITH_STYLE = BiddingErrorReason.new("PROXY_BIDDER_STRATEGY_INCOMPATIBLE_WITH_STYLE")
1756
+ PROXY_NOT_ENABLED = BiddingErrorReason.new("PROXY_NOT_ENABLED")
1757
+ TARGET_CPA_NOT_AVAILABLE_FOR_CUSTOMER = BiddingErrorReason.new("TARGET_CPA_NOT_AVAILABLE_FOR_CUSTOMER")
1758
+ TRANSITION_DOES_NOT_SUPPORT_GOAL = BiddingErrorReason.new("TRANSITION_DOES_NOT_SUPPORT_GOAL")
1759
+ TRANSITION_DOES_NOT_SUPPORT_OPTION = BiddingErrorReason.new("TRANSITION_DOES_NOT_SUPPORT_OPTION")
1760
+ UNSUPPORTED_PROXY_BIDDER_STRATEGY_TRANSITION = BiddingErrorReason.new("UNSUPPORTED_PROXY_BIDDER_STRATEGY_TRANSITION")
1761
+ UNSUPPORTED_STYLE = BiddingErrorReason.new("UNSUPPORTED_STYLE")
1762
+ UNSUPPORTED_STYLE_TRANSITION = BiddingErrorReason.new("UNSUPPORTED_STYLE_TRANSITION")
1763
+ end
1764
+
1765
+ # ClientTermsError.Reason
1766
+ class ClientTermsErrorReason < ::String
1767
+ INCOMPLETE_SIGNUP_CURRENT_ADWORDS_TNC_NOT_AGREED = ClientTermsErrorReason.new("INCOMPLETE_SIGNUP_CURRENT_ADWORDS_TNC_NOT_AGREED")
1768
+ end
1769
+
1770
+ # CriterionError.Reason
1771
+ class CriterionErrorReason < ::String
1772
+ CANNOT_EXCLUDE_CRITERIA_TYPE = CriterionErrorReason.new("CANNOT_EXCLUDE_CRITERIA_TYPE")
1773
+ CONCRETE_TYPE_REQUIRED = CriterionErrorReason.new("CONCRETE_TYPE_REQUIRED")
1774
+ INVALID_EXCLUDED_CATEGORY = CriterionErrorReason.new("INVALID_EXCLUDED_CATEGORY")
1775
+ INVALID_FORMAT_FOR_PLACEMENT_URL = CriterionErrorReason.new("INVALID_FORMAT_FOR_PLACEMENT_URL")
1776
+ INVALID_KEYWORD_TEXT = CriterionErrorReason.new("INVALID_KEYWORD_TEXT")
1777
+ INVALID_PLACEMENT_URL = CriterionErrorReason.new("INVALID_PLACEMENT_URL")
1778
+ INVALID_PRODUCT_FILTER = CriterionErrorReason.new("INVALID_PRODUCT_FILTER")
1779
+ INVALID_USER_INTEREST = CriterionErrorReason.new("INVALID_USER_INTEREST")
1780
+ INVALID_USER_LIST = CriterionErrorReason.new("INVALID_USER_LIST")
1781
+ INVALID_VERTICAL_PATH = CriterionErrorReason.new("INVALID_VERTICAL_PATH")
1782
+ KEYWORD_HAS_INVALID_CHARS = CriterionErrorReason.new("KEYWORD_HAS_INVALID_CHARS")
1783
+ KEYWORD_HAS_TOO_MANY_WORDS = CriterionErrorReason.new("KEYWORD_HAS_TOO_MANY_WORDS")
1784
+ KEYWORD_TEXT_TOO_LONG = CriterionErrorReason.new("KEYWORD_TEXT_TOO_LONG")
1785
+ PLACEMENT_IS_NOT_AVAILABLE_FOR_TARGETING_OR_EXCLUSION = CriterionErrorReason.new("PLACEMENT_IS_NOT_AVAILABLE_FOR_TARGETING_OR_EXCLUSION")
1786
+ PLACEMENT_URL_HAS_ILLEGAL_CHAR = CriterionErrorReason.new("PLACEMENT_URL_HAS_ILLEGAL_CHAR")
1787
+ PLACEMENT_URL_HAS_MULTIPLE_SITES_IN_LINE = CriterionErrorReason.new("PLACEMENT_URL_HAS_MULTIPLE_SITES_IN_LINE")
1788
+ PLACEMENT_URL_IS_TOO_LONG = CriterionErrorReason.new("PLACEMENT_URL_IS_TOO_LONG")
1789
+ PRODUCT_FILTER_TOO_LONG = CriterionErrorReason.new("PRODUCT_FILTER_TOO_LONG")
1790
+ UNKNOWN = CriterionErrorReason.new("UNKNOWN")
1791
+ end
1792
+
1793
+ # CriterionUse
1794
+ class CriterionUse < ::String
1795
+ BIDDABLE = CriterionUse.new("BIDDABLE")
1796
+ NEGATIVE = CriterionUse.new("NEGATIVE")
1797
+ end
1798
+
1799
+ # DatabaseError.Reason
1800
+ class DatabaseErrorReason < ::String
1801
+ CAMPAIGN_PRODUCT_NOT_SUPPORTED = DatabaseErrorReason.new("CAMPAIGN_PRODUCT_NOT_SUPPORTED")
1802
+ CONCURRENT_MODIFICATION = DatabaseErrorReason.new("CONCURRENT_MODIFICATION")
1803
+ DATABASE_ERROR = DatabaseErrorReason.new("DATABASE_ERROR")
1804
+ DUPLICATE_KEY = DatabaseErrorReason.new("DUPLICATE_KEY")
1805
+ PERMISSION_DENIED = DatabaseErrorReason.new("PERMISSION_DENIED")
1806
+ UNKNOWN = DatabaseErrorReason.new("UNKNOWN")
1807
+ end
1808
+
1809
+ # DateError.Reason
1810
+ class DateErrorReason < ::String
1811
+ DATE_RANGE_MINIMUM_AND_MAXIMUM_DATES_BOTH_NULL = DateErrorReason.new("DATE_RANGE_MINIMUM_AND_MAXIMUM_DATES_BOTH_NULL")
1812
+ DATE_RANGE_MINIMUM_DATE_LATER_THAN_MAXIMUM_DATE = DateErrorReason.new("DATE_RANGE_MINIMUM_DATE_LATER_THAN_MAXIMUM_DATE")
1813
+ EARLIER_THAN_MINIMUM_DATE = DateErrorReason.new("EARLIER_THAN_MINIMUM_DATE")
1814
+ INVALID_FIELD_VALUES_IN_DATE = DateErrorReason.new("INVALID_FIELD_VALUES_IN_DATE")
1815
+ INVALID_STRING_DATE = DateErrorReason.new("INVALID_STRING_DATE")
1816
+ INVALID_STRING_DATE_RANGE = DateErrorReason.new("INVALID_STRING_DATE_RANGE")
1817
+ INVALID_STRING_DATE_TIME = DateErrorReason.new("INVALID_STRING_DATE_TIME")
1818
+ LATER_THAN_MAXIMUM_DATE = DateErrorReason.new("LATER_THAN_MAXIMUM_DATE")
1819
+ end
1820
+
1821
+ # DistinctError.Reason
1822
+ class DistinctErrorReason < ::String
1823
+ DUPLICATE_ELEMENT = DistinctErrorReason.new("DUPLICATE_ELEMENT")
1824
+ DUPLICATE_TYPE = DistinctErrorReason.new("DUPLICATE_TYPE")
1825
+ end
1826
+
1827
+ # EntityAccessDenied.Reason
1828
+ class EntityAccessDeniedReason < ::String
1829
+ READ_ACCESS_DENIED = EntityAccessDeniedReason.new("READ_ACCESS_DENIED")
1830
+ WRITE_ACCESS_DENIED = EntityAccessDeniedReason.new("WRITE_ACCESS_DENIED")
1831
+ end
1832
+
1833
+ # EntityCountLimitExceeded.Reason
1834
+ class EntityCountLimitExceededReason < ::String
1835
+ ACCOUNT_LIMIT = EntityCountLimitExceededReason.new("ACCOUNT_LIMIT")
1836
+ ADGROUP_DISPLAY_AD_LIMIT = EntityCountLimitExceededReason.new("ADGROUP_DISPLAY_AD_LIMIT")
1837
+ ADGROUP_LIMIT = EntityCountLimitExceededReason.new("ADGROUP_LIMIT")
1838
+ ADGROUP_TEXT_AD_LIMIT = EntityCountLimitExceededReason.new("ADGROUP_TEXT_AD_LIMIT")
1839
+ CAMPAIGN_LIMIT = EntityCountLimitExceededReason.new("CAMPAIGN_LIMIT")
1840
+ UNKNOWN = EntityCountLimitExceededReason.new("UNKNOWN")
1841
+ end
1842
+
1843
+ # EntityNotFound.Reason
1844
+ class EntityNotFoundReason < ::String
1845
+ INVALID_ID = EntityNotFoundReason.new("INVALID_ID")
1846
+ end
1847
+
1848
+ # ExperimentDataStatus
1849
+ class ExperimentDataStatus < ::String
1850
+ ACTIVE = ExperimentDataStatus.new("ACTIVE")
1851
+ DELETED = ExperimentDataStatus.new("DELETED")
1852
+ UNKNOWN = ExperimentDataStatus.new("UNKNOWN")
1853
+ end
1854
+
1855
+ # ExperimentDeltaStatus
1856
+ class ExperimentDeltaStatus < ::String
1857
+ CONTROL_ONLY = ExperimentDeltaStatus.new("CONTROL_ONLY")
1858
+ EXPERIMENT_ONLY = ExperimentDeltaStatus.new("EXPERIMENT_ONLY")
1859
+ MODIFIED = ExperimentDeltaStatus.new("MODIFIED")
1860
+ UNKNOWN = ExperimentDeltaStatus.new("UNKNOWN")
1861
+ end
1862
+
1863
+ # InternalApiError.Reason
1864
+ class InternalApiErrorReason < ::String
1865
+ UNEXPECTED_INTERNAL_API_ERROR = InternalApiErrorReason.new("UNEXPECTED_INTERNAL_API_ERROR")
1866
+ UNKNOWN = InternalApiErrorReason.new("UNKNOWN")
1867
+ end
1868
+
1869
+ # KeywordMatchType
1870
+ class KeywordMatchType < ::String
1871
+ BROAD = KeywordMatchType.new("BROAD")
1872
+ EXACT = KeywordMatchType.new("EXACT")
1873
+ PHRASE = KeywordMatchType.new("PHRASE")
1874
+ end
1875
+
1876
+ # MultiplierSource
1877
+ class MultiplierSource < ::String
1878
+ ADGROUP = MultiplierSource.new("ADGROUP")
1879
+ CRITERION = MultiplierSource.new("CRITERION")
1880
+ UNKNOWN = MultiplierSource.new("UNKNOWN")
1881
+ end
1882
+
1883
+ # NewEntityCreationError.Reason
1884
+ class NewEntityCreationErrorReason < ::String
1885
+ CANNOT_SET_ID_FOR_ADD = NewEntityCreationErrorReason.new("CANNOT_SET_ID_FOR_ADD")
1886
+ end
1887
+
1888
+ # NotEmptyError.Reason
1889
+ class NotEmptyErrorReason < ::String
1890
+ EMPTY_LIST = NotEmptyErrorReason.new("EMPTY_LIST")
1891
+ end
1892
+
1893
+ # NotWhitelistedError.Reason
1894
+ class NotWhitelistedErrorReason < ::String
1895
+ CUSTOMER_NOT_WHITELISTED_FOR_API = NotWhitelistedErrorReason.new("CUSTOMER_NOT_WHITELISTED_FOR_API")
1896
+ end
1897
+
1898
+ # NullError.Reason
1899
+ class NullErrorReason < ::String
1900
+ NULL_CONTENT = NullErrorReason.new("NULL_CONTENT")
1901
+ end
1902
+
1903
+ # OperationAccessDenied.Reason
1904
+ class OperationAccessDeniedReason < ::String
1905
+ ACTION_NOT_PERMITTED = OperationAccessDeniedReason.new("ACTION_NOT_PERMITTED")
1906
+ ADD_OPERATION_NOT_PERMITTED = OperationAccessDeniedReason.new("ADD_OPERATION_NOT_PERMITTED")
1907
+ MUTATE_ACTION_NOT_PERMITTED_FOR_CLIENT = OperationAccessDeniedReason.new("MUTATE_ACTION_NOT_PERMITTED_FOR_CLIENT")
1908
+ REMOVE_OPERATION_NOT_PERMITTED = OperationAccessDeniedReason.new("REMOVE_OPERATION_NOT_PERMITTED")
1909
+ SET_OPERATION_NOT_PERMITTED = OperationAccessDeniedReason.new("SET_OPERATION_NOT_PERMITTED")
1910
+ UNKNOWN = OperationAccessDeniedReason.new("UNKNOWN")
1911
+ end
1912
+
1913
+ # Operator
1914
+ class Operator < ::String
1915
+ ADD = Operator.new("ADD")
1916
+ REMOVE = Operator.new("REMOVE")
1917
+ SET = Operator.new("SET")
1918
+ end
1919
+
1920
+ # PagingError.Reason
1921
+ class PagingErrorReason < ::String
1922
+ NUMBER_OF_RESULTS_CANNOT_BE_NEGATIVE = PagingErrorReason.new("NUMBER_OF_RESULTS_CANNOT_BE_NEGATIVE")
1923
+ START_INDEX_CANNOT_BE_NEGATIVE = PagingErrorReason.new("START_INDEX_CANNOT_BE_NEGATIVE")
1924
+ UNKNOWN = PagingErrorReason.new("UNKNOWN")
1925
+ end
1926
+
1927
+ # Predicate.Operator
1928
+ class PredicateOperator < ::String
1929
+ CONTAINS = PredicateOperator.new("CONTAINS")
1930
+ CONTAINS_IGNORE_CASE = PredicateOperator.new("CONTAINS_IGNORE_CASE")
1931
+ DOES_NOT_CONTAIN = PredicateOperator.new("DOES_NOT_CONTAIN")
1932
+ DOES_NOT_CONTAIN_IGNORE_CASE = PredicateOperator.new("DOES_NOT_CONTAIN_IGNORE_CASE")
1933
+ EQUALS = PredicateOperator.new("EQUALS")
1934
+ GREATER_THAN = PredicateOperator.new("GREATER_THAN")
1935
+ GREATER_THAN_EQUALS = PredicateOperator.new("GREATER_THAN_EQUALS")
1936
+ IN = PredicateOperator.new("IN")
1937
+ LESS_THAN = PredicateOperator.new("LESS_THAN")
1938
+ LESS_THAN_EQUALS = PredicateOperator.new("LESS_THAN_EQUALS")
1939
+ NOT_EQUALS = PredicateOperator.new("NOT_EQUALS")
1940
+ NOT_IN = PredicateOperator.new("NOT_IN")
1941
+ STARTS_WITH = PredicateOperator.new("STARTS_WITH")
1942
+ STARTS_WITH_IGNORE_CASE = PredicateOperator.new("STARTS_WITH_IGNORE_CASE")
1943
+ UNKNOWN = PredicateOperator.new("UNKNOWN")
1944
+ end
1945
+
1946
+ # QuotaCheckError.Reason
1947
+ class QuotaCheckErrorReason < ::String
1948
+ ACCOUNT_DELINQUENT = QuotaCheckErrorReason.new("ACCOUNT_DELINQUENT")
1949
+ ACCOUNT_INACCESSIBLE = QuotaCheckErrorReason.new("ACCOUNT_INACCESSIBLE")
1950
+ ACCOUNT_INACTIVE = QuotaCheckErrorReason.new("ACCOUNT_INACTIVE")
1951
+ INCOMPLETE_SIGNUP = QuotaCheckErrorReason.new("INCOMPLETE_SIGNUP")
1952
+ INCOMPLETE_SIGNUP_LATEST_ADWORDS_API_TNC_NOT_AGREED = QuotaCheckErrorReason.new("INCOMPLETE_SIGNUP_LATEST_ADWORDS_API_TNC_NOT_AGREED")
1953
+ INCOMPLETE_SIGNUP_NO_BILLING_INFO = QuotaCheckErrorReason.new("INCOMPLETE_SIGNUP_NO_BILLING_INFO")
1954
+ INCOMPLETE_SIGNUP_USER_INFO_MISSING = QuotaCheckErrorReason.new("INCOMPLETE_SIGNUP_USER_INFO_MISSING")
1955
+ INCOMPLETE_SIGNUP_USER_INFO_PENDING = QuotaCheckErrorReason.new("INCOMPLETE_SIGNUP_USER_INFO_PENDING")
1956
+ INCOMPLETE_SIGNUP_USER_INFO_REJECTED = QuotaCheckErrorReason.new("INCOMPLETE_SIGNUP_USER_INFO_REJECTED")
1957
+ INVALID_TOKEN_HEADER = QuotaCheckErrorReason.new("INVALID_TOKEN_HEADER")
1958
+ MONTHLY_BUDGET_REACHED = QuotaCheckErrorReason.new("MONTHLY_BUDGET_REACHED")
1959
+ QUOTA_EXCEEDED = QuotaCheckErrorReason.new("QUOTA_EXCEEDED")
1960
+ end
1961
+
1962
+ # RangeError.Reason
1963
+ class RangeErrorReason < ::String
1964
+ TOO_HIGH = RangeErrorReason.new("TOO_HIGH")
1965
+ TOO_LOW = RangeErrorReason.new("TOO_LOW")
1966
+ end
1967
+
1968
+ # RateExceededError.Reason
1969
+ class RateExceededErrorReason < ::String
1970
+ RATE_EXCEEDED = RateExceededErrorReason.new("RATE_EXCEEDED")
1971
+ end
1972
+
1973
+ # ReadOnlyError.Reason
1974
+ class ReadOnlyErrorReason < ::String
1975
+ READ_ONLY = ReadOnlyErrorReason.new("READ_ONLY")
1976
+ end
1977
+
1978
+ # RejectedError.Reason
1979
+ class RejectedErrorReason < ::String
1980
+ UNKNOWN_VALUE = RejectedErrorReason.new("UNKNOWN_VALUE")
1981
+ end
1982
+
1983
+ # RequestError.Reason
1984
+ class RequestErrorReason < ::String
1985
+ INVALID_INPUT = RequestErrorReason.new("INVALID_INPUT")
1986
+ UNKNOWN = RequestErrorReason.new("UNKNOWN")
1987
+ end
1988
+
1989
+ # RequiredError.Reason
1990
+ class RequiredErrorReason < ::String
1991
+ REQUIRED = RequiredErrorReason.new("REQUIRED")
1992
+ end
1993
+
1994
+ # SelectorError.Reason
1995
+ class SelectorErrorReason < ::String
1996
+ INVALID_FIELD_NAME = SelectorErrorReason.new("INVALID_FIELD_NAME")
1997
+ INVALID_FIELD_SELECTION = SelectorErrorReason.new("INVALID_FIELD_SELECTION")
1998
+ INVALID_PREDICATE_ENUM_VALUE = SelectorErrorReason.new("INVALID_PREDICATE_ENUM_VALUE")
1999
+ INVALID_PREDICATE_FIELD_NAME = SelectorErrorReason.new("INVALID_PREDICATE_FIELD_NAME")
2000
+ INVALID_PREDICATE_OPERATOR = SelectorErrorReason.new("INVALID_PREDICATE_OPERATOR")
2001
+ INVALID_PREDICATE_VALUE = SelectorErrorReason.new("INVALID_PREDICATE_VALUE")
2002
+ MISSING_FIELDS = SelectorErrorReason.new("MISSING_FIELDS")
2003
+ MISSING_PREDICATE_OPERATOR = SelectorErrorReason.new("MISSING_PREDICATE_OPERATOR")
2004
+ MISSING_PREDICATE_VALUES = SelectorErrorReason.new("MISSING_PREDICATE_VALUES")
2005
+ OPERATOR_DOES_NOT_SUPPORT_MULTIPLE_VALUES = SelectorErrorReason.new("OPERATOR_DOES_NOT_SUPPORT_MULTIPLE_VALUES")
2006
+ UNKNOWN_ERROR = SelectorErrorReason.new("UNKNOWN_ERROR")
2007
+ end
2008
+
2009
+ # SizeLimitError.Reason
2010
+ class SizeLimitErrorReason < ::String
2011
+ REQUEST_SIZE_LIMIT_EXCEEDED = SizeLimitErrorReason.new("REQUEST_SIZE_LIMIT_EXCEEDED")
2012
+ RESPONSE_SIZE_LIMIT_EXCEEDED = SizeLimitErrorReason.new("RESPONSE_SIZE_LIMIT_EXCEEDED")
2013
+ UNKNOWN = SizeLimitErrorReason.new("UNKNOWN")
2014
+ end
2015
+
2016
+ # SortOrder
2017
+ class SortOrder < ::String
2018
+ ASCENDING = SortOrder.new("ASCENDING")
2019
+ DESCENDING = SortOrder.new("DESCENDING")
2020
+ end
2021
+
2022
+ # Stats.Network
2023
+ class StatsNetwork < ::String
2024
+ ALL = StatsNetwork.new("ALL")
2025
+ CONTENT = StatsNetwork.new("CONTENT")
2026
+ CONTENT_KEYWORD_BID = StatsNetwork.new("CONTENT_KEYWORD_BID")
2027
+ CONTENT_PLACEMENT_BID = StatsNetwork.new("CONTENT_PLACEMENT_BID")
2028
+ GOOGLE_SEARCH = StatsNetwork.new("GOOGLE_SEARCH")
2029
+ SEARCH = StatsNetwork.new("SEARCH")
2030
+ SEARCH_NETWORK = StatsNetwork.new("SEARCH_NETWORK")
2031
+ UNKNOWN = StatsNetwork.new("UNKNOWN")
2032
+ end
2033
+
2034
+ # StatsQueryError.Reason
2035
+ class StatsQueryErrorReason < ::String
2036
+ DATE_NOT_IN_VALID_RANGE = StatsQueryErrorReason.new("DATE_NOT_IN_VALID_RANGE")
2037
+ end
2038
+
2039
+ # SystemServingStatus
2040
+ class SystemServingStatus < ::String
2041
+ ELIGIBLE = SystemServingStatus.new("ELIGIBLE")
2042
+ RARELY_SERVED = SystemServingStatus.new("RARELY_SERVED")
2043
+ end
2044
+
2045
+ # CriterionUserList.MembershipStatus
2046
+ class CriterionUserListMembershipStatus < ::String
2047
+ CLOSED = CriterionUserListMembershipStatus.new("CLOSED")
2048
+ OPEN = CriterionUserListMembershipStatus.new("OPEN")
2049
+ end
2050
+
2051
+ # UserStatus
2052
+ class UserStatus < ::String
2053
+ ACTIVE = UserStatus.new("ACTIVE")
2054
+ DELETED = UserStatus.new("DELETED")
2055
+ PAUSED = UserStatus.new("PAUSED")
2056
+ end
2057
+
2058
+ # get
2059
+ # - serviceSelector - AdwordsApi::V201101::AdGroupCriterionService::Selector
2060
+ class Get #:nodoc: all
2061
+ attr_accessor :serviceSelector
2062
+
2063
+ def initialize(serviceSelector = nil)
2064
+ @serviceSelector = serviceSelector
2065
+ end
2066
+ end
2067
+
2068
+ # getResponse
2069
+ # - rval - AdwordsApi::V201101::AdGroupCriterionService::AdGroupCriterionPage
2070
+ class GetResponse #:nodoc: all
2071
+ attr_accessor :rval
2072
+
2073
+ def initialize(rval = nil)
2074
+ @rval = rval
2075
+ end
2076
+ end
2077
+
2078
+ # mutate
2079
+ # - operations - AdwordsApi::V201101::AdGroupCriterionService::AdGroupCriterionOperation
2080
+ class Mutate #:nodoc: all
2081
+ attr_accessor :operations
2082
+
2083
+ def initialize(operations = [])
2084
+ @operations = operations
2085
+ end
2086
+ end
2087
+
2088
+ # mutateResponse
2089
+ # - rval - AdwordsApi::V201101::AdGroupCriterionService::AdGroupCriterionReturnValue
2090
+ class MutateResponse #:nodoc: all
2091
+ attr_accessor :rval
2092
+
2093
+ def initialize(rval = nil)
2094
+ @rval = rval
2095
+ end
2096
+ end
2097
+
2098
+
2099
+ end; end; end