google-ads-googleads 0.2.0 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/ChangeLog +4 -0
- data/lib/google/ads/googleads/proto_lookup_util.rb +1 -0
- data/lib/google/ads/googleads/v0/common/bidding_pb.rb +5 -0
- data/lib/google/ads/googleads/v0/enums/bidding_strategy_type_pb.rb +1 -0
- data/lib/google/ads/googleads/v0/errors/criterion_error_pb.rb +1 -0
- data/lib/google/ads/googleads/v0/resources/ad_group_criterion_pb.rb +3 -0
- data/lib/google/ads/googleads/v0/resources/ad_group_pb.rb +1 -0
- data/lib/google/ads/googleads/v0/resources/campaign_pb.rb +1 -0
- data/lib/google/ads/googleads/v0/services/ad_group_ad_service_client.rb +8 -3
- data/lib/google/ads/googleads/v0/services/ad_group_bid_modifier_service_client.rb +8 -3
- data/lib/google/ads/googleads/v0/services/ad_group_criterion_service_client.rb +8 -3
- data/lib/google/ads/googleads/v0/services/ad_group_service_client.rb +8 -3
- data/lib/google/ads/googleads/v0/services/bidding_strategy_service_client.rb +8 -3
- data/lib/google/ads/googleads/v0/services/campaign_budget_service_client.rb +8 -3
- data/lib/google/ads/googleads/v0/services/campaign_criterion_service_client.rb +8 -3
- data/lib/google/ads/googleads/v0/services/campaign_service_client.rb +8 -3
- data/lib/google/ads/googleads/{credentials.rb → v0/services/credentials.rb} +10 -6
- data/lib/google/ads/googleads/v0/services/customer_service_client.rb +8 -3
- data/lib/google/ads/googleads/v0/services/geo_target_constant_service_client.rb +8 -3
- data/lib/google/ads/googleads/v0/services/google_ads_field_service_client.rb +8 -3
- data/lib/google/ads/googleads/v0/services/google_ads_service_client.rb +8 -3
- data/lib/google/ads/googleads/v0/services/keyword_view_service_client.rb +8 -3
- data/lib/google/ads/googleads/v0/services/recommendation_service_client.rb +8 -3
- data/lib/google/ads/googleads/version.rb +1 -1
- metadata +5 -5
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: d398c4f38f86502afdfabf33ac1a76168d73c787b685873ff69c748121c079dd
|
|
4
|
+
data.tar.gz: 87c3016cd577a5b48a17d8b3be30d93d5ed62733205be4c72799d4f50c42addf
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 466efee731059adbb1c16b74cc5accfd85e06258f7222a07f6bce8ad4ff81981dad56fb48d7a122ca864c49b022d2f170d152a9d36d6cf1f7f5b9f53d3bd4270
|
|
7
|
+
data.tar.gz: 13efa9b072a7ce9679527a6318ef70c6e513bfcbb65f1c3229d00d5554def5792e9a6f2532fb2adb445b87bcfcd81b2ff68be50d20b95da1b3dfdf90bf1934d1
|
data/ChangeLog
CHANGED
|
@@ -105,6 +105,7 @@ module Google
|
|
|
105
105
|
TargetOutrankShare: ['common', 'bidding_pb', 'TargetOutrankShare'],
|
|
106
106
|
TargetRoas: ['common', 'bidding_pb', 'TargetRoas'],
|
|
107
107
|
TargetSpend: ['common', 'bidding_pb', 'TargetSpend'],
|
|
108
|
+
PercentCpc: ['common', 'bidding_pb', 'PercentCpc'],
|
|
108
109
|
KeywordInfo: ['common', 'criteria_pb', 'KeywordInfo'],
|
|
109
110
|
LocationInfo: ['common', 'criteria_pb', 'LocationInfo'],
|
|
110
111
|
PlatformInfo: ['common', 'criteria_pb', 'PlatformInfo'],
|
|
@@ -47,6 +47,10 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
|
47
47
|
optional :target_spend_micros, :message, 1, "google.protobuf.Int64Value"
|
|
48
48
|
optional :cpc_bid_ceiling_micros, :message, 2, "google.protobuf.Int64Value"
|
|
49
49
|
end
|
|
50
|
+
add_message "google.ads.googleads.v0.common.PercentCpc" do
|
|
51
|
+
optional :cpc_bid_ceiling_micros, :message, 1, "google.protobuf.Int64Value"
|
|
52
|
+
optional :enhanced_cpc_enabled, :message, 2, "google.protobuf.BoolValue"
|
|
53
|
+
end
|
|
50
54
|
end
|
|
51
55
|
|
|
52
56
|
module Google
|
|
@@ -64,6 +68,7 @@ module Google
|
|
|
64
68
|
TargetOutrankShare = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v0.common.TargetOutrankShare").msgclass
|
|
65
69
|
TargetRoas = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v0.common.TargetRoas").msgclass
|
|
66
70
|
TargetSpend = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v0.common.TargetSpend").msgclass
|
|
71
|
+
PercentCpc = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v0.common.PercentCpc").msgclass
|
|
67
72
|
end
|
|
68
73
|
end
|
|
69
74
|
end
|
|
@@ -15,6 +15,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
|
15
15
|
value :MAXIMIZE_CONVERSIONS, 10
|
|
16
16
|
value :MAXIMIZE_CONVERSION_VALUE, 11
|
|
17
17
|
value :PAGE_ONE_PROMOTED, 5
|
|
18
|
+
value :PERCENT_CPC, 12
|
|
18
19
|
value :TARGET_CPA, 6
|
|
19
20
|
value :TARGET_OUTRANK_SHARE, 7
|
|
20
21
|
value :TARGET_ROAS, 8
|
|
@@ -91,6 +91,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
|
91
91
|
value :CANNOT_ATTACH_CRITERIA_AT_CAMPAIGN_AND_ADGROUP, 81
|
|
92
92
|
value :HOTEL_LENGTH_OF_STAY_OVERLAPS_WITH_EXISTING_CRITERION, 82
|
|
93
93
|
value :HOTEL_ADVANCE_BOOKING_WINDOW_OVERLAPS_WITH_EXISTING_CRITERION, 83
|
|
94
|
+
value :FIELD_INCOMPATIBLE_WITH_NEGATIVE_TARGETING, 84
|
|
94
95
|
end
|
|
95
96
|
end
|
|
96
97
|
|
|
@@ -22,12 +22,15 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
|
22
22
|
optional :cpc_bid_micros, :message, 16, "google.protobuf.Int64Value"
|
|
23
23
|
optional :cpm_bid_micros, :message, 17, "google.protobuf.Int64Value"
|
|
24
24
|
optional :cpv_bid_micros, :message, 24, "google.protobuf.Int64Value"
|
|
25
|
+
optional :percent_cpc_bid_micros, :message, 33, "google.protobuf.Int64Value"
|
|
25
26
|
optional :effective_cpc_bid_micros, :message, 18, "google.protobuf.Int64Value"
|
|
26
27
|
optional :effective_cpm_bid_micros, :message, 19, "google.protobuf.Int64Value"
|
|
27
28
|
optional :effective_cpv_bid_micros, :message, 20, "google.protobuf.Int64Value"
|
|
29
|
+
optional :effective_percent_cpc_bid_micros, :message, 34, "google.protobuf.Int64Value"
|
|
28
30
|
optional :effective_cpc_bid_source, :enum, 21, "google.ads.googleads.v0.enums.BiddingSourceEnum.BiddingSource"
|
|
29
31
|
optional :effective_cpm_bid_source, :enum, 22, "google.ads.googleads.v0.enums.BiddingSourceEnum.BiddingSource"
|
|
30
32
|
optional :effective_cpv_bid_source, :enum, 23, "google.ads.googleads.v0.enums.BiddingSourceEnum.BiddingSource"
|
|
33
|
+
optional :effective_percent_cpc_bid_source, :enum, 35, "google.ads.googleads.v0.enums.BiddingSourceEnum.BiddingSource"
|
|
31
34
|
optional :position_estimates, :message, 10, "google.ads.googleads.v0.resources.AdGroupCriterion.PositionEstimates"
|
|
32
35
|
repeated :final_urls, :message, 11, "google.protobuf.StringValue"
|
|
33
36
|
optional :tracking_url_template, :message, 13, "google.protobuf.StringValue"
|
|
@@ -22,6 +22,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
|
22
22
|
optional :cpa_bid_micros, :message, 16, "google.protobuf.Int64Value"
|
|
23
23
|
optional :cpv_bid_micros, :message, 17, "google.protobuf.Int64Value"
|
|
24
24
|
optional :target_roas_override, :message, 19, "google.protobuf.DoubleValue"
|
|
25
|
+
optional :percent_cpc_bid_micros, :message, 20, "google.protobuf.Int64Value"
|
|
25
26
|
end
|
|
26
27
|
end
|
|
27
28
|
|
|
@@ -40,6 +40,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
|
40
40
|
optional :target_cpa, :message, 26, "google.ads.googleads.v0.common.TargetCpa"
|
|
41
41
|
optional :target_roas, :message, 29, "google.ads.googleads.v0.common.TargetRoas"
|
|
42
42
|
optional :target_spend, :message, 27, "google.ads.googleads.v0.common.TargetSpend"
|
|
43
|
+
optional :percent_cpc, :message, 34, "google.ads.googleads.v0.common.PercentCpc"
|
|
43
44
|
end
|
|
44
45
|
end
|
|
45
46
|
add_message "google.ads.googleads.v0.resources.Campaign.NetworkSettings" do
|
|
@@ -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/credentials"
|
|
28
|
+
require "google/ads/googleads/v0/services/credentials"
|
|
29
29
|
|
|
30
30
|
module Google
|
|
31
31
|
module Ads
|
|
@@ -45,6 +45,9 @@ module Google
|
|
|
45
45
|
# The default port of the service.
|
|
46
46
|
DEFAULT_SERVICE_PORT = 443
|
|
47
47
|
|
|
48
|
+
# The default set of gRPC interceptors.
|
|
49
|
+
GRPC_INTERCEPTORS = []
|
|
50
|
+
|
|
48
51
|
DEFAULT_TIMEOUT = 30
|
|
49
52
|
|
|
50
53
|
# The scopes needed to make gRPC calls to all of the methods defined in
|
|
@@ -114,10 +117,10 @@ module Google
|
|
|
114
117
|
require "google/gax/grpc"
|
|
115
118
|
require "google/ads/googleads/v0/services/ad_group_ad_service_services_pb"
|
|
116
119
|
|
|
117
|
-
credentials ||= Google::Ads::Googleads::Credentials.default
|
|
120
|
+
credentials ||= Google::Ads::Googleads::V0::Services::Credentials.default
|
|
118
121
|
|
|
119
122
|
if credentials.is_a?(String) || credentials.is_a?(Hash)
|
|
120
|
-
updater_proc = Google::Ads::Googleads::Credentials.new(credentials).updater_proc
|
|
123
|
+
updater_proc = Google::Ads::Googleads::V0::Services::Credentials.new(credentials).updater_proc
|
|
121
124
|
end
|
|
122
125
|
if credentials.is_a?(GRPC::Core::Channel)
|
|
123
126
|
channel = credentials
|
|
@@ -160,6 +163,7 @@ module Google
|
|
|
160
163
|
# Allow overriding the service path/port in subclasses.
|
|
161
164
|
service_path = self.class::SERVICE_ADDRESS
|
|
162
165
|
port = self.class::DEFAULT_SERVICE_PORT
|
|
166
|
+
interceptors = self.class::GRPC_INTERCEPTORS
|
|
163
167
|
@ad_group_ad_service_stub = Google::Gax::Grpc.create_stub(
|
|
164
168
|
service_path,
|
|
165
169
|
port,
|
|
@@ -167,6 +171,7 @@ module Google
|
|
|
167
171
|
channel: channel,
|
|
168
172
|
updater_proc: updater_proc,
|
|
169
173
|
scopes: scopes,
|
|
174
|
+
interceptors: interceptors,
|
|
170
175
|
&Google::Ads::Googleads::V0::Services::AdGroupAdService::Stub.method(:new)
|
|
171
176
|
)
|
|
172
177
|
|
|
@@ -25,7 +25,7 @@ require "pathname"
|
|
|
25
25
|
require "google/gax"
|
|
26
26
|
|
|
27
27
|
require "google/ads/googleads/v0/services/ad_group_bid_modifier_service_pb"
|
|
28
|
-
require "google/ads/googleads/credentials"
|
|
28
|
+
require "google/ads/googleads/v0/services/credentials"
|
|
29
29
|
|
|
30
30
|
module Google
|
|
31
31
|
module Ads
|
|
@@ -45,6 +45,9 @@ module Google
|
|
|
45
45
|
# The default port of the service.
|
|
46
46
|
DEFAULT_SERVICE_PORT = 443
|
|
47
47
|
|
|
48
|
+
# The default set of gRPC interceptors.
|
|
49
|
+
GRPC_INTERCEPTORS = []
|
|
50
|
+
|
|
48
51
|
DEFAULT_TIMEOUT = 30
|
|
49
52
|
|
|
50
53
|
# The scopes needed to make gRPC calls to all of the methods defined in
|
|
@@ -114,10 +117,10 @@ module Google
|
|
|
114
117
|
require "google/gax/grpc"
|
|
115
118
|
require "google/ads/googleads/v0/services/ad_group_bid_modifier_service_services_pb"
|
|
116
119
|
|
|
117
|
-
credentials ||= Google::Ads::Googleads::Credentials.default
|
|
120
|
+
credentials ||= Google::Ads::Googleads::V0::Services::Credentials.default
|
|
118
121
|
|
|
119
122
|
if credentials.is_a?(String) || credentials.is_a?(Hash)
|
|
120
|
-
updater_proc = Google::Ads::Googleads::Credentials.new(credentials).updater_proc
|
|
123
|
+
updater_proc = Google::Ads::Googleads::V0::Services::Credentials.new(credentials).updater_proc
|
|
121
124
|
end
|
|
122
125
|
if credentials.is_a?(GRPC::Core::Channel)
|
|
123
126
|
channel = credentials
|
|
@@ -160,6 +163,7 @@ module Google
|
|
|
160
163
|
# Allow overriding the service path/port in subclasses.
|
|
161
164
|
service_path = self.class::SERVICE_ADDRESS
|
|
162
165
|
port = self.class::DEFAULT_SERVICE_PORT
|
|
166
|
+
interceptors = self.class::GRPC_INTERCEPTORS
|
|
163
167
|
@ad_group_bid_modifier_service_stub = Google::Gax::Grpc.create_stub(
|
|
164
168
|
service_path,
|
|
165
169
|
port,
|
|
@@ -167,6 +171,7 @@ module Google
|
|
|
167
171
|
channel: channel,
|
|
168
172
|
updater_proc: updater_proc,
|
|
169
173
|
scopes: scopes,
|
|
174
|
+
interceptors: interceptors,
|
|
170
175
|
&Google::Ads::Googleads::V0::Services::AdGroupBidModifierService::Stub.method(:new)
|
|
171
176
|
)
|
|
172
177
|
|
|
@@ -25,7 +25,7 @@ require "pathname"
|
|
|
25
25
|
require "google/gax"
|
|
26
26
|
|
|
27
27
|
require "google/ads/googleads/v0/services/ad_group_criterion_service_pb"
|
|
28
|
-
require "google/ads/googleads/credentials"
|
|
28
|
+
require "google/ads/googleads/v0/services/credentials"
|
|
29
29
|
|
|
30
30
|
module Google
|
|
31
31
|
module Ads
|
|
@@ -45,6 +45,9 @@ module Google
|
|
|
45
45
|
# The default port of the service.
|
|
46
46
|
DEFAULT_SERVICE_PORT = 443
|
|
47
47
|
|
|
48
|
+
# The default set of gRPC interceptors.
|
|
49
|
+
GRPC_INTERCEPTORS = []
|
|
50
|
+
|
|
48
51
|
DEFAULT_TIMEOUT = 30
|
|
49
52
|
|
|
50
53
|
# The scopes needed to make gRPC calls to all of the methods defined in
|
|
@@ -114,10 +117,10 @@ module Google
|
|
|
114
117
|
require "google/gax/grpc"
|
|
115
118
|
require "google/ads/googleads/v0/services/ad_group_criterion_service_services_pb"
|
|
116
119
|
|
|
117
|
-
credentials ||= Google::Ads::Googleads::Credentials.default
|
|
120
|
+
credentials ||= Google::Ads::Googleads::V0::Services::Credentials.default
|
|
118
121
|
|
|
119
122
|
if credentials.is_a?(String) || credentials.is_a?(Hash)
|
|
120
|
-
updater_proc = Google::Ads::Googleads::Credentials.new(credentials).updater_proc
|
|
123
|
+
updater_proc = Google::Ads::Googleads::V0::Services::Credentials.new(credentials).updater_proc
|
|
121
124
|
end
|
|
122
125
|
if credentials.is_a?(GRPC::Core::Channel)
|
|
123
126
|
channel = credentials
|
|
@@ -160,6 +163,7 @@ module Google
|
|
|
160
163
|
# Allow overriding the service path/port in subclasses.
|
|
161
164
|
service_path = self.class::SERVICE_ADDRESS
|
|
162
165
|
port = self.class::DEFAULT_SERVICE_PORT
|
|
166
|
+
interceptors = self.class::GRPC_INTERCEPTORS
|
|
163
167
|
@ad_group_criterion_service_stub = Google::Gax::Grpc.create_stub(
|
|
164
168
|
service_path,
|
|
165
169
|
port,
|
|
@@ -167,6 +171,7 @@ module Google
|
|
|
167
171
|
channel: channel,
|
|
168
172
|
updater_proc: updater_proc,
|
|
169
173
|
scopes: scopes,
|
|
174
|
+
interceptors: interceptors,
|
|
170
175
|
&Google::Ads::Googleads::V0::Services::AdGroupCriterionService::Stub.method(:new)
|
|
171
176
|
)
|
|
172
177
|
|
|
@@ -25,7 +25,7 @@ require "pathname"
|
|
|
25
25
|
require "google/gax"
|
|
26
26
|
|
|
27
27
|
require "google/ads/googleads/v0/services/ad_group_service_pb"
|
|
28
|
-
require "google/ads/googleads/credentials"
|
|
28
|
+
require "google/ads/googleads/v0/services/credentials"
|
|
29
29
|
|
|
30
30
|
module Google
|
|
31
31
|
module Ads
|
|
@@ -45,6 +45,9 @@ module Google
|
|
|
45
45
|
# The default port of the service.
|
|
46
46
|
DEFAULT_SERVICE_PORT = 443
|
|
47
47
|
|
|
48
|
+
# The default set of gRPC interceptors.
|
|
49
|
+
GRPC_INTERCEPTORS = []
|
|
50
|
+
|
|
48
51
|
DEFAULT_TIMEOUT = 30
|
|
49
52
|
|
|
50
53
|
# The scopes needed to make gRPC calls to all of the methods defined in
|
|
@@ -114,10 +117,10 @@ module Google
|
|
|
114
117
|
require "google/gax/grpc"
|
|
115
118
|
require "google/ads/googleads/v0/services/ad_group_service_services_pb"
|
|
116
119
|
|
|
117
|
-
credentials ||= Google::Ads::Googleads::Credentials.default
|
|
120
|
+
credentials ||= Google::Ads::Googleads::V0::Services::Credentials.default
|
|
118
121
|
|
|
119
122
|
if credentials.is_a?(String) || credentials.is_a?(Hash)
|
|
120
|
-
updater_proc = Google::Ads::Googleads::Credentials.new(credentials).updater_proc
|
|
123
|
+
updater_proc = Google::Ads::Googleads::V0::Services::Credentials.new(credentials).updater_proc
|
|
121
124
|
end
|
|
122
125
|
if credentials.is_a?(GRPC::Core::Channel)
|
|
123
126
|
channel = credentials
|
|
@@ -160,6 +163,7 @@ module Google
|
|
|
160
163
|
# Allow overriding the service path/port in subclasses.
|
|
161
164
|
service_path = self.class::SERVICE_ADDRESS
|
|
162
165
|
port = self.class::DEFAULT_SERVICE_PORT
|
|
166
|
+
interceptors = self.class::GRPC_INTERCEPTORS
|
|
163
167
|
@ad_group_service_stub = Google::Gax::Grpc.create_stub(
|
|
164
168
|
service_path,
|
|
165
169
|
port,
|
|
@@ -167,6 +171,7 @@ module Google
|
|
|
167
171
|
channel: channel,
|
|
168
172
|
updater_proc: updater_proc,
|
|
169
173
|
scopes: scopes,
|
|
174
|
+
interceptors: interceptors,
|
|
170
175
|
&Google::Ads::Googleads::V0::Services::AdGroupService::Stub.method(:new)
|
|
171
176
|
)
|
|
172
177
|
|
|
@@ -25,7 +25,7 @@ require "pathname"
|
|
|
25
25
|
require "google/gax"
|
|
26
26
|
|
|
27
27
|
require "google/ads/googleads/v0/services/bidding_strategy_service_pb"
|
|
28
|
-
require "google/ads/googleads/credentials"
|
|
28
|
+
require "google/ads/googleads/v0/services/credentials"
|
|
29
29
|
|
|
30
30
|
module Google
|
|
31
31
|
module Ads
|
|
@@ -45,6 +45,9 @@ module Google
|
|
|
45
45
|
# The default port of the service.
|
|
46
46
|
DEFAULT_SERVICE_PORT = 443
|
|
47
47
|
|
|
48
|
+
# The default set of gRPC interceptors.
|
|
49
|
+
GRPC_INTERCEPTORS = []
|
|
50
|
+
|
|
48
51
|
DEFAULT_TIMEOUT = 30
|
|
49
52
|
|
|
50
53
|
# The scopes needed to make gRPC calls to all of the methods defined in
|
|
@@ -114,10 +117,10 @@ module Google
|
|
|
114
117
|
require "google/gax/grpc"
|
|
115
118
|
require "google/ads/googleads/v0/services/bidding_strategy_service_services_pb"
|
|
116
119
|
|
|
117
|
-
credentials ||= Google::Ads::Googleads::Credentials.default
|
|
120
|
+
credentials ||= Google::Ads::Googleads::V0::Services::Credentials.default
|
|
118
121
|
|
|
119
122
|
if credentials.is_a?(String) || credentials.is_a?(Hash)
|
|
120
|
-
updater_proc = Google::Ads::Googleads::Credentials.new(credentials).updater_proc
|
|
123
|
+
updater_proc = Google::Ads::Googleads::V0::Services::Credentials.new(credentials).updater_proc
|
|
121
124
|
end
|
|
122
125
|
if credentials.is_a?(GRPC::Core::Channel)
|
|
123
126
|
channel = credentials
|
|
@@ -160,6 +163,7 @@ module Google
|
|
|
160
163
|
# Allow overriding the service path/port in subclasses.
|
|
161
164
|
service_path = self.class::SERVICE_ADDRESS
|
|
162
165
|
port = self.class::DEFAULT_SERVICE_PORT
|
|
166
|
+
interceptors = self.class::GRPC_INTERCEPTORS
|
|
163
167
|
@bidding_strategy_service_stub = Google::Gax::Grpc.create_stub(
|
|
164
168
|
service_path,
|
|
165
169
|
port,
|
|
@@ -167,6 +171,7 @@ module Google
|
|
|
167
171
|
channel: channel,
|
|
168
172
|
updater_proc: updater_proc,
|
|
169
173
|
scopes: scopes,
|
|
174
|
+
interceptors: interceptors,
|
|
170
175
|
&Google::Ads::Googleads::V0::Services::BiddingStrategyService::Stub.method(:new)
|
|
171
176
|
)
|
|
172
177
|
|
|
@@ -25,7 +25,7 @@ require "pathname"
|
|
|
25
25
|
require "google/gax"
|
|
26
26
|
|
|
27
27
|
require "google/ads/googleads/v0/services/campaign_budget_service_pb"
|
|
28
|
-
require "google/ads/googleads/credentials"
|
|
28
|
+
require "google/ads/googleads/v0/services/credentials"
|
|
29
29
|
|
|
30
30
|
module Google
|
|
31
31
|
module Ads
|
|
@@ -45,6 +45,9 @@ module Google
|
|
|
45
45
|
# The default port of the service.
|
|
46
46
|
DEFAULT_SERVICE_PORT = 443
|
|
47
47
|
|
|
48
|
+
# The default set of gRPC interceptors.
|
|
49
|
+
GRPC_INTERCEPTORS = []
|
|
50
|
+
|
|
48
51
|
DEFAULT_TIMEOUT = 30
|
|
49
52
|
|
|
50
53
|
# The scopes needed to make gRPC calls to all of the methods defined in
|
|
@@ -114,10 +117,10 @@ module Google
|
|
|
114
117
|
require "google/gax/grpc"
|
|
115
118
|
require "google/ads/googleads/v0/services/campaign_budget_service_services_pb"
|
|
116
119
|
|
|
117
|
-
credentials ||= Google::Ads::Googleads::Credentials.default
|
|
120
|
+
credentials ||= Google::Ads::Googleads::V0::Services::Credentials.default
|
|
118
121
|
|
|
119
122
|
if credentials.is_a?(String) || credentials.is_a?(Hash)
|
|
120
|
-
updater_proc = Google::Ads::Googleads::Credentials.new(credentials).updater_proc
|
|
123
|
+
updater_proc = Google::Ads::Googleads::V0::Services::Credentials.new(credentials).updater_proc
|
|
121
124
|
end
|
|
122
125
|
if credentials.is_a?(GRPC::Core::Channel)
|
|
123
126
|
channel = credentials
|
|
@@ -160,6 +163,7 @@ module Google
|
|
|
160
163
|
# Allow overriding the service path/port in subclasses.
|
|
161
164
|
service_path = self.class::SERVICE_ADDRESS
|
|
162
165
|
port = self.class::DEFAULT_SERVICE_PORT
|
|
166
|
+
interceptors = self.class::GRPC_INTERCEPTORS
|
|
163
167
|
@campaign_budget_service_stub = Google::Gax::Grpc.create_stub(
|
|
164
168
|
service_path,
|
|
165
169
|
port,
|
|
@@ -167,6 +171,7 @@ module Google
|
|
|
167
171
|
channel: channel,
|
|
168
172
|
updater_proc: updater_proc,
|
|
169
173
|
scopes: scopes,
|
|
174
|
+
interceptors: interceptors,
|
|
170
175
|
&Google::Ads::Googleads::V0::Services::CampaignBudgetService::Stub.method(:new)
|
|
171
176
|
)
|
|
172
177
|
|
|
@@ -25,7 +25,7 @@ require "pathname"
|
|
|
25
25
|
require "google/gax"
|
|
26
26
|
|
|
27
27
|
require "google/ads/googleads/v0/services/campaign_criterion_service_pb"
|
|
28
|
-
require "google/ads/googleads/credentials"
|
|
28
|
+
require "google/ads/googleads/v0/services/credentials"
|
|
29
29
|
|
|
30
30
|
module Google
|
|
31
31
|
module Ads
|
|
@@ -45,6 +45,9 @@ module Google
|
|
|
45
45
|
# The default port of the service.
|
|
46
46
|
DEFAULT_SERVICE_PORT = 443
|
|
47
47
|
|
|
48
|
+
# The default set of gRPC interceptors.
|
|
49
|
+
GRPC_INTERCEPTORS = []
|
|
50
|
+
|
|
48
51
|
DEFAULT_TIMEOUT = 30
|
|
49
52
|
|
|
50
53
|
# The scopes needed to make gRPC calls to all of the methods defined in
|
|
@@ -114,10 +117,10 @@ module Google
|
|
|
114
117
|
require "google/gax/grpc"
|
|
115
118
|
require "google/ads/googleads/v0/services/campaign_criterion_service_services_pb"
|
|
116
119
|
|
|
117
|
-
credentials ||= Google::Ads::Googleads::Credentials.default
|
|
120
|
+
credentials ||= Google::Ads::Googleads::V0::Services::Credentials.default
|
|
118
121
|
|
|
119
122
|
if credentials.is_a?(String) || credentials.is_a?(Hash)
|
|
120
|
-
updater_proc = Google::Ads::Googleads::Credentials.new(credentials).updater_proc
|
|
123
|
+
updater_proc = Google::Ads::Googleads::V0::Services::Credentials.new(credentials).updater_proc
|
|
121
124
|
end
|
|
122
125
|
if credentials.is_a?(GRPC::Core::Channel)
|
|
123
126
|
channel = credentials
|
|
@@ -160,6 +163,7 @@ module Google
|
|
|
160
163
|
# Allow overriding the service path/port in subclasses.
|
|
161
164
|
service_path = self.class::SERVICE_ADDRESS
|
|
162
165
|
port = self.class::DEFAULT_SERVICE_PORT
|
|
166
|
+
interceptors = self.class::GRPC_INTERCEPTORS
|
|
163
167
|
@campaign_criterion_service_stub = Google::Gax::Grpc.create_stub(
|
|
164
168
|
service_path,
|
|
165
169
|
port,
|
|
@@ -167,6 +171,7 @@ module Google
|
|
|
167
171
|
channel: channel,
|
|
168
172
|
updater_proc: updater_proc,
|
|
169
173
|
scopes: scopes,
|
|
174
|
+
interceptors: interceptors,
|
|
170
175
|
&Google::Ads::Googleads::V0::Services::CampaignCriterionService::Stub.method(:new)
|
|
171
176
|
)
|
|
172
177
|
|
|
@@ -25,7 +25,7 @@ require "pathname"
|
|
|
25
25
|
require "google/gax"
|
|
26
26
|
|
|
27
27
|
require "google/ads/googleads/v0/services/campaign_service_pb"
|
|
28
|
-
require "google/ads/googleads/credentials"
|
|
28
|
+
require "google/ads/googleads/v0/services/credentials"
|
|
29
29
|
|
|
30
30
|
module Google
|
|
31
31
|
module Ads
|
|
@@ -45,6 +45,9 @@ module Google
|
|
|
45
45
|
# The default port of the service.
|
|
46
46
|
DEFAULT_SERVICE_PORT = 443
|
|
47
47
|
|
|
48
|
+
# The default set of gRPC interceptors.
|
|
49
|
+
GRPC_INTERCEPTORS = []
|
|
50
|
+
|
|
48
51
|
DEFAULT_TIMEOUT = 30
|
|
49
52
|
|
|
50
53
|
# The scopes needed to make gRPC calls to all of the methods defined in
|
|
@@ -114,10 +117,10 @@ module Google
|
|
|
114
117
|
require "google/gax/grpc"
|
|
115
118
|
require "google/ads/googleads/v0/services/campaign_service_services_pb"
|
|
116
119
|
|
|
117
|
-
credentials ||= Google::Ads::Googleads::Credentials.default
|
|
120
|
+
credentials ||= Google::Ads::Googleads::V0::Services::Credentials.default
|
|
118
121
|
|
|
119
122
|
if credentials.is_a?(String) || credentials.is_a?(Hash)
|
|
120
|
-
updater_proc = Google::Ads::Googleads::Credentials.new(credentials).updater_proc
|
|
123
|
+
updater_proc = Google::Ads::Googleads::V0::Services::Credentials.new(credentials).updater_proc
|
|
121
124
|
end
|
|
122
125
|
if credentials.is_a?(GRPC::Core::Channel)
|
|
123
126
|
channel = credentials
|
|
@@ -160,6 +163,7 @@ module Google
|
|
|
160
163
|
# Allow overriding the service path/port in subclasses.
|
|
161
164
|
service_path = self.class::SERVICE_ADDRESS
|
|
162
165
|
port = self.class::DEFAULT_SERVICE_PORT
|
|
166
|
+
interceptors = self.class::GRPC_INTERCEPTORS
|
|
163
167
|
@campaign_service_stub = Google::Gax::Grpc.create_stub(
|
|
164
168
|
service_path,
|
|
165
169
|
port,
|
|
@@ -167,6 +171,7 @@ module Google
|
|
|
167
171
|
channel: channel,
|
|
168
172
|
updater_proc: updater_proc,
|
|
169
173
|
scopes: scopes,
|
|
174
|
+
interceptors: interceptors,
|
|
170
175
|
&Google::Ads::Googleads::V0::Services::CampaignService::Stub.method(:new)
|
|
171
176
|
)
|
|
172
177
|
|
|
@@ -17,12 +17,16 @@ require "googleauth"
|
|
|
17
17
|
module Google
|
|
18
18
|
module Ads
|
|
19
19
|
module Googleads
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
20
|
+
module V0
|
|
21
|
+
module Services
|
|
22
|
+
class Credentials < Google::Auth::Credentials
|
|
23
|
+
SCOPE = [
|
|
24
|
+
].freeze
|
|
25
|
+
PATH_ENV_VARS = %w(GOOGLEADS_KEYFILE GOOGLE_CLOUD_KEYFILE GCLOUD_KEYFILE)
|
|
26
|
+
JSON_ENV_VARS = %w(GOOGLEADS_KEYFILE_JSON GOOGLE_CLOUD_KEYFILE_JSON GCLOUD_KEYFILE_JSON)
|
|
27
|
+
DEFAULT_PATHS = ["~/.config/gcloud/application_default_credentials.json"]
|
|
28
|
+
end
|
|
29
|
+
end
|
|
26
30
|
end
|
|
27
31
|
end
|
|
28
32
|
end
|
|
@@ -25,7 +25,7 @@ require "pathname"
|
|
|
25
25
|
require "google/gax"
|
|
26
26
|
|
|
27
27
|
require "google/ads/googleads/v0/services/customer_service_pb"
|
|
28
|
-
require "google/ads/googleads/credentials"
|
|
28
|
+
require "google/ads/googleads/v0/services/credentials"
|
|
29
29
|
|
|
30
30
|
module Google
|
|
31
31
|
module Ads
|
|
@@ -45,6 +45,9 @@ module Google
|
|
|
45
45
|
# The default port of the service.
|
|
46
46
|
DEFAULT_SERVICE_PORT = 443
|
|
47
47
|
|
|
48
|
+
# The default set of gRPC interceptors.
|
|
49
|
+
GRPC_INTERCEPTORS = []
|
|
50
|
+
|
|
48
51
|
DEFAULT_TIMEOUT = 30
|
|
49
52
|
|
|
50
53
|
# The scopes needed to make gRPC calls to all of the methods defined in
|
|
@@ -112,10 +115,10 @@ module Google
|
|
|
112
115
|
require "google/gax/grpc"
|
|
113
116
|
require "google/ads/googleads/v0/services/customer_service_services_pb"
|
|
114
117
|
|
|
115
|
-
credentials ||= Google::Ads::Googleads::Credentials.default
|
|
118
|
+
credentials ||= Google::Ads::Googleads::V0::Services::Credentials.default
|
|
116
119
|
|
|
117
120
|
if credentials.is_a?(String) || credentials.is_a?(Hash)
|
|
118
|
-
updater_proc = Google::Ads::Googleads::Credentials.new(credentials).updater_proc
|
|
121
|
+
updater_proc = Google::Ads::Googleads::V0::Services::Credentials.new(credentials).updater_proc
|
|
119
122
|
end
|
|
120
123
|
if credentials.is_a?(GRPC::Core::Channel)
|
|
121
124
|
channel = credentials
|
|
@@ -158,6 +161,7 @@ module Google
|
|
|
158
161
|
# Allow overriding the service path/port in subclasses.
|
|
159
162
|
service_path = self.class::SERVICE_ADDRESS
|
|
160
163
|
port = self.class::DEFAULT_SERVICE_PORT
|
|
164
|
+
interceptors = self.class::GRPC_INTERCEPTORS
|
|
161
165
|
@customer_service_stub = Google::Gax::Grpc.create_stub(
|
|
162
166
|
service_path,
|
|
163
167
|
port,
|
|
@@ -165,6 +169,7 @@ module Google
|
|
|
165
169
|
channel: channel,
|
|
166
170
|
updater_proc: updater_proc,
|
|
167
171
|
scopes: scopes,
|
|
172
|
+
interceptors: interceptors,
|
|
168
173
|
&Google::Ads::Googleads::V0::Services::CustomerService::Stub.method(:new)
|
|
169
174
|
)
|
|
170
175
|
|
|
@@ -25,7 +25,7 @@ require "pathname"
|
|
|
25
25
|
require "google/gax"
|
|
26
26
|
|
|
27
27
|
require "google/ads/googleads/v0/services/geo_target_constant_service_pb"
|
|
28
|
-
require "google/ads/googleads/credentials"
|
|
28
|
+
require "google/ads/googleads/v0/services/credentials"
|
|
29
29
|
|
|
30
30
|
module Google
|
|
31
31
|
module Ads
|
|
@@ -45,6 +45,9 @@ module Google
|
|
|
45
45
|
# The default port of the service.
|
|
46
46
|
DEFAULT_SERVICE_PORT = 443
|
|
47
47
|
|
|
48
|
+
# The default set of gRPC interceptors.
|
|
49
|
+
GRPC_INTERCEPTORS = []
|
|
50
|
+
|
|
48
51
|
DEFAULT_TIMEOUT = 30
|
|
49
52
|
|
|
50
53
|
# The scopes needed to make gRPC calls to all of the methods defined in
|
|
@@ -112,10 +115,10 @@ module Google
|
|
|
112
115
|
require "google/gax/grpc"
|
|
113
116
|
require "google/ads/googleads/v0/services/geo_target_constant_service_services_pb"
|
|
114
117
|
|
|
115
|
-
credentials ||= Google::Ads::Googleads::Credentials.default
|
|
118
|
+
credentials ||= Google::Ads::Googleads::V0::Services::Credentials.default
|
|
116
119
|
|
|
117
120
|
if credentials.is_a?(String) || credentials.is_a?(Hash)
|
|
118
|
-
updater_proc = Google::Ads::Googleads::Credentials.new(credentials).updater_proc
|
|
121
|
+
updater_proc = Google::Ads::Googleads::V0::Services::Credentials.new(credentials).updater_proc
|
|
119
122
|
end
|
|
120
123
|
if credentials.is_a?(GRPC::Core::Channel)
|
|
121
124
|
channel = credentials
|
|
@@ -158,6 +161,7 @@ module Google
|
|
|
158
161
|
# Allow overriding the service path/port in subclasses.
|
|
159
162
|
service_path = self.class::SERVICE_ADDRESS
|
|
160
163
|
port = self.class::DEFAULT_SERVICE_PORT
|
|
164
|
+
interceptors = self.class::GRPC_INTERCEPTORS
|
|
161
165
|
@geo_target_constant_service_stub = Google::Gax::Grpc.create_stub(
|
|
162
166
|
service_path,
|
|
163
167
|
port,
|
|
@@ -165,6 +169,7 @@ module Google
|
|
|
165
169
|
channel: channel,
|
|
166
170
|
updater_proc: updater_proc,
|
|
167
171
|
scopes: scopes,
|
|
172
|
+
interceptors: interceptors,
|
|
168
173
|
&Google::Ads::Googleads::V0::Services::GeoTargetConstantService::Stub.method(:new)
|
|
169
174
|
)
|
|
170
175
|
|
|
@@ -25,7 +25,7 @@ require "pathname"
|
|
|
25
25
|
require "google/gax"
|
|
26
26
|
|
|
27
27
|
require "google/ads/googleads/v0/services/google_ads_field_service_pb"
|
|
28
|
-
require "google/ads/googleads/credentials"
|
|
28
|
+
require "google/ads/googleads/v0/services/credentials"
|
|
29
29
|
|
|
30
30
|
module Google
|
|
31
31
|
module Ads
|
|
@@ -45,6 +45,9 @@ module Google
|
|
|
45
45
|
# The default port of the service.
|
|
46
46
|
DEFAULT_SERVICE_PORT = 443
|
|
47
47
|
|
|
48
|
+
# The default set of gRPC interceptors.
|
|
49
|
+
GRPC_INTERCEPTORS = []
|
|
50
|
+
|
|
48
51
|
DEFAULT_TIMEOUT = 30
|
|
49
52
|
|
|
50
53
|
PAGE_DESCRIPTORS = {
|
|
@@ -121,10 +124,10 @@ module Google
|
|
|
121
124
|
require "google/gax/grpc"
|
|
122
125
|
require "google/ads/googleads/v0/services/google_ads_field_service_services_pb"
|
|
123
126
|
|
|
124
|
-
credentials ||= Google::Ads::Googleads::Credentials.default
|
|
127
|
+
credentials ||= Google::Ads::Googleads::V0::Services::Credentials.default
|
|
125
128
|
|
|
126
129
|
if credentials.is_a?(String) || credentials.is_a?(Hash)
|
|
127
|
-
updater_proc = Google::Ads::Googleads::Credentials.new(credentials).updater_proc
|
|
130
|
+
updater_proc = Google::Ads::Googleads::V0::Services::Credentials.new(credentials).updater_proc
|
|
128
131
|
end
|
|
129
132
|
if credentials.is_a?(GRPC::Core::Channel)
|
|
130
133
|
channel = credentials
|
|
@@ -168,6 +171,7 @@ module Google
|
|
|
168
171
|
# Allow overriding the service path/port in subclasses.
|
|
169
172
|
service_path = self.class::SERVICE_ADDRESS
|
|
170
173
|
port = self.class::DEFAULT_SERVICE_PORT
|
|
174
|
+
interceptors = self.class::GRPC_INTERCEPTORS
|
|
171
175
|
@google_ads_field_service_stub = Google::Gax::Grpc.create_stub(
|
|
172
176
|
service_path,
|
|
173
177
|
port,
|
|
@@ -175,6 +179,7 @@ module Google
|
|
|
175
179
|
channel: channel,
|
|
176
180
|
updater_proc: updater_proc,
|
|
177
181
|
scopes: scopes,
|
|
182
|
+
interceptors: interceptors,
|
|
178
183
|
&Google::Ads::Googleads::V0::Services::GoogleAdsFieldService::Stub.method(:new)
|
|
179
184
|
)
|
|
180
185
|
|
|
@@ -25,7 +25,7 @@ require "pathname"
|
|
|
25
25
|
require "google/gax"
|
|
26
26
|
|
|
27
27
|
require "google/ads/googleads/v0/services/google_ads_service_pb"
|
|
28
|
-
require "google/ads/googleads/credentials"
|
|
28
|
+
require "google/ads/googleads/v0/services/credentials"
|
|
29
29
|
|
|
30
30
|
module Google
|
|
31
31
|
module Ads
|
|
@@ -45,6 +45,9 @@ module Google
|
|
|
45
45
|
# The default port of the service.
|
|
46
46
|
DEFAULT_SERVICE_PORT = 443
|
|
47
47
|
|
|
48
|
+
# The default set of gRPC interceptors.
|
|
49
|
+
GRPC_INTERCEPTORS = []
|
|
50
|
+
|
|
48
51
|
DEFAULT_TIMEOUT = 30
|
|
49
52
|
|
|
50
53
|
PAGE_DESCRIPTORS = {
|
|
@@ -106,10 +109,10 @@ module Google
|
|
|
106
109
|
require "google/gax/grpc"
|
|
107
110
|
require "google/ads/googleads/v0/services/google_ads_service_services_pb"
|
|
108
111
|
|
|
109
|
-
credentials ||= Google::Ads::Googleads::Credentials.default
|
|
112
|
+
credentials ||= Google::Ads::Googleads::V0::Services::Credentials.default
|
|
110
113
|
|
|
111
114
|
if credentials.is_a?(String) || credentials.is_a?(Hash)
|
|
112
|
-
updater_proc = Google::Ads::Googleads::Credentials.new(credentials).updater_proc
|
|
115
|
+
updater_proc = Google::Ads::Googleads::V0::Services::Credentials.new(credentials).updater_proc
|
|
113
116
|
end
|
|
114
117
|
if credentials.is_a?(GRPC::Core::Channel)
|
|
115
118
|
channel = credentials
|
|
@@ -153,6 +156,7 @@ module Google
|
|
|
153
156
|
# Allow overriding the service path/port in subclasses.
|
|
154
157
|
service_path = self.class::SERVICE_ADDRESS
|
|
155
158
|
port = self.class::DEFAULT_SERVICE_PORT
|
|
159
|
+
interceptors = self.class::GRPC_INTERCEPTORS
|
|
156
160
|
@google_ads_service_stub = Google::Gax::Grpc.create_stub(
|
|
157
161
|
service_path,
|
|
158
162
|
port,
|
|
@@ -160,6 +164,7 @@ module Google
|
|
|
160
164
|
channel: channel,
|
|
161
165
|
updater_proc: updater_proc,
|
|
162
166
|
scopes: scopes,
|
|
167
|
+
interceptors: interceptors,
|
|
163
168
|
&Google::Ads::Googleads::V0::Services::GoogleAdsService::Stub.method(:new)
|
|
164
169
|
)
|
|
165
170
|
|
|
@@ -25,7 +25,7 @@ require "pathname"
|
|
|
25
25
|
require "google/gax"
|
|
26
26
|
|
|
27
27
|
require "google/ads/googleads/v0/services/keyword_view_service_pb"
|
|
28
|
-
require "google/ads/googleads/credentials"
|
|
28
|
+
require "google/ads/googleads/v0/services/credentials"
|
|
29
29
|
|
|
30
30
|
module Google
|
|
31
31
|
module Ads
|
|
@@ -45,6 +45,9 @@ module Google
|
|
|
45
45
|
# The default port of the service.
|
|
46
46
|
DEFAULT_SERVICE_PORT = 443
|
|
47
47
|
|
|
48
|
+
# The default set of gRPC interceptors.
|
|
49
|
+
GRPC_INTERCEPTORS = []
|
|
50
|
+
|
|
48
51
|
DEFAULT_TIMEOUT = 30
|
|
49
52
|
|
|
50
53
|
# The scopes needed to make gRPC calls to all of the methods defined in
|
|
@@ -114,10 +117,10 @@ module Google
|
|
|
114
117
|
require "google/gax/grpc"
|
|
115
118
|
require "google/ads/googleads/v0/services/keyword_view_service_services_pb"
|
|
116
119
|
|
|
117
|
-
credentials ||= Google::Ads::Googleads::Credentials.default
|
|
120
|
+
credentials ||= Google::Ads::Googleads::V0::Services::Credentials.default
|
|
118
121
|
|
|
119
122
|
if credentials.is_a?(String) || credentials.is_a?(Hash)
|
|
120
|
-
updater_proc = Google::Ads::Googleads::Credentials.new(credentials).updater_proc
|
|
123
|
+
updater_proc = Google::Ads::Googleads::V0::Services::Credentials.new(credentials).updater_proc
|
|
121
124
|
end
|
|
122
125
|
if credentials.is_a?(GRPC::Core::Channel)
|
|
123
126
|
channel = credentials
|
|
@@ -160,6 +163,7 @@ module Google
|
|
|
160
163
|
# Allow overriding the service path/port in subclasses.
|
|
161
164
|
service_path = self.class::SERVICE_ADDRESS
|
|
162
165
|
port = self.class::DEFAULT_SERVICE_PORT
|
|
166
|
+
interceptors = self.class::GRPC_INTERCEPTORS
|
|
163
167
|
@keyword_view_service_stub = Google::Gax::Grpc.create_stub(
|
|
164
168
|
service_path,
|
|
165
169
|
port,
|
|
@@ -167,6 +171,7 @@ module Google
|
|
|
167
171
|
channel: channel,
|
|
168
172
|
updater_proc: updater_proc,
|
|
169
173
|
scopes: scopes,
|
|
174
|
+
interceptors: interceptors,
|
|
170
175
|
&Google::Ads::Googleads::V0::Services::KeywordViewService::Stub.method(:new)
|
|
171
176
|
)
|
|
172
177
|
|
|
@@ -25,7 +25,7 @@ require "pathname"
|
|
|
25
25
|
require "google/gax"
|
|
26
26
|
|
|
27
27
|
require "google/ads/googleads/v0/services/recommendation_service_pb"
|
|
28
|
-
require "google/ads/googleads/credentials"
|
|
28
|
+
require "google/ads/googleads/v0/services/credentials"
|
|
29
29
|
|
|
30
30
|
module Google
|
|
31
31
|
module Ads
|
|
@@ -45,6 +45,9 @@ module Google
|
|
|
45
45
|
# The default port of the service.
|
|
46
46
|
DEFAULT_SERVICE_PORT = 443
|
|
47
47
|
|
|
48
|
+
# The default set of gRPC interceptors.
|
|
49
|
+
GRPC_INTERCEPTORS = []
|
|
50
|
+
|
|
48
51
|
DEFAULT_TIMEOUT = 30
|
|
49
52
|
|
|
50
53
|
# The scopes needed to make gRPC calls to all of the methods defined in
|
|
@@ -114,10 +117,10 @@ module Google
|
|
|
114
117
|
require "google/gax/grpc"
|
|
115
118
|
require "google/ads/googleads/v0/services/recommendation_service_services_pb"
|
|
116
119
|
|
|
117
|
-
credentials ||= Google::Ads::Googleads::Credentials.default
|
|
120
|
+
credentials ||= Google::Ads::Googleads::V0::Services::Credentials.default
|
|
118
121
|
|
|
119
122
|
if credentials.is_a?(String) || credentials.is_a?(Hash)
|
|
120
|
-
updater_proc = Google::Ads::Googleads::Credentials.new(credentials).updater_proc
|
|
123
|
+
updater_proc = Google::Ads::Googleads::V0::Services::Credentials.new(credentials).updater_proc
|
|
121
124
|
end
|
|
122
125
|
if credentials.is_a?(GRPC::Core::Channel)
|
|
123
126
|
channel = credentials
|
|
@@ -160,6 +163,7 @@ module Google
|
|
|
160
163
|
# Allow overriding the service path/port in subclasses.
|
|
161
164
|
service_path = self.class::SERVICE_ADDRESS
|
|
162
165
|
port = self.class::DEFAULT_SERVICE_PORT
|
|
166
|
+
interceptors = self.class::GRPC_INTERCEPTORS
|
|
163
167
|
@recommendation_service_stub = Google::Gax::Grpc.create_stub(
|
|
164
168
|
service_path,
|
|
165
169
|
port,
|
|
@@ -167,6 +171,7 @@ module Google
|
|
|
167
171
|
channel: channel,
|
|
168
172
|
updater_proc: updater_proc,
|
|
169
173
|
scopes: scopes,
|
|
174
|
+
interceptors: interceptors,
|
|
170
175
|
&Google::Ads::Googleads::V0::Services::RecommendationService::Stub.method(:new)
|
|
171
176
|
)
|
|
172
177
|
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: google-ads-googleads
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.3.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Google Inc
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2018-06-
|
|
11
|
+
date: 2018-06-25 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: google-gax
|
|
@@ -16,14 +16,14 @@ dependencies:
|
|
|
16
16
|
requirements:
|
|
17
17
|
- - "~>"
|
|
18
18
|
- !ruby/object:Gem::Version
|
|
19
|
-
version: '1.
|
|
19
|
+
version: '1.3'
|
|
20
20
|
type: :runtime
|
|
21
21
|
prerelease: false
|
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
|
23
23
|
requirements:
|
|
24
24
|
- - "~>"
|
|
25
25
|
- !ruby/object:Gem::Version
|
|
26
|
-
version: '1.
|
|
26
|
+
version: '1.3'
|
|
27
27
|
- !ruby/object:Gem::Dependency
|
|
28
28
|
name: bundler
|
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -79,7 +79,6 @@ files:
|
|
|
79
79
|
- googleads_config.rb
|
|
80
80
|
- lib/google/ads/googleads.rb
|
|
81
81
|
- lib/google/ads/googleads/config.rb
|
|
82
|
-
- lib/google/ads/googleads/credentials.rb
|
|
83
82
|
- lib/google/ads/googleads/errors.rb
|
|
84
83
|
- lib/google/ads/googleads/field_mask_util.rb
|
|
85
84
|
- lib/google/ads/googleads/googleads_client.rb
|
|
@@ -218,6 +217,7 @@ files:
|
|
|
218
217
|
- lib/google/ads/googleads/v0/services/campaign_service_client_config.json
|
|
219
218
|
- lib/google/ads/googleads/v0/services/campaign_service_pb.rb
|
|
220
219
|
- lib/google/ads/googleads/v0/services/campaign_service_services_pb.rb
|
|
220
|
+
- lib/google/ads/googleads/v0/services/credentials.rb
|
|
221
221
|
- lib/google/ads/googleads/v0/services/customer_service_client.rb
|
|
222
222
|
- lib/google/ads/googleads/v0/services/customer_service_client_config.json
|
|
223
223
|
- lib/google/ads/googleads/v0/services/customer_service_pb.rb
|