google-ads-googleads 0.1.0 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (67) hide show
  1. checksums.yaml +4 -4
  2. data/ChangeLog +4 -1
  3. data/README.md +1 -1
  4. data/lib/google/ads/googleads/{v0/services/credentials.rb → credentials.rb} +6 -10
  5. data/lib/google/ads/googleads/path_lookup_util.rb +18 -0
  6. data/lib/google/ads/googleads/proto_lookup_util.rb +79 -8
  7. data/lib/google/ads/googleads/v0/common/ad_pb.rb +4 -0
  8. data/lib/google/ads/googleads/v0/common/criteria_pb.rb +71 -0
  9. data/lib/google/ads/googleads/v0/enums/ad_group_type_pb.rb +1 -0
  10. data/lib/google/ads/googleads/v0/enums/ad_type_pb.rb +1 -0
  11. data/lib/google/ads/googleads/v0/enums/advertising_channel_type_pb.rb +1 -0
  12. data/lib/google/ads/googleads/v0/enums/bidding_source_pb.rb +29 -0
  13. data/lib/google/ads/googleads/v0/enums/criterion_type_pb.rb +3 -0
  14. data/lib/google/ads/googleads/v0/enums/listing_custom_attribute_index_pb.rb +31 -0
  15. data/lib/google/ads/googleads/v0/enums/listing_group_type_pb.rb +28 -0
  16. data/lib/google/ads/googleads/v0/enums/recommendation_type_pb.rb +30 -0
  17. data/lib/google/ads/googleads/v0/enums/target_cpa_opt_in_recommendation_goal_pb.rb +30 -0
  18. data/lib/google/ads/googleads/v0/errors/ad_error_pb.rb +1 -0
  19. data/lib/google/ads/googleads/v0/errors/ad_group_bid_modifier_error_pb.rb +28 -0
  20. data/lib/google/ads/googleads/v0/errors/ad_group_criterion_error_pb.rb +9 -9
  21. data/lib/google/ads/googleads/v0/errors/authentication_error_pb.rb +0 -4
  22. data/lib/google/ads/googleads/v0/errors/authorization_error_pb.rb +1 -0
  23. data/lib/google/ads/googleads/v0/errors/campaign_error_pb.rb +3 -0
  24. data/lib/google/ads/googleads/v0/errors/context_error_pb.rb +27 -0
  25. data/lib/google/ads/googleads/v0/errors/criterion_error_pb.rb +2 -0
  26. data/lib/google/ads/googleads/v0/errors/errors_pb.rb +8 -0
  27. data/lib/google/ads/googleads/v0/errors/field_error_pb.rb +31 -0
  28. data/lib/google/ads/googleads/v0/errors/internal_error_pb.rb +1 -0
  29. data/lib/google/ads/googleads/v0/errors/mutate_error_pb.rb +0 -3
  30. data/lib/google/ads/googleads/v0/errors/query_error_pb.rb +2 -0
  31. data/lib/google/ads/googleads/v0/errors/recommendation_error_pb.rb +32 -0
  32. data/lib/google/ads/googleads/v0/resources/ad_group_bid_modifier_pb.rb +33 -0
  33. data/lib/google/ads/googleads/v0/resources/ad_group_criterion_pb.rb +5 -4
  34. data/lib/google/ads/googleads/v0/resources/campaign_criterion_pb.rb +3 -0
  35. data/lib/google/ads/googleads/v0/resources/campaign_pb.rb +5 -0
  36. data/lib/google/ads/googleads/v0/resources/customer_pb.rb +1 -0
  37. data/lib/google/ads/googleads/v0/resources/geo_target_constant_pb.rb +27 -0
  38. data/lib/google/ads/googleads/v0/resources/recommendation_pb.rb +85 -0
  39. data/lib/google/ads/googleads/v0/services/ad_group_ad_service_client.rb +3 -3
  40. data/lib/google/ads/googleads/v0/services/ad_group_bid_modifier_service_client.rb +263 -0
  41. data/lib/google/ads/googleads/v0/services/ad_group_bid_modifier_service_client_config.json +36 -0
  42. data/lib/google/ads/googleads/v0/services/ad_group_bid_modifier_service_pb.rb +47 -0
  43. data/lib/google/ads/googleads/v0/services/ad_group_bid_modifier_service_services_pb.rb +52 -0
  44. data/lib/google/ads/googleads/v0/services/ad_group_criterion_service_client.rb +3 -3
  45. data/lib/google/ads/googleads/v0/services/ad_group_service_client.rb +3 -3
  46. data/lib/google/ads/googleads/v0/services/bidding_strategy_service_client.rb +3 -3
  47. data/lib/google/ads/googleads/v0/services/campaign_budget_service_client.rb +3 -3
  48. data/lib/google/ads/googleads/v0/services/campaign_criterion_service_client.rb +3 -3
  49. data/lib/google/ads/googleads/v0/services/campaign_service_client.rb +3 -3
  50. data/lib/google/ads/googleads/v0/services/customer_service_client.rb +3 -3
  51. data/lib/google/ads/googleads/v0/services/geo_target_constant_service_client.rb +214 -0
  52. data/lib/google/ads/googleads/v0/services/geo_target_constant_service_client_config.json +31 -0
  53. data/lib/google/ads/googleads/v0/services/geo_target_constant_service_pb.rb +24 -0
  54. data/lib/google/ads/googleads/v0/services/geo_target_constant_service_services_pb.rb +49 -0
  55. data/lib/google/ads/googleads/v0/services/google_ads_field_service_client.rb +3 -3
  56. data/lib/google/ads/googleads/v0/services/google_ads_field_service_client_config.json +2 -2
  57. data/lib/google/ads/googleads/v0/services/google_ads_service_client.rb +3 -3
  58. data/lib/google/ads/googleads/v0/services/google_ads_service_client_config.json +1 -1
  59. data/lib/google/ads/googleads/v0/services/google_ads_service_pb.rb +6 -0
  60. data/lib/google/ads/googleads/v0/services/keyword_view_service_client.rb +3 -3
  61. data/lib/google/ads/googleads/v0/services/recommendation_service_client.rb +262 -0
  62. data/lib/google/ads/googleads/v0/services/recommendation_service_client_config.json +36 -0
  63. data/lib/google/ads/googleads/v0/services/recommendation_service_pb.rb +73 -0
  64. data/lib/google/ads/googleads/v0/services/recommendation_service_services_pb.rb +51 -0
  65. data/lib/google/ads/googleads/version.rb +1 -1
  66. metadata +27 -4
  67. data/lib/google/ads/googleads/v0/enums/bid_source_pb.rb +0 -29
@@ -10,11 +10,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
10
10
  value :UNSPECIFIED, 0
11
11
  value :UNKNOWN, 1
12
12
  value :AUTHENTICATION_ERROR, 2
13
- value :CLIENT_CUSTOMER_ID_IS_REQUIRED, 3
14
- value :CLIENT_EMAIL_REQUIRED, 4
15
13
  value :CLIENT_CUSTOMER_ID_INVALID, 5
16
- value :CLIENT_EMAIL_INVALID, 6
17
- value :CLIENT_EMAIL_FAILED_TO_AUTHENTICATE, 7
18
14
  value :CUSTOMER_NOT_FOUND, 8
19
15
  value :GOOGLE_ACCOUNT_DELETED, 9
20
16
  value :GOOGLE_ACCOUNT_COOKIE_INVALID, 10
@@ -13,6 +13,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
13
13
  value :DEVELOPER_TOKEN_NOT_WHITELISTED, 3
14
14
  value :DEVELOPER_TOKEN_PROHIBITED, 4
15
15
  value :PROJECT_DISABLED, 5
16
+ value :AUTHORIZATION_ERROR, 6
16
17
  end
17
18
  end
18
19
 
@@ -43,6 +43,9 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
43
43
  value :CANNOT_SET_AD_ROTATION_MODE, 34
44
44
  value :CANNOT_MODIFY_START_DATE_IF_ALREADY_STARTED, 35
45
45
  value :CANNOT_SET_DATE_TO_PAST, 36
46
+ value :MISSING_HOTEL_CUSTOMER_LINK, 37
47
+ value :INVALID_HOTEL_CUSTOMER_LINK, 38
48
+ value :MISSING_HOTEL_SETTING, 39
46
49
  end
47
50
  end
48
51
 
@@ -0,0 +1,27 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # source: google/ads/googleads/v0/errors/context_error.proto
3
+
4
+ require 'google/protobuf'
5
+
6
+ Google::Protobuf::DescriptorPool.generated_pool.build do
7
+ add_message "google.ads.googleads.v0.errors.ContextErrorEnum" do
8
+ end
9
+ add_enum "google.ads.googleads.v0.errors.ContextErrorEnum.ContextError" do
10
+ value :UNSPECIFIED, 0
11
+ value :UNKNOWN, 1
12
+ value :OPERATION_NOT_PERMITTED_FOR_CONTEXT, 2
13
+ end
14
+ end
15
+
16
+ module Google
17
+ module Ads
18
+ module Googleads
19
+ module V0
20
+ module Errors
21
+ ContextErrorEnum = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v0.errors.ContextErrorEnum").msgclass
22
+ ContextErrorEnum::ContextError = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v0.errors.ContextErrorEnum.ContextError").enummodule
23
+ end
24
+ end
25
+ end
26
+ end
27
+ end
@@ -89,6 +89,8 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
89
89
  value :LOCATION_FILTER_NOT_ALLOWED, 79
90
90
  value :LOCATION_FILTER_INVALID, 80
91
91
  value :CANNOT_ATTACH_CRITERIA_AT_CAMPAIGN_AND_ADGROUP, 81
92
+ value :HOTEL_LENGTH_OF_STAY_OVERLAPS_WITH_EXISTING_CRITERION, 82
93
+ value :HOTEL_ADVANCE_BOOKING_WINDOW_OVERLAPS_WITH_EXISTING_CRITERION, 83
92
94
  end
93
95
  end
94
96
 
@@ -8,6 +8,7 @@ require 'google/ads/googleads/v0/common/value_pb'
8
8
  require 'google/ads/googleads/v0/errors/ad_customizer_error_pb'
9
9
  require 'google/ads/googleads/v0/errors/ad_error_pb'
10
10
  require 'google/ads/googleads/v0/errors/ad_group_ad_error_pb'
11
+ require 'google/ads/googleads/v0/errors/ad_group_bid_modifier_error_pb'
11
12
  require 'google/ads/googleads/v0/errors/ad_group_criterion_error_pb'
12
13
  require 'google/ads/googleads/v0/errors/ad_group_error_pb'
13
14
  require 'google/ads/googleads/v0/errors/ad_sharing_error_pb'
@@ -20,11 +21,13 @@ require 'google/ads/googleads/v0/errors/campaign_budget_error_pb'
20
21
  require 'google/ads/googleads/v0/errors/campaign_criterion_error_pb'
21
22
  require 'google/ads/googleads/v0/errors/campaign_error_pb'
22
23
  require 'google/ads/googleads/v0/errors/collection_size_error_pb'
24
+ require 'google/ads/googleads/v0/errors/context_error_pb'
23
25
  require 'google/ads/googleads/v0/errors/criterion_error_pb'
24
26
  require 'google/ads/googleads/v0/errors/date_error_pb'
25
27
  require 'google/ads/googleads/v0/errors/date_range_error_pb'
26
28
  require 'google/ads/googleads/v0/errors/distinct_error_pb'
27
29
  require 'google/ads/googleads/v0/errors/feed_attribute_reference_error_pb'
30
+ require 'google/ads/googleads/v0/errors/field_error_pb'
28
31
  require 'google/ads/googleads/v0/errors/field_mask_error_pb'
29
32
  require 'google/ads/googleads/v0/errors/function_error_pb'
30
33
  require 'google/ads/googleads/v0/errors/function_parsing_error_pb'
@@ -44,6 +47,7 @@ require 'google/ads/googleads/v0/errors/operator_error_pb'
44
47
  require 'google/ads/googleads/v0/errors/query_error_pb'
45
48
  require 'google/ads/googleads/v0/errors/quota_error_pb'
46
49
  require 'google/ads/googleads/v0/errors/range_error_pb'
50
+ require 'google/ads/googleads/v0/errors/recommendation_error_pb'
47
51
  require 'google/ads/googleads/v0/errors/region_code_error_pb'
48
52
  require 'google/ads/googleads/v0/errors/request_error_pb'
49
53
  require 'google/ads/googleads/v0/errors/resource_access_denied_error_pb'
@@ -106,6 +110,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
106
110
  optional :null_error, :enum, 47, "google.ads.googleads.v0.errors.NullErrorEnum.NullError"
107
111
  optional :operator_error, :enum, 48, "google.ads.googleads.v0.errors.OperatorErrorEnum.OperatorError"
108
112
  optional :range_error, :enum, 49, "google.ads.googleads.v0.errors.RangeErrorEnum.RangeError"
113
+ optional :recommendation_error, :enum, 58, "google.ads.googleads.v0.errors.RecommendationErrorEnum.RecommendationError"
109
114
  optional :region_code_error, :enum, 51, "google.ads.googleads.v0.errors.RegionCodeErrorEnum.RegionCodeError"
110
115
  optional :setting_error, :enum, 52, "google.ads.googleads.v0.errors.SettingErrorEnum.SettingError"
111
116
  optional :string_format_error, :enum, 53, "google.ads.googleads.v0.errors.StringFormatErrorEnum.StringFormatError"
@@ -113,6 +118,9 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
113
118
  optional :operation_access_denied_error, :enum, 55, "google.ads.googleads.v0.errors.OperationAccessDeniedErrorEnum.OperationAccessDeniedError"
114
119
  optional :resource_access_denied_error, :enum, 56, "google.ads.googleads.v0.errors.ResourceAccessDeniedErrorEnum.ResourceAccessDeniedError"
115
120
  optional :resource_count_limit_exceeded_error, :enum, 57, "google.ads.googleads.v0.errors.ResourceCountLimitExceededErrorEnum.ResourceCountLimitExceededError"
121
+ optional :ad_group_bid_modifier_error, :enum, 59, "google.ads.googleads.v0.errors.AdGroupBidModifierErrorEnum.AdGroupBidModifierError"
122
+ optional :context_error, :enum, 60, "google.ads.googleads.v0.errors.ContextErrorEnum.ContextError"
123
+ optional :field_error, :enum, 61, "google.ads.googleads.v0.errors.FieldErrorEnum.FieldError"
116
124
  end
117
125
  end
118
126
  add_message "google.ads.googleads.v0.errors.ErrorLocation" do
@@ -0,0 +1,31 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # source: google/ads/googleads/v0/errors/field_error.proto
3
+
4
+ require 'google/protobuf'
5
+
6
+ Google::Protobuf::DescriptorPool.generated_pool.build do
7
+ add_message "google.ads.googleads.v0.errors.FieldErrorEnum" do
8
+ end
9
+ add_enum "google.ads.googleads.v0.errors.FieldErrorEnum.FieldError" do
10
+ value :UNSPECIFIED, 0
11
+ value :UNKNOWN, 1
12
+ value :REQUIRED, 2
13
+ value :IMMUTABLE_FIELD, 3
14
+ value :INVALID_VALUE, 4
15
+ value :VALUE_MUST_BE_UNSET, 5
16
+ value :REQUIRED_NONEMPTY_LIST, 6
17
+ end
18
+ end
19
+
20
+ module Google
21
+ module Ads
22
+ module Googleads
23
+ module V0
24
+ module Errors
25
+ FieldErrorEnum = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v0.errors.FieldErrorEnum").msgclass
26
+ FieldErrorEnum::FieldError = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v0.errors.FieldErrorEnum.FieldError").enummodule
27
+ end
28
+ end
29
+ end
30
+ end
31
+ end
@@ -11,6 +11,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
11
11
  value :UNKNOWN, 1
12
12
  value :INTERNAL_ERROR, 2
13
13
  value :ERROR_CODE_NOT_PUBLISHED, 3
14
+ value :TRANSIENT_ERROR, 4
14
15
  end
15
16
  end
16
17
 
@@ -10,9 +10,6 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
10
10
  value :UNSPECIFIED, 0
11
11
  value :UNKNOWN, 1
12
12
  value :RESOURCE_NOT_FOUND, 3
13
- value :REQUIRED_FIELD_MISSING, 4
14
- value :FIELD_NOT_CLEARABLE, 5
15
- value :INVALID_FIELD_VALUE, 6
16
13
  value :ID_EXISTS_IN_MULTIPLE_MUTATES, 7
17
14
  end
18
15
  end
@@ -31,8 +31,10 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
31
31
  value :EXPECTED_SINGLE_VALUE, 42
32
32
  value :EXPECTED_VALUE_WITH_BETWEEN_OPERATOR, 29
33
33
  value :INVALID_DATE_FORMAT, 38
34
+ value :INVALID_STRING_VALUE, 57
34
35
  value :INVALID_VALUE_WITH_BETWEEN_OPERATOR, 26
35
36
  value :INVALID_VALUE_WITH_DURING_OPERATOR, 22
37
+ value :INVALID_VALUE_WITH_LIKE_OPERATOR, 56
36
38
  value :OPERATOR_FIELD_MISMATCH, 35
37
39
  value :PROHIBITED_EMPTY_LIST_IN_CONDITION, 28
38
40
  value :PROHIBITED_ENUM_CONSTANT, 54
@@ -0,0 +1,32 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # source: google/ads/googleads/v0/errors/recommendation_error.proto
3
+
4
+ require 'google/protobuf'
5
+
6
+ Google::Protobuf::DescriptorPool.generated_pool.build do
7
+ add_message "google.ads.googleads.v0.errors.RecommendationErrorEnum" do
8
+ end
9
+ add_enum "google.ads.googleads.v0.errors.RecommendationErrorEnum.RecommendationError" do
10
+ value :UNSPECIFIED, 0
11
+ value :UNKNOWN, 1
12
+ value :BUDGET_AMOUNT_TOO_SMALL, 2
13
+ value :BUDGET_AMOUNT_TOO_LARGE, 3
14
+ value :INVALID_BUDGET_AMOUNT, 4
15
+ value :POLICY_ERROR, 5
16
+ value :INVALID_BID_AMOUNT, 6
17
+ value :ADGROUP_KEYWORD_LIMIT, 7
18
+ end
19
+ end
20
+
21
+ module Google
22
+ module Ads
23
+ module Googleads
24
+ module V0
25
+ module Errors
26
+ RecommendationErrorEnum = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v0.errors.RecommendationErrorEnum").msgclass
27
+ RecommendationErrorEnum::RecommendationError = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v0.errors.RecommendationErrorEnum.RecommendationError").enummodule
28
+ end
29
+ end
30
+ end
31
+ end
32
+ end
@@ -0,0 +1,33 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # source: google/ads/googleads/v0/resources/ad_group_bid_modifier.proto
3
+
4
+ require 'google/protobuf'
5
+
6
+ require 'google/ads/googleads/v0/common/criteria_pb'
7
+ require 'google/protobuf/wrappers_pb'
8
+ Google::Protobuf::DescriptorPool.generated_pool.build do
9
+ add_message "google.ads.googleads.v0.resources.AdGroupBidModifier" do
10
+ optional :resource_name, :string, 1
11
+ optional :ad_group, :message, 2, "google.protobuf.StringValue"
12
+ optional :criterion_id, :message, 3, "google.protobuf.Int64Value"
13
+ optional :bid_modifier, :message, 4, "google.protobuf.DoubleValue"
14
+ oneof :criterion do
15
+ optional :hotel_date_selection_type, :message, 5, "google.ads.googleads.v0.common.HotelDateSelectionTypeInfo"
16
+ optional :hotel_advance_booking_window, :message, 6, "google.ads.googleads.v0.common.HotelAdvanceBookingWindowInfo"
17
+ optional :hotel_length_of_stay, :message, 7, "google.ads.googleads.v0.common.HotelLengthOfStayInfo"
18
+ optional :hotel_check_in_day, :message, 8, "google.ads.googleads.v0.common.HotelCheckInDayInfo"
19
+ end
20
+ end
21
+ end
22
+
23
+ module Google
24
+ module Ads
25
+ module Googleads
26
+ module V0
27
+ module Resources
28
+ AdGroupBidModifier = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v0.resources.AdGroupBidModifier").msgclass
29
+ end
30
+ end
31
+ end
32
+ end
33
+ end
@@ -6,7 +6,7 @@ require 'google/protobuf'
6
6
  require 'google/ads/googleads/v0/common/criteria_pb'
7
7
  require 'google/ads/googleads/v0/common/custom_parameter_pb'
8
8
  require 'google/ads/googleads/v0/enums/ad_group_criterion_status_pb'
9
- require 'google/ads/googleads/v0/enums/bid_source_pb'
9
+ require 'google/ads/googleads/v0/enums/bidding_source_pb'
10
10
  require 'google/ads/googleads/v0/enums/criterion_type_pb'
11
11
  require 'google/ads/googleads/v0/enums/quality_score_bucket_pb'
12
12
  require 'google/protobuf/wrappers_pb'
@@ -25,15 +25,16 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
25
25
  optional :effective_cpc_bid_micros, :message, 18, "google.protobuf.Int64Value"
26
26
  optional :effective_cpm_bid_micros, :message, 19, "google.protobuf.Int64Value"
27
27
  optional :effective_cpv_bid_micros, :message, 20, "google.protobuf.Int64Value"
28
- optional :effective_cpc_bid_source, :enum, 21, "google.ads.googleads.v0.enums.BidSourceEnum.BidSource"
29
- optional :effective_cpm_bid_source, :enum, 22, "google.ads.googleads.v0.enums.BidSourceEnum.BidSource"
30
- optional :effective_cpv_bid_source, :enum, 23, "google.ads.googleads.v0.enums.BidSourceEnum.BidSource"
28
+ optional :effective_cpc_bid_source, :enum, 21, "google.ads.googleads.v0.enums.BiddingSourceEnum.BiddingSource"
29
+ optional :effective_cpm_bid_source, :enum, 22, "google.ads.googleads.v0.enums.BiddingSourceEnum.BiddingSource"
30
+ optional :effective_cpv_bid_source, :enum, 23, "google.ads.googleads.v0.enums.BiddingSourceEnum.BiddingSource"
31
31
  optional :position_estimates, :message, 10, "google.ads.googleads.v0.resources.AdGroupCriterion.PositionEstimates"
32
32
  repeated :final_urls, :message, 11, "google.protobuf.StringValue"
33
33
  optional :tracking_url_template, :message, 13, "google.protobuf.StringValue"
34
34
  repeated :url_custom_parameters, :message, 14, "google.ads.googleads.v0.common.CustomParameter"
35
35
  oneof :criterion do
36
36
  optional :keyword, :message, 27, "google.ads.googleads.v0.common.KeywordInfo"
37
+ optional :listing_group, :message, 32, "google.ads.googleads.v0.common.ListingGroupInfo"
37
38
  end
38
39
  end
39
40
  add_message "google.ads.googleads.v0.resources.AdGroupCriterion.QualityInfo" do
@@ -11,10 +11,13 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
11
11
  optional :resource_name, :string, 1
12
12
  optional :campaign, :message, 4, "google.protobuf.StringValue"
13
13
  optional :criterion_id, :message, 5, "google.protobuf.Int64Value"
14
+ optional :bid_modifier, :message, 14, "google.protobuf.FloatValue"
14
15
  optional :negative, :message, 7, "google.protobuf.BoolValue"
15
16
  optional :type, :enum, 6, "google.ads.googleads.v0.enums.CriterionTypeEnum.CriterionType"
16
17
  oneof :criterion do
17
18
  optional :keyword, :message, 8, "google.ads.googleads.v0.common.KeywordInfo"
19
+ optional :location, :message, 12, "google.ads.googleads.v0.common.LocationInfo"
20
+ optional :platform, :message, 13, "google.ads.googleads.v0.common.PlatformInfo"
18
21
  end
19
22
  end
20
23
  end
@@ -25,6 +25,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
25
25
  optional :tracking_url_template, :message, 11, "google.protobuf.StringValue"
26
26
  repeated :url_custom_parameters, :message, 12, "google.ads.googleads.v0.common.CustomParameter"
27
27
  optional :network_settings, :message, 14, "google.ads.googleads.v0.resources.Campaign.NetworkSettings"
28
+ optional :hotel_setting, :message, 32, "google.ads.googleads.v0.resources.Campaign.HotelSettingInfo"
28
29
  optional :dynamic_search_ads_setting, :message, 33, "google.ads.googleads.v0.resources.Campaign.DynamicSearchAdsSetting"
29
30
  optional :campaign_budget, :message, 6, "google.protobuf.StringValue"
30
31
  optional :bidding_strategy_type, :enum, 22, "google.ads.googleads.v0.enums.BiddingStrategyTypeEnum.BiddingStrategyType"
@@ -47,6 +48,9 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
47
48
  optional :target_content_network, :message, 3, "google.protobuf.BoolValue"
48
49
  optional :target_partner_search_network, :message, 4, "google.protobuf.BoolValue"
49
50
  end
51
+ add_message "google.ads.googleads.v0.resources.Campaign.HotelSettingInfo" do
52
+ optional :hotel_center_id, :message, 1, "google.protobuf.Int64Value"
53
+ end
50
54
  add_message "google.ads.googleads.v0.resources.Campaign.DynamicSearchAdsSetting" do
51
55
  optional :domain_name, :message, 1, "google.protobuf.StringValue"
52
56
  optional :language_code, :message, 2, "google.protobuf.StringValue"
@@ -62,6 +66,7 @@ module Google
62
66
  module Resources
63
67
  Campaign = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v0.resources.Campaign").msgclass
64
68
  Campaign::NetworkSettings = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v0.resources.Campaign.NetworkSettings").msgclass
69
+ Campaign::HotelSettingInfo = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v0.resources.Campaign.HotelSettingInfo").msgclass
65
70
  Campaign::DynamicSearchAdsSetting = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v0.resources.Campaign.DynamicSearchAdsSetting").msgclass
66
71
  end
67
72
  end
@@ -13,6 +13,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
13
13
  optional :time_zone, :message, 6, "google.protobuf.StringValue"
14
14
  optional :tracking_url_template, :message, 7, "google.protobuf.StringValue"
15
15
  optional :auto_tagging_enabled, :message, 8, "google.protobuf.BoolValue"
16
+ optional :has_partners_badge, :message, 9, "google.protobuf.BoolValue"
16
17
  end
17
18
  end
18
19
 
@@ -0,0 +1,27 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # source: google/ads/googleads/v0/resources/geo_target_constant.proto
3
+
4
+ require 'google/protobuf'
5
+
6
+ require 'google/protobuf/wrappers_pb'
7
+ Google::Protobuf::DescriptorPool.generated_pool.build do
8
+ add_message "google.ads.googleads.v0.resources.GeoTargetConstant" do
9
+ optional :resource_name, :string, 1
10
+ optional :id, :message, 3, "google.protobuf.Int64Value"
11
+ optional :name, :message, 4, "google.protobuf.StringValue"
12
+ optional :country_code, :message, 5, "google.protobuf.StringValue"
13
+ optional :target_type, :message, 6, "google.protobuf.StringValue"
14
+ end
15
+ end
16
+
17
+ module Google
18
+ module Ads
19
+ module Googleads
20
+ module V0
21
+ module Resources
22
+ GeoTargetConstant = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v0.resources.GeoTargetConstant").msgclass
23
+ end
24
+ end
25
+ end
26
+ end
27
+ end
@@ -0,0 +1,85 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # source: google/ads/googleads/v0/resources/recommendation.proto
3
+
4
+ require 'google/protobuf'
5
+
6
+ require 'google/ads/googleads/v0/common/ad_pb'
7
+ require 'google/ads/googleads/v0/common/criteria_pb'
8
+ require 'google/ads/googleads/v0/enums/recommendation_type_pb'
9
+ require 'google/ads/googleads/v0/enums/target_cpa_opt_in_recommendation_goal_pb'
10
+ require 'google/protobuf/wrappers_pb'
11
+ Google::Protobuf::DescriptorPool.generated_pool.build do
12
+ add_message "google.ads.googleads.v0.resources.Recommendation" do
13
+ optional :resource_name, :string, 1
14
+ optional :type, :enum, 2, "google.ads.googleads.v0.enums.RecommendationTypeEnum.RecommendationType"
15
+ optional :impact, :message, 3, "google.ads.googleads.v0.resources.Recommendation.RecommendationImpact"
16
+ optional :campaign_budget, :message, 5, "google.protobuf.StringValue"
17
+ optional :campaign, :message, 6, "google.protobuf.StringValue"
18
+ optional :ad_group, :message, 7, "google.protobuf.StringValue"
19
+ oneof :recommendation do
20
+ optional :campaign_budget_recommendation, :message, 4, "google.ads.googleads.v0.resources.Recommendation.CampaignBudgetRecommendation"
21
+ optional :keyword_recommendation, :message, 8, "google.ads.googleads.v0.resources.Recommendation.KeywordRecommendation"
22
+ optional :text_ad_recommendation, :message, 9, "google.ads.googleads.v0.resources.Recommendation.TextAdRecommendation"
23
+ optional :target_cpa_opt_in_recommendation, :message, 10, "google.ads.googleads.v0.resources.Recommendation.TargetCpaOptInRecommendation"
24
+ end
25
+ end
26
+ add_message "google.ads.googleads.v0.resources.Recommendation.RecommendationImpact" do
27
+ optional :base_metrics, :message, 1, "google.ads.googleads.v0.resources.Recommendation.RecommendationMetrics"
28
+ optional :potential_metrics, :message, 2, "google.ads.googleads.v0.resources.Recommendation.RecommendationMetrics"
29
+ end
30
+ add_message "google.ads.googleads.v0.resources.Recommendation.RecommendationMetrics" do
31
+ optional :impressions, :message, 1, "google.protobuf.DoubleValue"
32
+ optional :clicks, :message, 2, "google.protobuf.DoubleValue"
33
+ optional :cost_micros, :message, 3, "google.protobuf.Int64Value"
34
+ optional :conversions, :message, 4, "google.protobuf.DoubleValue"
35
+ optional :video_views, :message, 5, "google.protobuf.DoubleValue"
36
+ end
37
+ add_message "google.ads.googleads.v0.resources.Recommendation.CampaignBudgetRecommendation" do
38
+ optional :current_budget_amount_micros, :message, 1, "google.protobuf.Int64Value"
39
+ optional :recommended_budget_amount_micros, :message, 2, "google.protobuf.Int64Value"
40
+ repeated :budget_options, :message, 3, "google.ads.googleads.v0.resources.Recommendation.CampaignBudgetRecommendation.CampaignBudgetRecommendationOption"
41
+ end
42
+ add_message "google.ads.googleads.v0.resources.Recommendation.CampaignBudgetRecommendation.CampaignBudgetRecommendationOption" do
43
+ optional :budget_amount_micros, :message, 1, "google.protobuf.Int64Value"
44
+ optional :impact, :message, 2, "google.ads.googleads.v0.resources.Recommendation.RecommendationImpact"
45
+ end
46
+ add_message "google.ads.googleads.v0.resources.Recommendation.KeywordRecommendation" do
47
+ optional :keyword, :message, 1, "google.ads.googleads.v0.common.KeywordInfo"
48
+ optional :recommended_cpc_bid_micros, :message, 2, "google.protobuf.Int64Value"
49
+ end
50
+ add_message "google.ads.googleads.v0.resources.Recommendation.TextAdRecommendation" do
51
+ optional :ad, :message, 1, "google.ads.googleads.v0.common.Ad"
52
+ optional :creation_date, :message, 2, "google.protobuf.StringValue"
53
+ optional :auto_apply_date, :message, 3, "google.protobuf.StringValue"
54
+ end
55
+ add_message "google.ads.googleads.v0.resources.Recommendation.TargetCpaOptInRecommendation" do
56
+ repeated :options, :message, 1, "google.ads.googleads.v0.resources.Recommendation.TargetCpaOptInRecommendation.TargetCpaOptInRecommendationOption"
57
+ optional :recommended_target_cpa_micros, :message, 2, "google.protobuf.Int64Value"
58
+ end
59
+ add_message "google.ads.googleads.v0.resources.Recommendation.TargetCpaOptInRecommendation.TargetCpaOptInRecommendationOption" do
60
+ optional :goal, :enum, 1, "google.ads.googleads.v0.enums.TargetCpaOptInRecommendationGoalEnum.TargetCpaOptInRecommendationGoal"
61
+ optional :target_cpa_micros, :message, 2, "google.protobuf.Int64Value"
62
+ optional :required_campaign_budget_amount_micros, :message, 3, "google.protobuf.Int64Value"
63
+ optional :impact, :message, 4, "google.ads.googleads.v0.resources.Recommendation.RecommendationImpact"
64
+ end
65
+ end
66
+
67
+ module Google
68
+ module Ads
69
+ module Googleads
70
+ module V0
71
+ module Resources
72
+ Recommendation = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v0.resources.Recommendation").msgclass
73
+ Recommendation::RecommendationImpact = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v0.resources.Recommendation.RecommendationImpact").msgclass
74
+ Recommendation::RecommendationMetrics = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v0.resources.Recommendation.RecommendationMetrics").msgclass
75
+ Recommendation::CampaignBudgetRecommendation = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v0.resources.Recommendation.CampaignBudgetRecommendation").msgclass
76
+ Recommendation::CampaignBudgetRecommendation::CampaignBudgetRecommendationOption = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v0.resources.Recommendation.CampaignBudgetRecommendation.CampaignBudgetRecommendationOption").msgclass
77
+ Recommendation::KeywordRecommendation = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v0.resources.Recommendation.KeywordRecommendation").msgclass
78
+ Recommendation::TextAdRecommendation = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v0.resources.Recommendation.TextAdRecommendation").msgclass
79
+ Recommendation::TargetCpaOptInRecommendation = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v0.resources.Recommendation.TargetCpaOptInRecommendation").msgclass
80
+ Recommendation::TargetCpaOptInRecommendation::TargetCpaOptInRecommendationOption = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v0.resources.Recommendation.TargetCpaOptInRecommendation.TargetCpaOptInRecommendationOption").msgclass
81
+ end
82
+ end
83
+ end
84
+ end
85
+ end
@@ -25,7 +25,7 @@ require "pathname"
25
25
  require "google/gax"
26
26
 
27
27
  require "google/ads/googleads/v0/services/ad_group_ad_service_pb"
28
- require "google/ads/googleads/v0/services/credentials"
28
+ require "google/ads/googleads/credentials"
29
29
 
30
30
  module Google
31
31
  module Ads
@@ -114,10 +114,10 @@ module Google
114
114
  require "google/gax/grpc"
115
115
  require "google/ads/googleads/v0/services/ad_group_ad_service_services_pb"
116
116
 
117
- credentials ||= Google::Ads::Googleads::V0::Services::Credentials.default
117
+ credentials ||= Google::Ads::Googleads::Credentials.default
118
118
 
119
119
  if credentials.is_a?(String) || credentials.is_a?(Hash)
120
- updater_proc = Google::Ads::Googleads::V0::Services::Credentials.new(credentials).updater_proc
120
+ updater_proc = Google::Ads::Googleads::Credentials.new(credentials).updater_proc
121
121
  end
122
122
  if credentials.is_a?(GRPC::Core::Channel)
123
123
  channel = credentials