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/BulkMutateJobServiceDriver.rb'
4
+
5
+ module AdwordsApi
6
+ module V201101
7
+ module BulkMutateJobService
8
+
9
+ # Wrapper class for the v201101 BulkMutateJobService service.
10
+ # This class is automatically generated.
11
+ class BulkMutateJobServiceWrapper
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::BulkMutateJobService::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::BulkMutateJobService::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 BulkMutateJobServiceWrapper.
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::BulkMutateJobService
51
+ @version = :v201101
52
+ @service = :BulkMutateJobService
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/BulkMutateJobService.html#get] method of the BulkMutateJobService service.
272
+ # Check {the online documentation for this method}[http://code.google.com/apis/adwords/docs/reference/v201101/BulkMutateJobService.html#get].
273
+ #
274
+ # Args:
275
+ # - selector: AdwordsApi::V201101::BulkMutateJobService::BulkMutateJobSelector
276
+ #
277
+ # Returns:
278
+ # - rval: SOAP::SOAPArray of AdwordsApi::V201101::BulkMutateJobService::BulkMutateJob
279
+ #
280
+ # Raises:
281
+ # Error::ApiError (or a subclass thereof) if a SOAP fault occurs.
282
+ #
283
+ def get(selector)
284
+ begin
285
+ arg_array = []
286
+ validate_object(selector, AdwordsApi::V201101::BulkMutateJobService::BulkMutateJobSelector)
287
+ arg_array << convert_to_object(selector, AdwordsApi::V201101::BulkMutateJobService::Get,
288
+ 'selector')
289
+ # Construct request object and make API call
290
+ obj = AdwordsApi::V201101::BulkMutateJobService::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/BulkMutateJobService.html#mutate] method of the BulkMutateJobService service.
301
+ # Check {the online documentation for this method}[http://code.google.com/apis/adwords/docs/reference/v201101/BulkMutateJobService.html#mutate].
302
+ #
303
+ # Args:
304
+ # - operation: AdwordsApi::V201101::BulkMutateJobService::JobOperation
305
+ #
306
+ # Returns:
307
+ # - rval: AdwordsApi::V201101::BulkMutateJobService::BulkMutateJob
308
+ #
309
+ # Raises:
310
+ # Error::ApiError (or a subclass thereof) if a SOAP fault occurs.
311
+ #
312
+ def mutate(operation)
313
+ begin
314
+ arg_array = []
315
+ validate_object(operation, AdwordsApi::V201101::BulkMutateJobService::JobOperation)
316
+ arg_array << convert_to_object(operation, AdwordsApi::V201101::BulkMutateJobService::Mutate,
317
+ 'operation')
318
+ # Construct request object and make API call
319
+ obj = AdwordsApi::V201101::BulkMutateJobService::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,1677 @@
1
+ require 'xsd/qname'
2
+
3
+ module AdwordsApi; module V201101; module CampaignAdExtensionService
4
+
5
+
6
+ # Address
7
+ # - streetAddress - SOAP::SOAPString
8
+ # - streetAddress2 - SOAP::SOAPString
9
+ # - cityName - SOAP::SOAPString
10
+ # - provinceCode - SOAP::SOAPString
11
+ # - provinceName - SOAP::SOAPString
12
+ # - postalCode - SOAP::SOAPString
13
+ # - countryCode - SOAP::SOAPString
14
+ class Address
15
+ attr_accessor :streetAddress
16
+ attr_accessor :streetAddress2
17
+ attr_accessor :cityName
18
+ attr_accessor :provinceCode
19
+ attr_accessor :provinceName
20
+ attr_accessor :postalCode
21
+ attr_accessor :countryCode
22
+
23
+ def initialize(streetAddress = nil, streetAddress2 = nil, cityName = nil, provinceCode = nil, provinceName = nil, postalCode = nil, countryCode = nil)
24
+ @streetAddress = streetAddress
25
+ @streetAddress2 = streetAddress2
26
+ @cityName = cityName
27
+ @provinceCode = provinceCode
28
+ @provinceName = provinceName
29
+ @postalCode = postalCode
30
+ @countryCode = countryCode
31
+ end
32
+ end
33
+
34
+ # DateRange
35
+ # - min - SOAP::SOAPString
36
+ # - max - SOAP::SOAPString
37
+ class DateRange
38
+ attr_accessor :min
39
+ attr_accessor :max
40
+
41
+ def initialize(min = nil, max = nil)
42
+ @min = min
43
+ @max = max
44
+ end
45
+ end
46
+
47
+ # GeoPoint
48
+ # - latitudeInMicroDegrees - SOAP::SOAPInt
49
+ # - longitudeInMicroDegrees - SOAP::SOAPInt
50
+ class GeoPoint
51
+ attr_accessor :latitudeInMicroDegrees
52
+ attr_accessor :longitudeInMicroDegrees
53
+
54
+ def initialize(latitudeInMicroDegrees = nil, longitudeInMicroDegrees = nil)
55
+ @latitudeInMicroDegrees = latitudeInMicroDegrees
56
+ @longitudeInMicroDegrees = longitudeInMicroDegrees
57
+ end
58
+ end
59
+
60
+ # OrderBy
61
+ # - field - SOAP::SOAPString
62
+ # - sortOrder - AdwordsApi::V201101::CampaignAdExtensionService::SortOrder
63
+ class OrderBy
64
+ attr_accessor :field
65
+ attr_accessor :sortOrder
66
+
67
+ def initialize(field = nil, sortOrder = nil)
68
+ @field = field
69
+ @sortOrder = sortOrder
70
+ end
71
+ end
72
+
73
+ # Paging
74
+ # - startIndex - SOAP::SOAPInt
75
+ # - numberResults - SOAP::SOAPInt
76
+ class Paging
77
+ attr_accessor :startIndex
78
+ attr_accessor :numberResults
79
+
80
+ def initialize(startIndex = nil, numberResults = nil)
81
+ @startIndex = startIndex
82
+ @numberResults = numberResults
83
+ end
84
+ end
85
+
86
+ # Predicate
87
+ # - field - SOAP::SOAPString
88
+ # - operator - AdwordsApi::V201101::CampaignAdExtensionService::PredicateOperator
89
+ # - values - SOAP::SOAPString
90
+ class Predicate
91
+ attr_accessor :field
92
+ attr_accessor :operator
93
+ attr_accessor :values
94
+
95
+ def initialize(field = nil, operator = nil, values = [])
96
+ @field = field
97
+ @operator = operator
98
+ @values = values
99
+ end
100
+ end
101
+
102
+ # ProductConditionOperand
103
+ # - operand - SOAP::SOAPString
104
+ class ProductConditionOperand
105
+ attr_accessor :operand
106
+
107
+ def initialize(operand = nil)
108
+ @operand = operand
109
+ end
110
+ end
111
+
112
+ # Sitelink
113
+ # - displayText - SOAP::SOAPString
114
+ # - destinationUrl - SOAP::SOAPString
115
+ class Sitelink
116
+ attr_accessor :displayText
117
+ attr_accessor :destinationUrl
118
+
119
+ def initialize(displayText = nil, destinationUrl = nil)
120
+ @displayText = displayText
121
+ @destinationUrl = destinationUrl
122
+ end
123
+ end
124
+
125
+ # SoapHeader
126
+ # - authToken - SOAP::SOAPString
127
+ # - clientCustomerId - SOAP::SOAPString
128
+ # - clientEmail - SOAP::SOAPString
129
+ # - developerToken - SOAP::SOAPString
130
+ # - userAgent - SOAP::SOAPString
131
+ # - validateOnly - SOAP::SOAPBoolean
132
+ # - partialFailure - SOAP::SOAPBoolean
133
+ class SoapHeader
134
+ attr_accessor :authToken
135
+ attr_accessor :clientCustomerId
136
+ attr_accessor :clientEmail
137
+ attr_accessor :developerToken
138
+ attr_accessor :userAgent
139
+ attr_accessor :validateOnly
140
+ attr_accessor :partialFailure
141
+
142
+ def initialize(authToken = nil, clientCustomerId = nil, clientEmail = nil, developerToken = nil, userAgent = nil, validateOnly = nil, partialFailure = nil)
143
+ @authToken = authToken
144
+ @clientCustomerId = clientCustomerId
145
+ @clientEmail = clientEmail
146
+ @developerToken = developerToken
147
+ @userAgent = userAgent
148
+ @validateOnly = validateOnly
149
+ @partialFailure = partialFailure
150
+ end
151
+ end
152
+
153
+ # SoapResponseHeader
154
+ # - requestId - SOAP::SOAPString
155
+ # - operations - SOAP::SOAPLong
156
+ # - responseTime - SOAP::SOAPLong
157
+ # - units - SOAP::SOAPLong
158
+ class SoapResponseHeader
159
+ attr_accessor :requestId
160
+ attr_accessor :operations
161
+ attr_accessor :responseTime
162
+ attr_accessor :units
163
+
164
+ def initialize(requestId = nil, operations = nil, responseTime = nil, units = nil)
165
+ @requestId = requestId
166
+ @operations = operations
167
+ @responseTime = responseTime
168
+ @units = units
169
+ end
170
+ end
171
+
172
+ # ComparableValue
173
+ # abstract
174
+ # - comparableValue_Type - SOAP::SOAPString
175
+ class ComparableValue
176
+ attr_accessor :comparableValue_Type
177
+
178
+ def initialize(comparableValue_Type = nil)
179
+ @comparableValue_Type = comparableValue_Type
180
+ end
181
+ end
182
+
183
+ # Money
184
+ # - comparableValue_Type - SOAP::SOAPString
185
+ # - microAmount - SOAP::SOAPLong
186
+ class Money < ComparableValue
187
+ attr_accessor :comparableValue_Type
188
+ attr_accessor :microAmount
189
+
190
+ def initialize(comparableValue_Type = nil, microAmount = nil)
191
+ @comparableValue_Type = comparableValue_Type
192
+ @microAmount = microAmount
193
+ end
194
+ end
195
+
196
+ # NumberValue
197
+ # abstract
198
+ # - comparableValue_Type - SOAP::SOAPString
199
+ class NumberValue < ComparableValue
200
+ attr_accessor :comparableValue_Type
201
+
202
+ def initialize(comparableValue_Type = nil)
203
+ @comparableValue_Type = comparableValue_Type
204
+ end
205
+ end
206
+
207
+ # DoubleValue
208
+ # - comparableValue_Type - SOAP::SOAPString
209
+ # - number - SOAP::SOAPDouble
210
+ class DoubleValue < NumberValue
211
+ attr_accessor :comparableValue_Type
212
+ attr_accessor :number
213
+
214
+ def initialize(comparableValue_Type = nil, number = nil)
215
+ @comparableValue_Type = comparableValue_Type
216
+ @number = number
217
+ end
218
+ end
219
+
220
+ # LongValue
221
+ # - comparableValue_Type - SOAP::SOAPString
222
+ # - number - SOAP::SOAPLong
223
+ class LongValue < NumberValue
224
+ attr_accessor :comparableValue_Type
225
+ attr_accessor :number
226
+
227
+ def initialize(comparableValue_Type = nil, number = nil)
228
+ @comparableValue_Type = comparableValue_Type
229
+ @number = number
230
+ end
231
+ end
232
+
233
+ # ProductCondition
234
+ # - argument - SOAP::SOAPString
235
+ # - operand - AdwordsApi::V201101::CampaignAdExtensionService::ProductConditionOperand
236
+ class ProductCondition
237
+ attr_accessor :argument
238
+ attr_accessor :operand
239
+
240
+ def initialize(argument = nil, operand = nil)
241
+ @argument = argument
242
+ @operand = operand
243
+ end
244
+ end
245
+
246
+ # ProductConditionAndGroup
247
+ # - conditions - AdwordsApi::V201101::CampaignAdExtensionService::ProductCondition
248
+ class ProductConditionAndGroup
249
+ attr_accessor :conditions
250
+
251
+ def initialize(conditions = [])
252
+ @conditions = conditions
253
+ end
254
+ end
255
+
256
+ # Selector
257
+ # - fields - SOAP::SOAPString
258
+ # - predicates - AdwordsApi::V201101::CampaignAdExtensionService::Predicate
259
+ # - dateRange - AdwordsApi::V201101::CampaignAdExtensionService::DateRange
260
+ # - ordering - AdwordsApi::V201101::CampaignAdExtensionService::OrderBy
261
+ # - paging - AdwordsApi::V201101::CampaignAdExtensionService::Paging
262
+ class Selector
263
+ attr_accessor :fields
264
+ attr_accessor :predicates
265
+ attr_accessor :dateRange
266
+ attr_accessor :ordering
267
+ attr_accessor :paging
268
+
269
+ def initialize(fields = [], predicates = [], dateRange = nil, ordering = [], paging = nil)
270
+ @fields = fields
271
+ @predicates = predicates
272
+ @dateRange = dateRange
273
+ @ordering = ordering
274
+ @paging = paging
275
+ end
276
+ end
277
+
278
+ # Stats
279
+ # - startDate - SOAP::SOAPString
280
+ # - endDate - SOAP::SOAPString
281
+ # - network - AdwordsApi::V201101::CampaignAdExtensionService::StatsNetwork
282
+ # - clicks - SOAP::SOAPLong
283
+ # - impressions - SOAP::SOAPLong
284
+ # - cost - AdwordsApi::V201101::CampaignAdExtensionService::Money
285
+ # - averagePosition - SOAP::SOAPDouble
286
+ # - averageCpc - AdwordsApi::V201101::CampaignAdExtensionService::Money
287
+ # - averageCpm - AdwordsApi::V201101::CampaignAdExtensionService::Money
288
+ # - ctr - SOAP::SOAPDouble
289
+ # - conversions - SOAP::SOAPLong
290
+ # - conversionRate - SOAP::SOAPDouble
291
+ # - costPerConversion - AdwordsApi::V201101::CampaignAdExtensionService::Money
292
+ # - conversionsManyPerClick - SOAP::SOAPLong
293
+ # - conversionRateManyPerClick - SOAP::SOAPDouble
294
+ # - costPerConversionManyPerClick - AdwordsApi::V201101::CampaignAdExtensionService::Money
295
+ # - viewThroughConversions - SOAP::SOAPLong
296
+ # - totalConvValue - SOAP::SOAPLong
297
+ # - valuePerConv - SOAP::SOAPDouble
298
+ # - valuePerConvManyPerClick - SOAP::SOAPDouble
299
+ # - invalidClicks - SOAP::SOAPLong
300
+ # - invalidClickRate - SOAP::SOAPDouble
301
+ # - stats_Type - SOAP::SOAPString
302
+ class Stats
303
+ attr_accessor :startDate
304
+ attr_accessor :endDate
305
+ attr_accessor :network
306
+ attr_accessor :clicks
307
+ attr_accessor :impressions
308
+ attr_accessor :cost
309
+ attr_accessor :averagePosition
310
+ attr_accessor :averageCpc
311
+ attr_accessor :averageCpm
312
+ attr_accessor :ctr
313
+ attr_accessor :conversions
314
+ attr_accessor :conversionRate
315
+ attr_accessor :costPerConversion
316
+ attr_accessor :conversionsManyPerClick
317
+ attr_accessor :conversionRateManyPerClick
318
+ attr_accessor :costPerConversionManyPerClick
319
+ attr_accessor :viewThroughConversions
320
+ attr_accessor :totalConvValue
321
+ attr_accessor :valuePerConv
322
+ attr_accessor :valuePerConvManyPerClick
323
+ attr_accessor :invalidClicks
324
+ attr_accessor :invalidClickRate
325
+ attr_accessor :stats_Type
326
+
327
+ 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)
328
+ @startDate = startDate
329
+ @endDate = endDate
330
+ @network = network
331
+ @clicks = clicks
332
+ @impressions = impressions
333
+ @cost = cost
334
+ @averagePosition = averagePosition
335
+ @averageCpc = averageCpc
336
+ @averageCpm = averageCpm
337
+ @ctr = ctr
338
+ @conversions = conversions
339
+ @conversionRate = conversionRate
340
+ @costPerConversion = costPerConversion
341
+ @conversionsManyPerClick = conversionsManyPerClick
342
+ @conversionRateManyPerClick = conversionRateManyPerClick
343
+ @costPerConversionManyPerClick = costPerConversionManyPerClick
344
+ @viewThroughConversions = viewThroughConversions
345
+ @totalConvValue = totalConvValue
346
+ @valuePerConv = valuePerConv
347
+ @valuePerConvManyPerClick = valuePerConvManyPerClick
348
+ @invalidClicks = invalidClicks
349
+ @invalidClickRate = invalidClickRate
350
+ @stats_Type = stats_Type
351
+ end
352
+ end
353
+
354
+ # CampaignAdExtensionStats
355
+ # - startDate - SOAP::SOAPString
356
+ # - endDate - SOAP::SOAPString
357
+ # - network - AdwordsApi::V201101::CampaignAdExtensionService::StatsNetwork
358
+ # - clicks - SOAP::SOAPLong
359
+ # - impressions - SOAP::SOAPLong
360
+ # - cost - AdwordsApi::V201101::CampaignAdExtensionService::Money
361
+ # - averagePosition - SOAP::SOAPDouble
362
+ # - averageCpc - AdwordsApi::V201101::CampaignAdExtensionService::Money
363
+ # - averageCpm - AdwordsApi::V201101::CampaignAdExtensionService::Money
364
+ # - ctr - SOAP::SOAPDouble
365
+ # - conversions - SOAP::SOAPLong
366
+ # - conversionRate - SOAP::SOAPDouble
367
+ # - costPerConversion - AdwordsApi::V201101::CampaignAdExtensionService::Money
368
+ # - conversionsManyPerClick - SOAP::SOAPLong
369
+ # - conversionRateManyPerClick - SOAP::SOAPDouble
370
+ # - costPerConversionManyPerClick - AdwordsApi::V201101::CampaignAdExtensionService::Money
371
+ # - viewThroughConversions - SOAP::SOAPLong
372
+ # - totalConvValue - SOAP::SOAPLong
373
+ # - valuePerConv - SOAP::SOAPDouble
374
+ # - valuePerConvManyPerClick - SOAP::SOAPDouble
375
+ # - invalidClicks - SOAP::SOAPLong
376
+ # - invalidClickRate - SOAP::SOAPDouble
377
+ # - stats_Type - SOAP::SOAPString
378
+ class CampaignAdExtensionStats < Stats
379
+ attr_accessor :startDate
380
+ attr_accessor :endDate
381
+ attr_accessor :network
382
+ attr_accessor :clicks
383
+ attr_accessor :impressions
384
+ attr_accessor :cost
385
+ attr_accessor :averagePosition
386
+ attr_accessor :averageCpc
387
+ attr_accessor :averageCpm
388
+ attr_accessor :ctr
389
+ attr_accessor :conversions
390
+ attr_accessor :conversionRate
391
+ attr_accessor :costPerConversion
392
+ attr_accessor :conversionsManyPerClick
393
+ attr_accessor :conversionRateManyPerClick
394
+ attr_accessor :costPerConversionManyPerClick
395
+ attr_accessor :viewThroughConversions
396
+ attr_accessor :totalConvValue
397
+ attr_accessor :valuePerConv
398
+ attr_accessor :valuePerConvManyPerClick
399
+ attr_accessor :invalidClicks
400
+ attr_accessor :invalidClickRate
401
+ attr_accessor :stats_Type
402
+
403
+ 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)
404
+ @startDate = startDate
405
+ @endDate = endDate
406
+ @network = network
407
+ @clicks = clicks
408
+ @impressions = impressions
409
+ @cost = cost
410
+ @averagePosition = averagePosition
411
+ @averageCpc = averageCpc
412
+ @averageCpm = averageCpm
413
+ @ctr = ctr
414
+ @conversions = conversions
415
+ @conversionRate = conversionRate
416
+ @costPerConversion = costPerConversion
417
+ @conversionsManyPerClick = conversionsManyPerClick
418
+ @conversionRateManyPerClick = conversionRateManyPerClick
419
+ @costPerConversionManyPerClick = costPerConversionManyPerClick
420
+ @viewThroughConversions = viewThroughConversions
421
+ @totalConvValue = totalConvValue
422
+ @valuePerConv = valuePerConv
423
+ @valuePerConvManyPerClick = valuePerConvManyPerClick
424
+ @invalidClicks = invalidClicks
425
+ @invalidClickRate = invalidClickRate
426
+ @stats_Type = stats_Type
427
+ end
428
+ end
429
+
430
+ # ApiError
431
+ # abstract
432
+ # - fieldPath - SOAP::SOAPString
433
+ # - trigger - SOAP::SOAPString
434
+ # - errorString - SOAP::SOAPString
435
+ # - apiError_Type - SOAP::SOAPString
436
+ class ApiError
437
+ attr_accessor :fieldPath
438
+ attr_accessor :trigger
439
+ attr_accessor :errorString
440
+ attr_accessor :apiError_Type
441
+
442
+ def initialize(fieldPath = nil, trigger = nil, errorString = nil, apiError_Type = nil)
443
+ @fieldPath = fieldPath
444
+ @trigger = trigger
445
+ @errorString = errorString
446
+ @apiError_Type = apiError_Type
447
+ end
448
+ end
449
+
450
+ # AdExtensionError
451
+ # - fieldPath - SOAP::SOAPString
452
+ # - trigger - SOAP::SOAPString
453
+ # - errorString - SOAP::SOAPString
454
+ # - apiError_Type - SOAP::SOAPString
455
+ # - reason - AdwordsApi::V201101::CampaignAdExtensionService::AdExtensionErrorReason
456
+ class AdExtensionError < ApiError
457
+ attr_accessor :fieldPath
458
+ attr_accessor :trigger
459
+ attr_accessor :errorString
460
+ attr_accessor :apiError_Type
461
+ attr_accessor :reason
462
+
463
+ def initialize(fieldPath = nil, trigger = nil, errorString = nil, apiError_Type = nil, reason = nil)
464
+ @fieldPath = fieldPath
465
+ @trigger = trigger
466
+ @errorString = errorString
467
+ @apiError_Type = apiError_Type
468
+ @reason = reason
469
+ end
470
+ end
471
+
472
+ # AuthenticationError
473
+ # - fieldPath - SOAP::SOAPString
474
+ # - trigger - SOAP::SOAPString
475
+ # - errorString - SOAP::SOAPString
476
+ # - apiError_Type - SOAP::SOAPString
477
+ # - reason - AdwordsApi::V201101::CampaignAdExtensionService::AuthenticationErrorReason
478
+ class AuthenticationError < ApiError
479
+ attr_accessor :fieldPath
480
+ attr_accessor :trigger
481
+ attr_accessor :errorString
482
+ attr_accessor :apiError_Type
483
+ attr_accessor :reason
484
+
485
+ def initialize(fieldPath = nil, trigger = nil, errorString = nil, apiError_Type = nil, reason = nil)
486
+ @fieldPath = fieldPath
487
+ @trigger = trigger
488
+ @errorString = errorString
489
+ @apiError_Type = apiError_Type
490
+ @reason = reason
491
+ end
492
+ end
493
+
494
+ # AuthorizationError
495
+ # - fieldPath - SOAP::SOAPString
496
+ # - trigger - SOAP::SOAPString
497
+ # - errorString - SOAP::SOAPString
498
+ # - apiError_Type - SOAP::SOAPString
499
+ # - reason - AdwordsApi::V201101::CampaignAdExtensionService::AuthorizationErrorReason
500
+ class AuthorizationError < ApiError
501
+ attr_accessor :fieldPath
502
+ attr_accessor :trigger
503
+ attr_accessor :errorString
504
+ attr_accessor :apiError_Type
505
+ attr_accessor :reason
506
+
507
+ def initialize(fieldPath = nil, trigger = nil, errorString = nil, apiError_Type = nil, reason = nil)
508
+ @fieldPath = fieldPath
509
+ @trigger = trigger
510
+ @errorString = errorString
511
+ @apiError_Type = apiError_Type
512
+ @reason = reason
513
+ end
514
+ end
515
+
516
+ # CampaignAdExtensionError
517
+ # - fieldPath - SOAP::SOAPString
518
+ # - trigger - SOAP::SOAPString
519
+ # - errorString - SOAP::SOAPString
520
+ # - apiError_Type - SOAP::SOAPString
521
+ # - reason - AdwordsApi::V201101::CampaignAdExtensionService::CampaignAdExtensionErrorReason
522
+ class CampaignAdExtensionError < ApiError
523
+ attr_accessor :fieldPath
524
+ attr_accessor :trigger
525
+ attr_accessor :errorString
526
+ attr_accessor :apiError_Type
527
+ attr_accessor :reason
528
+
529
+ def initialize(fieldPath = nil, trigger = nil, errorString = nil, apiError_Type = nil, reason = nil)
530
+ @fieldPath = fieldPath
531
+ @trigger = trigger
532
+ @errorString = errorString
533
+ @apiError_Type = apiError_Type
534
+ @reason = reason
535
+ end
536
+ end
537
+
538
+ # ClientTermsError
539
+ # - fieldPath - SOAP::SOAPString
540
+ # - trigger - SOAP::SOAPString
541
+ # - errorString - SOAP::SOAPString
542
+ # - apiError_Type - SOAP::SOAPString
543
+ # - reason - AdwordsApi::V201101::CampaignAdExtensionService::ClientTermsErrorReason
544
+ class ClientTermsError < ApiError
545
+ attr_accessor :fieldPath
546
+ attr_accessor :trigger
547
+ attr_accessor :errorString
548
+ attr_accessor :apiError_Type
549
+ attr_accessor :reason
550
+
551
+ def initialize(fieldPath = nil, trigger = nil, errorString = nil, apiError_Type = nil, reason = nil)
552
+ @fieldPath = fieldPath
553
+ @trigger = trigger
554
+ @errorString = errorString
555
+ @apiError_Type = apiError_Type
556
+ @reason = reason
557
+ end
558
+ end
559
+
560
+ # DistinctError
561
+ # - fieldPath - SOAP::SOAPString
562
+ # - trigger - SOAP::SOAPString
563
+ # - errorString - SOAP::SOAPString
564
+ # - apiError_Type - SOAP::SOAPString
565
+ # - reason - AdwordsApi::V201101::CampaignAdExtensionService::DistinctErrorReason
566
+ class DistinctError < ApiError
567
+ attr_accessor :fieldPath
568
+ attr_accessor :trigger
569
+ attr_accessor :errorString
570
+ attr_accessor :apiError_Type
571
+ attr_accessor :reason
572
+
573
+ def initialize(fieldPath = nil, trigger = nil, errorString = nil, apiError_Type = nil, reason = nil)
574
+ @fieldPath = fieldPath
575
+ @trigger = trigger
576
+ @errorString = errorString
577
+ @apiError_Type = apiError_Type
578
+ @reason = reason
579
+ end
580
+ end
581
+
582
+ # EntityNotFound
583
+ # - fieldPath - SOAP::SOAPString
584
+ # - trigger - SOAP::SOAPString
585
+ # - errorString - SOAP::SOAPString
586
+ # - apiError_Type - SOAP::SOAPString
587
+ # - reason - AdwordsApi::V201101::CampaignAdExtensionService::EntityNotFoundReason
588
+ class EntityNotFound < ApiError
589
+ attr_accessor :fieldPath
590
+ attr_accessor :trigger
591
+ attr_accessor :errorString
592
+ attr_accessor :apiError_Type
593
+ attr_accessor :reason
594
+
595
+ def initialize(fieldPath = nil, trigger = nil, errorString = nil, apiError_Type = nil, reason = nil)
596
+ @fieldPath = fieldPath
597
+ @trigger = trigger
598
+ @errorString = errorString
599
+ @apiError_Type = apiError_Type
600
+ @reason = reason
601
+ end
602
+ end
603
+
604
+ # InternalApiError
605
+ # - fieldPath - SOAP::SOAPString
606
+ # - trigger - SOAP::SOAPString
607
+ # - errorString - SOAP::SOAPString
608
+ # - apiError_Type - SOAP::SOAPString
609
+ # - reason - AdwordsApi::V201101::CampaignAdExtensionService::InternalApiErrorReason
610
+ class InternalApiError < ApiError
611
+ attr_accessor :fieldPath
612
+ attr_accessor :trigger
613
+ attr_accessor :errorString
614
+ attr_accessor :apiError_Type
615
+ attr_accessor :reason
616
+
617
+ def initialize(fieldPath = nil, trigger = nil, errorString = nil, apiError_Type = nil, reason = nil)
618
+ @fieldPath = fieldPath
619
+ @trigger = trigger
620
+ @errorString = errorString
621
+ @apiError_Type = apiError_Type
622
+ @reason = reason
623
+ end
624
+ end
625
+
626
+ # NewEntityCreationError
627
+ # - fieldPath - SOAP::SOAPString
628
+ # - trigger - SOAP::SOAPString
629
+ # - errorString - SOAP::SOAPString
630
+ # - apiError_Type - SOAP::SOAPString
631
+ # - reason - AdwordsApi::V201101::CampaignAdExtensionService::NewEntityCreationErrorReason
632
+ class NewEntityCreationError < ApiError
633
+ attr_accessor :fieldPath
634
+ attr_accessor :trigger
635
+ attr_accessor :errorString
636
+ attr_accessor :apiError_Type
637
+ attr_accessor :reason
638
+
639
+ def initialize(fieldPath = nil, trigger = nil, errorString = nil, apiError_Type = nil, reason = nil)
640
+ @fieldPath = fieldPath
641
+ @trigger = trigger
642
+ @errorString = errorString
643
+ @apiError_Type = apiError_Type
644
+ @reason = reason
645
+ end
646
+ end
647
+
648
+ # NotEmptyError
649
+ # - fieldPath - SOAP::SOAPString
650
+ # - trigger - SOAP::SOAPString
651
+ # - errorString - SOAP::SOAPString
652
+ # - apiError_Type - SOAP::SOAPString
653
+ # - reason - AdwordsApi::V201101::CampaignAdExtensionService::NotEmptyErrorReason
654
+ class NotEmptyError < ApiError
655
+ attr_accessor :fieldPath
656
+ attr_accessor :trigger
657
+ attr_accessor :errorString
658
+ attr_accessor :apiError_Type
659
+ attr_accessor :reason
660
+
661
+ def initialize(fieldPath = nil, trigger = nil, errorString = nil, apiError_Type = nil, reason = nil)
662
+ @fieldPath = fieldPath
663
+ @trigger = trigger
664
+ @errorString = errorString
665
+ @apiError_Type = apiError_Type
666
+ @reason = reason
667
+ end
668
+ end
669
+
670
+ # NotWhitelistedError
671
+ # - fieldPath - SOAP::SOAPString
672
+ # - trigger - SOAP::SOAPString
673
+ # - errorString - SOAP::SOAPString
674
+ # - apiError_Type - SOAP::SOAPString
675
+ # - reason - AdwordsApi::V201101::CampaignAdExtensionService::NotWhitelistedErrorReason
676
+ class NotWhitelistedError < ApiError
677
+ attr_accessor :fieldPath
678
+ attr_accessor :trigger
679
+ attr_accessor :errorString
680
+ attr_accessor :apiError_Type
681
+ attr_accessor :reason
682
+
683
+ def initialize(fieldPath = nil, trigger = nil, errorString = nil, apiError_Type = nil, reason = nil)
684
+ @fieldPath = fieldPath
685
+ @trigger = trigger
686
+ @errorString = errorString
687
+ @apiError_Type = apiError_Type
688
+ @reason = reason
689
+ end
690
+ end
691
+
692
+ # NullError
693
+ # - fieldPath - SOAP::SOAPString
694
+ # - trigger - SOAP::SOAPString
695
+ # - errorString - SOAP::SOAPString
696
+ # - apiError_Type - SOAP::SOAPString
697
+ # - reason - AdwordsApi::V201101::CampaignAdExtensionService::NullErrorReason
698
+ class NullError < ApiError
699
+ attr_accessor :fieldPath
700
+ attr_accessor :trigger
701
+ attr_accessor :errorString
702
+ attr_accessor :apiError_Type
703
+ attr_accessor :reason
704
+
705
+ def initialize(fieldPath = nil, trigger = nil, errorString = nil, apiError_Type = nil, reason = nil)
706
+ @fieldPath = fieldPath
707
+ @trigger = trigger
708
+ @errorString = errorString
709
+ @apiError_Type = apiError_Type
710
+ @reason = reason
711
+ end
712
+ end
713
+
714
+ # OperationAccessDenied
715
+ # - fieldPath - SOAP::SOAPString
716
+ # - trigger - SOAP::SOAPString
717
+ # - errorString - SOAP::SOAPString
718
+ # - apiError_Type - SOAP::SOAPString
719
+ # - reason - AdwordsApi::V201101::CampaignAdExtensionService::OperationAccessDeniedReason
720
+ class OperationAccessDenied < ApiError
721
+ attr_accessor :fieldPath
722
+ attr_accessor :trigger
723
+ attr_accessor :errorString
724
+ attr_accessor :apiError_Type
725
+ attr_accessor :reason
726
+
727
+ def initialize(fieldPath = nil, trigger = nil, errorString = nil, apiError_Type = nil, reason = nil)
728
+ @fieldPath = fieldPath
729
+ @trigger = trigger
730
+ @errorString = errorString
731
+ @apiError_Type = apiError_Type
732
+ @reason = reason
733
+ end
734
+ end
735
+
736
+ # OperatorError
737
+ # - fieldPath - SOAP::SOAPString
738
+ # - trigger - SOAP::SOAPString
739
+ # - errorString - SOAP::SOAPString
740
+ # - apiError_Type - SOAP::SOAPString
741
+ # - reason - AdwordsApi::V201101::CampaignAdExtensionService::OperatorErrorReason
742
+ class OperatorError < ApiError
743
+ attr_accessor :fieldPath
744
+ attr_accessor :trigger
745
+ attr_accessor :errorString
746
+ attr_accessor :apiError_Type
747
+ attr_accessor :reason
748
+
749
+ def initialize(fieldPath = nil, trigger = nil, errorString = nil, apiError_Type = nil, reason = nil)
750
+ @fieldPath = fieldPath
751
+ @trigger = trigger
752
+ @errorString = errorString
753
+ @apiError_Type = apiError_Type
754
+ @reason = reason
755
+ end
756
+ end
757
+
758
+ # PagingError
759
+ # - fieldPath - SOAP::SOAPString
760
+ # - trigger - SOAP::SOAPString
761
+ # - errorString - SOAP::SOAPString
762
+ # - apiError_Type - SOAP::SOAPString
763
+ # - reason - AdwordsApi::V201101::CampaignAdExtensionService::PagingErrorReason
764
+ class PagingError < ApiError
765
+ attr_accessor :fieldPath
766
+ attr_accessor :trigger
767
+ attr_accessor :errorString
768
+ attr_accessor :apiError_Type
769
+ attr_accessor :reason
770
+
771
+ def initialize(fieldPath = nil, trigger = nil, errorString = nil, apiError_Type = nil, reason = nil)
772
+ @fieldPath = fieldPath
773
+ @trigger = trigger
774
+ @errorString = errorString
775
+ @apiError_Type = apiError_Type
776
+ @reason = reason
777
+ end
778
+ end
779
+
780
+ # QuotaCheckError
781
+ # - fieldPath - SOAP::SOAPString
782
+ # - trigger - SOAP::SOAPString
783
+ # - errorString - SOAP::SOAPString
784
+ # - apiError_Type - SOAP::SOAPString
785
+ # - reason - AdwordsApi::V201101::CampaignAdExtensionService::QuotaCheckErrorReason
786
+ class QuotaCheckError < ApiError
787
+ attr_accessor :fieldPath
788
+ attr_accessor :trigger
789
+ attr_accessor :errorString
790
+ attr_accessor :apiError_Type
791
+ attr_accessor :reason
792
+
793
+ def initialize(fieldPath = nil, trigger = nil, errorString = nil, apiError_Type = nil, reason = nil)
794
+ @fieldPath = fieldPath
795
+ @trigger = trigger
796
+ @errorString = errorString
797
+ @apiError_Type = apiError_Type
798
+ @reason = reason
799
+ end
800
+ end
801
+
802
+ # RangeError
803
+ # - fieldPath - SOAP::SOAPString
804
+ # - trigger - SOAP::SOAPString
805
+ # - errorString - SOAP::SOAPString
806
+ # - apiError_Type - SOAP::SOAPString
807
+ # - reason - AdwordsApi::V201101::CampaignAdExtensionService::RangeErrorReason
808
+ class C_RangeError < ApiError
809
+ attr_accessor :fieldPath
810
+ attr_accessor :trigger
811
+ attr_accessor :errorString
812
+ attr_accessor :apiError_Type
813
+ attr_accessor :reason
814
+
815
+ def initialize(fieldPath = nil, trigger = nil, errorString = nil, apiError_Type = nil, reason = nil)
816
+ @fieldPath = fieldPath
817
+ @trigger = trigger
818
+ @errorString = errorString
819
+ @apiError_Type = apiError_Type
820
+ @reason = reason
821
+ end
822
+ end
823
+
824
+ # RateExceededError
825
+ # - fieldPath - SOAP::SOAPString
826
+ # - trigger - SOAP::SOAPString
827
+ # - errorString - SOAP::SOAPString
828
+ # - apiError_Type - SOAP::SOAPString
829
+ # - reason - AdwordsApi::V201101::CampaignAdExtensionService::RateExceededErrorReason
830
+ # - rateName - SOAP::SOAPString
831
+ # - rateScope - SOAP::SOAPString
832
+ # - retryAfterSeconds - SOAP::SOAPInt
833
+ class RateExceededError < ApiError
834
+ attr_accessor :fieldPath
835
+ attr_accessor :trigger
836
+ attr_accessor :errorString
837
+ attr_accessor :apiError_Type
838
+ attr_accessor :reason
839
+ attr_accessor :rateName
840
+ attr_accessor :rateScope
841
+ attr_accessor :retryAfterSeconds
842
+
843
+ def initialize(fieldPath = nil, trigger = nil, errorString = nil, apiError_Type = nil, reason = nil, rateName = nil, rateScope = nil, retryAfterSeconds = nil)
844
+ @fieldPath = fieldPath
845
+ @trigger = trigger
846
+ @errorString = errorString
847
+ @apiError_Type = apiError_Type
848
+ @reason = reason
849
+ @rateName = rateName
850
+ @rateScope = rateScope
851
+ @retryAfterSeconds = retryAfterSeconds
852
+ end
853
+ end
854
+
855
+ # ReadOnlyError
856
+ # - fieldPath - SOAP::SOAPString
857
+ # - trigger - SOAP::SOAPString
858
+ # - errorString - SOAP::SOAPString
859
+ # - apiError_Type - SOAP::SOAPString
860
+ # - reason - AdwordsApi::V201101::CampaignAdExtensionService::ReadOnlyErrorReason
861
+ class ReadOnlyError < ApiError
862
+ attr_accessor :fieldPath
863
+ attr_accessor :trigger
864
+ attr_accessor :errorString
865
+ attr_accessor :apiError_Type
866
+ attr_accessor :reason
867
+
868
+ def initialize(fieldPath = nil, trigger = nil, errorString = nil, apiError_Type = nil, reason = nil)
869
+ @fieldPath = fieldPath
870
+ @trigger = trigger
871
+ @errorString = errorString
872
+ @apiError_Type = apiError_Type
873
+ @reason = reason
874
+ end
875
+ end
876
+
877
+ # RegionCodeError
878
+ # - fieldPath - SOAP::SOAPString
879
+ # - trigger - SOAP::SOAPString
880
+ # - errorString - SOAP::SOAPString
881
+ # - apiError_Type - SOAP::SOAPString
882
+ # - reason - AdwordsApi::V201101::CampaignAdExtensionService::RegionCodeErrorReason
883
+ class RegionCodeError < ApiError
884
+ attr_accessor :fieldPath
885
+ attr_accessor :trigger
886
+ attr_accessor :errorString
887
+ attr_accessor :apiError_Type
888
+ attr_accessor :reason
889
+
890
+ def initialize(fieldPath = nil, trigger = nil, errorString = nil, apiError_Type = nil, reason = nil)
891
+ @fieldPath = fieldPath
892
+ @trigger = trigger
893
+ @errorString = errorString
894
+ @apiError_Type = apiError_Type
895
+ @reason = reason
896
+ end
897
+ end
898
+
899
+ # RejectedError
900
+ # - fieldPath - SOAP::SOAPString
901
+ # - trigger - SOAP::SOAPString
902
+ # - errorString - SOAP::SOAPString
903
+ # - apiError_Type - SOAP::SOAPString
904
+ # - reason - AdwordsApi::V201101::CampaignAdExtensionService::RejectedErrorReason
905
+ class RejectedError < ApiError
906
+ attr_accessor :fieldPath
907
+ attr_accessor :trigger
908
+ attr_accessor :errorString
909
+ attr_accessor :apiError_Type
910
+ attr_accessor :reason
911
+
912
+ def initialize(fieldPath = nil, trigger = nil, errorString = nil, apiError_Type = nil, reason = nil)
913
+ @fieldPath = fieldPath
914
+ @trigger = trigger
915
+ @errorString = errorString
916
+ @apiError_Type = apiError_Type
917
+ @reason = reason
918
+ end
919
+ end
920
+
921
+ # RequestError
922
+ # - fieldPath - SOAP::SOAPString
923
+ # - trigger - SOAP::SOAPString
924
+ # - errorString - SOAP::SOAPString
925
+ # - apiError_Type - SOAP::SOAPString
926
+ # - reason - AdwordsApi::V201101::CampaignAdExtensionService::RequestErrorReason
927
+ class RequestError < ApiError
928
+ attr_accessor :fieldPath
929
+ attr_accessor :trigger
930
+ attr_accessor :errorString
931
+ attr_accessor :apiError_Type
932
+ attr_accessor :reason
933
+
934
+ def initialize(fieldPath = nil, trigger = nil, errorString = nil, apiError_Type = nil, reason = nil)
935
+ @fieldPath = fieldPath
936
+ @trigger = trigger
937
+ @errorString = errorString
938
+ @apiError_Type = apiError_Type
939
+ @reason = reason
940
+ end
941
+ end
942
+
943
+ # RequiredError
944
+ # - fieldPath - SOAP::SOAPString
945
+ # - trigger - SOAP::SOAPString
946
+ # - errorString - SOAP::SOAPString
947
+ # - apiError_Type - SOAP::SOAPString
948
+ # - reason - AdwordsApi::V201101::CampaignAdExtensionService::RequiredErrorReason
949
+ class RequiredError < ApiError
950
+ attr_accessor :fieldPath
951
+ attr_accessor :trigger
952
+ attr_accessor :errorString
953
+ attr_accessor :apiError_Type
954
+ attr_accessor :reason
955
+
956
+ def initialize(fieldPath = nil, trigger = nil, errorString = nil, apiError_Type = nil, reason = nil)
957
+ @fieldPath = fieldPath
958
+ @trigger = trigger
959
+ @errorString = errorString
960
+ @apiError_Type = apiError_Type
961
+ @reason = reason
962
+ end
963
+ end
964
+
965
+ # SelectorError
966
+ # - fieldPath - SOAP::SOAPString
967
+ # - trigger - SOAP::SOAPString
968
+ # - errorString - SOAP::SOAPString
969
+ # - apiError_Type - SOAP::SOAPString
970
+ # - reason - AdwordsApi::V201101::CampaignAdExtensionService::SelectorErrorReason
971
+ class SelectorError < ApiError
972
+ attr_accessor :fieldPath
973
+ attr_accessor :trigger
974
+ attr_accessor :errorString
975
+ attr_accessor :apiError_Type
976
+ attr_accessor :reason
977
+
978
+ def initialize(fieldPath = nil, trigger = nil, errorString = nil, apiError_Type = nil, reason = nil)
979
+ @fieldPath = fieldPath
980
+ @trigger = trigger
981
+ @errorString = errorString
982
+ @apiError_Type = apiError_Type
983
+ @reason = reason
984
+ end
985
+ end
986
+
987
+ # SizeLimitError
988
+ # - fieldPath - SOAP::SOAPString
989
+ # - trigger - SOAP::SOAPString
990
+ # - errorString - SOAP::SOAPString
991
+ # - apiError_Type - SOAP::SOAPString
992
+ # - reason - AdwordsApi::V201101::CampaignAdExtensionService::SizeLimitErrorReason
993
+ class SizeLimitError < ApiError
994
+ attr_accessor :fieldPath
995
+ attr_accessor :trigger
996
+ attr_accessor :errorString
997
+ attr_accessor :apiError_Type
998
+ attr_accessor :reason
999
+
1000
+ def initialize(fieldPath = nil, trigger = nil, errorString = nil, apiError_Type = nil, reason = nil)
1001
+ @fieldPath = fieldPath
1002
+ @trigger = trigger
1003
+ @errorString = errorString
1004
+ @apiError_Type = apiError_Type
1005
+ @reason = reason
1006
+ end
1007
+ end
1008
+
1009
+ # StringLengthError
1010
+ # - fieldPath - SOAP::SOAPString
1011
+ # - trigger - SOAP::SOAPString
1012
+ # - errorString - SOAP::SOAPString
1013
+ # - apiError_Type - SOAP::SOAPString
1014
+ # - reason - AdwordsApi::V201101::CampaignAdExtensionService::StringLengthErrorReason
1015
+ class StringLengthError < ApiError
1016
+ attr_accessor :fieldPath
1017
+ attr_accessor :trigger
1018
+ attr_accessor :errorString
1019
+ attr_accessor :apiError_Type
1020
+ attr_accessor :reason
1021
+
1022
+ def initialize(fieldPath = nil, trigger = nil, errorString = nil, apiError_Type = nil, reason = nil)
1023
+ @fieldPath = fieldPath
1024
+ @trigger = trigger
1025
+ @errorString = errorString
1026
+ @apiError_Type = apiError_Type
1027
+ @reason = reason
1028
+ end
1029
+ end
1030
+
1031
+ # DatabaseError
1032
+ # - fieldPath - SOAP::SOAPString
1033
+ # - trigger - SOAP::SOAPString
1034
+ # - errorString - SOAP::SOAPString
1035
+ # - apiError_Type - SOAP::SOAPString
1036
+ # - reason - AdwordsApi::V201101::CampaignAdExtensionService::DatabaseErrorReason
1037
+ class DatabaseError < ApiError
1038
+ attr_accessor :fieldPath
1039
+ attr_accessor :trigger
1040
+ attr_accessor :errorString
1041
+ attr_accessor :apiError_Type
1042
+ attr_accessor :reason
1043
+
1044
+ def initialize(fieldPath = nil, trigger = nil, errorString = nil, apiError_Type = nil, reason = nil)
1045
+ @fieldPath = fieldPath
1046
+ @trigger = trigger
1047
+ @errorString = errorString
1048
+ @apiError_Type = apiError_Type
1049
+ @reason = reason
1050
+ end
1051
+ end
1052
+
1053
+ # ApplicationException
1054
+ # - message - SOAP::SOAPString
1055
+ # - applicationException_Type - SOAP::SOAPString
1056
+ class ApplicationException
1057
+ attr_accessor :message
1058
+ attr_accessor :applicationException_Type
1059
+
1060
+ def initialize(message = nil, applicationException_Type = nil)
1061
+ @message = message
1062
+ @applicationException_Type = applicationException_Type
1063
+ end
1064
+ end
1065
+
1066
+ # ApiException
1067
+ # - message - SOAP::SOAPString
1068
+ # - applicationException_Type - SOAP::SOAPString
1069
+ # - errors - AdwordsApi::V201101::CampaignAdExtensionService::ApiError
1070
+ class ApiException < ApplicationException
1071
+ attr_accessor :message
1072
+ attr_accessor :applicationException_Type
1073
+ attr_accessor :errors
1074
+
1075
+ def initialize(message = nil, applicationException_Type = nil, errors = [])
1076
+ @message = message
1077
+ @applicationException_Type = applicationException_Type
1078
+ @errors = errors
1079
+ end
1080
+ end
1081
+
1082
+ # AdExtension
1083
+ # - id - SOAP::SOAPLong
1084
+ # - adExtension_Type - SOAP::SOAPString
1085
+ class AdExtension
1086
+ attr_accessor :id
1087
+ attr_accessor :adExtension_Type
1088
+
1089
+ def initialize(id = nil, adExtension_Type = nil)
1090
+ @id = id
1091
+ @adExtension_Type = adExtension_Type
1092
+ end
1093
+ end
1094
+
1095
+ # LocationExtension
1096
+ # - id - SOAP::SOAPLong
1097
+ # - adExtension_Type - SOAP::SOAPString
1098
+ # - address - AdwordsApi::V201101::CampaignAdExtensionService::Address
1099
+ # - geoPoint - AdwordsApi::V201101::CampaignAdExtensionService::GeoPoint
1100
+ # - encodedLocation - SOAP::SOAPBase64
1101
+ # - companyName - SOAP::SOAPString
1102
+ # - phoneNumber - SOAP::SOAPString
1103
+ # - source - AdwordsApi::V201101::CampaignAdExtensionService::LocationExtensionSource
1104
+ # - iconMediaId - SOAP::SOAPLong
1105
+ # - imageMediaId - SOAP::SOAPLong
1106
+ class LocationExtension < AdExtension
1107
+ attr_accessor :id
1108
+ attr_accessor :adExtension_Type
1109
+ attr_accessor :address
1110
+ attr_accessor :geoPoint
1111
+ attr_accessor :encodedLocation
1112
+ attr_accessor :companyName
1113
+ attr_accessor :phoneNumber
1114
+ attr_accessor :source
1115
+ attr_accessor :iconMediaId
1116
+ attr_accessor :imageMediaId
1117
+
1118
+ def initialize(id = nil, adExtension_Type = nil, address = nil, geoPoint = nil, encodedLocation = nil, companyName = nil, phoneNumber = nil, source = nil, iconMediaId = nil, imageMediaId = nil)
1119
+ @id = id
1120
+ @adExtension_Type = adExtension_Type
1121
+ @address = address
1122
+ @geoPoint = geoPoint
1123
+ @encodedLocation = encodedLocation
1124
+ @companyName = companyName
1125
+ @phoneNumber = phoneNumber
1126
+ @source = source
1127
+ @iconMediaId = iconMediaId
1128
+ @imageMediaId = imageMediaId
1129
+ end
1130
+ end
1131
+
1132
+ # MobileExtension
1133
+ # - id - SOAP::SOAPLong
1134
+ # - adExtension_Type - SOAP::SOAPString
1135
+ # - phoneNumber - SOAP::SOAPString
1136
+ # - countryCode - SOAP::SOAPString
1137
+ # - isCallOnly - SOAP::SOAPBoolean
1138
+ class MobileExtension < AdExtension
1139
+ attr_accessor :id
1140
+ attr_accessor :adExtension_Type
1141
+ attr_accessor :phoneNumber
1142
+ attr_accessor :countryCode
1143
+ attr_accessor :isCallOnly
1144
+
1145
+ def initialize(id = nil, adExtension_Type = nil, phoneNumber = nil, countryCode = nil, isCallOnly = nil)
1146
+ @id = id
1147
+ @adExtension_Type = adExtension_Type
1148
+ @phoneNumber = phoneNumber
1149
+ @countryCode = countryCode
1150
+ @isCallOnly = isCallOnly
1151
+ end
1152
+ end
1153
+
1154
+ # SitelinksExtension
1155
+ # - id - SOAP::SOAPLong
1156
+ # - adExtension_Type - SOAP::SOAPString
1157
+ # - sitelinks - AdwordsApi::V201101::CampaignAdExtensionService::Sitelink
1158
+ class SitelinksExtension < AdExtension
1159
+ attr_accessor :id
1160
+ attr_accessor :adExtension_Type
1161
+ attr_accessor :sitelinks
1162
+
1163
+ def initialize(id = nil, adExtension_Type = nil, sitelinks = [])
1164
+ @id = id
1165
+ @adExtension_Type = adExtension_Type
1166
+ @sitelinks = sitelinks
1167
+ end
1168
+ end
1169
+
1170
+ # ProductExtension
1171
+ # - id - SOAP::SOAPLong
1172
+ # - adExtension_Type - SOAP::SOAPString
1173
+ # - googleBaseCustomerId - SOAP::SOAPInt
1174
+ # - advertiserName - SOAP::SOAPString
1175
+ # - productSelection - AdwordsApi::V201101::CampaignAdExtensionService::ProductConditionAndGroup
1176
+ class ProductExtension < AdExtension
1177
+ attr_accessor :id
1178
+ attr_accessor :adExtension_Type
1179
+ attr_accessor :googleBaseCustomerId
1180
+ attr_accessor :advertiserName
1181
+ attr_accessor :productSelection
1182
+
1183
+ def initialize(id = nil, adExtension_Type = nil, googleBaseCustomerId = nil, advertiserName = nil, productSelection = [])
1184
+ @id = id
1185
+ @adExtension_Type = adExtension_Type
1186
+ @googleBaseCustomerId = googleBaseCustomerId
1187
+ @advertiserName = advertiserName
1188
+ @productSelection = productSelection
1189
+ end
1190
+ end
1191
+
1192
+ # LocationSyncExtension
1193
+ # - id - SOAP::SOAPLong
1194
+ # - adExtension_Type - SOAP::SOAPString
1195
+ # - email - SOAP::SOAPString
1196
+ # - authToken - SOAP::SOAPString
1197
+ # - iconMediaId - SOAP::SOAPLong
1198
+ # - shouldSyncUrl - SOAP::SOAPBoolean
1199
+ class LocationSyncExtension < AdExtension
1200
+ attr_accessor :id
1201
+ attr_accessor :adExtension_Type
1202
+ attr_accessor :email
1203
+ attr_accessor :authToken
1204
+ attr_accessor :iconMediaId
1205
+ attr_accessor :shouldSyncUrl
1206
+
1207
+ def initialize(id = nil, adExtension_Type = nil, email = nil, authToken = nil, iconMediaId = nil, shouldSyncUrl = nil)
1208
+ @id = id
1209
+ @adExtension_Type = adExtension_Type
1210
+ @email = email
1211
+ @authToken = authToken
1212
+ @iconMediaId = iconMediaId
1213
+ @shouldSyncUrl = shouldSyncUrl
1214
+ end
1215
+ end
1216
+
1217
+ # CampaignAdExtension
1218
+ # - campaignId - SOAP::SOAPLong
1219
+ # - adExtension - AdwordsApi::V201101::CampaignAdExtensionService::AdExtension
1220
+ # - status - AdwordsApi::V201101::CampaignAdExtensionService::CampaignAdExtensionStatus
1221
+ # - approvalStatus - AdwordsApi::V201101::CampaignAdExtensionService::CampaignAdExtensionApprovalStatus
1222
+ # - stats - AdwordsApi::V201101::CampaignAdExtensionService::CampaignAdExtensionStats
1223
+ class CampaignAdExtension
1224
+ attr_accessor :campaignId
1225
+ attr_accessor :adExtension
1226
+ attr_accessor :status
1227
+ attr_accessor :approvalStatus
1228
+ attr_accessor :stats
1229
+
1230
+ def initialize(campaignId = nil, adExtension = nil, status = nil, approvalStatus = nil, stats = nil)
1231
+ @campaignId = campaignId
1232
+ @adExtension = adExtension
1233
+ @status = status
1234
+ @approvalStatus = approvalStatus
1235
+ @stats = stats
1236
+ end
1237
+ end
1238
+
1239
+ # ListReturnValue
1240
+ # abstract
1241
+ # - listReturnValue_Type - SOAP::SOAPString
1242
+ class ListReturnValue
1243
+ attr_accessor :listReturnValue_Type
1244
+
1245
+ def initialize(listReturnValue_Type = nil)
1246
+ @listReturnValue_Type = listReturnValue_Type
1247
+ end
1248
+ end
1249
+
1250
+ # CampaignAdExtensionReturnValue
1251
+ # - listReturnValue_Type - SOAP::SOAPString
1252
+ # - value - AdwordsApi::V201101::CampaignAdExtensionService::CampaignAdExtension
1253
+ class CampaignAdExtensionReturnValue < ListReturnValue
1254
+ attr_accessor :listReturnValue_Type
1255
+ attr_accessor :value
1256
+
1257
+ def initialize(listReturnValue_Type = nil, value = [])
1258
+ @listReturnValue_Type = listReturnValue_Type
1259
+ @value = value
1260
+ end
1261
+ end
1262
+
1263
+ # Operation
1264
+ # abstract
1265
+ # - operator - AdwordsApi::V201101::CampaignAdExtensionService::Operator
1266
+ # - operation_Type - SOAP::SOAPString
1267
+ class Operation
1268
+ attr_accessor :operator
1269
+ attr_accessor :operation_Type
1270
+
1271
+ def initialize(operator = nil, operation_Type = nil)
1272
+ @operator = operator
1273
+ @operation_Type = operation_Type
1274
+ end
1275
+ end
1276
+
1277
+ # CampaignAdExtensionOperation
1278
+ # - operator - AdwordsApi::V201101::CampaignAdExtensionService::Operator
1279
+ # - operation_Type - SOAP::SOAPString
1280
+ # - operand - AdwordsApi::V201101::CampaignAdExtensionService::CampaignAdExtension
1281
+ class CampaignAdExtensionOperation < Operation
1282
+ attr_accessor :operator
1283
+ attr_accessor :operation_Type
1284
+ attr_accessor :operand
1285
+
1286
+ def initialize(operator = nil, operation_Type = nil, operand = nil)
1287
+ @operator = operator
1288
+ @operation_Type = operation_Type
1289
+ @operand = operand
1290
+ end
1291
+ end
1292
+
1293
+ # Page
1294
+ # abstract
1295
+ # - totalNumEntries - SOAP::SOAPInt
1296
+ # - page_Type - SOAP::SOAPString
1297
+ class Page
1298
+ attr_accessor :totalNumEntries
1299
+ attr_accessor :page_Type
1300
+
1301
+ def initialize(totalNumEntries = nil, page_Type = nil)
1302
+ @totalNumEntries = totalNumEntries
1303
+ @page_Type = page_Type
1304
+ end
1305
+ end
1306
+
1307
+ # CampaignAdExtensionPage
1308
+ # - totalNumEntries - SOAP::SOAPInt
1309
+ # - page_Type - SOAP::SOAPString
1310
+ # - entries - AdwordsApi::V201101::CampaignAdExtensionService::CampaignAdExtension
1311
+ class CampaignAdExtensionPage < Page
1312
+ attr_accessor :totalNumEntries
1313
+ attr_accessor :page_Type
1314
+ attr_accessor :entries
1315
+
1316
+ def initialize(totalNumEntries = nil, page_Type = nil, entries = [])
1317
+ @totalNumEntries = totalNumEntries
1318
+ @page_Type = page_Type
1319
+ @entries = entries
1320
+ end
1321
+ end
1322
+
1323
+ # AdExtensionError.Reason
1324
+ class AdExtensionErrorReason < ::String
1325
+ ACCOUNT_DELETED = AdExtensionErrorReason.new("ACCOUNT_DELETED")
1326
+ AD_EXTENSION_NO_LONGER_ACTIVE = AdExtensionErrorReason.new("AD_EXTENSION_NO_LONGER_ACTIVE")
1327
+ CANNOT_HAVE_MULTIPLE_LOCATION_SYNC_EXTENSIONS_PER_CAMPAIGN = AdExtensionErrorReason.new("CANNOT_HAVE_MULTIPLE_LOCATION_SYNC_EXTENSIONS_PER_CAMPAIGN")
1328
+ CANNOT_HAVE_MULTIPLE_MOBILE_EXTENSIONS_PER_CAMPAIGN = AdExtensionErrorReason.new("CANNOT_HAVE_MULTIPLE_MOBILE_EXTENSIONS_PER_CAMPAIGN")
1329
+ CANNOT_HAVE_MULTIPLE_PRODUCT_EXTENSIONS_PER_CAMPAIGN = AdExtensionErrorReason.new("CANNOT_HAVE_MULTIPLE_PRODUCT_EXTENSIONS_PER_CAMPAIGN")
1330
+ CANNOT_HAVE_MULTIPLE_SITELINKS_EXTENSIONS_PER_CAMPAIGN = AdExtensionErrorReason.new("CANNOT_HAVE_MULTIPLE_SITELINKS_EXTENSIONS_PER_CAMPAIGN")
1331
+ DISALLOWED_NUMBER_TYPE = AdExtensionErrorReason.new("DISALLOWED_NUMBER_TYPE")
1332
+ INVALID_AUTH_TOKEN_FOR_EMAIL = AdExtensionErrorReason.new("INVALID_AUTH_TOKEN_FOR_EMAIL")
1333
+ INVALID_COUNTRY_CODE = AdExtensionErrorReason.new("INVALID_COUNTRY_CODE")
1334
+ INVALID_DESTINATION_URL = AdExtensionErrorReason.new("INVALID_DESTINATION_URL")
1335
+ INVALID_DOMESTIC_PHONE_NUMBER_FORMAT = AdExtensionErrorReason.new("INVALID_DOMESTIC_PHONE_NUMBER_FORMAT")
1336
+ INVALID_EMAIL = AdExtensionErrorReason.new("INVALID_EMAIL")
1337
+ INVALID_ENCODED_LOCATION = AdExtensionErrorReason.new("INVALID_ENCODED_LOCATION")
1338
+ INVALID_ENUM_CONDITION_OPERATOR = AdExtensionErrorReason.new("INVALID_ENUM_CONDITION_OPERATOR")
1339
+ INVALID_ICON_DIMENSIONS = AdExtensionErrorReason.new("INVALID_ICON_DIMENSIONS")
1340
+ INVALID_ID = AdExtensionErrorReason.new("INVALID_ID")
1341
+ INVALID_IMAGE_DIMENSIONS = AdExtensionErrorReason.new("INVALID_IMAGE_DIMENSIONS")
1342
+ INVALID_INPUT = AdExtensionErrorReason.new("INVALID_INPUT")
1343
+ INVALID_LATITUDE = AdExtensionErrorReason.new("INVALID_LATITUDE")
1344
+ INVALID_LONGITUDE = AdExtensionErrorReason.new("INVALID_LONGITUDE")
1345
+ INVALID_PHONE_NUMBER = AdExtensionErrorReason.new("INVALID_PHONE_NUMBER")
1346
+ INVALID_STRING_CONDITION_OPERATOR = AdExtensionErrorReason.new("INVALID_STRING_CONDITION_OPERATOR")
1347
+ INVALID_TOLL_PHONE_NUMBER_FORMAT = AdExtensionErrorReason.new("INVALID_TOLL_PHONE_NUMBER_FORMAT")
1348
+ MEDIA_DOES_NOT_BELONG_TO_ACCOUNT = AdExtensionErrorReason.new("MEDIA_DOES_NOT_BELONG_TO_ACCOUNT")
1349
+ MEDIA_NOT_ICON_TYPE = AdExtensionErrorReason.new("MEDIA_NOT_ICON_TYPE")
1350
+ MEDIA_NOT_IMAGE_TYPE = AdExtensionErrorReason.new("MEDIA_NOT_IMAGE_TYPE")
1351
+ MISSING_ADVERTISER_NAME = AdExtensionErrorReason.new("MISSING_ADVERTISER_NAME")
1352
+ MISSING_AUTH_TOKEN = AdExtensionErrorReason.new("MISSING_AUTH_TOKEN")
1353
+ MISSING_CITY_NAME = AdExtensionErrorReason.new("MISSING_CITY_NAME")
1354
+ MISSING_CONDITION_OPERAND = AdExtensionErrorReason.new("MISSING_CONDITION_OPERAND")
1355
+ MISSING_CONDITION_STRING_VALUE = AdExtensionErrorReason.new("MISSING_CONDITION_STRING_VALUE")
1356
+ MISSING_COUNTRY_CODE = AdExtensionErrorReason.new("MISSING_COUNTRY_CODE")
1357
+ MISSING_EMAIL = AdExtensionErrorReason.new("MISSING_EMAIL")
1358
+ MISSING_ENCODED_LOCATION = AdExtensionErrorReason.new("MISSING_ENCODED_LOCATION")
1359
+ MISSING_POSTAL_CODE = AdExtensionErrorReason.new("MISSING_POSTAL_CODE")
1360
+ MISSING_STREET_ADDRESS = AdExtensionErrorReason.new("MISSING_STREET_ADDRESS")
1361
+ NOT_AUTHORIZED_TO_CREATE_EXTENSION = AdExtensionErrorReason.new("NOT_AUTHORIZED_TO_CREATE_EXTENSION")
1362
+ NUM_AND_GROUPS_OVER_LIMIT = AdExtensionErrorReason.new("NUM_AND_GROUPS_OVER_LIMIT")
1363
+ NUM_CONDITIONS_OVER_LIMIT = AdExtensionErrorReason.new("NUM_CONDITIONS_OVER_LIMIT")
1364
+ NUM_LOCATION_EXTENSIONS_OVER_LIMIT = AdExtensionErrorReason.new("NUM_LOCATION_EXTENSIONS_OVER_LIMIT")
1365
+ PHONE_NUMBER_NOT_SUPPORTED_FOR_COUNTRY = AdExtensionErrorReason.new("PHONE_NUMBER_NOT_SUPPORTED_FOR_COUNTRY")
1366
+ PREMIUM_RATE_NUMBER_NOT_ALLOWED = AdExtensionErrorReason.new("PREMIUM_RATE_NUMBER_NOT_ALLOWED")
1367
+ TOO_LONG = AdExtensionErrorReason.new("TOO_LONG")
1368
+ USER_NOT_PERMITTED_TO_CREATE_LBC_SYNC_LOCATION_EXTENSION = AdExtensionErrorReason.new("USER_NOT_PERMITTED_TO_CREATE_LBC_SYNC_LOCATION_EXTENSION")
1369
+ end
1370
+
1371
+ # AuthenticationError.Reason
1372
+ class AuthenticationErrorReason < ::String
1373
+ AUTHENTICATION_FAILED = AuthenticationErrorReason.new("AUTHENTICATION_FAILED")
1374
+ CLIENT_CUSTOMER_ID_INVALID = AuthenticationErrorReason.new("CLIENT_CUSTOMER_ID_INVALID")
1375
+ CLIENT_CUSTOMER_ID_IS_REQUIRED = AuthenticationErrorReason.new("CLIENT_CUSTOMER_ID_IS_REQUIRED")
1376
+ CLIENT_EMAIL_FAILED_TO_AUTHENTICATE = AuthenticationErrorReason.new("CLIENT_EMAIL_FAILED_TO_AUTHENTICATE")
1377
+ CLIENT_EMAIL_INVALID = AuthenticationErrorReason.new("CLIENT_EMAIL_INVALID")
1378
+ CLIENT_EMAIL_REQUIRED = AuthenticationErrorReason.new("CLIENT_EMAIL_REQUIRED")
1379
+ CUSTOMER_NOT_FOUND = AuthenticationErrorReason.new("CUSTOMER_NOT_FOUND")
1380
+ FAILED_TO_AUTHENTICATE_GOOGLE_ACCOUNT = AuthenticationErrorReason.new("FAILED_TO_AUTHENTICATE_GOOGLE_ACCOUNT")
1381
+ FAILED_TO_RETRIEVE_LOGIN_COOKIE = AuthenticationErrorReason.new("FAILED_TO_RETRIEVE_LOGIN_COOKIE")
1382
+ GOOGLE_ACCOUNT_COOKIE_INVALID = AuthenticationErrorReason.new("GOOGLE_ACCOUNT_COOKIE_INVALID")
1383
+ GOOGLE_ACCOUNT_DELETED = AuthenticationErrorReason.new("GOOGLE_ACCOUNT_DELETED")
1384
+ GOOGLE_ACCOUNT_USER_AND_ADS_USER_MISMATCH = AuthenticationErrorReason.new("GOOGLE_ACCOUNT_USER_AND_ADS_USER_MISMATCH")
1385
+ LOGIN_COOKIE_INVALID = AuthenticationErrorReason.new("LOGIN_COOKIE_INVALID")
1386
+ LOGIN_COOKIE_REQUIRED = AuthenticationErrorReason.new("LOGIN_COOKIE_REQUIRED")
1387
+ NOT_ADS_USER = AuthenticationErrorReason.new("NOT_ADS_USER")
1388
+ OAUTH_TOKEN_DISABLED = AuthenticationErrorReason.new("OAUTH_TOKEN_DISABLED")
1389
+ OAUTH_TOKEN_EXPIRED = AuthenticationErrorReason.new("OAUTH_TOKEN_EXPIRED")
1390
+ OAUTH_TOKEN_HEADER_INVALID = AuthenticationErrorReason.new("OAUTH_TOKEN_HEADER_INVALID")
1391
+ OAUTH_TOKEN_INVALID = AuthenticationErrorReason.new("OAUTH_TOKEN_INVALID")
1392
+ OAUTH_TOKEN_REVOKED = AuthenticationErrorReason.new("OAUTH_TOKEN_REVOKED")
1393
+ USER_ID_INVALID = AuthenticationErrorReason.new("USER_ID_INVALID")
1394
+ end
1395
+
1396
+ # AuthorizationError.Reason
1397
+ class AuthorizationErrorReason < ::String
1398
+ EFFECTIVE_USER_PERMISSION_DENIED = AuthorizationErrorReason.new("EFFECTIVE_USER_PERMISSION_DENIED")
1399
+ NO_ADWORDS_ACCOUNT_FOR_CUSTOMER = AuthorizationErrorReason.new("NO_ADWORDS_ACCOUNT_FOR_CUSTOMER")
1400
+ NO_CUSTOMER_FOUND = AuthorizationErrorReason.new("NO_CUSTOMER_FOUND")
1401
+ UNABLE_TO_AUTHORIZE = AuthorizationErrorReason.new("UNABLE_TO_AUTHORIZE")
1402
+ USER_HAS_READONLY_PERMISSION = AuthorizationErrorReason.new("USER_HAS_READONLY_PERMISSION")
1403
+ USER_PERMISSION_DENIED = AuthorizationErrorReason.new("USER_PERMISSION_DENIED")
1404
+ end
1405
+
1406
+ # CampaignAdExtension.ApprovalStatus
1407
+ class CampaignAdExtensionApprovalStatus < ::String
1408
+ APPROVED = CampaignAdExtensionApprovalStatus.new("APPROVED")
1409
+ DISAPPROVED = CampaignAdExtensionApprovalStatus.new("DISAPPROVED")
1410
+ UNCHECKED = CampaignAdExtensionApprovalStatus.new("UNCHECKED")
1411
+ end
1412
+
1413
+ # CampaignAdExtension.Status
1414
+ class CampaignAdExtensionStatus < ::String
1415
+ ACTIVE = CampaignAdExtensionStatus.new("ACTIVE")
1416
+ DELETED = CampaignAdExtensionStatus.new("DELETED")
1417
+ end
1418
+
1419
+ # CampaignAdExtensionError.Reason
1420
+ class CampaignAdExtensionErrorReason < ::String
1421
+ ADEXTENSION_NOT_UNDER_CAMPAIGN = CampaignAdExtensionErrorReason.new("ADEXTENSION_NOT_UNDER_CAMPAIGN")
1422
+ CANNOT_ADD_DELETED_CAMPAIGN_ADEXTENSION = CampaignAdExtensionErrorReason.new("CANNOT_ADD_DELETED_CAMPAIGN_ADEXTENSION")
1423
+ CANNOT_OPERATE_ON_DELETED_CAMPAIGN_ADEXTENSION = CampaignAdExtensionErrorReason.new("CANNOT_OPERATE_ON_DELETED_CAMPAIGN_ADEXTENSION")
1424
+ INVALID_ADEXTENSION_ID = CampaignAdExtensionErrorReason.new("INVALID_ADEXTENSION_ID")
1425
+ MISSING_ADEXTENSION_ID = CampaignAdExtensionErrorReason.new("MISSING_ADEXTENSION_ID")
1426
+ MUST_USE_CONCRETE_ADEXTENSION = CampaignAdExtensionErrorReason.new("MUST_USE_CONCRETE_ADEXTENSION")
1427
+ MUST_USE_CONCRETE_ADEXTENSION_DURING_ADD = CampaignAdExtensionErrorReason.new("MUST_USE_CONCRETE_ADEXTENSION_DURING_ADD")
1428
+ UNKNOWN_ERROR = CampaignAdExtensionErrorReason.new("UNKNOWN_ERROR")
1429
+ end
1430
+
1431
+ # ClientTermsError.Reason
1432
+ class ClientTermsErrorReason < ::String
1433
+ INCOMPLETE_SIGNUP_CURRENT_ADWORDS_TNC_NOT_AGREED = ClientTermsErrorReason.new("INCOMPLETE_SIGNUP_CURRENT_ADWORDS_TNC_NOT_AGREED")
1434
+ end
1435
+
1436
+ # DatabaseError.Reason
1437
+ class DatabaseErrorReason < ::String
1438
+ CAMPAIGN_PRODUCT_NOT_SUPPORTED = DatabaseErrorReason.new("CAMPAIGN_PRODUCT_NOT_SUPPORTED")
1439
+ CONCURRENT_MODIFICATION = DatabaseErrorReason.new("CONCURRENT_MODIFICATION")
1440
+ DATABASE_ERROR = DatabaseErrorReason.new("DATABASE_ERROR")
1441
+ DUPLICATE_KEY = DatabaseErrorReason.new("DUPLICATE_KEY")
1442
+ PERMISSION_DENIED = DatabaseErrorReason.new("PERMISSION_DENIED")
1443
+ UNKNOWN = DatabaseErrorReason.new("UNKNOWN")
1444
+ end
1445
+
1446
+ # DistinctError.Reason
1447
+ class DistinctErrorReason < ::String
1448
+ DUPLICATE_ELEMENT = DistinctErrorReason.new("DUPLICATE_ELEMENT")
1449
+ DUPLICATE_TYPE = DistinctErrorReason.new("DUPLICATE_TYPE")
1450
+ end
1451
+
1452
+ # EntityNotFound.Reason
1453
+ class EntityNotFoundReason < ::String
1454
+ INVALID_ID = EntityNotFoundReason.new("INVALID_ID")
1455
+ end
1456
+
1457
+ # InternalApiError.Reason
1458
+ class InternalApiErrorReason < ::String
1459
+ UNEXPECTED_INTERNAL_API_ERROR = InternalApiErrorReason.new("UNEXPECTED_INTERNAL_API_ERROR")
1460
+ UNKNOWN = InternalApiErrorReason.new("UNKNOWN")
1461
+ end
1462
+
1463
+ # LocationExtension.Source
1464
+ class LocationExtensionSource < ::String
1465
+ ADWORDS_FRONTEND = LocationExtensionSource.new("ADWORDS_FRONTEND")
1466
+ LBC_SYNC = LocationExtensionSource.new("LBC_SYNC")
1467
+ end
1468
+
1469
+ # NewEntityCreationError.Reason
1470
+ class NewEntityCreationErrorReason < ::String
1471
+ CANNOT_SET_ID_FOR_ADD = NewEntityCreationErrorReason.new("CANNOT_SET_ID_FOR_ADD")
1472
+ end
1473
+
1474
+ # NotEmptyError.Reason
1475
+ class NotEmptyErrorReason < ::String
1476
+ EMPTY_LIST = NotEmptyErrorReason.new("EMPTY_LIST")
1477
+ end
1478
+
1479
+ # NotWhitelistedError.Reason
1480
+ class NotWhitelistedErrorReason < ::String
1481
+ CUSTOMER_NOT_WHITELISTED_FOR_API = NotWhitelistedErrorReason.new("CUSTOMER_NOT_WHITELISTED_FOR_API")
1482
+ end
1483
+
1484
+ # NullError.Reason
1485
+ class NullErrorReason < ::String
1486
+ NULL_CONTENT = NullErrorReason.new("NULL_CONTENT")
1487
+ end
1488
+
1489
+ # OperationAccessDenied.Reason
1490
+ class OperationAccessDeniedReason < ::String
1491
+ ACTION_NOT_PERMITTED = OperationAccessDeniedReason.new("ACTION_NOT_PERMITTED")
1492
+ ADD_OPERATION_NOT_PERMITTED = OperationAccessDeniedReason.new("ADD_OPERATION_NOT_PERMITTED")
1493
+ MUTATE_ACTION_NOT_PERMITTED_FOR_CLIENT = OperationAccessDeniedReason.new("MUTATE_ACTION_NOT_PERMITTED_FOR_CLIENT")
1494
+ REMOVE_OPERATION_NOT_PERMITTED = OperationAccessDeniedReason.new("REMOVE_OPERATION_NOT_PERMITTED")
1495
+ SET_OPERATION_NOT_PERMITTED = OperationAccessDeniedReason.new("SET_OPERATION_NOT_PERMITTED")
1496
+ UNKNOWN = OperationAccessDeniedReason.new("UNKNOWN")
1497
+ end
1498
+
1499
+ # Operator
1500
+ class Operator < ::String
1501
+ ADD = Operator.new("ADD")
1502
+ REMOVE = Operator.new("REMOVE")
1503
+ SET = Operator.new("SET")
1504
+ end
1505
+
1506
+ # OperatorError.Reason
1507
+ class OperatorErrorReason < ::String
1508
+ OPERATOR_NOT_SUPPORTED = OperatorErrorReason.new("OPERATOR_NOT_SUPPORTED")
1509
+ end
1510
+
1511
+ # PagingError.Reason
1512
+ class PagingErrorReason < ::String
1513
+ NUMBER_OF_RESULTS_CANNOT_BE_NEGATIVE = PagingErrorReason.new("NUMBER_OF_RESULTS_CANNOT_BE_NEGATIVE")
1514
+ START_INDEX_CANNOT_BE_NEGATIVE = PagingErrorReason.new("START_INDEX_CANNOT_BE_NEGATIVE")
1515
+ UNKNOWN = PagingErrorReason.new("UNKNOWN")
1516
+ end
1517
+
1518
+ # Predicate.Operator
1519
+ class PredicateOperator < ::String
1520
+ CONTAINS = PredicateOperator.new("CONTAINS")
1521
+ CONTAINS_IGNORE_CASE = PredicateOperator.new("CONTAINS_IGNORE_CASE")
1522
+ DOES_NOT_CONTAIN = PredicateOperator.new("DOES_NOT_CONTAIN")
1523
+ DOES_NOT_CONTAIN_IGNORE_CASE = PredicateOperator.new("DOES_NOT_CONTAIN_IGNORE_CASE")
1524
+ EQUALS = PredicateOperator.new("EQUALS")
1525
+ GREATER_THAN = PredicateOperator.new("GREATER_THAN")
1526
+ GREATER_THAN_EQUALS = PredicateOperator.new("GREATER_THAN_EQUALS")
1527
+ IN = PredicateOperator.new("IN")
1528
+ LESS_THAN = PredicateOperator.new("LESS_THAN")
1529
+ LESS_THAN_EQUALS = PredicateOperator.new("LESS_THAN_EQUALS")
1530
+ NOT_EQUALS = PredicateOperator.new("NOT_EQUALS")
1531
+ NOT_IN = PredicateOperator.new("NOT_IN")
1532
+ STARTS_WITH = PredicateOperator.new("STARTS_WITH")
1533
+ STARTS_WITH_IGNORE_CASE = PredicateOperator.new("STARTS_WITH_IGNORE_CASE")
1534
+ UNKNOWN = PredicateOperator.new("UNKNOWN")
1535
+ end
1536
+
1537
+ # QuotaCheckError.Reason
1538
+ class QuotaCheckErrorReason < ::String
1539
+ ACCOUNT_DELINQUENT = QuotaCheckErrorReason.new("ACCOUNT_DELINQUENT")
1540
+ ACCOUNT_INACCESSIBLE = QuotaCheckErrorReason.new("ACCOUNT_INACCESSIBLE")
1541
+ ACCOUNT_INACTIVE = QuotaCheckErrorReason.new("ACCOUNT_INACTIVE")
1542
+ INCOMPLETE_SIGNUP = QuotaCheckErrorReason.new("INCOMPLETE_SIGNUP")
1543
+ INCOMPLETE_SIGNUP_LATEST_ADWORDS_API_TNC_NOT_AGREED = QuotaCheckErrorReason.new("INCOMPLETE_SIGNUP_LATEST_ADWORDS_API_TNC_NOT_AGREED")
1544
+ INCOMPLETE_SIGNUP_NO_BILLING_INFO = QuotaCheckErrorReason.new("INCOMPLETE_SIGNUP_NO_BILLING_INFO")
1545
+ INCOMPLETE_SIGNUP_USER_INFO_MISSING = QuotaCheckErrorReason.new("INCOMPLETE_SIGNUP_USER_INFO_MISSING")
1546
+ INCOMPLETE_SIGNUP_USER_INFO_PENDING = QuotaCheckErrorReason.new("INCOMPLETE_SIGNUP_USER_INFO_PENDING")
1547
+ INCOMPLETE_SIGNUP_USER_INFO_REJECTED = QuotaCheckErrorReason.new("INCOMPLETE_SIGNUP_USER_INFO_REJECTED")
1548
+ INVALID_TOKEN_HEADER = QuotaCheckErrorReason.new("INVALID_TOKEN_HEADER")
1549
+ MONTHLY_BUDGET_REACHED = QuotaCheckErrorReason.new("MONTHLY_BUDGET_REACHED")
1550
+ QUOTA_EXCEEDED = QuotaCheckErrorReason.new("QUOTA_EXCEEDED")
1551
+ end
1552
+
1553
+ # RangeError.Reason
1554
+ class RangeErrorReason < ::String
1555
+ TOO_HIGH = RangeErrorReason.new("TOO_HIGH")
1556
+ TOO_LOW = RangeErrorReason.new("TOO_LOW")
1557
+ end
1558
+
1559
+ # RateExceededError.Reason
1560
+ class RateExceededErrorReason < ::String
1561
+ RATE_EXCEEDED = RateExceededErrorReason.new("RATE_EXCEEDED")
1562
+ end
1563
+
1564
+ # ReadOnlyError.Reason
1565
+ class ReadOnlyErrorReason < ::String
1566
+ READ_ONLY = ReadOnlyErrorReason.new("READ_ONLY")
1567
+ end
1568
+
1569
+ # RegionCodeError.Reason
1570
+ class RegionCodeErrorReason < ::String
1571
+ INVALID_REGION_CODE = RegionCodeErrorReason.new("INVALID_REGION_CODE")
1572
+ end
1573
+
1574
+ # RejectedError.Reason
1575
+ class RejectedErrorReason < ::String
1576
+ UNKNOWN_VALUE = RejectedErrorReason.new("UNKNOWN_VALUE")
1577
+ end
1578
+
1579
+ # RequestError.Reason
1580
+ class RequestErrorReason < ::String
1581
+ INVALID_INPUT = RequestErrorReason.new("INVALID_INPUT")
1582
+ UNKNOWN = RequestErrorReason.new("UNKNOWN")
1583
+ end
1584
+
1585
+ # RequiredError.Reason
1586
+ class RequiredErrorReason < ::String
1587
+ REQUIRED = RequiredErrorReason.new("REQUIRED")
1588
+ end
1589
+
1590
+ # SelectorError.Reason
1591
+ class SelectorErrorReason < ::String
1592
+ INVALID_FIELD_NAME = SelectorErrorReason.new("INVALID_FIELD_NAME")
1593
+ INVALID_FIELD_SELECTION = SelectorErrorReason.new("INVALID_FIELD_SELECTION")
1594
+ INVALID_PREDICATE_ENUM_VALUE = SelectorErrorReason.new("INVALID_PREDICATE_ENUM_VALUE")
1595
+ INVALID_PREDICATE_FIELD_NAME = SelectorErrorReason.new("INVALID_PREDICATE_FIELD_NAME")
1596
+ INVALID_PREDICATE_OPERATOR = SelectorErrorReason.new("INVALID_PREDICATE_OPERATOR")
1597
+ INVALID_PREDICATE_VALUE = SelectorErrorReason.new("INVALID_PREDICATE_VALUE")
1598
+ MISSING_FIELDS = SelectorErrorReason.new("MISSING_FIELDS")
1599
+ MISSING_PREDICATE_OPERATOR = SelectorErrorReason.new("MISSING_PREDICATE_OPERATOR")
1600
+ MISSING_PREDICATE_VALUES = SelectorErrorReason.new("MISSING_PREDICATE_VALUES")
1601
+ OPERATOR_DOES_NOT_SUPPORT_MULTIPLE_VALUES = SelectorErrorReason.new("OPERATOR_DOES_NOT_SUPPORT_MULTIPLE_VALUES")
1602
+ UNKNOWN_ERROR = SelectorErrorReason.new("UNKNOWN_ERROR")
1603
+ end
1604
+
1605
+ # SizeLimitError.Reason
1606
+ class SizeLimitErrorReason < ::String
1607
+ REQUEST_SIZE_LIMIT_EXCEEDED = SizeLimitErrorReason.new("REQUEST_SIZE_LIMIT_EXCEEDED")
1608
+ RESPONSE_SIZE_LIMIT_EXCEEDED = SizeLimitErrorReason.new("RESPONSE_SIZE_LIMIT_EXCEEDED")
1609
+ UNKNOWN = SizeLimitErrorReason.new("UNKNOWN")
1610
+ end
1611
+
1612
+ # SortOrder
1613
+ class SortOrder < ::String
1614
+ ASCENDING = SortOrder.new("ASCENDING")
1615
+ DESCENDING = SortOrder.new("DESCENDING")
1616
+ end
1617
+
1618
+ # Stats.Network
1619
+ class StatsNetwork < ::String
1620
+ ALL = StatsNetwork.new("ALL")
1621
+ CONTENT = StatsNetwork.new("CONTENT")
1622
+ CONTENT_KEYWORD_BID = StatsNetwork.new("CONTENT_KEYWORD_BID")
1623
+ CONTENT_PLACEMENT_BID = StatsNetwork.new("CONTENT_PLACEMENT_BID")
1624
+ GOOGLE_SEARCH = StatsNetwork.new("GOOGLE_SEARCH")
1625
+ SEARCH = StatsNetwork.new("SEARCH")
1626
+ SEARCH_NETWORK = StatsNetwork.new("SEARCH_NETWORK")
1627
+ UNKNOWN = StatsNetwork.new("UNKNOWN")
1628
+ end
1629
+
1630
+ # StringLengthError.Reason
1631
+ class StringLengthErrorReason < ::String
1632
+ TOO_LONG = StringLengthErrorReason.new("TOO_LONG")
1633
+ TOO_SHORT = StringLengthErrorReason.new("TOO_SHORT")
1634
+ end
1635
+
1636
+ # get
1637
+ # - serviceSelector - AdwordsApi::V201101::CampaignAdExtensionService::Selector
1638
+ class Get #:nodoc: all
1639
+ attr_accessor :serviceSelector
1640
+
1641
+ def initialize(serviceSelector = nil)
1642
+ @serviceSelector = serviceSelector
1643
+ end
1644
+ end
1645
+
1646
+ # getResponse
1647
+ # - rval - AdwordsApi::V201101::CampaignAdExtensionService::CampaignAdExtensionPage
1648
+ class GetResponse #:nodoc: all
1649
+ attr_accessor :rval
1650
+
1651
+ def initialize(rval = nil)
1652
+ @rval = rval
1653
+ end
1654
+ end
1655
+
1656
+ # mutate
1657
+ # - operations - AdwordsApi::V201101::CampaignAdExtensionService::CampaignAdExtensionOperation
1658
+ class Mutate #:nodoc: all
1659
+ attr_accessor :operations
1660
+
1661
+ def initialize(operations = [])
1662
+ @operations = operations
1663
+ end
1664
+ end
1665
+
1666
+ # mutateResponse
1667
+ # - rval - AdwordsApi::V201101::CampaignAdExtensionService::CampaignAdExtensionReturnValue
1668
+ class MutateResponse #:nodoc: all
1669
+ attr_accessor :rval
1670
+
1671
+ def initialize(rval = nil)
1672
+ @rval = rval
1673
+ end
1674
+ end
1675
+
1676
+
1677
+ end; end; end