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,79 @@
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 Resources
20
+ # An ad.
21
+ # @!attribute [rw] id
22
+ # @return [Google::Protobuf::Int64Value]
23
+ # The ID of the ad.
24
+ # @!attribute [rw] final_urls
25
+ # @return [Array<Google::Protobuf::StringValue>]
26
+ # The list of possible final URLs after all cross-domain redirects for the
27
+ # ad.
28
+ # @!attribute [rw] final_mobile_urls
29
+ # @return [Array<Google::Protobuf::StringValue>]
30
+ # The list of possible final mobile URLs after all cross-domain redirects
31
+ # for the ad.
32
+ # @!attribute [rw] tracking_url_template
33
+ # @return [Google::Protobuf::StringValue]
34
+ # The URL template for constructing a tracking URL.
35
+ # @!attribute [rw] url_custom_parameters
36
+ # @return [Array<Google::Ads::Googleads::V0::Common::CustomParameter>]
37
+ # The list of mappings that can be used to substitute custom parameter tags
38
+ # in a
39
+ # +tracking_url_template+, +final_urls+, or +mobile_final_urls+.
40
+ # @!attribute [rw] display_url
41
+ # @return [Google::Protobuf::StringValue]
42
+ # The URL that appears in the ad description for some ad formats.
43
+ # @!attribute [rw] type
44
+ # @return [Google::Ads::Googleads::V0::Enums::AdTypeEnum::AdType]
45
+ # The type of ad.
46
+ # @!attribute [rw] text_ad
47
+ # @return [Google::Ads::Googleads::V0::Common::TextAdInfo]
48
+ # Details pertaining to a text ad.
49
+ # @!attribute [rw] expanded_text_ad
50
+ # @return [Google::Ads::Googleads::V0::Common::ExpandedTextAdInfo]
51
+ # Details pertaining to an expanded text ad.
52
+ # @!attribute [rw] dynamic_search_ad
53
+ # @return [Google::Ads::Googleads::V0::Common::DynamicSearchAdInfo]
54
+ # Details pertaining to a Dynamic Search Ad.
55
+ # @!attribute [rw] responsive_display_ad
56
+ # @return [Google::Ads::Googleads::V0::Common::ResponsiveDisplayAdInfo]
57
+ # Details pertaining to a responsive display ad.
58
+ # @!attribute [rw] call_only_ad
59
+ # @return [Google::Ads::Googleads::V0::Common::CallOnlyAdInfo]
60
+ # Details pertaining to a call-only ad.
61
+ # @!attribute [rw] expanded_dynamic_search_ad
62
+ # @return [Google::Ads::Googleads::V0::Common::ExpandedDynamicSearchAdInfo]
63
+ # Details pertaining to an Expanded Dynamic Search Ad.
64
+ # This type of ad has its headline, final URLs, and display URL
65
+ # auto-generated at serving time according to domain name specific
66
+ # information provided by +dynamic_search_ads_setting+ linked at the
67
+ # campaign level.
68
+ # @!attribute [rw] hotel_ad
69
+ # @return [Google::Ads::Googleads::V0::Common::HotelAdInfo]
70
+ # Details pertaining to a hotel ad.
71
+ # @!attribute [rw] shopping_smart_ad
72
+ # @return [Google::Ads::Googleads::V0::Common::ShoppingSmartAdInfo]
73
+ # Details pertaining to a Smart Shopping ad.
74
+ class Ad; end
75
+ end
76
+ end
77
+ end
78
+ end
79
+ end
@@ -0,0 +1,87 @@
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 Resources
20
+ # An ad group.
21
+ # @!attribute [rw] resource_name
22
+ # @return [String]
23
+ # The resource name of the ad group.
24
+ # Ad group resource names have the form:
25
+ #
26
+ # +customers/{customer_id}/adGroups/{ad_group_id}+
27
+ # @!attribute [rw] id
28
+ # @return [Google::Protobuf::Int64Value]
29
+ # The ID of the ad group.
30
+ # @!attribute [rw] name
31
+ # @return [Google::Protobuf::StringValue]
32
+ # The name of the ad group.
33
+ #
34
+ # This field is required and should not be empty when creating new ad
35
+ # groups.
36
+ #
37
+ # It must contain fewer than 255 UTF-8 full-width characters.
38
+ #
39
+ # It must not contain any null (code point 0x0), NL line feed
40
+ # (code point 0xA) or carriage return (code point 0xD) characters.
41
+ # @!attribute [rw] status
42
+ # @return [Google::Ads::Googleads::V0::Enums::AdGroupStatusEnum::AdGroupStatus]
43
+ # The status of the ad group.
44
+ # @!attribute [rw] type
45
+ # @return [Google::Ads::Googleads::V0::Enums::AdGroupTypeEnum::AdGroupType]
46
+ # The type of the ad group.
47
+ # @!attribute [rw] tracking_url_template
48
+ # @return [Google::Protobuf::StringValue]
49
+ # The URL template for constructing a tracking URL.
50
+ # @!attribute [rw] url_custom_parameters
51
+ # @return [Array<Google::Ads::Googleads::V0::Common::CustomParameter>]
52
+ # The list of mappings used to substitute custom parameter tags in a
53
+ # +tracking_url_template+, +final_urls+, or +mobile_final_urls+.
54
+ # @!attribute [rw] campaign
55
+ # @return [Google::Protobuf::StringValue]
56
+ # The campaign to which the ad group belongs.
57
+ #
58
+ # This field must not be used in WHERE clauses.
59
+ # @!attribute [rw] cpc_bid_micros
60
+ # @return [Google::Protobuf::Int64Value]
61
+ # The maximum CPC (cost-per-click) bid.
62
+ # @!attribute [rw] cpm_bid_micros
63
+ # @return [Google::Protobuf::Int64Value]
64
+ # The maximum CPM (cost-per-thousand viewable impressions) bid.
65
+ # @!attribute [rw] cpa_bid_micros
66
+ # @return [Google::Protobuf::Int64Value]
67
+ # The target cost-per-acquisition (conversion) bid.
68
+ # @!attribute [rw] cpv_bid_micros
69
+ # @return [Google::Protobuf::Int64Value]
70
+ # The CPV (cost-per-view) bid.
71
+ # @!attribute [rw] target_roas_override
72
+ # @return [Google::Protobuf::DoubleValue]
73
+ # The target return on ad spend (ROAS) override. If the ad group's campaign
74
+ # bidding strategy is a standard Target ROAS strategy, then this field
75
+ # overrides the target ROAS specified in the campaign's bidding strategy.
76
+ # Otherwise, this value is ignored.
77
+ # @!attribute [rw] percent_cpc_bid_micros
78
+ # @return [Google::Protobuf::Int64Value]
79
+ # The percent cpc bid amount, expressed as a fraction of the advertised price
80
+ # for some good or service. The valid range for the fraction is [0,1) and the
81
+ # value stored here is 1,000,000 * [fraction].
82
+ class AdGroup; end
83
+ end
84
+ end
85
+ end
86
+ end
87
+ end
@@ -0,0 +1,43 @@
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 Resources
20
+ # An ad group ad.
21
+ # @!attribute [rw] resource_name
22
+ # @return [String]
23
+ # The resource name of the ad.
24
+ # Ad group ad resource names have the form:
25
+ #
26
+ # +customers/{customer_id}/adGroupAds/{ad_group_id}_{ad_id}+
27
+ # @!attribute [rw] status
28
+ # @return [Google::Ads::Googleads::V0::Enums::AdGroupAdStatusEnum::AdGroupAdStatus]
29
+ # The status of the ad.
30
+ # @!attribute [rw] ad_group
31
+ # @return [Google::Protobuf::StringValue]
32
+ # The ad group to which the ad belongs.
33
+ #
34
+ # This field must not be used in WHERE clauses.
35
+ # @!attribute [rw] ad
36
+ # @return [Google::Ads::Googleads::V0::Resources::Ad]
37
+ # The ad.
38
+ class AdGroupAd; end
39
+ end
40
+ end
41
+ end
42
+ end
43
+ 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 Resources
20
+ # Represents an ad group bid modifier.
21
+ # @!attribute [rw] resource_name
22
+ # @return [String]
23
+ # The resource name of the ad group bid modifier.
24
+ # Ad group bid modifier resource names have the form:
25
+ #
26
+ # +customers/{customer_id}/adGroupBidModifiers/{ad_group_id}_{criterion_id}+
27
+ # @!attribute [rw] ad_group
28
+ # @return [Google::Protobuf::StringValue]
29
+ # The ad group to which this criterion belongs.
30
+ #
31
+ # This field must not be used in WHERE clauses.
32
+ # @!attribute [rw] criterion_id
33
+ # @return [Google::Protobuf::Int64Value]
34
+ # The ID of the criterion to bid modify.
35
+ #
36
+ # This field is ignored for mutates.
37
+ # @!attribute [rw] bid_modifier
38
+ # @return [Google::Protobuf::DoubleValue]
39
+ # The modifier for the bid when the criterion matches.
40
+ # @!attribute [rw] base_ad_group
41
+ # @return [Google::Protobuf::StringValue]
42
+ # The base ad group from which this draft/trial adgroup bid modifier was
43
+ # created. If ad_group is a base ad group then this field will be equal to
44
+ # ad_group. If the ad group was created in the draft or trial and has no
45
+ # corresponding base ad group, then this field will be null.
46
+ # This field is readonly.
47
+ # @!attribute [rw] bid_modifier_source
48
+ # @return [Google::Ads::Googleads::V0::Enums::BidModifierSourceEnum::BidModifierSource]
49
+ # Bid modifier source.
50
+ # @!attribute [rw] hotel_date_selection_type
51
+ # @return [Google::Ads::Googleads::V0::Common::HotelDateSelectionTypeInfo]
52
+ # Criterion for hotel date selection (default dates vs. user selected).
53
+ # @!attribute [rw] hotel_advance_booking_window
54
+ # @return [Google::Ads::Googleads::V0::Common::HotelAdvanceBookingWindowInfo]
55
+ # Criterion for number of days prior to the stay the booking is being made.
56
+ # @!attribute [rw] hotel_length_of_stay
57
+ # @return [Google::Ads::Googleads::V0::Common::HotelLengthOfStayInfo]
58
+ # Criterion for length of hotel stay in nights.
59
+ # @!attribute [rw] hotel_check_in_day
60
+ # @return [Google::Ads::Googleads::V0::Common::HotelCheckInDayInfo]
61
+ # Criterion for day of the week the booking is for.
62
+ # @!attribute [rw] device
63
+ # @return [Google::Ads::Googleads::V0::Common::DeviceInfo]
64
+ # A device criterion.
65
+ class AdGroupBidModifier; end
66
+ end
67
+ end
68
+ end
69
+ end
70
+ end
@@ -0,0 +1,148 @@
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 Resources
20
+ # An ad group criterion.
21
+ # @!attribute [rw] resource_name
22
+ # @return [String]
23
+ # The resource name of the ad group criterion.
24
+ # Ad group criterion resource names have the form:
25
+ #
26
+ # +customers/{customer_id}/adGroupCriteria/{ad_group_id}_{criterion_id}+
27
+ # @!attribute [rw] criterion_id
28
+ # @return [Google::Protobuf::Int64Value]
29
+ # The ID of the criterion.
30
+ #
31
+ # This field is ignored for mutates.
32
+ # @!attribute [rw] status
33
+ # @return [Google::Ads::Googleads::V0::Enums::AdGroupCriterionStatusEnum::AdGroupCriterionStatus]
34
+ # The status of the criterion.
35
+ # @!attribute [rw] quality_info
36
+ # @return [Google::Ads::Googleads::V0::Resources::AdGroupCriterion::QualityInfo]
37
+ # Information regarding the quality of the criterion.
38
+ # @!attribute [rw] ad_group
39
+ # @return [Google::Protobuf::StringValue]
40
+ # The ad group to which the criterion belongs.
41
+ #
42
+ # This field must not be used in WHERE clauses.
43
+ # @!attribute [rw] type
44
+ # @return [Google::Ads::Googleads::V0::Enums::CriterionTypeEnum::CriterionType]
45
+ # The type of the criterion.
46
+ # @!attribute [rw] negative
47
+ # @return [Google::Protobuf::BoolValue]
48
+ # Whether to target (+false+) or exclude (+true+) the criterion.
49
+ #
50
+ # This field is immutable. To switch a criterion from positive to negative,
51
+ # remove then re-add it.
52
+ # @!attribute [rw] cpc_bid_micros
53
+ # @return [Google::Protobuf::Int64Value]
54
+ # The CPC (cost-per-click) bid.
55
+ # @!attribute [rw] cpm_bid_micros
56
+ # @return [Google::Protobuf::Int64Value]
57
+ # The CPM (cost-per-thousand viewable impressions) bid.
58
+ # @!attribute [rw] cpv_bid_micros
59
+ # @return [Google::Protobuf::Int64Value]
60
+ # The CPV (cost-per-view) bid.
61
+ # @!attribute [rw] percent_cpc_bid_micros
62
+ # @return [Google::Protobuf::Int64Value]
63
+ # The CPC bid amount, expressed as a fraction of the advertised price
64
+ # for some good or service. The valid range for the fraction is [0,1) and the
65
+ # value stored here is 1,000,000 * [fraction].
66
+ # @!attribute [rw] effective_cpc_bid_micros
67
+ # @return [Google::Protobuf::Int64Value]
68
+ # The effective CPC (cost-per-click) bid.
69
+ # @!attribute [rw] effective_cpm_bid_micros
70
+ # @return [Google::Protobuf::Int64Value]
71
+ # The effective CPM (cost-per-thousand viewable impressions) bid.
72
+ # @!attribute [rw] effective_cpv_bid_micros
73
+ # @return [Google::Protobuf::Int64Value]
74
+ # The effective CPV (cost-per-view) bid.
75
+ # @!attribute [rw] effective_percent_cpc_bid_micros
76
+ # @return [Google::Protobuf::Int64Value]
77
+ # The effective Percent CPC bid amount.
78
+ # @!attribute [rw] effective_cpc_bid_source
79
+ # @return [Google::Ads::Googleads::V0::Enums::BiddingSourceEnum::BiddingSource]
80
+ # Source of the effective CPC bid.
81
+ # @!attribute [rw] effective_cpm_bid_source
82
+ # @return [Google::Ads::Googleads::V0::Enums::BiddingSourceEnum::BiddingSource]
83
+ # Source of the effective CPM bid.
84
+ # @!attribute [rw] effective_cpv_bid_source
85
+ # @return [Google::Ads::Googleads::V0::Enums::BiddingSourceEnum::BiddingSource]
86
+ # Source of the effective CPV bid.
87
+ # @!attribute [rw] effective_percent_cpc_bid_source
88
+ # @return [Google::Ads::Googleads::V0::Enums::BiddingSourceEnum::BiddingSource]
89
+ # Source of the effective Percent CPC bid.
90
+ # @!attribute [rw] position_estimates
91
+ # @return [Google::Ads::Googleads::V0::Resources::AdGroupCriterion::PositionEstimates]
92
+ # Estimates for criterion bids at various positions.
93
+ # @!attribute [rw] final_urls
94
+ # @return [Array<Google::Protobuf::StringValue>]
95
+ # The list of possible final URLs after all cross-domain redirects for the
96
+ # ad.
97
+ # @!attribute [rw] tracking_url_template
98
+ # @return [Google::Protobuf::StringValue]
99
+ # The URL template for constructing a tracking URL.
100
+ # @!attribute [rw] url_custom_parameters
101
+ # @return [Array<Google::Ads::Googleads::V0::Common::CustomParameter>]
102
+ # The list of mappings used to substitute custom parameter tags in a
103
+ # +tracking_url_template+, +final_urls+, or +mobile_final_urls+.
104
+ # @!attribute [rw] keyword
105
+ # @return [Google::Ads::Googleads::V0::Common::KeywordInfo]
106
+ # Keyword.
107
+ # @!attribute [rw] listing_group
108
+ # @return [Google::Ads::Googleads::V0::Common::ListingGroupInfo]
109
+ # Listing group.
110
+ class AdGroupCriterion
111
+ # A container for ad group criterion quality information.
112
+ # @!attribute [rw] quality_score
113
+ # @return [Google::Protobuf::Int32Value]
114
+ # The quality score.
115
+ #
116
+ # This field may not be populated if Google does not have enough
117
+ # information to determine a value.
118
+ # @!attribute [rw] creative_quality_score
119
+ # @return [Google::Ads::Googleads::V0::Enums::QualityScoreBucketEnum::QualityScoreBucket]
120
+ # The performance of the ad compared to other advertisers.
121
+ # @!attribute [rw] post_click_quality_score
122
+ # @return [Google::Ads::Googleads::V0::Enums::QualityScoreBucketEnum::QualityScoreBucket]
123
+ # The quality score of the landing page.
124
+ # @!attribute [rw] search_predicted_ctr
125
+ # @return [Google::Ads::Googleads::V0::Enums::QualityScoreBucketEnum::QualityScoreBucket]
126
+ # The click-through rate compared to that of other advertisers.
127
+ class QualityInfo; end
128
+
129
+ # Estimates for criterion bids at various positions.
130
+ # @!attribute [rw] first_page_cpc_micros
131
+ # @return [Google::Protobuf::Int64Value]
132
+ # The estimate of the CPC bid required for ad to be shown on first
133
+ # page of search results.
134
+ # @!attribute [rw] first_position_cpc_micros
135
+ # @return [Google::Protobuf::Int64Value]
136
+ # The estimate of the CPC bid required for ad to be displayed in first
137
+ # position, at the top of the first page of search results.
138
+ # @!attribute [rw] top_of_page_cpc_micros
139
+ # @return [Google::Protobuf::Int64Value]
140
+ # The estimate of the CPC bid required for ad to be displayed at the top
141
+ # of the first page of search results.
142
+ class PositionEstimates; end
143
+ end
144
+ end
145
+ end
146
+ end
147
+ end
148
+ end
@@ -0,0 +1,73 @@
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 Resources
20
+ # A bidding strategy.
21
+ # @!attribute [rw] resource_name
22
+ # @return [String]
23
+ # The resource name of the bidding strategy.
24
+ # Bidding strategy resource names have the form:
25
+ #
26
+ # +customers/{customer_id}/biddingStrategies/{bidding_strategy_id}+
27
+ # @!attribute [rw] id
28
+ # @return [Google::Protobuf::Int64Value]
29
+ # The ID of the bidding strategy.
30
+ # @!attribute [rw] name
31
+ # @return [Google::Protobuf::StringValue]
32
+ # The name of the bidding strategy.
33
+ # All bidding strategies within an account must be named distinctly.
34
+ #
35
+ # The length of this string should be between 1 and 255, inclusive,
36
+ # in UTF-8 bytes, (trimmed).
37
+ # @!attribute [rw] type
38
+ # @return [Google::Ads::Googleads::V0::Enums::BiddingStrategyTypeEnum::BiddingStrategyType]
39
+ # The type of the bidding strategy.
40
+ # Create a bidding strategy by setting the bidding scheme.
41
+ #
42
+ # This field is read-only.
43
+ # @!attribute [rw] enhanced_cpc
44
+ # @return [Google::Ads::Googleads::V0::Common::EnhancedCpc]
45
+ # A bidding strategy that raises bids for clicks that seem more likely to
46
+ # lead to a conversion and lowers them for clicks where they seem less
47
+ # likely.
48
+ # @!attribute [rw] page_one_promoted
49
+ # @return [Google::Ads::Googleads::V0::Common::PageOnePromoted]
50
+ # A bidding strategy that sets max CPC bids to target impressions on
51
+ # page one or page one promoted slots on google.com.
52
+ # @!attribute [rw] target_cpa
53
+ # @return [Google::Ads::Googleads::V0::Common::TargetCpa]
54
+ # A bidding strategy that sets bids to help get as many conversions as
55
+ # possible at the target cost-per-acquisition (CPA) you set.
56
+ # @!attribute [rw] target_outrank_share
57
+ # @return [Google::Ads::Googleads::V0::Common::TargetOutrankShare]
58
+ # A bidding strategy that sets bids based on the target fraction of
59
+ # auctions where the advertiser should outrank a specific competitor.
60
+ # @!attribute [rw] target_roas
61
+ # @return [Google::Ads::Googleads::V0::Common::TargetRoas]
62
+ # A bidding strategy that helps you maximize revenue while averaging a
63
+ # specific target Return On Ad Spend (ROAS).
64
+ # @!attribute [rw] target_spend
65
+ # @return [Google::Ads::Googleads::V0::Common::TargetSpend]
66
+ # A bid strategy that sets your bids to help get as many clicks as
67
+ # possible within your budget.
68
+ class BiddingStrategy; end
69
+ end
70
+ end
71
+ end
72
+ end
73
+ end