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/AdExtensionOverrideServiceDriver.rb'
4
+
5
+ module AdwordsApi
6
+ module V201101
7
+ module AdExtensionOverrideService
8
+
9
+ # Wrapper class for the v201101 AdExtensionOverrideService service.
10
+ # This class is automatically generated.
11
+ class AdExtensionOverrideServiceWrapper
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::AdExtensionOverrideService::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::AdExtensionOverrideService::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 AdExtensionOverrideServiceWrapper.
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::AdExtensionOverrideService
51
+ @version = :v201101
52
+ @service = :AdExtensionOverrideService
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/AdExtensionOverrideService.html#get] method of the AdExtensionOverrideService service.
272
+ # Check {the online documentation for this method}[http://code.google.com/apis/adwords/docs/reference/v201101/AdExtensionOverrideService.html#get].
273
+ #
274
+ # Args:
275
+ # - selector: AdwordsApi::V201101::AdExtensionOverrideService::AdExtensionOverrideSelector
276
+ #
277
+ # Returns:
278
+ # - rval: AdwordsApi::V201101::AdExtensionOverrideService::AdExtensionOverridePage
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::AdExtensionOverrideService::AdExtensionOverrideSelector)
287
+ arg_array << convert_to_object(selector, AdwordsApi::V201101::AdExtensionOverrideService::Get,
288
+ 'selector')
289
+ # Construct request object and make API call
290
+ obj = AdwordsApi::V201101::AdExtensionOverrideService::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/AdExtensionOverrideService.html#mutate] method of the AdExtensionOverrideService service.
301
+ # Check {the online documentation for this method}[http://code.google.com/apis/adwords/docs/reference/v201101/AdExtensionOverrideService.html#mutate].
302
+ #
303
+ # Args:
304
+ # - operations: SOAP::SOAPArray of AdwordsApi::V201101::AdExtensionOverrideService::AdExtensionOverrideOperation
305
+ #
306
+ # Returns:
307
+ # - rval: AdwordsApi::V201101::AdExtensionOverrideService::AdExtensionOverrideReturnValue
308
+ #
309
+ # Raises:
310
+ # Error::ApiError (or a subclass thereof) if a SOAP fault occurs.
311
+ #
312
+ def mutate(operations)
313
+ begin
314
+ arg_array = []
315
+ validate_object(operations, SOAP::SOAPArray)
316
+ arg_array << convert_to_object(operations, AdwordsApi::V201101::AdExtensionOverrideService::Mutate,
317
+ 'operations')
318
+ # Construct request object and make API call
319
+ obj = AdwordsApi::V201101::AdExtensionOverrideService::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,2585 @@
1
+ require 'xsd/qname'
2
+
3
+ module AdwordsApi; module V201101; module AdGroupAdService
4
+
5
+
6
+ # DateRange
7
+ # - min - SOAP::SOAPString
8
+ # - max - SOAP::SOAPString
9
+ class DateRange
10
+ attr_accessor :min
11
+ attr_accessor :max
12
+
13
+ def initialize(min = nil, max = nil)
14
+ @min = min
15
+ @max = max
16
+ end
17
+ end
18
+
19
+ # Dimensions
20
+ # - width - SOAP::SOAPInt
21
+ # - height - SOAP::SOAPInt
22
+ class Dimensions
23
+ attr_accessor :width
24
+ attr_accessor :height
25
+
26
+ def initialize(width = nil, height = nil)
27
+ @width = width
28
+ @height = height
29
+ end
30
+ end
31
+
32
+ # Media_Size_DimensionsMapEntry
33
+ # - key - AdwordsApi::V201101::AdGroupAdService::MediaSize
34
+ # - value - AdwordsApi::V201101::AdGroupAdService::Dimensions
35
+ class Media_Size_DimensionsMapEntry
36
+ attr_accessor :key
37
+ attr_accessor :value
38
+
39
+ def initialize(key = nil, value = nil)
40
+ @key = key
41
+ @value = value
42
+ end
43
+ end
44
+
45
+ # Media_Size_StringMapEntry
46
+ # - key - AdwordsApi::V201101::AdGroupAdService::MediaSize
47
+ # - value - SOAP::SOAPString
48
+ class Media_Size_StringMapEntry
49
+ attr_accessor :key
50
+ attr_accessor :value
51
+
52
+ def initialize(key = nil, value = nil)
53
+ @key = key
54
+ @value = value
55
+ end
56
+ end
57
+
58
+ # OrderBy
59
+ # - field - SOAP::SOAPString
60
+ # - sortOrder - AdwordsApi::V201101::AdGroupAdService::SortOrder
61
+ class OrderBy
62
+ attr_accessor :field
63
+ attr_accessor :sortOrder
64
+
65
+ def initialize(field = nil, sortOrder = nil)
66
+ @field = field
67
+ @sortOrder = sortOrder
68
+ end
69
+ end
70
+
71
+ # Paging
72
+ # - startIndex - SOAP::SOAPInt
73
+ # - numberResults - SOAP::SOAPInt
74
+ class Paging
75
+ attr_accessor :startIndex
76
+ attr_accessor :numberResults
77
+
78
+ def initialize(startIndex = nil, numberResults = nil)
79
+ @startIndex = startIndex
80
+ @numberResults = numberResults
81
+ end
82
+ end
83
+
84
+ # PolicyViolationError.Part
85
+ # - index - SOAP::SOAPInt
86
+ # - length - SOAP::SOAPInt
87
+ class PolicyViolationErrorPart
88
+ attr_accessor :index
89
+ attr_accessor :length
90
+
91
+ def initialize(index = nil, length = nil)
92
+ @index = index
93
+ @length = length
94
+ end
95
+ end
96
+
97
+ # PolicyViolationKey
98
+ # - policyName - SOAP::SOAPString
99
+ # - violatingText - SOAP::SOAPString
100
+ class PolicyViolationKey
101
+ attr_accessor :policyName
102
+ attr_accessor :violatingText
103
+
104
+ def initialize(policyName = nil, violatingText = nil)
105
+ @policyName = policyName
106
+ @violatingText = violatingText
107
+ end
108
+ end
109
+
110
+ # Predicate
111
+ # - field - SOAP::SOAPString
112
+ # - operator - AdwordsApi::V201101::AdGroupAdService::PredicateOperator
113
+ # - values - SOAP::SOAPString
114
+ class Predicate
115
+ attr_accessor :field
116
+ attr_accessor :operator
117
+ attr_accessor :values
118
+
119
+ def initialize(field = nil, operator = nil, values = [])
120
+ @field = field
121
+ @operator = operator
122
+ @values = values
123
+ end
124
+ end
125
+
126
+ # SoapHeader
127
+ # - authToken - SOAP::SOAPString
128
+ # - clientCustomerId - SOAP::SOAPString
129
+ # - clientEmail - SOAP::SOAPString
130
+ # - developerToken - SOAP::SOAPString
131
+ # - userAgent - SOAP::SOAPString
132
+ # - validateOnly - SOAP::SOAPBoolean
133
+ # - partialFailure - SOAP::SOAPBoolean
134
+ class SoapHeader
135
+ attr_accessor :authToken
136
+ attr_accessor :clientCustomerId
137
+ attr_accessor :clientEmail
138
+ attr_accessor :developerToken
139
+ attr_accessor :userAgent
140
+ attr_accessor :validateOnly
141
+ attr_accessor :partialFailure
142
+
143
+ def initialize(authToken = nil, clientCustomerId = nil, clientEmail = nil, developerToken = nil, userAgent = nil, validateOnly = nil, partialFailure = nil)
144
+ @authToken = authToken
145
+ @clientCustomerId = clientCustomerId
146
+ @clientEmail = clientEmail
147
+ @developerToken = developerToken
148
+ @userAgent = userAgent
149
+ @validateOnly = validateOnly
150
+ @partialFailure = partialFailure
151
+ end
152
+ end
153
+
154
+ # SoapResponseHeader
155
+ # - requestId - SOAP::SOAPString
156
+ # - operations - SOAP::SOAPLong
157
+ # - responseTime - SOAP::SOAPLong
158
+ # - units - SOAP::SOAPLong
159
+ class SoapResponseHeader
160
+ attr_accessor :requestId
161
+ attr_accessor :operations
162
+ attr_accessor :responseTime
163
+ attr_accessor :units
164
+
165
+ def initialize(requestId = nil, operations = nil, responseTime = nil, units = nil)
166
+ @requestId = requestId
167
+ @operations = operations
168
+ @responseTime = responseTime
169
+ @units = units
170
+ end
171
+ end
172
+
173
+ # AdGroupAdExperimentData
174
+ # - experimentId - SOAP::SOAPLong
175
+ # - experimentDeltaStatus - AdwordsApi::V201101::AdGroupAdService::ExperimentDeltaStatus
176
+ # - experimentDataStatus - AdwordsApi::V201101::AdGroupAdService::ExperimentDataStatus
177
+ class AdGroupAdExperimentData
178
+ attr_accessor :experimentId
179
+ attr_accessor :experimentDeltaStatus
180
+ attr_accessor :experimentDataStatus
181
+
182
+ def initialize(experimentId = nil, experimentDeltaStatus = nil, experimentDataStatus = nil)
183
+ @experimentId = experimentId
184
+ @experimentDeltaStatus = experimentDeltaStatus
185
+ @experimentDataStatus = experimentDataStatus
186
+ end
187
+ end
188
+
189
+ # AdUnionId
190
+ # - id - SOAP::SOAPLong
191
+ # - adUnionId_Type - SOAP::SOAPString
192
+ class AdUnionId
193
+ attr_accessor :id
194
+ attr_accessor :adUnionId_Type
195
+
196
+ def initialize(id = nil, adUnionId_Type = nil)
197
+ @id = id
198
+ @adUnionId_Type = adUnionId_Type
199
+ end
200
+ end
201
+
202
+ # TempAdUnionId
203
+ # - id - SOAP::SOAPLong
204
+ # - adUnionId_Type - SOAP::SOAPString
205
+ class TempAdUnionId < AdUnionId
206
+ attr_accessor :id
207
+ attr_accessor :adUnionId_Type
208
+
209
+ def initialize(id = nil, adUnionId_Type = nil)
210
+ @id = id
211
+ @adUnionId_Type = adUnionId_Type
212
+ end
213
+ end
214
+
215
+ # ComparableValue
216
+ # abstract
217
+ # - comparableValue_Type - SOAP::SOAPString
218
+ class ComparableValue
219
+ attr_accessor :comparableValue_Type
220
+
221
+ def initialize(comparableValue_Type = nil)
222
+ @comparableValue_Type = comparableValue_Type
223
+ end
224
+ end
225
+
226
+ # Money
227
+ # - comparableValue_Type - SOAP::SOAPString
228
+ # - microAmount - SOAP::SOAPLong
229
+ class Money < ComparableValue
230
+ attr_accessor :comparableValue_Type
231
+ attr_accessor :microAmount
232
+
233
+ def initialize(comparableValue_Type = nil, microAmount = nil)
234
+ @comparableValue_Type = comparableValue_Type
235
+ @microAmount = microAmount
236
+ end
237
+ end
238
+
239
+ # NumberValue
240
+ # abstract
241
+ # - comparableValue_Type - SOAP::SOAPString
242
+ class NumberValue < ComparableValue
243
+ attr_accessor :comparableValue_Type
244
+
245
+ def initialize(comparableValue_Type = nil)
246
+ @comparableValue_Type = comparableValue_Type
247
+ end
248
+ end
249
+
250
+ # DoubleValue
251
+ # - comparableValue_Type - SOAP::SOAPString
252
+ # - number - SOAP::SOAPDouble
253
+ class DoubleValue < NumberValue
254
+ attr_accessor :comparableValue_Type
255
+ attr_accessor :number
256
+
257
+ def initialize(comparableValue_Type = nil, number = nil)
258
+ @comparableValue_Type = comparableValue_Type
259
+ @number = number
260
+ end
261
+ end
262
+
263
+ # LongValue
264
+ # - comparableValue_Type - SOAP::SOAPString
265
+ # - number - SOAP::SOAPLong
266
+ class LongValue < NumberValue
267
+ attr_accessor :comparableValue_Type
268
+ attr_accessor :number
269
+
270
+ def initialize(comparableValue_Type = nil, number = nil)
271
+ @comparableValue_Type = comparableValue_Type
272
+ @number = number
273
+ end
274
+ end
275
+
276
+ # ExemptionRequest
277
+ # - key - AdwordsApi::V201101::AdGroupAdService::PolicyViolationKey
278
+ class ExemptionRequest
279
+ attr_accessor :key
280
+
281
+ def initialize(key = nil)
282
+ @key = key
283
+ end
284
+ end
285
+
286
+ # Media
287
+ # - mediaId - SOAP::SOAPLong
288
+ # - type - AdwordsApi::V201101::AdGroupAdService::MediaMediaType
289
+ # - referenceId - SOAP::SOAPLong
290
+ # - dimensions - AdwordsApi::V201101::AdGroupAdService::Media_Size_DimensionsMapEntry
291
+ # - urls - AdwordsApi::V201101::AdGroupAdService::Media_Size_StringMapEntry
292
+ # - mimeType - AdwordsApi::V201101::AdGroupAdService::MediaMimeType
293
+ # - sourceUrl - SOAP::SOAPString
294
+ # - name - SOAP::SOAPString
295
+ # - fileSize - SOAP::SOAPLong
296
+ # - creationTime - SOAP::SOAPString
297
+ # - media_Type - SOAP::SOAPString
298
+ class Media
299
+ attr_accessor :mediaId
300
+ attr_accessor :type
301
+ attr_accessor :referenceId
302
+ attr_accessor :dimensions
303
+ attr_accessor :urls
304
+ attr_accessor :mimeType
305
+ attr_accessor :sourceUrl
306
+ attr_accessor :name
307
+ attr_accessor :fileSize
308
+ attr_accessor :creationTime
309
+ attr_accessor :media_Type
310
+
311
+ def initialize(mediaId = nil, type = nil, referenceId = nil, dimensions = [], urls = [], mimeType = nil, sourceUrl = nil, name = nil, fileSize = nil, creationTime = nil, media_Type = nil)
312
+ @mediaId = mediaId
313
+ @type = type
314
+ @referenceId = referenceId
315
+ @dimensions = dimensions
316
+ @urls = urls
317
+ @mimeType = mimeType
318
+ @sourceUrl = sourceUrl
319
+ @name = name
320
+ @fileSize = fileSize
321
+ @creationTime = creationTime
322
+ @media_Type = media_Type
323
+ end
324
+ end
325
+
326
+ # Audio
327
+ # - mediaId - SOAP::SOAPLong
328
+ # - type - AdwordsApi::V201101::AdGroupAdService::MediaMediaType
329
+ # - referenceId - SOAP::SOAPLong
330
+ # - dimensions - AdwordsApi::V201101::AdGroupAdService::Media_Size_DimensionsMapEntry
331
+ # - urls - AdwordsApi::V201101::AdGroupAdService::Media_Size_StringMapEntry
332
+ # - mimeType - AdwordsApi::V201101::AdGroupAdService::MediaMimeType
333
+ # - sourceUrl - SOAP::SOAPString
334
+ # - name - SOAP::SOAPString
335
+ # - fileSize - SOAP::SOAPLong
336
+ # - creationTime - SOAP::SOAPString
337
+ # - media_Type - SOAP::SOAPString
338
+ # - durationMillis - SOAP::SOAPLong
339
+ # - streamingUrl - SOAP::SOAPString
340
+ # - readyToPlayOnTheWeb - SOAP::SOAPBoolean
341
+ class Audio < Media
342
+ attr_accessor :mediaId
343
+ attr_accessor :type
344
+ attr_accessor :referenceId
345
+ attr_accessor :dimensions
346
+ attr_accessor :urls
347
+ attr_accessor :mimeType
348
+ attr_accessor :sourceUrl
349
+ attr_accessor :name
350
+ attr_accessor :fileSize
351
+ attr_accessor :creationTime
352
+ attr_accessor :media_Type
353
+ attr_accessor :durationMillis
354
+ attr_accessor :streamingUrl
355
+ attr_accessor :readyToPlayOnTheWeb
356
+
357
+ def initialize(mediaId = nil, type = nil, referenceId = nil, dimensions = [], urls = [], mimeType = nil, sourceUrl = nil, name = nil, fileSize = nil, creationTime = nil, media_Type = nil, durationMillis = nil, streamingUrl = nil, readyToPlayOnTheWeb = nil)
358
+ @mediaId = mediaId
359
+ @type = type
360
+ @referenceId = referenceId
361
+ @dimensions = dimensions
362
+ @urls = urls
363
+ @mimeType = mimeType
364
+ @sourceUrl = sourceUrl
365
+ @name = name
366
+ @fileSize = fileSize
367
+ @creationTime = creationTime
368
+ @media_Type = media_Type
369
+ @durationMillis = durationMillis
370
+ @streamingUrl = streamingUrl
371
+ @readyToPlayOnTheWeb = readyToPlayOnTheWeb
372
+ end
373
+ end
374
+
375
+ # Image
376
+ # - mediaId - SOAP::SOAPLong
377
+ # - type - AdwordsApi::V201101::AdGroupAdService::MediaMediaType
378
+ # - referenceId - SOAP::SOAPLong
379
+ # - dimensions - AdwordsApi::V201101::AdGroupAdService::Media_Size_DimensionsMapEntry
380
+ # - urls - AdwordsApi::V201101::AdGroupAdService::Media_Size_StringMapEntry
381
+ # - mimeType - AdwordsApi::V201101::AdGroupAdService::MediaMimeType
382
+ # - sourceUrl - SOAP::SOAPString
383
+ # - name - SOAP::SOAPString
384
+ # - fileSize - SOAP::SOAPLong
385
+ # - creationTime - SOAP::SOAPString
386
+ # - media_Type - SOAP::SOAPString
387
+ # - data - SOAP::SOAPBase64
388
+ class Image < Media
389
+ attr_accessor :mediaId
390
+ attr_accessor :type
391
+ attr_accessor :referenceId
392
+ attr_accessor :dimensions
393
+ attr_accessor :urls
394
+ attr_accessor :mimeType
395
+ attr_accessor :sourceUrl
396
+ attr_accessor :name
397
+ attr_accessor :fileSize
398
+ attr_accessor :creationTime
399
+ attr_accessor :media_Type
400
+ attr_accessor :data
401
+
402
+ def initialize(mediaId = nil, type = nil, referenceId = nil, dimensions = [], urls = [], mimeType = nil, sourceUrl = nil, name = nil, fileSize = nil, creationTime = nil, media_Type = nil, data = nil)
403
+ @mediaId = mediaId
404
+ @type = type
405
+ @referenceId = referenceId
406
+ @dimensions = dimensions
407
+ @urls = urls
408
+ @mimeType = mimeType
409
+ @sourceUrl = sourceUrl
410
+ @name = name
411
+ @fileSize = fileSize
412
+ @creationTime = creationTime
413
+ @media_Type = media_Type
414
+ @data = data
415
+ end
416
+ end
417
+
418
+ # Video
419
+ # - mediaId - SOAP::SOAPLong
420
+ # - type - AdwordsApi::V201101::AdGroupAdService::MediaMediaType
421
+ # - referenceId - SOAP::SOAPLong
422
+ # - dimensions - AdwordsApi::V201101::AdGroupAdService::Media_Size_DimensionsMapEntry
423
+ # - urls - AdwordsApi::V201101::AdGroupAdService::Media_Size_StringMapEntry
424
+ # - mimeType - AdwordsApi::V201101::AdGroupAdService::MediaMimeType
425
+ # - sourceUrl - SOAP::SOAPString
426
+ # - name - SOAP::SOAPString
427
+ # - fileSize - SOAP::SOAPLong
428
+ # - creationTime - SOAP::SOAPString
429
+ # - media_Type - SOAP::SOAPString
430
+ # - durationMillis - SOAP::SOAPLong
431
+ # - streamingUrl - SOAP::SOAPString
432
+ # - readyToPlayOnTheWeb - SOAP::SOAPBoolean
433
+ # - industryStandardCommercialIdentifier - SOAP::SOAPString
434
+ # - advertisingId - SOAP::SOAPString
435
+ # - youTubeVideoIdString - SOAP::SOAPString
436
+ class Video < Media
437
+ attr_accessor :mediaId
438
+ attr_accessor :type
439
+ attr_accessor :referenceId
440
+ attr_accessor :dimensions
441
+ attr_accessor :urls
442
+ attr_accessor :mimeType
443
+ attr_accessor :sourceUrl
444
+ attr_accessor :name
445
+ attr_accessor :fileSize
446
+ attr_accessor :creationTime
447
+ attr_accessor :media_Type
448
+ attr_accessor :durationMillis
449
+ attr_accessor :streamingUrl
450
+ attr_accessor :readyToPlayOnTheWeb
451
+ attr_accessor :industryStandardCommercialIdentifier
452
+ attr_accessor :advertisingId
453
+ attr_accessor :youTubeVideoIdString
454
+
455
+ def initialize(mediaId = nil, type = nil, referenceId = nil, dimensions = [], urls = [], mimeType = nil, sourceUrl = nil, name = nil, fileSize = nil, creationTime = nil, media_Type = nil, durationMillis = nil, streamingUrl = nil, readyToPlayOnTheWeb = nil, industryStandardCommercialIdentifier = nil, advertisingId = nil, youTubeVideoIdString = nil)
456
+ @mediaId = mediaId
457
+ @type = type
458
+ @referenceId = referenceId
459
+ @dimensions = dimensions
460
+ @urls = urls
461
+ @mimeType = mimeType
462
+ @sourceUrl = sourceUrl
463
+ @name = name
464
+ @fileSize = fileSize
465
+ @creationTime = creationTime
466
+ @media_Type = media_Type
467
+ @durationMillis = durationMillis
468
+ @streamingUrl = streamingUrl
469
+ @readyToPlayOnTheWeb = readyToPlayOnTheWeb
470
+ @industryStandardCommercialIdentifier = industryStandardCommercialIdentifier
471
+ @advertisingId = advertisingId
472
+ @youTubeVideoIdString = youTubeVideoIdString
473
+ end
474
+ end
475
+
476
+ # Selector
477
+ # - fields - SOAP::SOAPString
478
+ # - predicates - AdwordsApi::V201101::AdGroupAdService::Predicate
479
+ # - dateRange - AdwordsApi::V201101::AdGroupAdService::DateRange
480
+ # - ordering - AdwordsApi::V201101::AdGroupAdService::OrderBy
481
+ # - paging - AdwordsApi::V201101::AdGroupAdService::Paging
482
+ class Selector
483
+ attr_accessor :fields
484
+ attr_accessor :predicates
485
+ attr_accessor :dateRange
486
+ attr_accessor :ordering
487
+ attr_accessor :paging
488
+
489
+ def initialize(fields = [], predicates = [], dateRange = nil, ordering = [], paging = nil)
490
+ @fields = fields
491
+ @predicates = predicates
492
+ @dateRange = dateRange
493
+ @ordering = ordering
494
+ @paging = paging
495
+ end
496
+ end
497
+
498
+ # Stats
499
+ # - startDate - SOAP::SOAPString
500
+ # - endDate - SOAP::SOAPString
501
+ # - network - AdwordsApi::V201101::AdGroupAdService::StatsNetwork
502
+ # - clicks - SOAP::SOAPLong
503
+ # - impressions - SOAP::SOAPLong
504
+ # - cost - AdwordsApi::V201101::AdGroupAdService::Money
505
+ # - averagePosition - SOAP::SOAPDouble
506
+ # - averageCpc - AdwordsApi::V201101::AdGroupAdService::Money
507
+ # - averageCpm - AdwordsApi::V201101::AdGroupAdService::Money
508
+ # - ctr - SOAP::SOAPDouble
509
+ # - conversions - SOAP::SOAPLong
510
+ # - conversionRate - SOAP::SOAPDouble
511
+ # - costPerConversion - AdwordsApi::V201101::AdGroupAdService::Money
512
+ # - conversionsManyPerClick - SOAP::SOAPLong
513
+ # - conversionRateManyPerClick - SOAP::SOAPDouble
514
+ # - costPerConversionManyPerClick - AdwordsApi::V201101::AdGroupAdService::Money
515
+ # - viewThroughConversions - SOAP::SOAPLong
516
+ # - totalConvValue - SOAP::SOAPLong
517
+ # - valuePerConv - SOAP::SOAPDouble
518
+ # - valuePerConvManyPerClick - SOAP::SOAPDouble
519
+ # - invalidClicks - SOAP::SOAPLong
520
+ # - invalidClickRate - SOAP::SOAPDouble
521
+ # - stats_Type - SOAP::SOAPString
522
+ class Stats
523
+ attr_accessor :startDate
524
+ attr_accessor :endDate
525
+ attr_accessor :network
526
+ attr_accessor :clicks
527
+ attr_accessor :impressions
528
+ attr_accessor :cost
529
+ attr_accessor :averagePosition
530
+ attr_accessor :averageCpc
531
+ attr_accessor :averageCpm
532
+ attr_accessor :ctr
533
+ attr_accessor :conversions
534
+ attr_accessor :conversionRate
535
+ attr_accessor :costPerConversion
536
+ attr_accessor :conversionsManyPerClick
537
+ attr_accessor :conversionRateManyPerClick
538
+ attr_accessor :costPerConversionManyPerClick
539
+ attr_accessor :viewThroughConversions
540
+ attr_accessor :totalConvValue
541
+ attr_accessor :valuePerConv
542
+ attr_accessor :valuePerConvManyPerClick
543
+ attr_accessor :invalidClicks
544
+ attr_accessor :invalidClickRate
545
+ attr_accessor :stats_Type
546
+
547
+ 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)
548
+ @startDate = startDate
549
+ @endDate = endDate
550
+ @network = network
551
+ @clicks = clicks
552
+ @impressions = impressions
553
+ @cost = cost
554
+ @averagePosition = averagePosition
555
+ @averageCpc = averageCpc
556
+ @averageCpm = averageCpm
557
+ @ctr = ctr
558
+ @conversions = conversions
559
+ @conversionRate = conversionRate
560
+ @costPerConversion = costPerConversion
561
+ @conversionsManyPerClick = conversionsManyPerClick
562
+ @conversionRateManyPerClick = conversionRateManyPerClick
563
+ @costPerConversionManyPerClick = costPerConversionManyPerClick
564
+ @viewThroughConversions = viewThroughConversions
565
+ @totalConvValue = totalConvValue
566
+ @valuePerConv = valuePerConv
567
+ @valuePerConvManyPerClick = valuePerConvManyPerClick
568
+ @invalidClicks = invalidClicks
569
+ @invalidClickRate = invalidClickRate
570
+ @stats_Type = stats_Type
571
+ end
572
+ end
573
+
574
+ # AdExtensionOverrideStats
575
+ # - startDate - SOAP::SOAPString
576
+ # - endDate - SOAP::SOAPString
577
+ # - network - AdwordsApi::V201101::AdGroupAdService::StatsNetwork
578
+ # - clicks - SOAP::SOAPLong
579
+ # - impressions - SOAP::SOAPLong
580
+ # - cost - AdwordsApi::V201101::AdGroupAdService::Money
581
+ # - averagePosition - SOAP::SOAPDouble
582
+ # - averageCpc - AdwordsApi::V201101::AdGroupAdService::Money
583
+ # - averageCpm - AdwordsApi::V201101::AdGroupAdService::Money
584
+ # - ctr - SOAP::SOAPDouble
585
+ # - conversions - SOAP::SOAPLong
586
+ # - conversionRate - SOAP::SOAPDouble
587
+ # - costPerConversion - AdwordsApi::V201101::AdGroupAdService::Money
588
+ # - conversionsManyPerClick - SOAP::SOAPLong
589
+ # - conversionRateManyPerClick - SOAP::SOAPDouble
590
+ # - costPerConversionManyPerClick - AdwordsApi::V201101::AdGroupAdService::Money
591
+ # - viewThroughConversions - SOAP::SOAPLong
592
+ # - totalConvValue - SOAP::SOAPLong
593
+ # - valuePerConv - SOAP::SOAPDouble
594
+ # - valuePerConvManyPerClick - SOAP::SOAPDouble
595
+ # - invalidClicks - SOAP::SOAPLong
596
+ # - invalidClickRate - SOAP::SOAPDouble
597
+ # - stats_Type - SOAP::SOAPString
598
+ class AdExtensionOverrideStats < Stats
599
+ attr_accessor :startDate
600
+ attr_accessor :endDate
601
+ attr_accessor :network
602
+ attr_accessor :clicks
603
+ attr_accessor :impressions
604
+ attr_accessor :cost
605
+ attr_accessor :averagePosition
606
+ attr_accessor :averageCpc
607
+ attr_accessor :averageCpm
608
+ attr_accessor :ctr
609
+ attr_accessor :conversions
610
+ attr_accessor :conversionRate
611
+ attr_accessor :costPerConversion
612
+ attr_accessor :conversionsManyPerClick
613
+ attr_accessor :conversionRateManyPerClick
614
+ attr_accessor :costPerConversionManyPerClick
615
+ attr_accessor :viewThroughConversions
616
+ attr_accessor :totalConvValue
617
+ attr_accessor :valuePerConv
618
+ attr_accessor :valuePerConvManyPerClick
619
+ attr_accessor :invalidClicks
620
+ attr_accessor :invalidClickRate
621
+ attr_accessor :stats_Type
622
+
623
+ 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)
624
+ @startDate = startDate
625
+ @endDate = endDate
626
+ @network = network
627
+ @clicks = clicks
628
+ @impressions = impressions
629
+ @cost = cost
630
+ @averagePosition = averagePosition
631
+ @averageCpc = averageCpc
632
+ @averageCpm = averageCpm
633
+ @ctr = ctr
634
+ @conversions = conversions
635
+ @conversionRate = conversionRate
636
+ @costPerConversion = costPerConversion
637
+ @conversionsManyPerClick = conversionsManyPerClick
638
+ @conversionRateManyPerClick = conversionRateManyPerClick
639
+ @costPerConversionManyPerClick = costPerConversionManyPerClick
640
+ @viewThroughConversions = viewThroughConversions
641
+ @totalConvValue = totalConvValue
642
+ @valuePerConv = valuePerConv
643
+ @valuePerConvManyPerClick = valuePerConvManyPerClick
644
+ @invalidClicks = invalidClicks
645
+ @invalidClickRate = invalidClickRate
646
+ @stats_Type = stats_Type
647
+ end
648
+ end
649
+
650
+ # AdStats
651
+ # - startDate - SOAP::SOAPString
652
+ # - endDate - SOAP::SOAPString
653
+ # - network - AdwordsApi::V201101::AdGroupAdService::StatsNetwork
654
+ # - clicks - SOAP::SOAPLong
655
+ # - impressions - SOAP::SOAPLong
656
+ # - cost - AdwordsApi::V201101::AdGroupAdService::Money
657
+ # - averagePosition - SOAP::SOAPDouble
658
+ # - averageCpc - AdwordsApi::V201101::AdGroupAdService::Money
659
+ # - averageCpm - AdwordsApi::V201101::AdGroupAdService::Money
660
+ # - ctr - SOAP::SOAPDouble
661
+ # - conversions - SOAP::SOAPLong
662
+ # - conversionRate - SOAP::SOAPDouble
663
+ # - costPerConversion - AdwordsApi::V201101::AdGroupAdService::Money
664
+ # - conversionsManyPerClick - SOAP::SOAPLong
665
+ # - conversionRateManyPerClick - SOAP::SOAPDouble
666
+ # - costPerConversionManyPerClick - AdwordsApi::V201101::AdGroupAdService::Money
667
+ # - viewThroughConversions - SOAP::SOAPLong
668
+ # - totalConvValue - SOAP::SOAPLong
669
+ # - valuePerConv - SOAP::SOAPDouble
670
+ # - valuePerConvManyPerClick - SOAP::SOAPDouble
671
+ # - invalidClicks - SOAP::SOAPLong
672
+ # - invalidClickRate - SOAP::SOAPDouble
673
+ # - stats_Type - SOAP::SOAPString
674
+ # - percentServed - SOAP::SOAPDouble
675
+ class AdStats < Stats
676
+ attr_accessor :startDate
677
+ attr_accessor :endDate
678
+ attr_accessor :network
679
+ attr_accessor :clicks
680
+ attr_accessor :impressions
681
+ attr_accessor :cost
682
+ attr_accessor :averagePosition
683
+ attr_accessor :averageCpc
684
+ attr_accessor :averageCpm
685
+ attr_accessor :ctr
686
+ attr_accessor :conversions
687
+ attr_accessor :conversionRate
688
+ attr_accessor :costPerConversion
689
+ attr_accessor :conversionsManyPerClick
690
+ attr_accessor :conversionRateManyPerClick
691
+ attr_accessor :costPerConversionManyPerClick
692
+ attr_accessor :viewThroughConversions
693
+ attr_accessor :totalConvValue
694
+ attr_accessor :valuePerConv
695
+ attr_accessor :valuePerConvManyPerClick
696
+ attr_accessor :invalidClicks
697
+ attr_accessor :invalidClickRate
698
+ attr_accessor :stats_Type
699
+ attr_accessor :percentServed
700
+
701
+ 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, percentServed = nil)
702
+ @startDate = startDate
703
+ @endDate = endDate
704
+ @network = network
705
+ @clicks = clicks
706
+ @impressions = impressions
707
+ @cost = cost
708
+ @averagePosition = averagePosition
709
+ @averageCpc = averageCpc
710
+ @averageCpm = averageCpm
711
+ @ctr = ctr
712
+ @conversions = conversions
713
+ @conversionRate = conversionRate
714
+ @costPerConversion = costPerConversion
715
+ @conversionsManyPerClick = conversionsManyPerClick
716
+ @conversionRateManyPerClick = conversionRateManyPerClick
717
+ @costPerConversionManyPerClick = costPerConversionManyPerClick
718
+ @viewThroughConversions = viewThroughConversions
719
+ @totalConvValue = totalConvValue
720
+ @valuePerConv = valuePerConv
721
+ @valuePerConvManyPerClick = valuePerConvManyPerClick
722
+ @invalidClicks = invalidClicks
723
+ @invalidClickRate = invalidClickRate
724
+ @stats_Type = stats_Type
725
+ @percentServed = percentServed
726
+ end
727
+ end
728
+
729
+ # TemplateElementField
730
+ # - name - SOAP::SOAPString
731
+ # - type - AdwordsApi::V201101::AdGroupAdService::TemplateElementFieldType
732
+ # - fieldText - SOAP::SOAPString
733
+ # - fieldMedia - AdwordsApi::V201101::AdGroupAdService::Media
734
+ class TemplateElementField
735
+ attr_accessor :name
736
+ attr_accessor :type
737
+ attr_accessor :fieldText
738
+ attr_accessor :fieldMedia
739
+
740
+ def initialize(name = nil, type = nil, fieldText = nil, fieldMedia = nil)
741
+ @name = name
742
+ @type = type
743
+ @fieldText = fieldText
744
+ @fieldMedia = fieldMedia
745
+ end
746
+ end
747
+
748
+ # ApiError
749
+ # abstract
750
+ # - fieldPath - SOAP::SOAPString
751
+ # - trigger - SOAP::SOAPString
752
+ # - errorString - SOAP::SOAPString
753
+ # - apiError_Type - SOAP::SOAPString
754
+ class ApiError
755
+ attr_accessor :fieldPath
756
+ attr_accessor :trigger
757
+ attr_accessor :errorString
758
+ attr_accessor :apiError_Type
759
+
760
+ def initialize(fieldPath = nil, trigger = nil, errorString = nil, apiError_Type = nil)
761
+ @fieldPath = fieldPath
762
+ @trigger = trigger
763
+ @errorString = errorString
764
+ @apiError_Type = apiError_Type
765
+ end
766
+ end
767
+
768
+ # AdError
769
+ # - fieldPath - SOAP::SOAPString
770
+ # - trigger - SOAP::SOAPString
771
+ # - errorString - SOAP::SOAPString
772
+ # - apiError_Type - SOAP::SOAPString
773
+ # - reason - AdwordsApi::V201101::AdGroupAdService::AdErrorReason
774
+ class AdError < ApiError
775
+ attr_accessor :fieldPath
776
+ attr_accessor :trigger
777
+ attr_accessor :errorString
778
+ attr_accessor :apiError_Type
779
+ attr_accessor :reason
780
+
781
+ def initialize(fieldPath = nil, trigger = nil, errorString = nil, apiError_Type = nil, reason = nil)
782
+ @fieldPath = fieldPath
783
+ @trigger = trigger
784
+ @errorString = errorString
785
+ @apiError_Type = apiError_Type
786
+ @reason = reason
787
+ end
788
+ end
789
+
790
+ # AdGroupAdError
791
+ # - fieldPath - SOAP::SOAPString
792
+ # - trigger - SOAP::SOAPString
793
+ # - errorString - SOAP::SOAPString
794
+ # - apiError_Type - SOAP::SOAPString
795
+ # - reason - AdwordsApi::V201101::AdGroupAdService::AdGroupAdErrorReason
796
+ class AdGroupAdError < ApiError
797
+ attr_accessor :fieldPath
798
+ attr_accessor :trigger
799
+ attr_accessor :errorString
800
+ attr_accessor :apiError_Type
801
+ attr_accessor :reason
802
+
803
+ def initialize(fieldPath = nil, trigger = nil, errorString = nil, apiError_Type = nil, reason = nil)
804
+ @fieldPath = fieldPath
805
+ @trigger = trigger
806
+ @errorString = errorString
807
+ @apiError_Type = apiError_Type
808
+ @reason = reason
809
+ end
810
+ end
811
+
812
+ # AuthenticationError
813
+ # - fieldPath - SOAP::SOAPString
814
+ # - trigger - SOAP::SOAPString
815
+ # - errorString - SOAP::SOAPString
816
+ # - apiError_Type - SOAP::SOAPString
817
+ # - reason - AdwordsApi::V201101::AdGroupAdService::AuthenticationErrorReason
818
+ class AuthenticationError < ApiError
819
+ attr_accessor :fieldPath
820
+ attr_accessor :trigger
821
+ attr_accessor :errorString
822
+ attr_accessor :apiError_Type
823
+ attr_accessor :reason
824
+
825
+ def initialize(fieldPath = nil, trigger = nil, errorString = nil, apiError_Type = nil, reason = nil)
826
+ @fieldPath = fieldPath
827
+ @trigger = trigger
828
+ @errorString = errorString
829
+ @apiError_Type = apiError_Type
830
+ @reason = reason
831
+ end
832
+ end
833
+
834
+ # AuthorizationError
835
+ # - fieldPath - SOAP::SOAPString
836
+ # - trigger - SOAP::SOAPString
837
+ # - errorString - SOAP::SOAPString
838
+ # - apiError_Type - SOAP::SOAPString
839
+ # - reason - AdwordsApi::V201101::AdGroupAdService::AuthorizationErrorReason
840
+ class AuthorizationError < ApiError
841
+ attr_accessor :fieldPath
842
+ attr_accessor :trigger
843
+ attr_accessor :errorString
844
+ attr_accessor :apiError_Type
845
+ attr_accessor :reason
846
+
847
+ def initialize(fieldPath = nil, trigger = nil, errorString = nil, apiError_Type = nil, reason = nil)
848
+ @fieldPath = fieldPath
849
+ @trigger = trigger
850
+ @errorString = errorString
851
+ @apiError_Type = apiError_Type
852
+ @reason = reason
853
+ end
854
+ end
855
+
856
+ # ClientTermsError
857
+ # - fieldPath - SOAP::SOAPString
858
+ # - trigger - SOAP::SOAPString
859
+ # - errorString - SOAP::SOAPString
860
+ # - apiError_Type - SOAP::SOAPString
861
+ # - reason - AdwordsApi::V201101::AdGroupAdService::ClientTermsErrorReason
862
+ class ClientTermsError < ApiError
863
+ attr_accessor :fieldPath
864
+ attr_accessor :trigger
865
+ attr_accessor :errorString
866
+ attr_accessor :apiError_Type
867
+ attr_accessor :reason
868
+
869
+ def initialize(fieldPath = nil, trigger = nil, errorString = nil, apiError_Type = nil, reason = nil)
870
+ @fieldPath = fieldPath
871
+ @trigger = trigger
872
+ @errorString = errorString
873
+ @apiError_Type = apiError_Type
874
+ @reason = reason
875
+ end
876
+ end
877
+
878
+ # DateError
879
+ # - fieldPath - SOAP::SOAPString
880
+ # - trigger - SOAP::SOAPString
881
+ # - errorString - SOAP::SOAPString
882
+ # - apiError_Type - SOAP::SOAPString
883
+ # - reason - AdwordsApi::V201101::AdGroupAdService::DateErrorReason
884
+ class DateError < ApiError
885
+ attr_accessor :fieldPath
886
+ attr_accessor :trigger
887
+ attr_accessor :errorString
888
+ attr_accessor :apiError_Type
889
+ attr_accessor :reason
890
+
891
+ def initialize(fieldPath = nil, trigger = nil, errorString = nil, apiError_Type = nil, reason = nil)
892
+ @fieldPath = fieldPath
893
+ @trigger = trigger
894
+ @errorString = errorString
895
+ @apiError_Type = apiError_Type
896
+ @reason = reason
897
+ end
898
+ end
899
+
900
+ # DistinctError
901
+ # - fieldPath - SOAP::SOAPString
902
+ # - trigger - SOAP::SOAPString
903
+ # - errorString - SOAP::SOAPString
904
+ # - apiError_Type - SOAP::SOAPString
905
+ # - reason - AdwordsApi::V201101::AdGroupAdService::DistinctErrorReason
906
+ class DistinctError < ApiError
907
+ attr_accessor :fieldPath
908
+ attr_accessor :trigger
909
+ attr_accessor :errorString
910
+ attr_accessor :apiError_Type
911
+ attr_accessor :reason
912
+
913
+ def initialize(fieldPath = nil, trigger = nil, errorString = nil, apiError_Type = nil, reason = nil)
914
+ @fieldPath = fieldPath
915
+ @trigger = trigger
916
+ @errorString = errorString
917
+ @apiError_Type = apiError_Type
918
+ @reason = reason
919
+ end
920
+ end
921
+
922
+ # EntityCountLimitExceeded
923
+ # - fieldPath - SOAP::SOAPString
924
+ # - trigger - SOAP::SOAPString
925
+ # - errorString - SOAP::SOAPString
926
+ # - apiError_Type - SOAP::SOAPString
927
+ # - reason - AdwordsApi::V201101::AdGroupAdService::EntityCountLimitExceededReason
928
+ # - enclosingId - SOAP::SOAPString
929
+ # - limit - SOAP::SOAPInt
930
+ class EntityCountLimitExceeded < ApiError
931
+ attr_accessor :fieldPath
932
+ attr_accessor :trigger
933
+ attr_accessor :errorString
934
+ attr_accessor :apiError_Type
935
+ attr_accessor :reason
936
+ attr_accessor :enclosingId
937
+ attr_accessor :limit
938
+
939
+ def initialize(fieldPath = nil, trigger = nil, errorString = nil, apiError_Type = nil, reason = nil, enclosingId = nil, limit = nil)
940
+ @fieldPath = fieldPath
941
+ @trigger = trigger
942
+ @errorString = errorString
943
+ @apiError_Type = apiError_Type
944
+ @reason = reason
945
+ @enclosingId = enclosingId
946
+ @limit = limit
947
+ end
948
+ end
949
+
950
+ # AdGroupAdCountLimitExceeded
951
+ # - fieldPath - SOAP::SOAPString
952
+ # - trigger - SOAP::SOAPString
953
+ # - errorString - SOAP::SOAPString
954
+ # - apiError_Type - SOAP::SOAPString
955
+ # - reason - AdwordsApi::V201101::AdGroupAdService::EntityCountLimitExceededReason
956
+ # - enclosingId - SOAP::SOAPString
957
+ # - limit - SOAP::SOAPInt
958
+ class AdGroupAdCountLimitExceeded < EntityCountLimitExceeded
959
+ attr_accessor :fieldPath
960
+ attr_accessor :trigger
961
+ attr_accessor :errorString
962
+ attr_accessor :apiError_Type
963
+ attr_accessor :reason
964
+ attr_accessor :enclosingId
965
+ attr_accessor :limit
966
+
967
+ def initialize(fieldPath = nil, trigger = nil, errorString = nil, apiError_Type = nil, reason = nil, enclosingId = nil, limit = nil)
968
+ @fieldPath = fieldPath
969
+ @trigger = trigger
970
+ @errorString = errorString
971
+ @apiError_Type = apiError_Type
972
+ @reason = reason
973
+ @enclosingId = enclosingId
974
+ @limit = limit
975
+ end
976
+ end
977
+
978
+ # EntityNotFound
979
+ # - fieldPath - SOAP::SOAPString
980
+ # - trigger - SOAP::SOAPString
981
+ # - errorString - SOAP::SOAPString
982
+ # - apiError_Type - SOAP::SOAPString
983
+ # - reason - AdwordsApi::V201101::AdGroupAdService::EntityNotFoundReason
984
+ class EntityNotFound < ApiError
985
+ attr_accessor :fieldPath
986
+ attr_accessor :trigger
987
+ attr_accessor :errorString
988
+ attr_accessor :apiError_Type
989
+ attr_accessor :reason
990
+
991
+ def initialize(fieldPath = nil, trigger = nil, errorString = nil, apiError_Type = nil, reason = nil)
992
+ @fieldPath = fieldPath
993
+ @trigger = trigger
994
+ @errorString = errorString
995
+ @apiError_Type = apiError_Type
996
+ @reason = reason
997
+ end
998
+ end
999
+
1000
+ # IdError
1001
+ # - fieldPath - SOAP::SOAPString
1002
+ # - trigger - SOAP::SOAPString
1003
+ # - errorString - SOAP::SOAPString
1004
+ # - apiError_Type - SOAP::SOAPString
1005
+ # - reason - AdwordsApi::V201101::AdGroupAdService::IdErrorReason
1006
+ class IdError < ApiError
1007
+ attr_accessor :fieldPath
1008
+ attr_accessor :trigger
1009
+ attr_accessor :errorString
1010
+ attr_accessor :apiError_Type
1011
+ attr_accessor :reason
1012
+
1013
+ def initialize(fieldPath = nil, trigger = nil, errorString = nil, apiError_Type = nil, reason = nil)
1014
+ @fieldPath = fieldPath
1015
+ @trigger = trigger
1016
+ @errorString = errorString
1017
+ @apiError_Type = apiError_Type
1018
+ @reason = reason
1019
+ end
1020
+ end
1021
+
1022
+ # ImageError
1023
+ # - fieldPath - SOAP::SOAPString
1024
+ # - trigger - SOAP::SOAPString
1025
+ # - errorString - SOAP::SOAPString
1026
+ # - apiError_Type - SOAP::SOAPString
1027
+ # - reason - AdwordsApi::V201101::AdGroupAdService::ImageErrorReason
1028
+ class ImageError < ApiError
1029
+ attr_accessor :fieldPath
1030
+ attr_accessor :trigger
1031
+ attr_accessor :errorString
1032
+ attr_accessor :apiError_Type
1033
+ attr_accessor :reason
1034
+
1035
+ def initialize(fieldPath = nil, trigger = nil, errorString = nil, apiError_Type = nil, reason = nil)
1036
+ @fieldPath = fieldPath
1037
+ @trigger = trigger
1038
+ @errorString = errorString
1039
+ @apiError_Type = apiError_Type
1040
+ @reason = reason
1041
+ end
1042
+ end
1043
+
1044
+ # InternalApiError
1045
+ # - fieldPath - SOAP::SOAPString
1046
+ # - trigger - SOAP::SOAPString
1047
+ # - errorString - SOAP::SOAPString
1048
+ # - apiError_Type - SOAP::SOAPString
1049
+ # - reason - AdwordsApi::V201101::AdGroupAdService::InternalApiErrorReason
1050
+ class InternalApiError < ApiError
1051
+ attr_accessor :fieldPath
1052
+ attr_accessor :trigger
1053
+ attr_accessor :errorString
1054
+ attr_accessor :apiError_Type
1055
+ attr_accessor :reason
1056
+
1057
+ def initialize(fieldPath = nil, trigger = nil, errorString = nil, apiError_Type = nil, reason = nil)
1058
+ @fieldPath = fieldPath
1059
+ @trigger = trigger
1060
+ @errorString = errorString
1061
+ @apiError_Type = apiError_Type
1062
+ @reason = reason
1063
+ end
1064
+ end
1065
+
1066
+ # MediaError
1067
+ # - fieldPath - SOAP::SOAPString
1068
+ # - trigger - SOAP::SOAPString
1069
+ # - errorString - SOAP::SOAPString
1070
+ # - apiError_Type - SOAP::SOAPString
1071
+ # - reason - AdwordsApi::V201101::AdGroupAdService::MediaErrorReason
1072
+ class MediaError < ApiError
1073
+ attr_accessor :fieldPath
1074
+ attr_accessor :trigger
1075
+ attr_accessor :errorString
1076
+ attr_accessor :apiError_Type
1077
+ attr_accessor :reason
1078
+
1079
+ def initialize(fieldPath = nil, trigger = nil, errorString = nil, apiError_Type = nil, reason = nil)
1080
+ @fieldPath = fieldPath
1081
+ @trigger = trigger
1082
+ @errorString = errorString
1083
+ @apiError_Type = apiError_Type
1084
+ @reason = reason
1085
+ end
1086
+ end
1087
+
1088
+ # NewEntityCreationError
1089
+ # - fieldPath - SOAP::SOAPString
1090
+ # - trigger - SOAP::SOAPString
1091
+ # - errorString - SOAP::SOAPString
1092
+ # - apiError_Type - SOAP::SOAPString
1093
+ # - reason - AdwordsApi::V201101::AdGroupAdService::NewEntityCreationErrorReason
1094
+ class NewEntityCreationError < ApiError
1095
+ attr_accessor :fieldPath
1096
+ attr_accessor :trigger
1097
+ attr_accessor :errorString
1098
+ attr_accessor :apiError_Type
1099
+ attr_accessor :reason
1100
+
1101
+ def initialize(fieldPath = nil, trigger = nil, errorString = nil, apiError_Type = nil, reason = nil)
1102
+ @fieldPath = fieldPath
1103
+ @trigger = trigger
1104
+ @errorString = errorString
1105
+ @apiError_Type = apiError_Type
1106
+ @reason = reason
1107
+ end
1108
+ end
1109
+
1110
+ # NotEmptyError
1111
+ # - fieldPath - SOAP::SOAPString
1112
+ # - trigger - SOAP::SOAPString
1113
+ # - errorString - SOAP::SOAPString
1114
+ # - apiError_Type - SOAP::SOAPString
1115
+ # - reason - AdwordsApi::V201101::AdGroupAdService::NotEmptyErrorReason
1116
+ class NotEmptyError < ApiError
1117
+ attr_accessor :fieldPath
1118
+ attr_accessor :trigger
1119
+ attr_accessor :errorString
1120
+ attr_accessor :apiError_Type
1121
+ attr_accessor :reason
1122
+
1123
+ def initialize(fieldPath = nil, trigger = nil, errorString = nil, apiError_Type = nil, reason = nil)
1124
+ @fieldPath = fieldPath
1125
+ @trigger = trigger
1126
+ @errorString = errorString
1127
+ @apiError_Type = apiError_Type
1128
+ @reason = reason
1129
+ end
1130
+ end
1131
+
1132
+ # NotWhitelistedError
1133
+ # - fieldPath - SOAP::SOAPString
1134
+ # - trigger - SOAP::SOAPString
1135
+ # - errorString - SOAP::SOAPString
1136
+ # - apiError_Type - SOAP::SOAPString
1137
+ # - reason - AdwordsApi::V201101::AdGroupAdService::NotWhitelistedErrorReason
1138
+ class NotWhitelistedError < ApiError
1139
+ attr_accessor :fieldPath
1140
+ attr_accessor :trigger
1141
+ attr_accessor :errorString
1142
+ attr_accessor :apiError_Type
1143
+ attr_accessor :reason
1144
+
1145
+ def initialize(fieldPath = nil, trigger = nil, errorString = nil, apiError_Type = nil, reason = nil)
1146
+ @fieldPath = fieldPath
1147
+ @trigger = trigger
1148
+ @errorString = errorString
1149
+ @apiError_Type = apiError_Type
1150
+ @reason = reason
1151
+ end
1152
+ end
1153
+
1154
+ # NullError
1155
+ # - fieldPath - SOAP::SOAPString
1156
+ # - trigger - SOAP::SOAPString
1157
+ # - errorString - SOAP::SOAPString
1158
+ # - apiError_Type - SOAP::SOAPString
1159
+ # - reason - AdwordsApi::V201101::AdGroupAdService::NullErrorReason
1160
+ class NullError < ApiError
1161
+ attr_accessor :fieldPath
1162
+ attr_accessor :trigger
1163
+ attr_accessor :errorString
1164
+ attr_accessor :apiError_Type
1165
+ attr_accessor :reason
1166
+
1167
+ def initialize(fieldPath = nil, trigger = nil, errorString = nil, apiError_Type = nil, reason = nil)
1168
+ @fieldPath = fieldPath
1169
+ @trigger = trigger
1170
+ @errorString = errorString
1171
+ @apiError_Type = apiError_Type
1172
+ @reason = reason
1173
+ end
1174
+ end
1175
+
1176
+ # OperationAccessDenied
1177
+ # - fieldPath - SOAP::SOAPString
1178
+ # - trigger - SOAP::SOAPString
1179
+ # - errorString - SOAP::SOAPString
1180
+ # - apiError_Type - SOAP::SOAPString
1181
+ # - reason - AdwordsApi::V201101::AdGroupAdService::OperationAccessDeniedReason
1182
+ class OperationAccessDenied < ApiError
1183
+ attr_accessor :fieldPath
1184
+ attr_accessor :trigger
1185
+ attr_accessor :errorString
1186
+ attr_accessor :apiError_Type
1187
+ attr_accessor :reason
1188
+
1189
+ def initialize(fieldPath = nil, trigger = nil, errorString = nil, apiError_Type = nil, reason = nil)
1190
+ @fieldPath = fieldPath
1191
+ @trigger = trigger
1192
+ @errorString = errorString
1193
+ @apiError_Type = apiError_Type
1194
+ @reason = reason
1195
+ end
1196
+ end
1197
+
1198
+ # PagingError
1199
+ # - fieldPath - SOAP::SOAPString
1200
+ # - trigger - SOAP::SOAPString
1201
+ # - errorString - SOAP::SOAPString
1202
+ # - apiError_Type - SOAP::SOAPString
1203
+ # - reason - AdwordsApi::V201101::AdGroupAdService::PagingErrorReason
1204
+ class PagingError < ApiError
1205
+ attr_accessor :fieldPath
1206
+ attr_accessor :trigger
1207
+ attr_accessor :errorString
1208
+ attr_accessor :apiError_Type
1209
+ attr_accessor :reason
1210
+
1211
+ def initialize(fieldPath = nil, trigger = nil, errorString = nil, apiError_Type = nil, reason = nil)
1212
+ @fieldPath = fieldPath
1213
+ @trigger = trigger
1214
+ @errorString = errorString
1215
+ @apiError_Type = apiError_Type
1216
+ @reason = reason
1217
+ end
1218
+ end
1219
+
1220
+ # QuotaCheckError
1221
+ # - fieldPath - SOAP::SOAPString
1222
+ # - trigger - SOAP::SOAPString
1223
+ # - errorString - SOAP::SOAPString
1224
+ # - apiError_Type - SOAP::SOAPString
1225
+ # - reason - AdwordsApi::V201101::AdGroupAdService::QuotaCheckErrorReason
1226
+ class QuotaCheckError < ApiError
1227
+ attr_accessor :fieldPath
1228
+ attr_accessor :trigger
1229
+ attr_accessor :errorString
1230
+ attr_accessor :apiError_Type
1231
+ attr_accessor :reason
1232
+
1233
+ def initialize(fieldPath = nil, trigger = nil, errorString = nil, apiError_Type = nil, reason = nil)
1234
+ @fieldPath = fieldPath
1235
+ @trigger = trigger
1236
+ @errorString = errorString
1237
+ @apiError_Type = apiError_Type
1238
+ @reason = reason
1239
+ end
1240
+ end
1241
+
1242
+ # RangeError
1243
+ # - fieldPath - SOAP::SOAPString
1244
+ # - trigger - SOAP::SOAPString
1245
+ # - errorString - SOAP::SOAPString
1246
+ # - apiError_Type - SOAP::SOAPString
1247
+ # - reason - AdwordsApi::V201101::AdGroupAdService::RangeErrorReason
1248
+ class C_RangeError < ApiError
1249
+ attr_accessor :fieldPath
1250
+ attr_accessor :trigger
1251
+ attr_accessor :errorString
1252
+ attr_accessor :apiError_Type
1253
+ attr_accessor :reason
1254
+
1255
+ def initialize(fieldPath = nil, trigger = nil, errorString = nil, apiError_Type = nil, reason = nil)
1256
+ @fieldPath = fieldPath
1257
+ @trigger = trigger
1258
+ @errorString = errorString
1259
+ @apiError_Type = apiError_Type
1260
+ @reason = reason
1261
+ end
1262
+ end
1263
+
1264
+ # RateExceededError
1265
+ # - fieldPath - SOAP::SOAPString
1266
+ # - trigger - SOAP::SOAPString
1267
+ # - errorString - SOAP::SOAPString
1268
+ # - apiError_Type - SOAP::SOAPString
1269
+ # - reason - AdwordsApi::V201101::AdGroupAdService::RateExceededErrorReason
1270
+ # - rateName - SOAP::SOAPString
1271
+ # - rateScope - SOAP::SOAPString
1272
+ # - retryAfterSeconds - SOAP::SOAPInt
1273
+ class RateExceededError < ApiError
1274
+ attr_accessor :fieldPath
1275
+ attr_accessor :trigger
1276
+ attr_accessor :errorString
1277
+ attr_accessor :apiError_Type
1278
+ attr_accessor :reason
1279
+ attr_accessor :rateName
1280
+ attr_accessor :rateScope
1281
+ attr_accessor :retryAfterSeconds
1282
+
1283
+ def initialize(fieldPath = nil, trigger = nil, errorString = nil, apiError_Type = nil, reason = nil, rateName = nil, rateScope = nil, retryAfterSeconds = nil)
1284
+ @fieldPath = fieldPath
1285
+ @trigger = trigger
1286
+ @errorString = errorString
1287
+ @apiError_Type = apiError_Type
1288
+ @reason = reason
1289
+ @rateName = rateName
1290
+ @rateScope = rateScope
1291
+ @retryAfterSeconds = retryAfterSeconds
1292
+ end
1293
+ end
1294
+
1295
+ # ReadOnlyError
1296
+ # - fieldPath - SOAP::SOAPString
1297
+ # - trigger - SOAP::SOAPString
1298
+ # - errorString - SOAP::SOAPString
1299
+ # - apiError_Type - SOAP::SOAPString
1300
+ # - reason - AdwordsApi::V201101::AdGroupAdService::ReadOnlyErrorReason
1301
+ class ReadOnlyError < ApiError
1302
+ attr_accessor :fieldPath
1303
+ attr_accessor :trigger
1304
+ attr_accessor :errorString
1305
+ attr_accessor :apiError_Type
1306
+ attr_accessor :reason
1307
+
1308
+ def initialize(fieldPath = nil, trigger = nil, errorString = nil, apiError_Type = nil, reason = nil)
1309
+ @fieldPath = fieldPath
1310
+ @trigger = trigger
1311
+ @errorString = errorString
1312
+ @apiError_Type = apiError_Type
1313
+ @reason = reason
1314
+ end
1315
+ end
1316
+
1317
+ # RequestError
1318
+ # - fieldPath - SOAP::SOAPString
1319
+ # - trigger - SOAP::SOAPString
1320
+ # - errorString - SOAP::SOAPString
1321
+ # - apiError_Type - SOAP::SOAPString
1322
+ # - reason - AdwordsApi::V201101::AdGroupAdService::RequestErrorReason
1323
+ class RequestError < ApiError
1324
+ attr_accessor :fieldPath
1325
+ attr_accessor :trigger
1326
+ attr_accessor :errorString
1327
+ attr_accessor :apiError_Type
1328
+ attr_accessor :reason
1329
+
1330
+ def initialize(fieldPath = nil, trigger = nil, errorString = nil, apiError_Type = nil, reason = nil)
1331
+ @fieldPath = fieldPath
1332
+ @trigger = trigger
1333
+ @errorString = errorString
1334
+ @apiError_Type = apiError_Type
1335
+ @reason = reason
1336
+ end
1337
+ end
1338
+
1339
+ # RequiredError
1340
+ # - fieldPath - SOAP::SOAPString
1341
+ # - trigger - SOAP::SOAPString
1342
+ # - errorString - SOAP::SOAPString
1343
+ # - apiError_Type - SOAP::SOAPString
1344
+ # - reason - AdwordsApi::V201101::AdGroupAdService::RequiredErrorReason
1345
+ class RequiredError < ApiError
1346
+ attr_accessor :fieldPath
1347
+ attr_accessor :trigger
1348
+ attr_accessor :errorString
1349
+ attr_accessor :apiError_Type
1350
+ attr_accessor :reason
1351
+
1352
+ def initialize(fieldPath = nil, trigger = nil, errorString = nil, apiError_Type = nil, reason = nil)
1353
+ @fieldPath = fieldPath
1354
+ @trigger = trigger
1355
+ @errorString = errorString
1356
+ @apiError_Type = apiError_Type
1357
+ @reason = reason
1358
+ end
1359
+ end
1360
+
1361
+ # SelectorError
1362
+ # - fieldPath - SOAP::SOAPString
1363
+ # - trigger - SOAP::SOAPString
1364
+ # - errorString - SOAP::SOAPString
1365
+ # - apiError_Type - SOAP::SOAPString
1366
+ # - reason - AdwordsApi::V201101::AdGroupAdService::SelectorErrorReason
1367
+ class SelectorError < ApiError
1368
+ attr_accessor :fieldPath
1369
+ attr_accessor :trigger
1370
+ attr_accessor :errorString
1371
+ attr_accessor :apiError_Type
1372
+ attr_accessor :reason
1373
+
1374
+ def initialize(fieldPath = nil, trigger = nil, errorString = nil, apiError_Type = nil, reason = nil)
1375
+ @fieldPath = fieldPath
1376
+ @trigger = trigger
1377
+ @errorString = errorString
1378
+ @apiError_Type = apiError_Type
1379
+ @reason = reason
1380
+ end
1381
+ end
1382
+
1383
+ # SizeLimitError
1384
+ # - fieldPath - SOAP::SOAPString
1385
+ # - trigger - SOAP::SOAPString
1386
+ # - errorString - SOAP::SOAPString
1387
+ # - apiError_Type - SOAP::SOAPString
1388
+ # - reason - AdwordsApi::V201101::AdGroupAdService::SizeLimitErrorReason
1389
+ class SizeLimitError < ApiError
1390
+ attr_accessor :fieldPath
1391
+ attr_accessor :trigger
1392
+ attr_accessor :errorString
1393
+ attr_accessor :apiError_Type
1394
+ attr_accessor :reason
1395
+
1396
+ def initialize(fieldPath = nil, trigger = nil, errorString = nil, apiError_Type = nil, reason = nil)
1397
+ @fieldPath = fieldPath
1398
+ @trigger = trigger
1399
+ @errorString = errorString
1400
+ @apiError_Type = apiError_Type
1401
+ @reason = reason
1402
+ end
1403
+ end
1404
+
1405
+ # StatsQueryError
1406
+ # - fieldPath - SOAP::SOAPString
1407
+ # - trigger - SOAP::SOAPString
1408
+ # - errorString - SOAP::SOAPString
1409
+ # - apiError_Type - SOAP::SOAPString
1410
+ # - reason - AdwordsApi::V201101::AdGroupAdService::StatsQueryErrorReason
1411
+ class StatsQueryError < ApiError
1412
+ attr_accessor :fieldPath
1413
+ attr_accessor :trigger
1414
+ attr_accessor :errorString
1415
+ attr_accessor :apiError_Type
1416
+ attr_accessor :reason
1417
+
1418
+ def initialize(fieldPath = nil, trigger = nil, errorString = nil, apiError_Type = nil, reason = nil)
1419
+ @fieldPath = fieldPath
1420
+ @trigger = trigger
1421
+ @errorString = errorString
1422
+ @apiError_Type = apiError_Type
1423
+ @reason = reason
1424
+ end
1425
+ end
1426
+
1427
+ # DatabaseError
1428
+ # - fieldPath - SOAP::SOAPString
1429
+ # - trigger - SOAP::SOAPString
1430
+ # - errorString - SOAP::SOAPString
1431
+ # - apiError_Type - SOAP::SOAPString
1432
+ # - reason - AdwordsApi::V201101::AdGroupAdService::DatabaseErrorReason
1433
+ class DatabaseError < ApiError
1434
+ attr_accessor :fieldPath
1435
+ attr_accessor :trigger
1436
+ attr_accessor :errorString
1437
+ attr_accessor :apiError_Type
1438
+ attr_accessor :reason
1439
+
1440
+ def initialize(fieldPath = nil, trigger = nil, errorString = nil, apiError_Type = nil, reason = nil)
1441
+ @fieldPath = fieldPath
1442
+ @trigger = trigger
1443
+ @errorString = errorString
1444
+ @apiError_Type = apiError_Type
1445
+ @reason = reason
1446
+ end
1447
+ end
1448
+
1449
+ # PolicyViolationError
1450
+ # - fieldPath - SOAP::SOAPString
1451
+ # - trigger - SOAP::SOAPString
1452
+ # - errorString - SOAP::SOAPString
1453
+ # - apiError_Type - SOAP::SOAPString
1454
+ # - key - AdwordsApi::V201101::AdGroupAdService::PolicyViolationKey
1455
+ # - externalPolicyName - SOAP::SOAPString
1456
+ # - externalPolicyUrl - SOAP::SOAPString
1457
+ # - externalPolicyDescription - SOAP::SOAPString
1458
+ # - isExemptable - SOAP::SOAPBoolean
1459
+ # - violatingParts - AdwordsApi::V201101::AdGroupAdService::PolicyViolationErrorPart
1460
+ class PolicyViolationError < ApiError
1461
+ attr_accessor :fieldPath
1462
+ attr_accessor :trigger
1463
+ attr_accessor :errorString
1464
+ attr_accessor :apiError_Type
1465
+ attr_accessor :key
1466
+ attr_accessor :externalPolicyName
1467
+ attr_accessor :externalPolicyUrl
1468
+ attr_accessor :externalPolicyDescription
1469
+ attr_accessor :isExemptable
1470
+ attr_accessor :violatingParts
1471
+
1472
+ def initialize(fieldPath = nil, trigger = nil, errorString = nil, apiError_Type = nil, key = nil, externalPolicyName = nil, externalPolicyUrl = nil, externalPolicyDescription = nil, isExemptable = nil, violatingParts = [])
1473
+ @fieldPath = fieldPath
1474
+ @trigger = trigger
1475
+ @errorString = errorString
1476
+ @apiError_Type = apiError_Type
1477
+ @key = key
1478
+ @externalPolicyName = externalPolicyName
1479
+ @externalPolicyUrl = externalPolicyUrl
1480
+ @externalPolicyDescription = externalPolicyDescription
1481
+ @isExemptable = isExemptable
1482
+ @violatingParts = violatingParts
1483
+ end
1484
+ end
1485
+
1486
+ # ApplicationException
1487
+ # - message - SOAP::SOAPString
1488
+ # - applicationException_Type - SOAP::SOAPString
1489
+ class ApplicationException
1490
+ attr_accessor :message
1491
+ attr_accessor :applicationException_Type
1492
+
1493
+ def initialize(message = nil, applicationException_Type = nil)
1494
+ @message = message
1495
+ @applicationException_Type = applicationException_Type
1496
+ end
1497
+ end
1498
+
1499
+ # ApiException
1500
+ # - message - SOAP::SOAPString
1501
+ # - applicationException_Type - SOAP::SOAPString
1502
+ # - errors - AdwordsApi::V201101::AdGroupAdService::ApiError
1503
+ class ApiException < ApplicationException
1504
+ attr_accessor :message
1505
+ attr_accessor :applicationException_Type
1506
+ attr_accessor :errors
1507
+
1508
+ def initialize(message = nil, applicationException_Type = nil, errors = [])
1509
+ @message = message
1510
+ @applicationException_Type = applicationException_Type
1511
+ @errors = errors
1512
+ end
1513
+ end
1514
+
1515
+ # TemplateElement
1516
+ # - uniqueName - SOAP::SOAPString
1517
+ # - fields - AdwordsApi::V201101::AdGroupAdService::TemplateElementField
1518
+ class TemplateElement
1519
+ attr_accessor :uniqueName
1520
+ attr_accessor :fields
1521
+
1522
+ def initialize(uniqueName = nil, fields = [])
1523
+ @uniqueName = uniqueName
1524
+ @fields = fields
1525
+ end
1526
+ end
1527
+
1528
+ # Ad
1529
+ # - id - SOAP::SOAPLong
1530
+ # - url - SOAP::SOAPString
1531
+ # - displayUrl - SOAP::SOAPString
1532
+ # - approvalStatus - AdwordsApi::V201101::AdGroupAdService::AdApprovalStatus
1533
+ # - disapprovalReasons - SOAP::SOAPString
1534
+ # - trademarkDisapproved - SOAP::SOAPBoolean
1535
+ # - ad_Type - SOAP::SOAPString
1536
+ class Ad
1537
+ attr_accessor :id
1538
+ attr_accessor :url
1539
+ attr_accessor :displayUrl
1540
+ attr_accessor :approvalStatus
1541
+ attr_accessor :disapprovalReasons
1542
+ attr_accessor :trademarkDisapproved
1543
+ attr_accessor :ad_Type
1544
+
1545
+ def initialize(id = nil, url = nil, displayUrl = nil, approvalStatus = nil, disapprovalReasons = [], trademarkDisapproved = nil, ad_Type = nil)
1546
+ @id = id
1547
+ @url = url
1548
+ @displayUrl = displayUrl
1549
+ @approvalStatus = approvalStatus
1550
+ @disapprovalReasons = disapprovalReasons
1551
+ @trademarkDisapproved = trademarkDisapproved
1552
+ @ad_Type = ad_Type
1553
+ end
1554
+ end
1555
+
1556
+ # DeprecatedAd
1557
+ # - id - SOAP::SOAPLong
1558
+ # - url - SOAP::SOAPString
1559
+ # - displayUrl - SOAP::SOAPString
1560
+ # - approvalStatus - AdwordsApi::V201101::AdGroupAdService::AdApprovalStatus
1561
+ # - disapprovalReasons - SOAP::SOAPString
1562
+ # - trademarkDisapproved - SOAP::SOAPBoolean
1563
+ # - ad_Type - SOAP::SOAPString
1564
+ # - name - SOAP::SOAPString
1565
+ # - type - AdwordsApi::V201101::AdGroupAdService::DeprecatedAdType
1566
+ class DeprecatedAd < Ad
1567
+ attr_accessor :id
1568
+ attr_accessor :url
1569
+ attr_accessor :displayUrl
1570
+ attr_accessor :approvalStatus
1571
+ attr_accessor :disapprovalReasons
1572
+ attr_accessor :trademarkDisapproved
1573
+ attr_accessor :ad_Type
1574
+ attr_accessor :name
1575
+ attr_accessor :type
1576
+
1577
+ def initialize(id = nil, url = nil, displayUrl = nil, approvalStatus = nil, disapprovalReasons = [], trademarkDisapproved = nil, ad_Type = nil, name = nil, type = nil)
1578
+ @id = id
1579
+ @url = url
1580
+ @displayUrl = displayUrl
1581
+ @approvalStatus = approvalStatus
1582
+ @disapprovalReasons = disapprovalReasons
1583
+ @trademarkDisapproved = trademarkDisapproved
1584
+ @ad_Type = ad_Type
1585
+ @name = name
1586
+ @type = type
1587
+ end
1588
+ end
1589
+
1590
+ # MobileAd
1591
+ # - id - SOAP::SOAPLong
1592
+ # - url - SOAP::SOAPString
1593
+ # - displayUrl - SOAP::SOAPString
1594
+ # - approvalStatus - AdwordsApi::V201101::AdGroupAdService::AdApprovalStatus
1595
+ # - disapprovalReasons - SOAP::SOAPString
1596
+ # - trademarkDisapproved - SOAP::SOAPBoolean
1597
+ # - ad_Type - SOAP::SOAPString
1598
+ # - headline - SOAP::SOAPString
1599
+ # - description - SOAP::SOAPString
1600
+ # - markupLanguages - AdwordsApi::V201101::AdGroupAdService::MarkupLanguageType
1601
+ # - mobileCarriers - SOAP::SOAPString
1602
+ # - businessName - SOAP::SOAPString
1603
+ # - countryCode - SOAP::SOAPString
1604
+ # - phoneNumber - SOAP::SOAPString
1605
+ class MobileAd < Ad
1606
+ attr_accessor :id
1607
+ attr_accessor :url
1608
+ attr_accessor :displayUrl
1609
+ attr_accessor :approvalStatus
1610
+ attr_accessor :disapprovalReasons
1611
+ attr_accessor :trademarkDisapproved
1612
+ attr_accessor :ad_Type
1613
+ attr_accessor :headline
1614
+ attr_accessor :description
1615
+ attr_accessor :markupLanguages
1616
+ attr_accessor :mobileCarriers
1617
+ attr_accessor :businessName
1618
+ attr_accessor :countryCode
1619
+ attr_accessor :phoneNumber
1620
+
1621
+ def initialize(id = nil, url = nil, displayUrl = nil, approvalStatus = nil, disapprovalReasons = [], trademarkDisapproved = nil, ad_Type = nil, headline = nil, description = nil, markupLanguages = [], mobileCarriers = [], businessName = nil, countryCode = nil, phoneNumber = nil)
1622
+ @id = id
1623
+ @url = url
1624
+ @displayUrl = displayUrl
1625
+ @approvalStatus = approvalStatus
1626
+ @disapprovalReasons = disapprovalReasons
1627
+ @trademarkDisapproved = trademarkDisapproved
1628
+ @ad_Type = ad_Type
1629
+ @headline = headline
1630
+ @description = description
1631
+ @markupLanguages = markupLanguages
1632
+ @mobileCarriers = mobileCarriers
1633
+ @businessName = businessName
1634
+ @countryCode = countryCode
1635
+ @phoneNumber = phoneNumber
1636
+ end
1637
+ end
1638
+
1639
+ # ProductAd
1640
+ # - id - SOAP::SOAPLong
1641
+ # - url - SOAP::SOAPString
1642
+ # - displayUrl - SOAP::SOAPString
1643
+ # - approvalStatus - AdwordsApi::V201101::AdGroupAdService::AdApprovalStatus
1644
+ # - disapprovalReasons - SOAP::SOAPString
1645
+ # - trademarkDisapproved - SOAP::SOAPBoolean
1646
+ # - ad_Type - SOAP::SOAPString
1647
+ # - promotionLine - SOAP::SOAPString
1648
+ class ProductAd < Ad
1649
+ attr_accessor :id
1650
+ attr_accessor :url
1651
+ attr_accessor :displayUrl
1652
+ attr_accessor :approvalStatus
1653
+ attr_accessor :disapprovalReasons
1654
+ attr_accessor :trademarkDisapproved
1655
+ attr_accessor :ad_Type
1656
+ attr_accessor :promotionLine
1657
+
1658
+ def initialize(id = nil, url = nil, displayUrl = nil, approvalStatus = nil, disapprovalReasons = [], trademarkDisapproved = nil, ad_Type = nil, promotionLine = nil)
1659
+ @id = id
1660
+ @url = url
1661
+ @displayUrl = displayUrl
1662
+ @approvalStatus = approvalStatus
1663
+ @disapprovalReasons = disapprovalReasons
1664
+ @trademarkDisapproved = trademarkDisapproved
1665
+ @ad_Type = ad_Type
1666
+ @promotionLine = promotionLine
1667
+ end
1668
+ end
1669
+
1670
+ # TextAd
1671
+ # - id - SOAP::SOAPLong
1672
+ # - url - SOAP::SOAPString
1673
+ # - displayUrl - SOAP::SOAPString
1674
+ # - approvalStatus - AdwordsApi::V201101::AdGroupAdService::AdApprovalStatus
1675
+ # - disapprovalReasons - SOAP::SOAPString
1676
+ # - trademarkDisapproved - SOAP::SOAPBoolean
1677
+ # - ad_Type - SOAP::SOAPString
1678
+ # - headline - SOAP::SOAPString
1679
+ # - description1 - SOAP::SOAPString
1680
+ # - description2 - SOAP::SOAPString
1681
+ class TextAd < Ad
1682
+ attr_accessor :id
1683
+ attr_accessor :url
1684
+ attr_accessor :displayUrl
1685
+ attr_accessor :approvalStatus
1686
+ attr_accessor :disapprovalReasons
1687
+ attr_accessor :trademarkDisapproved
1688
+ attr_accessor :ad_Type
1689
+ attr_accessor :headline
1690
+ attr_accessor :description1
1691
+ attr_accessor :description2
1692
+
1693
+ def initialize(id = nil, url = nil, displayUrl = nil, approvalStatus = nil, disapprovalReasons = [], trademarkDisapproved = nil, ad_Type = nil, headline = nil, description1 = nil, description2 = nil)
1694
+ @id = id
1695
+ @url = url
1696
+ @displayUrl = displayUrl
1697
+ @approvalStatus = approvalStatus
1698
+ @disapprovalReasons = disapprovalReasons
1699
+ @trademarkDisapproved = trademarkDisapproved
1700
+ @ad_Type = ad_Type
1701
+ @headline = headline
1702
+ @description1 = description1
1703
+ @description2 = description2
1704
+ end
1705
+ end
1706
+
1707
+ # MobileImageAd
1708
+ # - id - SOAP::SOAPLong
1709
+ # - url - SOAP::SOAPString
1710
+ # - displayUrl - SOAP::SOAPString
1711
+ # - approvalStatus - AdwordsApi::V201101::AdGroupAdService::AdApprovalStatus
1712
+ # - disapprovalReasons - SOAP::SOAPString
1713
+ # - trademarkDisapproved - SOAP::SOAPBoolean
1714
+ # - ad_Type - SOAP::SOAPString
1715
+ # - markupLanguages - AdwordsApi::V201101::AdGroupAdService::MarkupLanguageType
1716
+ # - mobileCarriers - SOAP::SOAPString
1717
+ # - image - AdwordsApi::V201101::AdGroupAdService::Image
1718
+ class MobileImageAd < Ad
1719
+ attr_accessor :id
1720
+ attr_accessor :url
1721
+ attr_accessor :displayUrl
1722
+ attr_accessor :approvalStatus
1723
+ attr_accessor :disapprovalReasons
1724
+ attr_accessor :trademarkDisapproved
1725
+ attr_accessor :ad_Type
1726
+ attr_accessor :markupLanguages
1727
+ attr_accessor :mobileCarriers
1728
+ attr_accessor :image
1729
+
1730
+ def initialize(id = nil, url = nil, displayUrl = nil, approvalStatus = nil, disapprovalReasons = [], trademarkDisapproved = nil, ad_Type = nil, markupLanguages = [], mobileCarriers = [], image = nil)
1731
+ @id = id
1732
+ @url = url
1733
+ @displayUrl = displayUrl
1734
+ @approvalStatus = approvalStatus
1735
+ @disapprovalReasons = disapprovalReasons
1736
+ @trademarkDisapproved = trademarkDisapproved
1737
+ @ad_Type = ad_Type
1738
+ @markupLanguages = markupLanguages
1739
+ @mobileCarriers = mobileCarriers
1740
+ @image = image
1741
+ end
1742
+ end
1743
+
1744
+ # RichMediaAd
1745
+ # abstract
1746
+ # - id - SOAP::SOAPLong
1747
+ # - url - SOAP::SOAPString
1748
+ # - displayUrl - SOAP::SOAPString
1749
+ # - approvalStatus - AdwordsApi::V201101::AdGroupAdService::AdApprovalStatus
1750
+ # - disapprovalReasons - SOAP::SOAPString
1751
+ # - trademarkDisapproved - SOAP::SOAPBoolean
1752
+ # - ad_Type - SOAP::SOAPString
1753
+ # - name - SOAP::SOAPString
1754
+ # - dimensions - AdwordsApi::V201101::AdGroupAdService::Dimensions
1755
+ # - snippet - SOAP::SOAPString
1756
+ # - impressionBeaconUrl - SOAP::SOAPString
1757
+ # - certifiedVendorFormatId - SOAP::SOAPLong
1758
+ class RichMediaAd < Ad
1759
+ attr_accessor :id
1760
+ attr_accessor :url
1761
+ attr_accessor :displayUrl
1762
+ attr_accessor :approvalStatus
1763
+ attr_accessor :disapprovalReasons
1764
+ attr_accessor :trademarkDisapproved
1765
+ attr_accessor :ad_Type
1766
+ attr_accessor :name
1767
+ attr_accessor :dimensions
1768
+ attr_accessor :snippet
1769
+ attr_accessor :impressionBeaconUrl
1770
+ attr_accessor :certifiedVendorFormatId
1771
+
1772
+ def initialize(id = nil, url = nil, displayUrl = nil, approvalStatus = nil, disapprovalReasons = [], trademarkDisapproved = nil, ad_Type = nil, name = nil, dimensions = nil, snippet = nil, impressionBeaconUrl = nil, certifiedVendorFormatId = nil)
1773
+ @id = id
1774
+ @url = url
1775
+ @displayUrl = displayUrl
1776
+ @approvalStatus = approvalStatus
1777
+ @disapprovalReasons = disapprovalReasons
1778
+ @trademarkDisapproved = trademarkDisapproved
1779
+ @ad_Type = ad_Type
1780
+ @name = name
1781
+ @dimensions = dimensions
1782
+ @snippet = snippet
1783
+ @impressionBeaconUrl = impressionBeaconUrl
1784
+ @certifiedVendorFormatId = certifiedVendorFormatId
1785
+ end
1786
+ end
1787
+
1788
+ # ThirdPartyRedirectAd
1789
+ # - id - SOAP::SOAPLong
1790
+ # - url - SOAP::SOAPString
1791
+ # - displayUrl - SOAP::SOAPString
1792
+ # - approvalStatus - AdwordsApi::V201101::AdGroupAdService::AdApprovalStatus
1793
+ # - disapprovalReasons - SOAP::SOAPString
1794
+ # - trademarkDisapproved - SOAP::SOAPBoolean
1795
+ # - ad_Type - SOAP::SOAPString
1796
+ # - name - SOAP::SOAPString
1797
+ # - dimensions - AdwordsApi::V201101::AdGroupAdService::Dimensions
1798
+ # - snippet - SOAP::SOAPString
1799
+ # - impressionBeaconUrl - SOAP::SOAPString
1800
+ # - certifiedVendorFormatId - SOAP::SOAPLong
1801
+ # - isCookieTargeted - SOAP::SOAPBoolean
1802
+ # - isUserInterestTargeted - SOAP::SOAPBoolean
1803
+ # - isTagged - SOAP::SOAPBoolean
1804
+ # - videoTypes - AdwordsApi::V201101::AdGroupAdService::VideoType
1805
+ class ThirdPartyRedirectAd < RichMediaAd
1806
+ attr_accessor :id
1807
+ attr_accessor :url
1808
+ attr_accessor :displayUrl
1809
+ attr_accessor :approvalStatus
1810
+ attr_accessor :disapprovalReasons
1811
+ attr_accessor :trademarkDisapproved
1812
+ attr_accessor :ad_Type
1813
+ attr_accessor :name
1814
+ attr_accessor :dimensions
1815
+ attr_accessor :snippet
1816
+ attr_accessor :impressionBeaconUrl
1817
+ attr_accessor :certifiedVendorFormatId
1818
+ attr_accessor :isCookieTargeted
1819
+ attr_accessor :isUserInterestTargeted
1820
+ attr_accessor :isTagged
1821
+ attr_accessor :videoTypes
1822
+
1823
+ def initialize(id = nil, url = nil, displayUrl = nil, approvalStatus = nil, disapprovalReasons = [], trademarkDisapproved = nil, ad_Type = nil, name = nil, dimensions = nil, snippet = nil, impressionBeaconUrl = nil, certifiedVendorFormatId = nil, isCookieTargeted = nil, isUserInterestTargeted = nil, isTagged = nil, videoTypes = [])
1824
+ @id = id
1825
+ @url = url
1826
+ @displayUrl = displayUrl
1827
+ @approvalStatus = approvalStatus
1828
+ @disapprovalReasons = disapprovalReasons
1829
+ @trademarkDisapproved = trademarkDisapproved
1830
+ @ad_Type = ad_Type
1831
+ @name = name
1832
+ @dimensions = dimensions
1833
+ @snippet = snippet
1834
+ @impressionBeaconUrl = impressionBeaconUrl
1835
+ @certifiedVendorFormatId = certifiedVendorFormatId
1836
+ @isCookieTargeted = isCookieTargeted
1837
+ @isUserInterestTargeted = isUserInterestTargeted
1838
+ @isTagged = isTagged
1839
+ @videoTypes = videoTypes
1840
+ end
1841
+ end
1842
+
1843
+ # ImageAd
1844
+ # - id - SOAP::SOAPLong
1845
+ # - url - SOAP::SOAPString
1846
+ # - displayUrl - SOAP::SOAPString
1847
+ # - approvalStatus - AdwordsApi::V201101::AdGroupAdService::AdApprovalStatus
1848
+ # - disapprovalReasons - SOAP::SOAPString
1849
+ # - trademarkDisapproved - SOAP::SOAPBoolean
1850
+ # - ad_Type - SOAP::SOAPString
1851
+ # - image - AdwordsApi::V201101::AdGroupAdService::Image
1852
+ # - name - SOAP::SOAPString
1853
+ # - adToCopyImageFrom - SOAP::SOAPLong
1854
+ class ImageAd < Ad
1855
+ attr_accessor :id
1856
+ attr_accessor :url
1857
+ attr_accessor :displayUrl
1858
+ attr_accessor :approvalStatus
1859
+ attr_accessor :disapprovalReasons
1860
+ attr_accessor :trademarkDisapproved
1861
+ attr_accessor :ad_Type
1862
+ attr_accessor :image
1863
+ attr_accessor :name
1864
+ attr_accessor :adToCopyImageFrom
1865
+
1866
+ def initialize(id = nil, url = nil, displayUrl = nil, approvalStatus = nil, disapprovalReasons = [], trademarkDisapproved = nil, ad_Type = nil, image = nil, name = nil, adToCopyImageFrom = nil)
1867
+ @id = id
1868
+ @url = url
1869
+ @displayUrl = displayUrl
1870
+ @approvalStatus = approvalStatus
1871
+ @disapprovalReasons = disapprovalReasons
1872
+ @trademarkDisapproved = trademarkDisapproved
1873
+ @ad_Type = ad_Type
1874
+ @image = image
1875
+ @name = name
1876
+ @adToCopyImageFrom = adToCopyImageFrom
1877
+ end
1878
+ end
1879
+
1880
+ # TemplateAd
1881
+ # - id - SOAP::SOAPLong
1882
+ # - url - SOAP::SOAPString
1883
+ # - displayUrl - SOAP::SOAPString
1884
+ # - approvalStatus - AdwordsApi::V201101::AdGroupAdService::AdApprovalStatus
1885
+ # - disapprovalReasons - SOAP::SOAPString
1886
+ # - trademarkDisapproved - SOAP::SOAPBoolean
1887
+ # - ad_Type - SOAP::SOAPString
1888
+ # - templateId - SOAP::SOAPLong
1889
+ # - adUnionId - AdwordsApi::V201101::AdGroupAdService::AdUnionId
1890
+ # - templateElements - AdwordsApi::V201101::AdGroupAdService::TemplateElement
1891
+ # - dimensions - AdwordsApi::V201101::AdGroupAdService::Dimensions
1892
+ # - name - SOAP::SOAPString
1893
+ # - duration - SOAP::SOAPInt
1894
+ class TemplateAd < Ad
1895
+ attr_accessor :id
1896
+ attr_accessor :url
1897
+ attr_accessor :displayUrl
1898
+ attr_accessor :approvalStatus
1899
+ attr_accessor :disapprovalReasons
1900
+ attr_accessor :trademarkDisapproved
1901
+ attr_accessor :ad_Type
1902
+ attr_accessor :templateId
1903
+ attr_accessor :adUnionId
1904
+ attr_accessor :templateElements
1905
+ attr_accessor :dimensions
1906
+ attr_accessor :name
1907
+ attr_accessor :duration
1908
+
1909
+ def initialize(id = nil, url = nil, displayUrl = nil, approvalStatus = nil, disapprovalReasons = [], trademarkDisapproved = nil, ad_Type = nil, templateId = nil, adUnionId = nil, templateElements = [], dimensions = nil, name = nil, duration = nil)
1910
+ @id = id
1911
+ @url = url
1912
+ @displayUrl = displayUrl
1913
+ @approvalStatus = approvalStatus
1914
+ @disapprovalReasons = disapprovalReasons
1915
+ @trademarkDisapproved = trademarkDisapproved
1916
+ @ad_Type = ad_Type
1917
+ @templateId = templateId
1918
+ @adUnionId = adUnionId
1919
+ @templateElements = templateElements
1920
+ @dimensions = dimensions
1921
+ @name = name
1922
+ @duration = duration
1923
+ end
1924
+ end
1925
+
1926
+ # AdGroupAd
1927
+ # - adGroupId - SOAP::SOAPLong
1928
+ # - ad - AdwordsApi::V201101::AdGroupAdService::Ad
1929
+ # - experimentData - AdwordsApi::V201101::AdGroupAdService::AdGroupAdExperimentData
1930
+ # - status - AdwordsApi::V201101::AdGroupAdService::AdGroupAdStatus
1931
+ # - stats - AdwordsApi::V201101::AdGroupAdService::AdStats
1932
+ class AdGroupAd
1933
+ attr_accessor :adGroupId
1934
+ attr_accessor :ad
1935
+ attr_accessor :experimentData
1936
+ attr_accessor :status
1937
+ attr_accessor :stats
1938
+
1939
+ def initialize(adGroupId = nil, ad = nil, experimentData = nil, status = nil, stats = nil)
1940
+ @adGroupId = adGroupId
1941
+ @ad = ad
1942
+ @experimentData = experimentData
1943
+ @status = status
1944
+ @stats = stats
1945
+ end
1946
+ end
1947
+
1948
+ # ListReturnValue
1949
+ # abstract
1950
+ # - listReturnValue_Type - SOAP::SOAPString
1951
+ class ListReturnValue
1952
+ attr_accessor :listReturnValue_Type
1953
+
1954
+ def initialize(listReturnValue_Type = nil)
1955
+ @listReturnValue_Type = listReturnValue_Type
1956
+ end
1957
+ end
1958
+
1959
+ # AdGroupAdReturnValue
1960
+ # - listReturnValue_Type - SOAP::SOAPString
1961
+ # - value - AdwordsApi::V201101::AdGroupAdService::AdGroupAd
1962
+ class AdGroupAdReturnValue < ListReturnValue
1963
+ attr_accessor :listReturnValue_Type
1964
+ attr_accessor :value
1965
+
1966
+ def initialize(listReturnValue_Type = nil, value = [])
1967
+ @listReturnValue_Type = listReturnValue_Type
1968
+ @value = value
1969
+ end
1970
+ end
1971
+
1972
+ # Operation
1973
+ # abstract
1974
+ # - operator - AdwordsApi::V201101::AdGroupAdService::Operator
1975
+ # - operation_Type - SOAP::SOAPString
1976
+ class Operation
1977
+ attr_accessor :operator
1978
+ attr_accessor :operation_Type
1979
+
1980
+ def initialize(operator = nil, operation_Type = nil)
1981
+ @operator = operator
1982
+ @operation_Type = operation_Type
1983
+ end
1984
+ end
1985
+
1986
+ # AdGroupAdOperation
1987
+ # - operator - AdwordsApi::V201101::AdGroupAdService::Operator
1988
+ # - operation_Type - SOAP::SOAPString
1989
+ # - operand - AdwordsApi::V201101::AdGroupAdService::AdGroupAd
1990
+ # - exemptionRequests - AdwordsApi::V201101::AdGroupAdService::ExemptionRequest
1991
+ class AdGroupAdOperation < Operation
1992
+ attr_accessor :operator
1993
+ attr_accessor :operation_Type
1994
+ attr_accessor :operand
1995
+ attr_accessor :exemptionRequests
1996
+
1997
+ def initialize(operator = nil, operation_Type = nil, operand = nil, exemptionRequests = [])
1998
+ @operator = operator
1999
+ @operation_Type = operation_Type
2000
+ @operand = operand
2001
+ @exemptionRequests = exemptionRequests
2002
+ end
2003
+ end
2004
+
2005
+ # Page
2006
+ # abstract
2007
+ # - totalNumEntries - SOAP::SOAPInt
2008
+ # - page_Type - SOAP::SOAPString
2009
+ class Page
2010
+ attr_accessor :totalNumEntries
2011
+ attr_accessor :page_Type
2012
+
2013
+ def initialize(totalNumEntries = nil, page_Type = nil)
2014
+ @totalNumEntries = totalNumEntries
2015
+ @page_Type = page_Type
2016
+ end
2017
+ end
2018
+
2019
+ # AdGroupAdPage
2020
+ # - totalNumEntries - SOAP::SOAPInt
2021
+ # - page_Type - SOAP::SOAPString
2022
+ # - entries - AdwordsApi::V201101::AdGroupAdService::AdGroupAd
2023
+ class AdGroupAdPage < Page
2024
+ attr_accessor :totalNumEntries
2025
+ attr_accessor :page_Type
2026
+ attr_accessor :entries
2027
+
2028
+ def initialize(totalNumEntries = nil, page_Type = nil, entries = [])
2029
+ @totalNumEntries = totalNumEntries
2030
+ @page_Type = page_Type
2031
+ @entries = entries
2032
+ end
2033
+ end
2034
+
2035
+ # Ad.ApprovalStatus
2036
+ class AdApprovalStatus < ::String
2037
+ APPROVED = AdApprovalStatus.new("APPROVED")
2038
+ DISAPPROVED = AdApprovalStatus.new("DISAPPROVED")
2039
+ FAMILY_SAFE = AdApprovalStatus.new("FAMILY_SAFE")
2040
+ NON_FAMILY_SAFE = AdApprovalStatus.new("NON_FAMILY_SAFE")
2041
+ PORN = AdApprovalStatus.new("PORN")
2042
+ UNCHECKED = AdApprovalStatus.new("UNCHECKED")
2043
+ end
2044
+
2045
+ # AdError.Reason
2046
+ class AdErrorReason < ::String
2047
+ ADDRESS_INVALID = AdErrorReason.new("ADDRESS_INVALID")
2048
+ ADDRESS_NOT_COMPLETE = AdErrorReason.new("ADDRESS_NOT_COMPLETE")
2049
+ APPROXIMATELY_TOO_LONG = AdErrorReason.new("APPROXIMATELY_TOO_LONG")
2050
+ APPROXIMATELY_TOO_SHORT = AdErrorReason.new("APPROXIMATELY_TOO_SHORT")
2051
+ AUDIO_ERROR = AdErrorReason.new("AUDIO_ERROR")
2052
+ BAD_SNIPPET = AdErrorReason.new("BAD_SNIPPET")
2053
+ CANNOT_SET_BUSINESS_NAME_IF_URL_SET = AdErrorReason.new("CANNOT_SET_BUSINESS_NAME_IF_URL_SET")
2054
+ CANNOT_SET_URL = AdErrorReason.new("CANNOT_SET_URL")
2055
+ CUSTOMER_NOT_APPROVED_MOBILEADS = AdErrorReason.new("CUSTOMER_NOT_APPROVED_MOBILEADS")
2056
+ CUSTOMER_NOT_APPROVED_THIRDPARTY_ADS = AdErrorReason.new("CUSTOMER_NOT_APPROVED_THIRDPARTY_ADS")
2057
+ CUSTOMER_NOT_APPROVED_THIRDPARTY_REDIRECT_ADS = AdErrorReason.new("CUSTOMER_NOT_APPROVED_THIRDPARTY_REDIRECT_ADS")
2058
+ CUSTOMER_NOT_ELIGIBLE_FOR_UPDATING_BEACON_URL = AdErrorReason.new("CUSTOMER_NOT_ELIGIBLE_FOR_UPDATING_BEACON_URL")
2059
+ DIMENSION_ALREADY_IN_UNION = AdErrorReason.new("DIMENSION_ALREADY_IN_UNION")
2060
+ DIMENSION_MUST_BE_SET = AdErrorReason.new("DIMENSION_MUST_BE_SET")
2061
+ DIMENSION_NOT_IN_UNION = AdErrorReason.new("DIMENSION_NOT_IN_UNION")
2062
+ DISPLAY_URL_CANNOT_BE_SPECIFIED = AdErrorReason.new("DISPLAY_URL_CANNOT_BE_SPECIFIED")
2063
+ DOMESTIC_PHONE_NUMBER_FORMAT = AdErrorReason.new("DOMESTIC_PHONE_NUMBER_FORMAT")
2064
+ ELEMENT_NOT_PRESENT = AdErrorReason.new("ELEMENT_NOT_PRESENT")
2065
+ EMERGENCY_PHONE_NUMBER = AdErrorReason.new("EMERGENCY_PHONE_NUMBER")
2066
+ EMPTY_FIELD = AdErrorReason.new("EMPTY_FIELD")
2067
+ FIELD_NOT_PRESENT = AdErrorReason.new("FIELD_NOT_PRESENT")
2068
+ IMAGE_ERROR = AdErrorReason.new("IMAGE_ERROR")
2069
+ INCONSISTENT_STATUS_IN_TEMPLATE_UNION = AdErrorReason.new("INCONSISTENT_STATUS_IN_TEMPLATE_UNION")
2070
+ INCORRECT_LENGTH = AdErrorReason.new("INCORRECT_LENGTH")
2071
+ INVALID_AD_ADDRESS_CAMPAIGN_TARGET = AdErrorReason.new("INVALID_AD_ADDRESS_CAMPAIGN_TARGET")
2072
+ INVALID_AD_TYPE = AdErrorReason.new("INVALID_AD_TYPE")
2073
+ INVALID_ATTRIBUTES_FOR_MOBILE_IMAGE = AdErrorReason.new("INVALID_ATTRIBUTES_FOR_MOBILE_IMAGE")
2074
+ INVALID_ATTRIBUTES_FOR_MOBILE_TEXT = AdErrorReason.new("INVALID_ATTRIBUTES_FOR_MOBILE_TEXT")
2075
+ INVALID_COUNTRY_CODE = AdErrorReason.new("INVALID_COUNTRY_CODE")
2076
+ INVALID_FORMAT = AdErrorReason.new("INVALID_FORMAT")
2077
+ INVALID_INPUT = AdErrorReason.new("INVALID_INPUT")
2078
+ INVALID_MARKUP_LANGUAGE = AdErrorReason.new("INVALID_MARKUP_LANGUAGE")
2079
+ INVALID_MOBILE_CARRIER = AdErrorReason.new("INVALID_MOBILE_CARRIER")
2080
+ INVALID_MOBILE_CARRIER_TARGET = AdErrorReason.new("INVALID_MOBILE_CARRIER_TARGET")
2081
+ INVALID_NUMBER_OF_ELEMENTS = AdErrorReason.new("INVALID_NUMBER_OF_ELEMENTS")
2082
+ INVALID_PHONE_NUMBER_FORMAT = AdErrorReason.new("INVALID_PHONE_NUMBER_FORMAT")
2083
+ INVALID_RICH_MEDIA_CERTIFIED_VENDOR_FORMAT_ID = AdErrorReason.new("INVALID_RICH_MEDIA_CERTIFIED_VENDOR_FORMAT_ID")
2084
+ INVALID_TEMPLATE_DATA = AdErrorReason.new("INVALID_TEMPLATE_DATA")
2085
+ INVALID_TEMPLATE_ELEMENT_FIELD_TYPE = AdErrorReason.new("INVALID_TEMPLATE_ELEMENT_FIELD_TYPE")
2086
+ INVALID_TEMPLATE_ID = AdErrorReason.new("INVALID_TEMPLATE_ID")
2087
+ INVALID_YOUTUBE_DISPLAY_URL = AdErrorReason.new("INVALID_YOUTUBE_DISPLAY_URL")
2088
+ LINE_TOO_WIDE = AdErrorReason.new("LINE_TOO_WIDE")
2089
+ MARKUP_LANGUAGES_PRESENT = AdErrorReason.new("MARKUP_LANGUAGES_PRESENT")
2090
+ MISSING_ADDRESS_COMPONENT = AdErrorReason.new("MISSING_ADDRESS_COMPONENT")
2091
+ MISSING_ADVERTISEMENT_NAME = AdErrorReason.new("MISSING_ADVERTISEMENT_NAME")
2092
+ MISSING_BUSINESS_NAME = AdErrorReason.new("MISSING_BUSINESS_NAME")
2093
+ MISSING_DESCRIPTION1 = AdErrorReason.new("MISSING_DESCRIPTION1")
2094
+ MISSING_DESCRIPTION2 = AdErrorReason.new("MISSING_DESCRIPTION2")
2095
+ MISSING_DESTINATION_URL = AdErrorReason.new("MISSING_DESTINATION_URL")
2096
+ MISSING_DIMENSION = AdErrorReason.new("MISSING_DIMENSION")
2097
+ MISSING_DISPLAY_URL = AdErrorReason.new("MISSING_DISPLAY_URL")
2098
+ MISSING_HEADLINE = AdErrorReason.new("MISSING_HEADLINE")
2099
+ MISSING_HEIGHT = AdErrorReason.new("MISSING_HEIGHT")
2100
+ MISSING_IMAGE = AdErrorReason.new("MISSING_IMAGE")
2101
+ MISSING_MARKUP_LANGUAGES = AdErrorReason.new("MISSING_MARKUP_LANGUAGES")
2102
+ MISSING_MOBILE_CARRIER = AdErrorReason.new("MISSING_MOBILE_CARRIER")
2103
+ MISSING_PHONE = AdErrorReason.new("MISSING_PHONE")
2104
+ MISSING_REQUIRED_TEMPLATE_FIELDS = AdErrorReason.new("MISSING_REQUIRED_TEMPLATE_FIELDS")
2105
+ MISSING_TEMPLATE_FIELD_VALUE = AdErrorReason.new("MISSING_TEMPLATE_FIELD_VALUE")
2106
+ MISSING_TEXT = AdErrorReason.new("MISSING_TEXT")
2107
+ MISSING_URL_AND_PHONE = AdErrorReason.new("MISSING_URL_AND_PHONE")
2108
+ MISSING_VISIBLE_URL = AdErrorReason.new("MISSING_VISIBLE_URL")
2109
+ MISSING_WIDTH = AdErrorReason.new("MISSING_WIDTH")
2110
+ MUST_USE_TEMP_AD_UNION_ID_ON_ADD = AdErrorReason.new("MUST_USE_TEMP_AD_UNION_ID_ON_ADD")
2111
+ TOO_LONG = AdErrorReason.new("TOO_LONG")
2112
+ TOO_SHORT = AdErrorReason.new("TOO_SHORT")
2113
+ UNION_DIMENSIONS_CANNOT_CHANGE = AdErrorReason.new("UNION_DIMENSIONS_CANNOT_CHANGE")
2114
+ UNKNOWN_ADDRESS_COMPONENT = AdErrorReason.new("UNKNOWN_ADDRESS_COMPONENT")
2115
+ UNKNOWN_FIELD_NAME = AdErrorReason.new("UNKNOWN_FIELD_NAME")
2116
+ UNKNOWN_UNIQUE_NAME = AdErrorReason.new("UNKNOWN_UNIQUE_NAME")
2117
+ UNSUPPORTED_DIMENSIONS = AdErrorReason.new("UNSUPPORTED_DIMENSIONS")
2118
+ URL_HOST_NAME_TOO_LONG = AdErrorReason.new("URL_HOST_NAME_TOO_LONG")
2119
+ URL_INVALID_SCHEME = AdErrorReason.new("URL_INVALID_SCHEME")
2120
+ URL_INVALID_TOP_LEVEL_DOMAIN = AdErrorReason.new("URL_INVALID_TOP_LEVEL_DOMAIN")
2121
+ URL_MALFORMED = AdErrorReason.new("URL_MALFORMED")
2122
+ URL_NO_HOST = AdErrorReason.new("URL_NO_HOST")
2123
+ URL_NO_SCHEME = AdErrorReason.new("URL_NO_SCHEME")
2124
+ URL_NO_TOP_LEVEL_DOMAIN = AdErrorReason.new("URL_NO_TOP_LEVEL_DOMAIN")
2125
+ URL_PATH_NOT_ALLOWED = AdErrorReason.new("URL_PATH_NOT_ALLOWED")
2126
+ URL_PORT_NOT_ALLOWED = AdErrorReason.new("URL_PORT_NOT_ALLOWED")
2127
+ URL_QUERY_NOT_ALLOWED = AdErrorReason.new("URL_QUERY_NOT_ALLOWED")
2128
+ USER_DOES_NOT_HAVE_ACCESS_TO_TEMPLATE = AdErrorReason.new("USER_DOES_NOT_HAVE_ACCESS_TO_TEMPLATE")
2129
+ VALUE_NOT_IN_RANGE = AdErrorReason.new("VALUE_NOT_IN_RANGE")
2130
+ VIDEO_RETRIEVAL_ERROR = AdErrorReason.new("VIDEO_RETRIEVAL_ERROR")
2131
+ end
2132
+
2133
+ # AdGroupAd.Status
2134
+ class AdGroupAdStatus < ::String
2135
+ DISABLED = AdGroupAdStatus.new("DISABLED")
2136
+ ENABLED = AdGroupAdStatus.new("ENABLED")
2137
+ PAUSED = AdGroupAdStatus.new("PAUSED")
2138
+ end
2139
+
2140
+ # AdGroupAdError.Reason
2141
+ class AdGroupAdErrorReason < ::String
2142
+ AD_NOT_UNDER_ADGROUP = AdGroupAdErrorReason.new("AD_NOT_UNDER_ADGROUP")
2143
+ CANNOT_CREATE_DEPRECATED_ADS = AdGroupAdErrorReason.new("CANNOT_CREATE_DEPRECATED_ADS")
2144
+ CANNOT_OPERATE_ON_DELETED_ADGROUPAD = AdGroupAdErrorReason.new("CANNOT_OPERATE_ON_DELETED_ADGROUPAD")
2145
+ EMPTY_FIELD = AdGroupAdErrorReason.new("EMPTY_FIELD")
2146
+ ENTITY_REFERENCED_IN_MULTIPLE_OPS = AdGroupAdErrorReason.new("ENTITY_REFERENCED_IN_MULTIPLE_OPS")
2147
+ UNSUPPORTED_OPERATION = AdGroupAdErrorReason.new("UNSUPPORTED_OPERATION")
2148
+ end
2149
+
2150
+ # AuthenticationError.Reason
2151
+ class AuthenticationErrorReason < ::String
2152
+ AUTHENTICATION_FAILED = AuthenticationErrorReason.new("AUTHENTICATION_FAILED")
2153
+ CLIENT_CUSTOMER_ID_INVALID = AuthenticationErrorReason.new("CLIENT_CUSTOMER_ID_INVALID")
2154
+ CLIENT_CUSTOMER_ID_IS_REQUIRED = AuthenticationErrorReason.new("CLIENT_CUSTOMER_ID_IS_REQUIRED")
2155
+ CLIENT_EMAIL_FAILED_TO_AUTHENTICATE = AuthenticationErrorReason.new("CLIENT_EMAIL_FAILED_TO_AUTHENTICATE")
2156
+ CLIENT_EMAIL_INVALID = AuthenticationErrorReason.new("CLIENT_EMAIL_INVALID")
2157
+ CLIENT_EMAIL_REQUIRED = AuthenticationErrorReason.new("CLIENT_EMAIL_REQUIRED")
2158
+ CUSTOMER_NOT_FOUND = AuthenticationErrorReason.new("CUSTOMER_NOT_FOUND")
2159
+ FAILED_TO_AUTHENTICATE_GOOGLE_ACCOUNT = AuthenticationErrorReason.new("FAILED_TO_AUTHENTICATE_GOOGLE_ACCOUNT")
2160
+ FAILED_TO_RETRIEVE_LOGIN_COOKIE = AuthenticationErrorReason.new("FAILED_TO_RETRIEVE_LOGIN_COOKIE")
2161
+ GOOGLE_ACCOUNT_COOKIE_INVALID = AuthenticationErrorReason.new("GOOGLE_ACCOUNT_COOKIE_INVALID")
2162
+ GOOGLE_ACCOUNT_DELETED = AuthenticationErrorReason.new("GOOGLE_ACCOUNT_DELETED")
2163
+ GOOGLE_ACCOUNT_USER_AND_ADS_USER_MISMATCH = AuthenticationErrorReason.new("GOOGLE_ACCOUNT_USER_AND_ADS_USER_MISMATCH")
2164
+ LOGIN_COOKIE_INVALID = AuthenticationErrorReason.new("LOGIN_COOKIE_INVALID")
2165
+ LOGIN_COOKIE_REQUIRED = AuthenticationErrorReason.new("LOGIN_COOKIE_REQUIRED")
2166
+ NOT_ADS_USER = AuthenticationErrorReason.new("NOT_ADS_USER")
2167
+ OAUTH_TOKEN_DISABLED = AuthenticationErrorReason.new("OAUTH_TOKEN_DISABLED")
2168
+ OAUTH_TOKEN_EXPIRED = AuthenticationErrorReason.new("OAUTH_TOKEN_EXPIRED")
2169
+ OAUTH_TOKEN_HEADER_INVALID = AuthenticationErrorReason.new("OAUTH_TOKEN_HEADER_INVALID")
2170
+ OAUTH_TOKEN_INVALID = AuthenticationErrorReason.new("OAUTH_TOKEN_INVALID")
2171
+ OAUTH_TOKEN_REVOKED = AuthenticationErrorReason.new("OAUTH_TOKEN_REVOKED")
2172
+ USER_ID_INVALID = AuthenticationErrorReason.new("USER_ID_INVALID")
2173
+ end
2174
+
2175
+ # AuthorizationError.Reason
2176
+ class AuthorizationErrorReason < ::String
2177
+ EFFECTIVE_USER_PERMISSION_DENIED = AuthorizationErrorReason.new("EFFECTIVE_USER_PERMISSION_DENIED")
2178
+ NO_ADWORDS_ACCOUNT_FOR_CUSTOMER = AuthorizationErrorReason.new("NO_ADWORDS_ACCOUNT_FOR_CUSTOMER")
2179
+ NO_CUSTOMER_FOUND = AuthorizationErrorReason.new("NO_CUSTOMER_FOUND")
2180
+ UNABLE_TO_AUTHORIZE = AuthorizationErrorReason.new("UNABLE_TO_AUTHORIZE")
2181
+ USER_HAS_READONLY_PERMISSION = AuthorizationErrorReason.new("USER_HAS_READONLY_PERMISSION")
2182
+ USER_PERMISSION_DENIED = AuthorizationErrorReason.new("USER_PERMISSION_DENIED")
2183
+ end
2184
+
2185
+ # ClientTermsError.Reason
2186
+ class ClientTermsErrorReason < ::String
2187
+ INCOMPLETE_SIGNUP_CURRENT_ADWORDS_TNC_NOT_AGREED = ClientTermsErrorReason.new("INCOMPLETE_SIGNUP_CURRENT_ADWORDS_TNC_NOT_AGREED")
2188
+ end
2189
+
2190
+ # DatabaseError.Reason
2191
+ class DatabaseErrorReason < ::String
2192
+ CAMPAIGN_PRODUCT_NOT_SUPPORTED = DatabaseErrorReason.new("CAMPAIGN_PRODUCT_NOT_SUPPORTED")
2193
+ CONCURRENT_MODIFICATION = DatabaseErrorReason.new("CONCURRENT_MODIFICATION")
2194
+ DATABASE_ERROR = DatabaseErrorReason.new("DATABASE_ERROR")
2195
+ DUPLICATE_KEY = DatabaseErrorReason.new("DUPLICATE_KEY")
2196
+ PERMISSION_DENIED = DatabaseErrorReason.new("PERMISSION_DENIED")
2197
+ UNKNOWN = DatabaseErrorReason.new("UNKNOWN")
2198
+ end
2199
+
2200
+ # DateError.Reason
2201
+ class DateErrorReason < ::String
2202
+ DATE_RANGE_MINIMUM_AND_MAXIMUM_DATES_BOTH_NULL = DateErrorReason.new("DATE_RANGE_MINIMUM_AND_MAXIMUM_DATES_BOTH_NULL")
2203
+ DATE_RANGE_MINIMUM_DATE_LATER_THAN_MAXIMUM_DATE = DateErrorReason.new("DATE_RANGE_MINIMUM_DATE_LATER_THAN_MAXIMUM_DATE")
2204
+ EARLIER_THAN_MINIMUM_DATE = DateErrorReason.new("EARLIER_THAN_MINIMUM_DATE")
2205
+ INVALID_FIELD_VALUES_IN_DATE = DateErrorReason.new("INVALID_FIELD_VALUES_IN_DATE")
2206
+ INVALID_STRING_DATE = DateErrorReason.new("INVALID_STRING_DATE")
2207
+ INVALID_STRING_DATE_RANGE = DateErrorReason.new("INVALID_STRING_DATE_RANGE")
2208
+ INVALID_STRING_DATE_TIME = DateErrorReason.new("INVALID_STRING_DATE_TIME")
2209
+ LATER_THAN_MAXIMUM_DATE = DateErrorReason.new("LATER_THAN_MAXIMUM_DATE")
2210
+ end
2211
+
2212
+ # DeprecatedAd.Type
2213
+ class DeprecatedAdType < ::String
2214
+ AUDIO = DeprecatedAdType.new("AUDIO")
2215
+ CLICK_TO_CALL = DeprecatedAdType.new("CLICK_TO_CALL")
2216
+ FROOGLE = DeprecatedAdType.new("FROOGLE")
2217
+ GADGET = DeprecatedAdType.new("GADGET")
2218
+ GADGET_TEMPLATE = DeprecatedAdType.new("GADGET_TEMPLATE")
2219
+ IN_STREAM_VIDEO = DeprecatedAdType.new("IN_STREAM_VIDEO")
2220
+ PRINT = DeprecatedAdType.new("PRINT")
2221
+ TEXT_LINK = DeprecatedAdType.new("TEXT_LINK")
2222
+ TEXT_WIDE = DeprecatedAdType.new("TEXT_WIDE")
2223
+ TEXT_WITH_VIDEO = DeprecatedAdType.new("TEXT_WITH_VIDEO")
2224
+ VIDEO = DeprecatedAdType.new("VIDEO")
2225
+ end
2226
+
2227
+ # DistinctError.Reason
2228
+ class DistinctErrorReason < ::String
2229
+ DUPLICATE_ELEMENT = DistinctErrorReason.new("DUPLICATE_ELEMENT")
2230
+ DUPLICATE_TYPE = DistinctErrorReason.new("DUPLICATE_TYPE")
2231
+ end
2232
+
2233
+ # EntityCountLimitExceeded.Reason
2234
+ class EntityCountLimitExceededReason < ::String
2235
+ ACCOUNT_LIMIT = EntityCountLimitExceededReason.new("ACCOUNT_LIMIT")
2236
+ ADGROUP_DISPLAY_AD_LIMIT = EntityCountLimitExceededReason.new("ADGROUP_DISPLAY_AD_LIMIT")
2237
+ ADGROUP_LIMIT = EntityCountLimitExceededReason.new("ADGROUP_LIMIT")
2238
+ ADGROUP_TEXT_AD_LIMIT = EntityCountLimitExceededReason.new("ADGROUP_TEXT_AD_LIMIT")
2239
+ CAMPAIGN_LIMIT = EntityCountLimitExceededReason.new("CAMPAIGN_LIMIT")
2240
+ UNKNOWN = EntityCountLimitExceededReason.new("UNKNOWN")
2241
+ end
2242
+
2243
+ # EntityNotFound.Reason
2244
+ class EntityNotFoundReason < ::String
2245
+ INVALID_ID = EntityNotFoundReason.new("INVALID_ID")
2246
+ end
2247
+
2248
+ # ExperimentDataStatus
2249
+ class ExperimentDataStatus < ::String
2250
+ ACTIVE = ExperimentDataStatus.new("ACTIVE")
2251
+ DELETED = ExperimentDataStatus.new("DELETED")
2252
+ UNKNOWN = ExperimentDataStatus.new("UNKNOWN")
2253
+ end
2254
+
2255
+ # ExperimentDeltaStatus
2256
+ class ExperimentDeltaStatus < ::String
2257
+ CONTROL_ONLY = ExperimentDeltaStatus.new("CONTROL_ONLY")
2258
+ EXPERIMENT_ONLY = ExperimentDeltaStatus.new("EXPERIMENT_ONLY")
2259
+ MODIFIED = ExperimentDeltaStatus.new("MODIFIED")
2260
+ UNKNOWN = ExperimentDeltaStatus.new("UNKNOWN")
2261
+ end
2262
+
2263
+ # IdError.Reason
2264
+ class IdErrorReason < ::String
2265
+ NOT_FOUND = IdErrorReason.new("NOT_FOUND")
2266
+ end
2267
+
2268
+ # ImageError.Reason
2269
+ class ImageErrorReason < ::String
2270
+ ANIMATED_NOT_ALLOWED = ImageErrorReason.new("ANIMATED_NOT_ALLOWED")
2271
+ ANIMATED_VISUAL_EFFECT = ImageErrorReason.new("ANIMATED_VISUAL_EFFECT")
2272
+ ANIMATION_TOO_LONG = ImageErrorReason.new("ANIMATION_TOO_LONG")
2273
+ BAD_REQUEST = ImageErrorReason.new("BAD_REQUEST")
2274
+ CMYK_JPEG_NOT_ALLOWED = ImageErrorReason.new("CMYK_JPEG_NOT_ALLOWED")
2275
+ ERROR_STORING_IMAGE = ImageErrorReason.new("ERROR_STORING_IMAGE")
2276
+ FILE_TOO_LARGE = ImageErrorReason.new("FILE_TOO_LARGE")
2277
+ FLASH_BAD_GETURL_TARGET = ImageErrorReason.new("FLASH_BAD_GETURL_TARGET")
2278
+ FLASH_ERROR = ImageErrorReason.new("FLASH_ERROR")
2279
+ FLASH_HAS_MOUSE_TRACKING = ImageErrorReason.new("FLASH_HAS_MOUSE_TRACKING")
2280
+ FLASH_HAS_NETWORK_METHODS = ImageErrorReason.new("FLASH_HAS_NETWORK_METHODS")
2281
+ FLASH_HAS_NETWORK_OBJECTS = ImageErrorReason.new("FLASH_HAS_NETWORK_OBJECTS")
2282
+ FLASH_HAS_RANDOM_NUM = ImageErrorReason.new("FLASH_HAS_RANDOM_NUM")
2283
+ FLASH_HAS_URL = ImageErrorReason.new("FLASH_HAS_URL")
2284
+ FLASH_NOT_ALLOWED = ImageErrorReason.new("FLASH_NOT_ALLOWED")
2285
+ FLASH_SELF_TARGETS = ImageErrorReason.new("FLASH_SELF_TARGETS")
2286
+ FLASH_VERSION_NOT_SUPPORTED = ImageErrorReason.new("FLASH_VERSION_NOT_SUPPORTED")
2287
+ FLASH_WITHOUT_CLICKTAG = ImageErrorReason.new("FLASH_WITHOUT_CLICKTAG")
2288
+ IMAGE_DATA_TOO_LARGE = ImageErrorReason.new("IMAGE_DATA_TOO_LARGE")
2289
+ IMAGE_PROCESSING_ERROR = ImageErrorReason.new("IMAGE_PROCESSING_ERROR")
2290
+ IMAGE_TOO_SMALL = ImageErrorReason.new("IMAGE_TOO_SMALL")
2291
+ INVALID_IMAGE = ImageErrorReason.new("INVALID_IMAGE")
2292
+ INVALID_INPUT = ImageErrorReason.new("INVALID_INPUT")
2293
+ LAYOUT_PROBLEM = ImageErrorReason.new("LAYOUT_PROBLEM")
2294
+ PROBLEM_READING_FILE = ImageErrorReason.new("PROBLEM_READING_FILE")
2295
+ PROBLEM_READING_IMAGE_FILE = ImageErrorReason.new("PROBLEM_READING_IMAGE_FILE")
2296
+ SERVER_ERROR = ImageErrorReason.new("SERVER_ERROR")
2297
+ STORAGE_ERROR = ImageErrorReason.new("STORAGE_ERROR")
2298
+ UNEXPECTED_SIZE = ImageErrorReason.new("UNEXPECTED_SIZE")
2299
+ end
2300
+
2301
+ # InternalApiError.Reason
2302
+ class InternalApiErrorReason < ::String
2303
+ UNEXPECTED_INTERNAL_API_ERROR = InternalApiErrorReason.new("UNEXPECTED_INTERNAL_API_ERROR")
2304
+ UNKNOWN = InternalApiErrorReason.new("UNKNOWN")
2305
+ end
2306
+
2307
+ # MarkupLanguageType
2308
+ class MarkupLanguageType < ::String
2309
+ CHTML = MarkupLanguageType.new("CHTML")
2310
+ HTML = MarkupLanguageType.new("HTML")
2311
+ WML = MarkupLanguageType.new("WML")
2312
+ XHTML = MarkupLanguageType.new("XHTML")
2313
+ end
2314
+
2315
+ # Media.MediaType
2316
+ class MediaMediaType < ::String
2317
+ AUDIO = MediaMediaType.new("AUDIO")
2318
+ DYNAMIC_IMAGE = MediaMediaType.new("DYNAMIC_IMAGE")
2319
+ ICON = MediaMediaType.new("ICON")
2320
+ IMAGE = MediaMediaType.new("IMAGE")
2321
+ STANDARD_ICON = MediaMediaType.new("STANDARD_ICON")
2322
+ VIDEO = MediaMediaType.new("VIDEO")
2323
+ end
2324
+
2325
+ # Media.MimeType
2326
+ class MediaMimeType < ::String
2327
+ AUDIO_MP3 = MediaMimeType.new("AUDIO_MP3")
2328
+ AUDIO_WAV = MediaMimeType.new("AUDIO_WAV")
2329
+ FLASH = MediaMimeType.new("FLASH")
2330
+ IMAGE_GIF = MediaMimeType.new("IMAGE_GIF")
2331
+ IMAGE_JPEG = MediaMimeType.new("IMAGE_JPEG")
2332
+ IMAGE_PNG = MediaMimeType.new("IMAGE_PNG")
2333
+ MSEXCEL = MediaMimeType.new("MSEXCEL")
2334
+ MSWORD = MediaMimeType.new("MSWORD")
2335
+ PDF = MediaMimeType.new("PDF")
2336
+ RTF = MediaMimeType.new("RTF")
2337
+ TEXT_HTML = MediaMimeType.new("TEXT_HTML")
2338
+ end
2339
+
2340
+ # Media.Size
2341
+ class MediaSize < ::String
2342
+ FULL = MediaSize.new("FULL")
2343
+ PREVIEW = MediaSize.new("PREVIEW")
2344
+ SHRUNKEN = MediaSize.new("SHRUNKEN")
2345
+ VIDEO_THUMBNAIL = MediaSize.new("VIDEO_THUMBNAIL")
2346
+ end
2347
+
2348
+ # MediaError.Reason
2349
+ class MediaErrorReason < ::String
2350
+ CANNOT_ADD_STANDARD_ICON = MediaErrorReason.new("CANNOT_ADD_STANDARD_ICON")
2351
+ CANNOT_SELECT_STANDARD_ICON_WITH_OTHER_TYPES = MediaErrorReason.new("CANNOT_SELECT_STANDARD_ICON_WITH_OTHER_TYPES")
2352
+ DUPLICATE_MEDIA = MediaErrorReason.new("DUPLICATE_MEDIA")
2353
+ EMPTY_FIELD = MediaErrorReason.new("EMPTY_FIELD")
2354
+ ENTITY_REFERENCED_IN_MULTIPLE_OPS = MediaErrorReason.new("ENTITY_REFERENCED_IN_MULTIPLE_OPS")
2355
+ FIELD_NOT_SUPPORTED_FOR_MEDIA_SUB_TYPE = MediaErrorReason.new("FIELD_NOT_SUPPORTED_FOR_MEDIA_SUB_TYPE")
2356
+ INVALID_MEDIA_ID = MediaErrorReason.new("INVALID_MEDIA_ID")
2357
+ INVALID_MEDIA_SUB_TYPE = MediaErrorReason.new("INVALID_MEDIA_SUB_TYPE")
2358
+ INVALID_MEDIA_TYPE = MediaErrorReason.new("INVALID_MEDIA_TYPE")
2359
+ INVALID_REFERENCE_ID = MediaErrorReason.new("INVALID_REFERENCE_ID")
2360
+ INVALID_YOU_TUBE_ID = MediaErrorReason.new("INVALID_YOU_TUBE_ID")
2361
+ MEDIA_FAILED_TRANSCODING = MediaErrorReason.new("MEDIA_FAILED_TRANSCODING")
2362
+ MEDIA_TYPE_DOES_NOT_MATCH_OBJECT_TYPE = MediaErrorReason.new("MEDIA_TYPE_DOES_NOT_MATCH_OBJECT_TYPE")
2363
+ NO_FIELDS_SPECIFIED = MediaErrorReason.new("NO_FIELDS_SPECIFIED")
2364
+ NULL_REFERENCE_ID_AND_MEDIA_ID = MediaErrorReason.new("NULL_REFERENCE_ID_AND_MEDIA_ID")
2365
+ TOO_LONG = MediaErrorReason.new("TOO_LONG")
2366
+ UNSUPPORTED_OPERATION = MediaErrorReason.new("UNSUPPORTED_OPERATION")
2367
+ UNSUPPORTED_TYPE = MediaErrorReason.new("UNSUPPORTED_TYPE")
2368
+ YOU_TUBE_SERVICE_UNAVAILABLE = MediaErrorReason.new("YOU_TUBE_SERVICE_UNAVAILABLE")
2369
+ YOU_TUBE_VIDEO_NOT_FOUND = MediaErrorReason.new("YOU_TUBE_VIDEO_NOT_FOUND")
2370
+ end
2371
+
2372
+ # NewEntityCreationError.Reason
2373
+ class NewEntityCreationErrorReason < ::String
2374
+ CANNOT_SET_ID_FOR_ADD = NewEntityCreationErrorReason.new("CANNOT_SET_ID_FOR_ADD")
2375
+ end
2376
+
2377
+ # NotEmptyError.Reason
2378
+ class NotEmptyErrorReason < ::String
2379
+ EMPTY_LIST = NotEmptyErrorReason.new("EMPTY_LIST")
2380
+ end
2381
+
2382
+ # NotWhitelistedError.Reason
2383
+ class NotWhitelistedErrorReason < ::String
2384
+ CUSTOMER_NOT_WHITELISTED_FOR_API = NotWhitelistedErrorReason.new("CUSTOMER_NOT_WHITELISTED_FOR_API")
2385
+ end
2386
+
2387
+ # NullError.Reason
2388
+ class NullErrorReason < ::String
2389
+ NULL_CONTENT = NullErrorReason.new("NULL_CONTENT")
2390
+ end
2391
+
2392
+ # OperationAccessDenied.Reason
2393
+ class OperationAccessDeniedReason < ::String
2394
+ ACTION_NOT_PERMITTED = OperationAccessDeniedReason.new("ACTION_NOT_PERMITTED")
2395
+ ADD_OPERATION_NOT_PERMITTED = OperationAccessDeniedReason.new("ADD_OPERATION_NOT_PERMITTED")
2396
+ MUTATE_ACTION_NOT_PERMITTED_FOR_CLIENT = OperationAccessDeniedReason.new("MUTATE_ACTION_NOT_PERMITTED_FOR_CLIENT")
2397
+ REMOVE_OPERATION_NOT_PERMITTED = OperationAccessDeniedReason.new("REMOVE_OPERATION_NOT_PERMITTED")
2398
+ SET_OPERATION_NOT_PERMITTED = OperationAccessDeniedReason.new("SET_OPERATION_NOT_PERMITTED")
2399
+ UNKNOWN = OperationAccessDeniedReason.new("UNKNOWN")
2400
+ end
2401
+
2402
+ # Operator
2403
+ class Operator < ::String
2404
+ ADD = Operator.new("ADD")
2405
+ REMOVE = Operator.new("REMOVE")
2406
+ SET = Operator.new("SET")
2407
+ end
2408
+
2409
+ # PagingError.Reason
2410
+ class PagingErrorReason < ::String
2411
+ NUMBER_OF_RESULTS_CANNOT_BE_NEGATIVE = PagingErrorReason.new("NUMBER_OF_RESULTS_CANNOT_BE_NEGATIVE")
2412
+ START_INDEX_CANNOT_BE_NEGATIVE = PagingErrorReason.new("START_INDEX_CANNOT_BE_NEGATIVE")
2413
+ UNKNOWN = PagingErrorReason.new("UNKNOWN")
2414
+ end
2415
+
2416
+ # Predicate.Operator
2417
+ class PredicateOperator < ::String
2418
+ CONTAINS = PredicateOperator.new("CONTAINS")
2419
+ CONTAINS_IGNORE_CASE = PredicateOperator.new("CONTAINS_IGNORE_CASE")
2420
+ DOES_NOT_CONTAIN = PredicateOperator.new("DOES_NOT_CONTAIN")
2421
+ DOES_NOT_CONTAIN_IGNORE_CASE = PredicateOperator.new("DOES_NOT_CONTAIN_IGNORE_CASE")
2422
+ EQUALS = PredicateOperator.new("EQUALS")
2423
+ GREATER_THAN = PredicateOperator.new("GREATER_THAN")
2424
+ GREATER_THAN_EQUALS = PredicateOperator.new("GREATER_THAN_EQUALS")
2425
+ IN = PredicateOperator.new("IN")
2426
+ LESS_THAN = PredicateOperator.new("LESS_THAN")
2427
+ LESS_THAN_EQUALS = PredicateOperator.new("LESS_THAN_EQUALS")
2428
+ NOT_EQUALS = PredicateOperator.new("NOT_EQUALS")
2429
+ NOT_IN = PredicateOperator.new("NOT_IN")
2430
+ STARTS_WITH = PredicateOperator.new("STARTS_WITH")
2431
+ STARTS_WITH_IGNORE_CASE = PredicateOperator.new("STARTS_WITH_IGNORE_CASE")
2432
+ UNKNOWN = PredicateOperator.new("UNKNOWN")
2433
+ end
2434
+
2435
+ # QuotaCheckError.Reason
2436
+ class QuotaCheckErrorReason < ::String
2437
+ ACCOUNT_DELINQUENT = QuotaCheckErrorReason.new("ACCOUNT_DELINQUENT")
2438
+ ACCOUNT_INACCESSIBLE = QuotaCheckErrorReason.new("ACCOUNT_INACCESSIBLE")
2439
+ ACCOUNT_INACTIVE = QuotaCheckErrorReason.new("ACCOUNT_INACTIVE")
2440
+ INCOMPLETE_SIGNUP = QuotaCheckErrorReason.new("INCOMPLETE_SIGNUP")
2441
+ INCOMPLETE_SIGNUP_LATEST_ADWORDS_API_TNC_NOT_AGREED = QuotaCheckErrorReason.new("INCOMPLETE_SIGNUP_LATEST_ADWORDS_API_TNC_NOT_AGREED")
2442
+ INCOMPLETE_SIGNUP_NO_BILLING_INFO = QuotaCheckErrorReason.new("INCOMPLETE_SIGNUP_NO_BILLING_INFO")
2443
+ INCOMPLETE_SIGNUP_USER_INFO_MISSING = QuotaCheckErrorReason.new("INCOMPLETE_SIGNUP_USER_INFO_MISSING")
2444
+ INCOMPLETE_SIGNUP_USER_INFO_PENDING = QuotaCheckErrorReason.new("INCOMPLETE_SIGNUP_USER_INFO_PENDING")
2445
+ INCOMPLETE_SIGNUP_USER_INFO_REJECTED = QuotaCheckErrorReason.new("INCOMPLETE_SIGNUP_USER_INFO_REJECTED")
2446
+ INVALID_TOKEN_HEADER = QuotaCheckErrorReason.new("INVALID_TOKEN_HEADER")
2447
+ MONTHLY_BUDGET_REACHED = QuotaCheckErrorReason.new("MONTHLY_BUDGET_REACHED")
2448
+ QUOTA_EXCEEDED = QuotaCheckErrorReason.new("QUOTA_EXCEEDED")
2449
+ end
2450
+
2451
+ # RangeError.Reason
2452
+ class RangeErrorReason < ::String
2453
+ TOO_HIGH = RangeErrorReason.new("TOO_HIGH")
2454
+ TOO_LOW = RangeErrorReason.new("TOO_LOW")
2455
+ end
2456
+
2457
+ # RateExceededError.Reason
2458
+ class RateExceededErrorReason < ::String
2459
+ RATE_EXCEEDED = RateExceededErrorReason.new("RATE_EXCEEDED")
2460
+ end
2461
+
2462
+ # ReadOnlyError.Reason
2463
+ class ReadOnlyErrorReason < ::String
2464
+ READ_ONLY = ReadOnlyErrorReason.new("READ_ONLY")
2465
+ end
2466
+
2467
+ # RequestError.Reason
2468
+ class RequestErrorReason < ::String
2469
+ INVALID_INPUT = RequestErrorReason.new("INVALID_INPUT")
2470
+ UNKNOWN = RequestErrorReason.new("UNKNOWN")
2471
+ end
2472
+
2473
+ # RequiredError.Reason
2474
+ class RequiredErrorReason < ::String
2475
+ REQUIRED = RequiredErrorReason.new("REQUIRED")
2476
+ end
2477
+
2478
+ # SelectorError.Reason
2479
+ class SelectorErrorReason < ::String
2480
+ INVALID_FIELD_NAME = SelectorErrorReason.new("INVALID_FIELD_NAME")
2481
+ INVALID_FIELD_SELECTION = SelectorErrorReason.new("INVALID_FIELD_SELECTION")
2482
+ INVALID_PREDICATE_ENUM_VALUE = SelectorErrorReason.new("INVALID_PREDICATE_ENUM_VALUE")
2483
+ INVALID_PREDICATE_FIELD_NAME = SelectorErrorReason.new("INVALID_PREDICATE_FIELD_NAME")
2484
+ INVALID_PREDICATE_OPERATOR = SelectorErrorReason.new("INVALID_PREDICATE_OPERATOR")
2485
+ INVALID_PREDICATE_VALUE = SelectorErrorReason.new("INVALID_PREDICATE_VALUE")
2486
+ MISSING_FIELDS = SelectorErrorReason.new("MISSING_FIELDS")
2487
+ MISSING_PREDICATE_OPERATOR = SelectorErrorReason.new("MISSING_PREDICATE_OPERATOR")
2488
+ MISSING_PREDICATE_VALUES = SelectorErrorReason.new("MISSING_PREDICATE_VALUES")
2489
+ OPERATOR_DOES_NOT_SUPPORT_MULTIPLE_VALUES = SelectorErrorReason.new("OPERATOR_DOES_NOT_SUPPORT_MULTIPLE_VALUES")
2490
+ UNKNOWN_ERROR = SelectorErrorReason.new("UNKNOWN_ERROR")
2491
+ end
2492
+
2493
+ # SizeLimitError.Reason
2494
+ class SizeLimitErrorReason < ::String
2495
+ REQUEST_SIZE_LIMIT_EXCEEDED = SizeLimitErrorReason.new("REQUEST_SIZE_LIMIT_EXCEEDED")
2496
+ RESPONSE_SIZE_LIMIT_EXCEEDED = SizeLimitErrorReason.new("RESPONSE_SIZE_LIMIT_EXCEEDED")
2497
+ UNKNOWN = SizeLimitErrorReason.new("UNKNOWN")
2498
+ end
2499
+
2500
+ # SortOrder
2501
+ class SortOrder < ::String
2502
+ ASCENDING = SortOrder.new("ASCENDING")
2503
+ DESCENDING = SortOrder.new("DESCENDING")
2504
+ end
2505
+
2506
+ # Stats.Network
2507
+ class StatsNetwork < ::String
2508
+ ALL = StatsNetwork.new("ALL")
2509
+ CONTENT = StatsNetwork.new("CONTENT")
2510
+ CONTENT_KEYWORD_BID = StatsNetwork.new("CONTENT_KEYWORD_BID")
2511
+ CONTENT_PLACEMENT_BID = StatsNetwork.new("CONTENT_PLACEMENT_BID")
2512
+ GOOGLE_SEARCH = StatsNetwork.new("GOOGLE_SEARCH")
2513
+ SEARCH = StatsNetwork.new("SEARCH")
2514
+ SEARCH_NETWORK = StatsNetwork.new("SEARCH_NETWORK")
2515
+ UNKNOWN = StatsNetwork.new("UNKNOWN")
2516
+ end
2517
+
2518
+ # StatsQueryError.Reason
2519
+ class StatsQueryErrorReason < ::String
2520
+ DATE_NOT_IN_VALID_RANGE = StatsQueryErrorReason.new("DATE_NOT_IN_VALID_RANGE")
2521
+ end
2522
+
2523
+ # TemplateElementField.Type
2524
+ class TemplateElementFieldType < ::String
2525
+ ADDRESS = TemplateElementFieldType.new("ADDRESS")
2526
+ AUDIO = TemplateElementFieldType.new("AUDIO")
2527
+ ENUM = TemplateElementFieldType.new("ENUM")
2528
+ IMAGE = TemplateElementFieldType.new("IMAGE")
2529
+ NUMBER = TemplateElementFieldType.new("NUMBER")
2530
+ TEXT = TemplateElementFieldType.new("TEXT")
2531
+ URL = TemplateElementFieldType.new("URL")
2532
+ VIDEO = TemplateElementFieldType.new("VIDEO")
2533
+ VISIBLE_URL = TemplateElementFieldType.new("VISIBLE_URL")
2534
+ end
2535
+
2536
+ # VideoType
2537
+ class VideoType < ::String
2538
+ ADOBE = VideoType.new("ADOBE")
2539
+ QUICKTIME = VideoType.new("QUICKTIME")
2540
+ REALPLAYER = VideoType.new("REALPLAYER")
2541
+ WINDOWSMEDIA = VideoType.new("WINDOWSMEDIA")
2542
+ end
2543
+
2544
+ # get
2545
+ # - serviceSelector - AdwordsApi::V201101::AdGroupAdService::Selector
2546
+ class Get #:nodoc: all
2547
+ attr_accessor :serviceSelector
2548
+
2549
+ def initialize(serviceSelector = nil)
2550
+ @serviceSelector = serviceSelector
2551
+ end
2552
+ end
2553
+
2554
+ # getResponse
2555
+ # - rval - AdwordsApi::V201101::AdGroupAdService::AdGroupAdPage
2556
+ class GetResponse #:nodoc: all
2557
+ attr_accessor :rval
2558
+
2559
+ def initialize(rval = nil)
2560
+ @rval = rval
2561
+ end
2562
+ end
2563
+
2564
+ # mutate
2565
+ # - operations - AdwordsApi::V201101::AdGroupAdService::AdGroupAdOperation
2566
+ class Mutate #:nodoc: all
2567
+ attr_accessor :operations
2568
+
2569
+ def initialize(operations = [])
2570
+ @operations = operations
2571
+ end
2572
+ end
2573
+
2574
+ # mutateResponse
2575
+ # - rval - AdwordsApi::V201101::AdGroupAdService::AdGroupAdReturnValue
2576
+ class MutateResponse #:nodoc: all
2577
+ attr_accessor :rval
2578
+
2579
+ def initialize(rval = nil)
2580
+ @rval = rval
2581
+ end
2582
+ end
2583
+
2584
+
2585
+ end; end; end