google-ads-googleads 0.3.0 → 0.4.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (161) hide show
  1. checksums.yaml +5 -5
  2. data/ChangeLog +3 -0
  3. data/lib/google/ads/googleads/path_lookup_util.rb +29 -0
  4. data/lib/google/ads/googleads/proto_lookup_util.rb +91 -10
  5. data/lib/google/ads/googleads/v0/common/{ad_pb.rb → ad_type_infos_pb.rb} +4 -22
  6. data/lib/google/ads/googleads/v0/common/criteria_pb.rb +37 -3
  7. data/lib/google/ads/googleads/v0/common/metrics_pb.rb +8 -8
  8. data/lib/google/ads/googleads/v0/common/policy_pb.rb +57 -0
  9. data/lib/google/ads/googleads/v0/enums/ad_group_type_pb.rb +2 -0
  10. data/lib/google/ads/googleads/v0/enums/ad_network_type_pb.rb +1 -0
  11. data/lib/google/ads/googleads/v0/enums/ad_type_pb.rb +1 -0
  12. data/lib/google/ads/googleads/v0/enums/advertising_channel_sub_type_pb.rb +3 -0
  13. data/lib/google/ads/googleads/v0/enums/advertising_channel_type_pb.rb +2 -0
  14. data/lib/google/ads/googleads/v0/enums/bid_modifier_source_pb.rb +28 -0
  15. data/lib/google/ads/googleads/v0/enums/campaign_group_status_pb.rb +28 -0
  16. data/lib/google/ads/googleads/v0/enums/campaign_shared_set_status_pb.rb +28 -0
  17. data/lib/google/ads/googleads/v0/enums/criterion_type_pb.rb +2 -1
  18. data/lib/google/ads/googleads/v0/enums/device_pb.rb +1 -0
  19. data/lib/google/ads/googleads/v0/enums/hotel_date_selection_type_pb.rb +28 -0
  20. data/lib/google/ads/googleads/v0/enums/interaction_type_pb.rb +27 -0
  21. data/lib/google/ads/googleads/v0/enums/minute_of_hour_pb.rb +30 -0
  22. data/lib/google/ads/googleads/v0/enums/month_of_year_pb.rb +38 -0
  23. data/lib/google/ads/googleads/v0/enums/policy_topic_entry_type_pb.rb +31 -0
  24. data/lib/google/ads/googleads/v0/enums/policy_topic_evidence_destination_mismatch_url_type_pb.rb +31 -0
  25. data/lib/google/ads/googleads/v0/enums/product_condition_pb.rb +30 -0
  26. data/lib/google/ads/googleads/v0/enums/product_type_level_pb.rb +31 -0
  27. data/lib/google/ads/googleads/v0/enums/recommendation_type_pb.rb +5 -0
  28. data/lib/google/ads/googleads/v0/enums/shared_set_status_pb.rb +28 -0
  29. data/lib/google/ads/googleads/v0/enums/shared_set_type_pb.rb +28 -0
  30. data/lib/google/ads/googleads/v0/enums/slot_pb.rb +1 -0
  31. data/lib/google/ads/googleads/v0/errors/authentication_error_pb.rb +2 -0
  32. data/lib/google/ads/googleads/v0/errors/authorization_error_pb.rb +2 -0
  33. data/lib/google/ads/googleads/v0/errors/campaign_criterion_error_pb.rb +1 -0
  34. data/lib/google/ads/googleads/v0/errors/campaign_error_pb.rb +1 -2
  35. data/lib/google/ads/googleads/v0/errors/campaign_group_error_pb.rb +29 -0
  36. data/lib/google/ads/googleads/v0/errors/campaign_shared_set_error_pb.rb +27 -0
  37. data/lib/google/ads/googleads/v0/errors/context_error_pb.rb +1 -0
  38. data/lib/google/ads/googleads/v0/errors/database_error_pb.rb +27 -0
  39. data/lib/google/ads/googleads/v0/errors/enum_error_pb.rb +27 -0
  40. data/lib/google/ads/googleads/v0/errors/errors_pb.rb +21 -0
  41. data/lib/google/ads/googleads/v0/errors/header_error_pb.rb +27 -0
  42. data/lib/google/ads/googleads/v0/errors/mutate_error_pb.rb +1 -0
  43. data/lib/google/ads/googleads/v0/errors/policy_finding_error_pb.rb +27 -0
  44. data/lib/google/ads/googleads/v0/errors/query_error_pb.rb +1 -0
  45. data/lib/google/ads/googleads/v0/errors/quota_error_pb.rb +1 -0
  46. data/lib/google/ads/googleads/v0/errors/recommendation_error_pb.rb +1 -0
  47. data/lib/google/ads/googleads/v0/errors/shared_criterion_error_pb.rb +27 -0
  48. data/lib/google/ads/googleads/v0/errors/shared_set_error_pb.rb +30 -0
  49. data/lib/google/ads/googleads/v0/resources/ad_group_ad_pb.rb +2 -2
  50. data/lib/google/ads/googleads/v0/resources/ad_group_bid_modifier_pb.rb +4 -0
  51. data/lib/google/ads/googleads/v0/resources/ad_pb.rb +42 -0
  52. data/lib/google/ads/googleads/v0/resources/campaign_bid_modifier_pb.rb +30 -0
  53. data/lib/google/ads/googleads/v0/resources/campaign_criterion_pb.rb +2 -1
  54. data/lib/google/ads/googleads/v0/resources/campaign_group_pb.rb +27 -0
  55. data/lib/google/ads/googleads/v0/resources/campaign_pb.rb +9 -0
  56. data/lib/google/ads/googleads/v0/resources/campaign_shared_set_pb.rb +27 -0
  57. data/lib/google/ads/googleads/v0/resources/recommendation_pb.rb +25 -2
  58. data/lib/google/ads/googleads/v0/resources/shared_criterion_pb.rb +31 -0
  59. data/lib/google/ads/googleads/v0/resources/shared_set_pb.rb +31 -0
  60. data/lib/google/ads/googleads/v0/services.rb +1163 -0
  61. data/lib/google/ads/googleads/v0/services/ad_group_ad_service_client.rb +4 -4
  62. data/lib/google/ads/googleads/v0/services/ad_group_ad_service_services_pb.rb +2 -3
  63. data/lib/google/ads/googleads/v0/services/ad_group_bid_modifier_service_client.rb +4 -4
  64. data/lib/google/ads/googleads/v0/services/ad_group_bid_modifier_service_services_pb.rb +2 -3
  65. data/lib/google/ads/googleads/v0/services/ad_group_criterion_service_client.rb +4 -4
  66. data/lib/google/ads/googleads/v0/services/ad_group_criterion_service_services_pb.rb +2 -3
  67. data/lib/google/ads/googleads/v0/services/ad_group_service_client.rb +4 -4
  68. data/lib/google/ads/googleads/v0/services/ad_group_service_services_pb.rb +2 -3
  69. data/lib/google/ads/googleads/v0/services/bidding_strategy_service_client.rb +4 -4
  70. data/lib/google/ads/googleads/v0/services/bidding_strategy_service_services_pb.rb +2 -3
  71. data/lib/google/ads/googleads/v0/services/campaign_bid_modifier_service_client.rb +268 -0
  72. data/lib/google/ads/googleads/v0/services/campaign_bid_modifier_service_client_config.json +36 -0
  73. data/lib/google/ads/googleads/v0/services/campaign_bid_modifier_service_pb.rb +47 -0
  74. data/lib/google/ads/googleads/v0/services/campaign_bid_modifier_service_services_pb.rb +51 -0
  75. data/lib/google/ads/googleads/v0/services/campaign_budget_service_client.rb +4 -4
  76. data/lib/google/ads/googleads/v0/services/campaign_budget_service_services_pb.rb +2 -3
  77. data/lib/google/ads/googleads/v0/services/campaign_criterion_service_client.rb +4 -4
  78. data/lib/google/ads/googleads/v0/services/campaign_criterion_service_services_pb.rb +2 -3
  79. data/lib/google/ads/googleads/v0/services/campaign_group_service_client.rb +268 -0
  80. data/lib/google/ads/googleads/v0/services/campaign_group_service_client_config.json +36 -0
  81. data/lib/google/ads/googleads/v0/services/campaign_group_service_pb.rb +47 -0
  82. data/lib/google/ads/googleads/v0/services/campaign_group_service_services_pb.rb +51 -0
  83. data/lib/google/ads/googleads/v0/services/campaign_service_client.rb +4 -4
  84. data/lib/google/ads/googleads/v0/services/campaign_service_services_pb.rb +2 -3
  85. data/lib/google/ads/googleads/v0/services/campaign_shared_set_service_client.rb +267 -0
  86. data/lib/google/ads/googleads/v0/services/campaign_shared_set_service_client_config.json +36 -0
  87. data/lib/google/ads/googleads/v0/services/campaign_shared_set_service_pb.rb +44 -0
  88. data/lib/google/ads/googleads/v0/services/campaign_shared_set_service_services_pb.rb +50 -0
  89. data/lib/google/ads/googleads/v0/services/credentials.rb +10 -2
  90. data/lib/google/ads/googleads/v0/services/customer_service_client.rb +2 -2
  91. data/lib/google/ads/googleads/v0/services/customer_service_services_pb.rb +2 -3
  92. data/lib/google/ads/googleads/v0/services/doc/google/ads/googleads/v0/common/ad_type_infos.rb +120 -0
  93. data/lib/google/ads/googleads/v0/services/doc/google/ads/googleads/v0/common/bidding.rb +176 -0
  94. data/lib/google/ads/googleads/v0/services/doc/google/ads/googleads/v0/common/criteria.rb +225 -0
  95. data/lib/google/ads/googleads/v0/services/doc/google/ads/googleads/v0/common/custom_parameter.rb +33 -0
  96. data/lib/google/ads/googleads/v0/services/doc/google/ads/googleads/v0/common/metrics.rb +208 -0
  97. data/lib/google/ads/googleads/v0/services/doc/google/ads/googleads/v0/resources/ad.rb +79 -0
  98. data/lib/google/ads/googleads/v0/services/doc/google/ads/googleads/v0/resources/ad_group.rb +87 -0
  99. data/lib/google/ads/googleads/v0/services/doc/google/ads/googleads/v0/resources/ad_group_ad.rb +43 -0
  100. data/lib/google/ads/googleads/v0/services/doc/google/ads/googleads/v0/resources/ad_group_bid_modifier.rb +70 -0
  101. data/lib/google/ads/googleads/v0/services/doc/google/ads/googleads/v0/resources/ad_group_criterion.rb +148 -0
  102. data/lib/google/ads/googleads/v0/services/doc/google/ads/googleads/v0/resources/bidding_strategy.rb +73 -0
  103. data/lib/google/ads/googleads/v0/services/doc/google/ads/googleads/v0/resources/campaign.rb +223 -0
  104. data/lib/google/ads/googleads/v0/services/doc/google/ads/googleads/v0/resources/campaign_bid_modifier.rb +46 -0
  105. data/lib/google/ads/googleads/v0/services/doc/google/ads/googleads/v0/resources/campaign_budget.rb +88 -0
  106. data/lib/google/ads/googleads/v0/services/doc/google/ads/googleads/v0/resources/campaign_criterion.rb +66 -0
  107. data/lib/google/ads/googleads/v0/services/doc/google/ads/googleads/v0/resources/campaign_group.rb +49 -0
  108. data/lib/google/ads/googleads/v0/services/doc/google/ads/googleads/v0/resources/campaign_shared_set.rb +47 -0
  109. data/lib/google/ads/googleads/v0/services/doc/google/ads/googleads/v0/resources/customer.rb +57 -0
  110. data/lib/google/ads/googleads/v0/services/doc/google/ads/googleads/v0/resources/geo_target_constant.rb +44 -0
  111. data/lib/google/ads/googleads/v0/services/doc/google/ads/googleads/v0/resources/google_ads_field.rb +89 -0
  112. data/lib/google/ads/googleads/v0/services/doc/google/ads/googleads/v0/resources/keyword_view.rb +32 -0
  113. data/lib/google/ads/googleads/v0/services/doc/google/ads/googleads/v0/resources/recommendation.rb +223 -0
  114. data/lib/google/ads/googleads/v0/services/doc/google/ads/googleads/v0/resources/shared_criterion.rb +46 -0
  115. data/lib/google/ads/googleads/v0/services/doc/google/ads/googleads/v0/resources/shared_set.rb +56 -0
  116. data/lib/google/ads/googleads/v0/services/doc/google/ads/googleads/v0/services/ad_group_ad_service.rb +68 -0
  117. data/lib/google/ads/googleads/v0/services/doc/google/ads/googleads/v0/services/ad_group_bid_modifier_service.rb +71 -0
  118. data/lib/google/ads/googleads/v0/services/doc/google/ads/googleads/v0/services/ad_group_criterion_service.rb +69 -0
  119. data/lib/google/ads/googleads/v0/services/doc/google/ads/googleads/v0/services/ad_group_service.rb +68 -0
  120. data/lib/google/ads/googleads/v0/services/doc/google/ads/googleads/v0/services/bidding_strategy_service.rb +70 -0
  121. data/lib/google/ads/googleads/v0/services/doc/google/ads/googleads/v0/services/campaign_bid_modifier_service.rb +71 -0
  122. data/lib/google/ads/googleads/v0/services/doc/google/ads/googleads/v0/services/campaign_budget_service.rb +69 -0
  123. data/lib/google/ads/googleads/v0/services/doc/google/ads/googleads/v0/services/campaign_criterion_service.rb +69 -0
  124. data/lib/google/ads/googleads/v0/services/doc/google/ads/googleads/v0/services/campaign_group_service.rb +70 -0
  125. data/lib/google/ads/googleads/v0/services/doc/google/ads/googleads/v0/services/campaign_service.rb +69 -0
  126. data/lib/google/ads/googleads/v0/services/doc/google/ads/googleads/v0/services/campaign_shared_set_service.rb +64 -0
  127. data/lib/google/ads/googleads/v0/services/doc/google/ads/googleads/v0/services/customer_service.rb +29 -0
  128. data/lib/google/ads/googleads/v0/services/doc/google/ads/googleads/v0/services/geo_target_constant_service.rb +29 -0
  129. data/lib/google/ads/googleads/v0/services/doc/google/ads/googleads/v0/services/google_ads_field_service.rb +59 -0
  130. data/lib/google/ads/googleads/v0/services/doc/google/ads/googleads/v0/services/google_ads_service.rb +156 -0
  131. data/lib/google/ads/googleads/v0/services/doc/google/ads/googleads/v0/services/keyword_view_service.rb +29 -0
  132. data/lib/google/ads/googleads/v0/services/doc/google/ads/googleads/v0/services/recommendation_service.rb +112 -0
  133. data/lib/google/ads/googleads/v0/services/doc/google/ads/googleads/v0/services/shared_criterion_service.rb +64 -0
  134. data/lib/google/ads/googleads/v0/services/doc/google/ads/googleads/v0/services/shared_set_service.rb +69 -0
  135. data/lib/google/ads/googleads/v0/services/doc/google/protobuf/any.rb +124 -0
  136. data/lib/google/ads/googleads/v0/services/doc/google/protobuf/field_mask.rb +223 -0
  137. data/lib/google/ads/googleads/v0/services/doc/google/protobuf/wrappers.rb +89 -0
  138. data/lib/google/ads/googleads/v0/services/doc/google/rpc/status.rb +83 -0
  139. data/lib/google/ads/googleads/v0/services/doc/overview.rb +82 -0
  140. data/lib/google/ads/googleads/v0/services/geo_target_constant_service_client.rb +2 -2
  141. data/lib/google/ads/googleads/v0/services/geo_target_constant_service_services_pb.rb +2 -3
  142. data/lib/google/ads/googleads/v0/services/google_ads_field_service_client.rb +4 -4
  143. data/lib/google/ads/googleads/v0/services/google_ads_field_service_services_pb.rb +2 -3
  144. data/lib/google/ads/googleads/v0/services/google_ads_service_client.rb +2 -2
  145. data/lib/google/ads/googleads/v0/services/google_ads_service_pb.rb +12 -0
  146. data/lib/google/ads/googleads/v0/services/google_ads_service_services_pb.rb +2 -3
  147. data/lib/google/ads/googleads/v0/services/keyword_view_service_client.rb +2 -2
  148. data/lib/google/ads/googleads/v0/services/keyword_view_service_services_pb.rb +2 -3
  149. data/lib/google/ads/googleads/v0/services/recommendation_service_client.rb +4 -4
  150. data/lib/google/ads/googleads/v0/services/recommendation_service_pb.rb +2 -2
  151. data/lib/google/ads/googleads/v0/services/recommendation_service_services_pb.rb +2 -3
  152. data/lib/google/ads/googleads/v0/services/shared_criterion_service_client.rb +267 -0
  153. data/lib/google/ads/googleads/v0/services/shared_criterion_service_client_config.json +36 -0
  154. data/lib/google/ads/googleads/v0/services/shared_criterion_service_pb.rb +44 -0
  155. data/lib/google/ads/googleads/v0/services/shared_criterion_service_services_pb.rb +50 -0
  156. data/lib/google/ads/googleads/v0/services/shared_set_service_client.rb +267 -0
  157. data/lib/google/ads/googleads/v0/services/shared_set_service_client_config.json +36 -0
  158. data/lib/google/ads/googleads/v0/services/shared_set_service_pb.rb +47 -0
  159. data/lib/google/ads/googleads/v0/services/shared_set_service_services_pb.rb +50 -0
  160. data/lib/google/ads/googleads/version.rb +1 -1
  161. metadata +100 -4
@@ -0,0 +1,71 @@
1
+ # Copyright 2018 Google LLC
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # https://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ module Google
16
+ module Ads
17
+ module Googleads
18
+ module V0
19
+ module Services
20
+ # Request message for {Google::Ads::Googleads::V0::Services::CampaignBidModifierService::GetCampaignBidModifier CampaignBidModifierService::GetCampaignBidModifier}.
21
+ # @!attribute [rw] resource_name
22
+ # @return [String]
23
+ # The resource name of the campaign bid modifier to fetch.
24
+ class GetCampaignBidModifierRequest; end
25
+
26
+ # Request message for {CampaignBidModifierService::MutateCampaignBidModifier}.
27
+ # @!attribute [rw] customer_id
28
+ # @return [String]
29
+ # ID of the customer whose campaign bid modifiers are being modified.
30
+ # @!attribute [rw] operations
31
+ # @return [Array<Google::Ads::Googleads::V0::Services::CampaignBidModifierOperation>]
32
+ # The list of operations to perform on individual campaign bid modifiers.
33
+ class MutateCampaignBidModifiersRequest; end
34
+
35
+ # A single operation (create, remove, update) on a campaign bid modifier.
36
+ # @!attribute [rw] update_mask
37
+ # @return [Google::Protobuf::FieldMask]
38
+ # FieldMask that determines which resource fields are modified in an update.
39
+ # @!attribute [rw] create
40
+ # @return [Google::Ads::Googleads::V0::Resources::CampaignBidModifier]
41
+ # Create operation: No resource name is expected for the new campaign bid
42
+ # modifier.
43
+ # @!attribute [rw] update
44
+ # @return [Google::Ads::Googleads::V0::Resources::CampaignBidModifier]
45
+ # Update operation: The campaign bid modifier is expected to have a valid
46
+ # resource name.
47
+ # @!attribute [rw] remove
48
+ # @return [String]
49
+ # Remove operation: A resource name for the removed campaign bid modifier
50
+ # is expected, in this format:
51
+ #
52
+ #
53
+ # +customers/{customer_id}/CampaignBidModifiers/{campaign_id}_{criterion_id}+
54
+ class CampaignBidModifierOperation; end
55
+
56
+ # Response message for campaign bid modifiers mutate.
57
+ # @!attribute [rw] results
58
+ # @return [Array<Google::Ads::Googleads::V0::Services::MutateCampaignBidModifierResult>]
59
+ # All results for the mutate.
60
+ class MutateCampaignBidModifiersResponse; end
61
+
62
+ # The result for the criterion mutate.
63
+ # @!attribute [rw] resource_name
64
+ # @return [String]
65
+ # Returned for successful operations.
66
+ class MutateCampaignBidModifierResult; end
67
+ end
68
+ end
69
+ end
70
+ end
71
+ end
@@ -0,0 +1,69 @@
1
+ # Copyright 2018 Google LLC
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # https://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ module Google
16
+ module Ads
17
+ module Googleads
18
+ module V0
19
+ module Services
20
+ # Request message for {Google::Ads::Googleads::V0::Services::CampaignBudgetService::GetCampaignBudget CampaignBudgetService::GetCampaignBudget}.
21
+ # @!attribute [rw] resource_name
22
+ # @return [String]
23
+ # The resource name of the campaign budget to fetch.
24
+ class GetCampaignBudgetRequest; end
25
+
26
+ # Request message for {Google::Ads::Googleads::V0::Services::CampaignBudgetService::MutateCampaignBudgets CampaignBudgetService::MutateCampaignBudgets}.
27
+ # @!attribute [rw] customer_id
28
+ # @return [String]
29
+ # The ID of the customer whose campaign budgets are being modified.
30
+ # @!attribute [rw] operations
31
+ # @return [Array<Google::Ads::Googleads::V0::Services::CampaignBudgetOperation>]
32
+ # The list of operations to perform on individual campaign budgets.
33
+ class MutateCampaignBudgetsRequest; end
34
+
35
+ # A single operation (create, update, remove) on a campaign budget.
36
+ # @!attribute [rw] update_mask
37
+ # @return [Google::Protobuf::FieldMask]
38
+ # FieldMask that determines which resource fields are modified in an update.
39
+ # @!attribute [rw] create
40
+ # @return [Google::Ads::Googleads::V0::Resources::CampaignBudget]
41
+ # Create operation: No resource name is expected for the new budget.
42
+ # @!attribute [rw] update
43
+ # @return [Google::Ads::Googleads::V0::Resources::CampaignBudget]
44
+ # Update operation: The campaign budget is expected to have a valid
45
+ # resource name.
46
+ # @!attribute [rw] remove
47
+ # @return [String]
48
+ # Remove operation: A resource name for the removed budget is expected, in
49
+ # this format:
50
+ #
51
+ # +customers/{customer_id}/campaignBudgets/{budget_id}+
52
+ class CampaignBudgetOperation; end
53
+
54
+ # Response message for campaign budget mutate.
55
+ # @!attribute [rw] results
56
+ # @return [Array<Google::Ads::Googleads::V0::Services::MutateCampaignBudgetResult>]
57
+ # All results for the mutate.
58
+ class MutateCampaignBudgetsResponse; end
59
+
60
+ # The result for the campaign budget mutate.
61
+ # @!attribute [rw] resource_name
62
+ # @return [String]
63
+ # Returned for successful operations.
64
+ class MutateCampaignBudgetResult; end
65
+ end
66
+ end
67
+ end
68
+ end
69
+ end
@@ -0,0 +1,69 @@
1
+ # Copyright 2018 Google LLC
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # https://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ module Google
16
+ module Ads
17
+ module Googleads
18
+ module V0
19
+ module Services
20
+ # Request message for {Google::Ads::Googleads::V0::Services::CampaignCriterionService::GetCampaignCriterion CampaignCriterionService::GetCampaignCriterion}.
21
+ # @!attribute [rw] resource_name
22
+ # @return [String]
23
+ # The resource name of the criterion to fetch.
24
+ class GetCampaignCriterionRequest; end
25
+
26
+ # Request message for {Google::Ads::Googleads::V0::Services::CampaignCriterionService::MutateCampaignCriteria CampaignCriterionService::MutateCampaignCriteria}.
27
+ # @!attribute [rw] customer_id
28
+ # @return [String]
29
+ # The ID of the customer whose criteria are being modified.
30
+ # @!attribute [rw] operations
31
+ # @return [Array<Google::Ads::Googleads::V0::Services::CampaignCriterionOperation>]
32
+ # The list of operations to perform on individual criteria.
33
+ class MutateCampaignCriteriaRequest; end
34
+
35
+ # A single operation (create, update, remove) on a campaign criterion.
36
+ # @!attribute [rw] update_mask
37
+ # @return [Google::Protobuf::FieldMask]
38
+ # FieldMask that determines which resource fields are modified in an update.
39
+ # @!attribute [rw] create
40
+ # @return [Google::Ads::Googleads::V0::Resources::CampaignCriterion]
41
+ # Create operation: No resource name is expected for the new criterion.
42
+ # @!attribute [rw] update
43
+ # @return [Google::Ads::Googleads::V0::Resources::CampaignCriterion]
44
+ # Update operation: The criterion is expected to have a valid resource
45
+ # name.
46
+ # @!attribute [rw] remove
47
+ # @return [String]
48
+ # Remove operation: A resource name for the removed criterion is expected,
49
+ # in this format:
50
+ #
51
+ # +customers/{customer_id}/campaignCriteria/{campaign_id}_{criterion_id}+
52
+ class CampaignCriterionOperation; end
53
+
54
+ # Response message for campaign criterion mutate.
55
+ # @!attribute [rw] results
56
+ # @return [Array<Google::Ads::Googleads::V0::Services::MutateCampaignCriterionResult>]
57
+ # All results for the mutate.
58
+ class MutateCampaignCriteriaResponse; end
59
+
60
+ # The result for the criterion mutate.
61
+ # @!attribute [rw] resource_name
62
+ # @return [String]
63
+ # Returned for successful operations.
64
+ class MutateCampaignCriterionResult; end
65
+ end
66
+ end
67
+ end
68
+ end
69
+ end
@@ -0,0 +1,70 @@
1
+ # Copyright 2018 Google LLC
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # https://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ module Google
16
+ module Ads
17
+ module Googleads
18
+ module V0
19
+ module Services
20
+ # Request message for {Google::Ads::Googleads::V0::Services::CampaignGroupService::GetCampaignGroup CampaignGroupService::GetCampaignGroup}.
21
+ # @!attribute [rw] resource_name
22
+ # @return [String]
23
+ # The resource name of the campaign group to fetch.
24
+ class GetCampaignGroupRequest; end
25
+
26
+ # Request message for {Google::Ads::Googleads::V0::Services::CampaignGroupService::MutateCampaignGroups CampaignGroupService::MutateCampaignGroups}.
27
+ # @!attribute [rw] customer_id
28
+ # @return [String]
29
+ # The ID of the customer whose campaign groups are being modified.
30
+ # @!attribute [rw] operations
31
+ # @return [Array<Google::Ads::Googleads::V0::Services::CampaignGroupOperation>]
32
+ # The list of operations to perform on individual campaign groups.
33
+ class MutateCampaignGroupsRequest; end
34
+
35
+ # A single operation (create, update, remove) on a campaign group.
36
+ # @!attribute [rw] update_mask
37
+ # @return [Google::Protobuf::FieldMask]
38
+ # FieldMask that determines which resource fields are modified in an update.
39
+ # @!attribute [rw] create
40
+ # @return [Google::Ads::Googleads::V0::Resources::CampaignGroup]
41
+ # Create operation: No resource name is expected for the new campaign
42
+ # group.
43
+ # @!attribute [rw] update
44
+ # @return [Google::Ads::Googleads::V0::Resources::CampaignGroup]
45
+ # Update operation: The campaign group is expected to have a valid
46
+ # resource name.
47
+ # @!attribute [rw] remove
48
+ # @return [String]
49
+ # Remove operation: A resource name for the removed campaign group is
50
+ # expected, in this format:
51
+ #
52
+ # +customers/{customer_id}/campaignGroups/{campaign_group_id}+
53
+ class CampaignGroupOperation; end
54
+
55
+ # Response message for campaign group mutate.
56
+ # @!attribute [rw] results
57
+ # @return [Array<Google::Ads::Googleads::V0::Services::MutateCampaignGroupResult>]
58
+ # All results for the mutate.
59
+ class MutateCampaignGroupsResponse; end
60
+
61
+ # The result for the campaign group mutate.
62
+ # @!attribute [rw] resource_name
63
+ # @return [String]
64
+ # Returned for successful operations.
65
+ class MutateCampaignGroupResult; end
66
+ end
67
+ end
68
+ end
69
+ end
70
+ end
@@ -0,0 +1,69 @@
1
+ # Copyright 2018 Google LLC
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # https://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ module Google
16
+ module Ads
17
+ module Googleads
18
+ module V0
19
+ module Services
20
+ # Request message for {Google::Ads::Googleads::V0::Services::CampaignService::GetCampaign CampaignService::GetCampaign}.
21
+ # @!attribute [rw] resource_name
22
+ # @return [String]
23
+ # The resource name of the campaign to fetch.
24
+ class GetCampaignRequest; end
25
+
26
+ # Request message for {Google::Ads::Googleads::V0::Services::CampaignService::MutateCampaigns CampaignService::MutateCampaigns}.
27
+ # @!attribute [rw] customer_id
28
+ # @return [String]
29
+ # The ID of the customer whose campaigns are being modified.
30
+ # @!attribute [rw] operations
31
+ # @return [Array<Google::Ads::Googleads::V0::Services::CampaignOperation>]
32
+ # The list of operations to perform on individual campaigns.
33
+ class MutateCampaignsRequest; end
34
+
35
+ # A single operation (create, update, remove) on a campaign.
36
+ # @!attribute [rw] update_mask
37
+ # @return [Google::Protobuf::FieldMask]
38
+ # FieldMask that determines which resource fields are modified in an update.
39
+ # @!attribute [rw] create
40
+ # @return [Google::Ads::Googleads::V0::Resources::Campaign]
41
+ # Create operation: No resource name is expected for the new campaign.
42
+ # @!attribute [rw] update
43
+ # @return [Google::Ads::Googleads::V0::Resources::Campaign]
44
+ # Update operation: The campaign is expected to have a valid
45
+ # resource name.
46
+ # @!attribute [rw] remove
47
+ # @return [String]
48
+ # Remove operation: A resource name for the removed campaign is
49
+ # expected, in this format:
50
+ #
51
+ # +customers/{customer_id}/campaigns/{campaign_id}+
52
+ class CampaignOperation; end
53
+
54
+ # Response message for campaign mutate.
55
+ # @!attribute [rw] results
56
+ # @return [Array<Google::Ads::Googleads::V0::Services::MutateCampaignResult>]
57
+ # All results for the mutate.
58
+ class MutateCampaignsResponse; end
59
+
60
+ # The result for the campaign mutate.
61
+ # @!attribute [rw] resource_name
62
+ # @return [String]
63
+ # Returned for successful operations.
64
+ class MutateCampaignResult; end
65
+ end
66
+ end
67
+ end
68
+ end
69
+ end
@@ -0,0 +1,64 @@
1
+ # Copyright 2018 Google LLC
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # https://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ module Google
16
+ module Ads
17
+ module Googleads
18
+ module V0
19
+ module Services
20
+ # Request message for {Google::Ads::Googleads::V0::Services::CampaignSharedSetService::GetCampaignSharedSet CampaignSharedSetService::GetCampaignSharedSet}.
21
+ # @!attribute [rw] resource_name
22
+ # @return [String]
23
+ # The resource name of the campaign shared set to fetch.
24
+ class GetCampaignSharedSetRequest; end
25
+
26
+ # Request message for {Google::Ads::Googleads::V0::Services::CampaignSharedSetService::MutateCampaignSharedSets CampaignSharedSetService::MutateCampaignSharedSets}.
27
+ # @!attribute [rw] customer_id
28
+ # @return [String]
29
+ # The ID of the customer whose campaign shared sets are being modified.
30
+ # @!attribute [rw] operations
31
+ # @return [Array<Google::Ads::Googleads::V0::Services::CampaignSharedSetOperation>]
32
+ # The list of operations to perform on individual campaign shared sets.
33
+ class MutateCampaignSharedSetsRequest; end
34
+
35
+ # A single operation (create, remove) on an campaign shared set.
36
+ # @!attribute [rw] create
37
+ # @return [Google::Ads::Googleads::V0::Resources::CampaignSharedSet]
38
+ # Create operation: No resource name is expected for the new campaign
39
+ # shared set.
40
+ # @!attribute [rw] remove
41
+ # @return [String]
42
+ # Remove operation: A resource name for the removed campaign shared set is
43
+ # expected, in this format:
44
+ #
45
+ #
46
+ # +customers/{customer_id}/campaignSharedSets/{campaign_id}_{shared_set_id}+
47
+ class CampaignSharedSetOperation; end
48
+
49
+ # Response message for a campaign shared set mutate.
50
+ # @!attribute [rw] results
51
+ # @return [Array<Google::Ads::Googleads::V0::Services::MutateCampaignSharedSetResult>]
52
+ # All results for the mutate.
53
+ class MutateCampaignSharedSetsResponse; end
54
+
55
+ # The result for the campaign shared set mutate.
56
+ # @!attribute [rw] resource_name
57
+ # @return [String]
58
+ # Returned for successful operations.
59
+ class MutateCampaignSharedSetResult; end
60
+ end
61
+ end
62
+ end
63
+ end
64
+ end
@@ -0,0 +1,29 @@
1
+ # Copyright 2018 Google LLC
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # https://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ module Google
16
+ module Ads
17
+ module Googleads
18
+ module V0
19
+ module Services
20
+ # Request message for {Google::Ads::Googleads::V0::Services::CustomerService::GetCustomer CustomerService::GetCustomer}.
21
+ # @!attribute [rw] resource_name
22
+ # @return [String]
23
+ # The resource name of the customer to fetch.
24
+ class GetCustomerRequest; end
25
+ end
26
+ end
27
+ end
28
+ end
29
+ end