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.
- checksums.yaml +5 -5
- data/ChangeLog +3 -0
- data/lib/google/ads/googleads/path_lookup_util.rb +29 -0
- data/lib/google/ads/googleads/proto_lookup_util.rb +91 -10
- data/lib/google/ads/googleads/v0/common/{ad_pb.rb → ad_type_infos_pb.rb} +4 -22
- data/lib/google/ads/googleads/v0/common/criteria_pb.rb +37 -3
- data/lib/google/ads/googleads/v0/common/metrics_pb.rb +8 -8
- data/lib/google/ads/googleads/v0/common/policy_pb.rb +57 -0
- data/lib/google/ads/googleads/v0/enums/ad_group_type_pb.rb +2 -0
- data/lib/google/ads/googleads/v0/enums/ad_network_type_pb.rb +1 -0
- data/lib/google/ads/googleads/v0/enums/ad_type_pb.rb +1 -0
- data/lib/google/ads/googleads/v0/enums/advertising_channel_sub_type_pb.rb +3 -0
- data/lib/google/ads/googleads/v0/enums/advertising_channel_type_pb.rb +2 -0
- data/lib/google/ads/googleads/v0/enums/bid_modifier_source_pb.rb +28 -0
- data/lib/google/ads/googleads/v0/enums/campaign_group_status_pb.rb +28 -0
- data/lib/google/ads/googleads/v0/enums/campaign_shared_set_status_pb.rb +28 -0
- data/lib/google/ads/googleads/v0/enums/criterion_type_pb.rb +2 -1
- data/lib/google/ads/googleads/v0/enums/device_pb.rb +1 -0
- data/lib/google/ads/googleads/v0/enums/hotel_date_selection_type_pb.rb +28 -0
- data/lib/google/ads/googleads/v0/enums/interaction_type_pb.rb +27 -0
- data/lib/google/ads/googleads/v0/enums/minute_of_hour_pb.rb +30 -0
- data/lib/google/ads/googleads/v0/enums/month_of_year_pb.rb +38 -0
- data/lib/google/ads/googleads/v0/enums/policy_topic_entry_type_pb.rb +31 -0
- data/lib/google/ads/googleads/v0/enums/policy_topic_evidence_destination_mismatch_url_type_pb.rb +31 -0
- data/lib/google/ads/googleads/v0/enums/product_condition_pb.rb +30 -0
- data/lib/google/ads/googleads/v0/enums/product_type_level_pb.rb +31 -0
- data/lib/google/ads/googleads/v0/enums/recommendation_type_pb.rb +5 -0
- data/lib/google/ads/googleads/v0/enums/shared_set_status_pb.rb +28 -0
- data/lib/google/ads/googleads/v0/enums/shared_set_type_pb.rb +28 -0
- data/lib/google/ads/googleads/v0/enums/slot_pb.rb +1 -0
- data/lib/google/ads/googleads/v0/errors/authentication_error_pb.rb +2 -0
- data/lib/google/ads/googleads/v0/errors/authorization_error_pb.rb +2 -0
- data/lib/google/ads/googleads/v0/errors/campaign_criterion_error_pb.rb +1 -0
- data/lib/google/ads/googleads/v0/errors/campaign_error_pb.rb +1 -2
- data/lib/google/ads/googleads/v0/errors/campaign_group_error_pb.rb +29 -0
- data/lib/google/ads/googleads/v0/errors/campaign_shared_set_error_pb.rb +27 -0
- data/lib/google/ads/googleads/v0/errors/context_error_pb.rb +1 -0
- data/lib/google/ads/googleads/v0/errors/database_error_pb.rb +27 -0
- data/lib/google/ads/googleads/v0/errors/enum_error_pb.rb +27 -0
- data/lib/google/ads/googleads/v0/errors/errors_pb.rb +21 -0
- data/lib/google/ads/googleads/v0/errors/header_error_pb.rb +27 -0
- data/lib/google/ads/googleads/v0/errors/mutate_error_pb.rb +1 -0
- data/lib/google/ads/googleads/v0/errors/policy_finding_error_pb.rb +27 -0
- data/lib/google/ads/googleads/v0/errors/query_error_pb.rb +1 -0
- data/lib/google/ads/googleads/v0/errors/quota_error_pb.rb +1 -0
- data/lib/google/ads/googleads/v0/errors/recommendation_error_pb.rb +1 -0
- data/lib/google/ads/googleads/v0/errors/shared_criterion_error_pb.rb +27 -0
- data/lib/google/ads/googleads/v0/errors/shared_set_error_pb.rb +30 -0
- data/lib/google/ads/googleads/v0/resources/ad_group_ad_pb.rb +2 -2
- data/lib/google/ads/googleads/v0/resources/ad_group_bid_modifier_pb.rb +4 -0
- data/lib/google/ads/googleads/v0/resources/ad_pb.rb +42 -0
- data/lib/google/ads/googleads/v0/resources/campaign_bid_modifier_pb.rb +30 -0
- data/lib/google/ads/googleads/v0/resources/campaign_criterion_pb.rb +2 -1
- data/lib/google/ads/googleads/v0/resources/campaign_group_pb.rb +27 -0
- data/lib/google/ads/googleads/v0/resources/campaign_pb.rb +9 -0
- data/lib/google/ads/googleads/v0/resources/campaign_shared_set_pb.rb +27 -0
- data/lib/google/ads/googleads/v0/resources/recommendation_pb.rb +25 -2
- data/lib/google/ads/googleads/v0/resources/shared_criterion_pb.rb +31 -0
- data/lib/google/ads/googleads/v0/resources/shared_set_pb.rb +31 -0
- data/lib/google/ads/googleads/v0/services.rb +1163 -0
- data/lib/google/ads/googleads/v0/services/ad_group_ad_service_client.rb +4 -4
- data/lib/google/ads/googleads/v0/services/ad_group_ad_service_services_pb.rb +2 -3
- data/lib/google/ads/googleads/v0/services/ad_group_bid_modifier_service_client.rb +4 -4
- data/lib/google/ads/googleads/v0/services/ad_group_bid_modifier_service_services_pb.rb +2 -3
- data/lib/google/ads/googleads/v0/services/ad_group_criterion_service_client.rb +4 -4
- data/lib/google/ads/googleads/v0/services/ad_group_criterion_service_services_pb.rb +2 -3
- data/lib/google/ads/googleads/v0/services/ad_group_service_client.rb +4 -4
- data/lib/google/ads/googleads/v0/services/ad_group_service_services_pb.rb +2 -3
- data/lib/google/ads/googleads/v0/services/bidding_strategy_service_client.rb +4 -4
- data/lib/google/ads/googleads/v0/services/bidding_strategy_service_services_pb.rb +2 -3
- data/lib/google/ads/googleads/v0/services/campaign_bid_modifier_service_client.rb +268 -0
- data/lib/google/ads/googleads/v0/services/campaign_bid_modifier_service_client_config.json +36 -0
- data/lib/google/ads/googleads/v0/services/campaign_bid_modifier_service_pb.rb +47 -0
- data/lib/google/ads/googleads/v0/services/campaign_bid_modifier_service_services_pb.rb +51 -0
- data/lib/google/ads/googleads/v0/services/campaign_budget_service_client.rb +4 -4
- data/lib/google/ads/googleads/v0/services/campaign_budget_service_services_pb.rb +2 -3
- data/lib/google/ads/googleads/v0/services/campaign_criterion_service_client.rb +4 -4
- data/lib/google/ads/googleads/v0/services/campaign_criterion_service_services_pb.rb +2 -3
- data/lib/google/ads/googleads/v0/services/campaign_group_service_client.rb +268 -0
- data/lib/google/ads/googleads/v0/services/campaign_group_service_client_config.json +36 -0
- data/lib/google/ads/googleads/v0/services/campaign_group_service_pb.rb +47 -0
- data/lib/google/ads/googleads/v0/services/campaign_group_service_services_pb.rb +51 -0
- data/lib/google/ads/googleads/v0/services/campaign_service_client.rb +4 -4
- data/lib/google/ads/googleads/v0/services/campaign_service_services_pb.rb +2 -3
- data/lib/google/ads/googleads/v0/services/campaign_shared_set_service_client.rb +267 -0
- data/lib/google/ads/googleads/v0/services/campaign_shared_set_service_client_config.json +36 -0
- data/lib/google/ads/googleads/v0/services/campaign_shared_set_service_pb.rb +44 -0
- data/lib/google/ads/googleads/v0/services/campaign_shared_set_service_services_pb.rb +50 -0
- data/lib/google/ads/googleads/v0/services/credentials.rb +10 -2
- data/lib/google/ads/googleads/v0/services/customer_service_client.rb +2 -2
- data/lib/google/ads/googleads/v0/services/customer_service_services_pb.rb +2 -3
- data/lib/google/ads/googleads/v0/services/doc/google/ads/googleads/v0/common/ad_type_infos.rb +120 -0
- data/lib/google/ads/googleads/v0/services/doc/google/ads/googleads/v0/common/bidding.rb +176 -0
- data/lib/google/ads/googleads/v0/services/doc/google/ads/googleads/v0/common/criteria.rb +225 -0
- data/lib/google/ads/googleads/v0/services/doc/google/ads/googleads/v0/common/custom_parameter.rb +33 -0
- data/lib/google/ads/googleads/v0/services/doc/google/ads/googleads/v0/common/metrics.rb +208 -0
- data/lib/google/ads/googleads/v0/services/doc/google/ads/googleads/v0/resources/ad.rb +79 -0
- data/lib/google/ads/googleads/v0/services/doc/google/ads/googleads/v0/resources/ad_group.rb +87 -0
- data/lib/google/ads/googleads/v0/services/doc/google/ads/googleads/v0/resources/ad_group_ad.rb +43 -0
- data/lib/google/ads/googleads/v0/services/doc/google/ads/googleads/v0/resources/ad_group_bid_modifier.rb +70 -0
- data/lib/google/ads/googleads/v0/services/doc/google/ads/googleads/v0/resources/ad_group_criterion.rb +148 -0
- data/lib/google/ads/googleads/v0/services/doc/google/ads/googleads/v0/resources/bidding_strategy.rb +73 -0
- data/lib/google/ads/googleads/v0/services/doc/google/ads/googleads/v0/resources/campaign.rb +223 -0
- data/lib/google/ads/googleads/v0/services/doc/google/ads/googleads/v0/resources/campaign_bid_modifier.rb +46 -0
- data/lib/google/ads/googleads/v0/services/doc/google/ads/googleads/v0/resources/campaign_budget.rb +88 -0
- data/lib/google/ads/googleads/v0/services/doc/google/ads/googleads/v0/resources/campaign_criterion.rb +66 -0
- data/lib/google/ads/googleads/v0/services/doc/google/ads/googleads/v0/resources/campaign_group.rb +49 -0
- data/lib/google/ads/googleads/v0/services/doc/google/ads/googleads/v0/resources/campaign_shared_set.rb +47 -0
- data/lib/google/ads/googleads/v0/services/doc/google/ads/googleads/v0/resources/customer.rb +57 -0
- data/lib/google/ads/googleads/v0/services/doc/google/ads/googleads/v0/resources/geo_target_constant.rb +44 -0
- data/lib/google/ads/googleads/v0/services/doc/google/ads/googleads/v0/resources/google_ads_field.rb +89 -0
- data/lib/google/ads/googleads/v0/services/doc/google/ads/googleads/v0/resources/keyword_view.rb +32 -0
- data/lib/google/ads/googleads/v0/services/doc/google/ads/googleads/v0/resources/recommendation.rb +223 -0
- data/lib/google/ads/googleads/v0/services/doc/google/ads/googleads/v0/resources/shared_criterion.rb +46 -0
- data/lib/google/ads/googleads/v0/services/doc/google/ads/googleads/v0/resources/shared_set.rb +56 -0
- data/lib/google/ads/googleads/v0/services/doc/google/ads/googleads/v0/services/ad_group_ad_service.rb +68 -0
- data/lib/google/ads/googleads/v0/services/doc/google/ads/googleads/v0/services/ad_group_bid_modifier_service.rb +71 -0
- data/lib/google/ads/googleads/v0/services/doc/google/ads/googleads/v0/services/ad_group_criterion_service.rb +69 -0
- data/lib/google/ads/googleads/v0/services/doc/google/ads/googleads/v0/services/ad_group_service.rb +68 -0
- data/lib/google/ads/googleads/v0/services/doc/google/ads/googleads/v0/services/bidding_strategy_service.rb +70 -0
- data/lib/google/ads/googleads/v0/services/doc/google/ads/googleads/v0/services/campaign_bid_modifier_service.rb +71 -0
- data/lib/google/ads/googleads/v0/services/doc/google/ads/googleads/v0/services/campaign_budget_service.rb +69 -0
- data/lib/google/ads/googleads/v0/services/doc/google/ads/googleads/v0/services/campaign_criterion_service.rb +69 -0
- data/lib/google/ads/googleads/v0/services/doc/google/ads/googleads/v0/services/campaign_group_service.rb +70 -0
- data/lib/google/ads/googleads/v0/services/doc/google/ads/googleads/v0/services/campaign_service.rb +69 -0
- data/lib/google/ads/googleads/v0/services/doc/google/ads/googleads/v0/services/campaign_shared_set_service.rb +64 -0
- data/lib/google/ads/googleads/v0/services/doc/google/ads/googleads/v0/services/customer_service.rb +29 -0
- data/lib/google/ads/googleads/v0/services/doc/google/ads/googleads/v0/services/geo_target_constant_service.rb +29 -0
- data/lib/google/ads/googleads/v0/services/doc/google/ads/googleads/v0/services/google_ads_field_service.rb +59 -0
- data/lib/google/ads/googleads/v0/services/doc/google/ads/googleads/v0/services/google_ads_service.rb +156 -0
- data/lib/google/ads/googleads/v0/services/doc/google/ads/googleads/v0/services/keyword_view_service.rb +29 -0
- data/lib/google/ads/googleads/v0/services/doc/google/ads/googleads/v0/services/recommendation_service.rb +112 -0
- data/lib/google/ads/googleads/v0/services/doc/google/ads/googleads/v0/services/shared_criterion_service.rb +64 -0
- data/lib/google/ads/googleads/v0/services/doc/google/ads/googleads/v0/services/shared_set_service.rb +69 -0
- data/lib/google/ads/googleads/v0/services/doc/google/protobuf/any.rb +124 -0
- data/lib/google/ads/googleads/v0/services/doc/google/protobuf/field_mask.rb +223 -0
- data/lib/google/ads/googleads/v0/services/doc/google/protobuf/wrappers.rb +89 -0
- data/lib/google/ads/googleads/v0/services/doc/google/rpc/status.rb +83 -0
- data/lib/google/ads/googleads/v0/services/doc/overview.rb +82 -0
- data/lib/google/ads/googleads/v0/services/geo_target_constant_service_client.rb +2 -2
- data/lib/google/ads/googleads/v0/services/geo_target_constant_service_services_pb.rb +2 -3
- data/lib/google/ads/googleads/v0/services/google_ads_field_service_client.rb +4 -4
- data/lib/google/ads/googleads/v0/services/google_ads_field_service_services_pb.rb +2 -3
- data/lib/google/ads/googleads/v0/services/google_ads_service_client.rb +2 -2
- data/lib/google/ads/googleads/v0/services/google_ads_service_pb.rb +12 -0
- data/lib/google/ads/googleads/v0/services/google_ads_service_services_pb.rb +2 -3
- data/lib/google/ads/googleads/v0/services/keyword_view_service_client.rb +2 -2
- data/lib/google/ads/googleads/v0/services/keyword_view_service_services_pb.rb +2 -3
- data/lib/google/ads/googleads/v0/services/recommendation_service_client.rb +4 -4
- data/lib/google/ads/googleads/v0/services/recommendation_service_pb.rb +2 -2
- data/lib/google/ads/googleads/v0/services/recommendation_service_services_pb.rb +2 -3
- data/lib/google/ads/googleads/v0/services/shared_criterion_service_client.rb +267 -0
- data/lib/google/ads/googleads/v0/services/shared_criterion_service_client_config.json +36 -0
- data/lib/google/ads/googleads/v0/services/shared_criterion_service_pb.rb +44 -0
- data/lib/google/ads/googleads/v0/services/shared_criterion_service_services_pb.rb +50 -0
- data/lib/google/ads/googleads/v0/services/shared_set_service_client.rb +267 -0
- data/lib/google/ads/googleads/v0/services/shared_set_service_client_config.json +36 -0
- data/lib/google/ads/googleads/v0/services/shared_set_service_pb.rb +47 -0
- data/lib/google/ads/googleads/v0/services/shared_set_service_services_pb.rb +50 -0
- data/lib/google/ads/googleads/version.rb +1 -1
- metadata +100 -4
@@ -0,0 +1,29 @@
|
|
1
|
+
# Copyright 2018 Google LLC
|
2
|
+
#
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
+
# you may not use this file except in compliance with the License.
|
5
|
+
# You may obtain a copy of the License at
|
6
|
+
#
|
7
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
8
|
+
#
|
9
|
+
# Unless required by applicable law or agreed to in writing, software
|
10
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
11
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12
|
+
# See the License for the specific language governing permissions and
|
13
|
+
# limitations under the License.
|
14
|
+
|
15
|
+
module Google
|
16
|
+
module Ads
|
17
|
+
module Googleads
|
18
|
+
module V0
|
19
|
+
module Services
|
20
|
+
# Request message for {Google::Ads::Googleads::V0::Services::GeoTargetConstantService::GetGeoTargetConstant GeoTargetConstantService::GetGeoTargetConstant}.
|
21
|
+
# @!attribute [rw] resource_name
|
22
|
+
# @return [String]
|
23
|
+
# The resource name of the geo target constant to fetch.
|
24
|
+
class GetGeoTargetConstantRequest; end
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|
29
|
+
end
|
@@ -0,0 +1,59 @@
|
|
1
|
+
# Copyright 2018 Google LLC
|
2
|
+
#
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
+
# you may not use this file except in compliance with the License.
|
5
|
+
# You may obtain a copy of the License at
|
6
|
+
#
|
7
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
8
|
+
#
|
9
|
+
# Unless required by applicable law or agreed to in writing, software
|
10
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
11
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12
|
+
# See the License for the specific language governing permissions and
|
13
|
+
# limitations under the License.
|
14
|
+
|
15
|
+
module Google
|
16
|
+
module Ads
|
17
|
+
module Googleads
|
18
|
+
module V0
|
19
|
+
module Services
|
20
|
+
# Request message for {Google::Ads::Googleads::V0::Services::GoogleAdsFieldService::GetGoogleAdsField GoogleAdsFieldService::GetGoogleAdsField}.
|
21
|
+
# @!attribute [rw] resource_name
|
22
|
+
# @return [String]
|
23
|
+
# The resource name of the field to get.
|
24
|
+
class GetGoogleAdsFieldRequest; end
|
25
|
+
|
26
|
+
# Request message for {Google::Ads::Googleads::V0::Services::GoogleAdsFieldService::SearchGoogleAdsFields GoogleAdsFieldService::SearchGoogleAdsFields}.
|
27
|
+
# @!attribute [rw] query
|
28
|
+
# @return [String]
|
29
|
+
# The query string.
|
30
|
+
# @!attribute [rw] page_token
|
31
|
+
# @return [String]
|
32
|
+
# Token of the page to retrieve. If not specified, the first page of
|
33
|
+
# results will be returned. Use the value obtained from +next_page_token+
|
34
|
+
# in the previous response in order to request the next page of results.
|
35
|
+
# @!attribute [rw] page_size
|
36
|
+
# @return [Integer]
|
37
|
+
# Number of elements to retrieve in a single page.
|
38
|
+
# When too large a page is requested, the server may decide to further
|
39
|
+
# limit the number of returned resources.
|
40
|
+
class SearchGoogleAdsFieldsRequest; end
|
41
|
+
|
42
|
+
# Response message for {Google::Ads::Googleads::V0::Services::GoogleAdsFieldService::SearchGoogleAdsFields GoogleAdsFieldService::SearchGoogleAdsFields}.
|
43
|
+
# @!attribute [rw] results
|
44
|
+
# @return [Array<Google::Ads::Googleads::V0::Resources::GoogleAdsField>]
|
45
|
+
# The list of fields that matched the query.
|
46
|
+
# @!attribute [rw] next_page_token
|
47
|
+
# @return [String]
|
48
|
+
# Pagination token used to retrieve the next page of results. Pass the
|
49
|
+
# content of this string as the +page_token+ attribute of the next request.
|
50
|
+
# +next_page_token+ is not returned for the last page.
|
51
|
+
# @!attribute [rw] total_results_count
|
52
|
+
# @return [Integer]
|
53
|
+
# Total number of results that match the query ignoring the LIMIT clause.
|
54
|
+
class SearchGoogleAdsFieldsResponse; end
|
55
|
+
end
|
56
|
+
end
|
57
|
+
end
|
58
|
+
end
|
59
|
+
end
|
data/lib/google/ads/googleads/v0/services/doc/google/ads/googleads/v0/services/google_ads_service.rb
ADDED
@@ -0,0 +1,156 @@
|
|
1
|
+
# Copyright 2018 Google LLC
|
2
|
+
#
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
+
# you may not use this file except in compliance with the License.
|
5
|
+
# You may obtain a copy of the License at
|
6
|
+
#
|
7
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
8
|
+
#
|
9
|
+
# Unless required by applicable law or agreed to in writing, software
|
10
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
11
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12
|
+
# See the License for the specific language governing permissions and
|
13
|
+
# limitations under the License.
|
14
|
+
|
15
|
+
module Google
|
16
|
+
module Ads
|
17
|
+
module Googleads
|
18
|
+
module V0
|
19
|
+
module Services
|
20
|
+
# Request message for {Google::Ads::Googleads::V0::Services::GoogleAdsService::Search GoogleAdsService::Search}.
|
21
|
+
# @!attribute [rw] customer_id
|
22
|
+
# @return [String]
|
23
|
+
# The ID of the customer being queried.
|
24
|
+
# @!attribute [rw] query
|
25
|
+
# @return [String]
|
26
|
+
# The query string.
|
27
|
+
# @!attribute [rw] page_token
|
28
|
+
# @return [String]
|
29
|
+
# Token of the page to retrieve. If not specified, the first
|
30
|
+
# page of results will be returned. Use the value obtained from
|
31
|
+
# +next_page_token+ in the previous response in order to request
|
32
|
+
# the next page of results.
|
33
|
+
# @!attribute [rw] page_size
|
34
|
+
# @return [Integer]
|
35
|
+
# Number of elements to retrieve in a single page.
|
36
|
+
# When too large a page is requested, the server may decide to
|
37
|
+
# further limit the number of returned resources.
|
38
|
+
class SearchGoogleAdsRequest; end
|
39
|
+
|
40
|
+
# Response message for {Google::Ads::Googleads::V0::Services::GoogleAdsService::Search GoogleAdsService::Search}.
|
41
|
+
# @!attribute [rw] results
|
42
|
+
# @return [Array<Google::Ads::Googleads::V0::Services::GoogleAdsRow>]
|
43
|
+
# The list of rows that matched the query.
|
44
|
+
# @!attribute [rw] next_page_token
|
45
|
+
# @return [String]
|
46
|
+
# Pagination token used to retrieve the next page of results.
|
47
|
+
# Pass the content of this string as the +page_token+ attribute of
|
48
|
+
# the next request. +next_page_token+ is not returned for the last
|
49
|
+
# page.
|
50
|
+
# @!attribute [rw] total_results_count
|
51
|
+
# @return [Integer]
|
52
|
+
# Total number of results that match the query ignoring the LIMIT
|
53
|
+
# clause.
|
54
|
+
# @!attribute [rw] field_mask
|
55
|
+
# @return [Google::Protobuf::FieldMask]
|
56
|
+
# FieldMask that represents what fields were requested by the user.
|
57
|
+
class SearchGoogleAdsResponse; end
|
58
|
+
|
59
|
+
# A returned row from the query.
|
60
|
+
# @!attribute [rw] ad_group
|
61
|
+
# @return [Google::Ads::Googleads::V0::Resources::AdGroup]
|
62
|
+
# The ad group referenced in the query.
|
63
|
+
# @!attribute [rw] ad_group_ad
|
64
|
+
# @return [Google::Ads::Googleads::V0::Resources::AdGroupAd]
|
65
|
+
# The ad referenced in the query.
|
66
|
+
# @!attribute [rw] ad_group_bid_modifier
|
67
|
+
# @return [Google::Ads::Googleads::V0::Resources::AdGroupBidModifier]
|
68
|
+
# The bid modifier referenced in the query.
|
69
|
+
# @!attribute [rw] ad_group_criterion
|
70
|
+
# @return [Google::Ads::Googleads::V0::Resources::AdGroupCriterion]
|
71
|
+
# The criterion referenced in the query.
|
72
|
+
# @!attribute [rw] bidding_strategy
|
73
|
+
# @return [Google::Ads::Googleads::V0::Resources::BiddingStrategy]
|
74
|
+
# The bidding strategy referenced in the query.
|
75
|
+
# @!attribute [rw] campaign_budget
|
76
|
+
# @return [Google::Ads::Googleads::V0::Resources::CampaignBudget]
|
77
|
+
# The campaign budget referenced in the query.
|
78
|
+
# @!attribute [rw] campaign
|
79
|
+
# @return [Google::Ads::Googleads::V0::Resources::Campaign]
|
80
|
+
# The campaign referenced in the query.
|
81
|
+
# @!attribute [rw] campaign_bid_modifier
|
82
|
+
# @return [Google::Ads::Googleads::V0::Resources::CampaignBidModifier]
|
83
|
+
# The campaign bid modifier referenced in the query.
|
84
|
+
# @!attribute [rw] campaign_criterion
|
85
|
+
# @return [Google::Ads::Googleads::V0::Resources::CampaignCriterion]
|
86
|
+
# The campaign criterion referenced in the query.
|
87
|
+
# @!attribute [rw] campaign_group
|
88
|
+
# @return [Google::Ads::Googleads::V0::Resources::CampaignGroup]
|
89
|
+
# Campaign Group referenced in AWQL query.
|
90
|
+
# @!attribute [rw] campaign_shared_set
|
91
|
+
# @return [Google::Ads::Googleads::V0::Resources::CampaignSharedSet]
|
92
|
+
# Campaign Shared Set referenced in AWQL query.
|
93
|
+
# @!attribute [rw] customer
|
94
|
+
# @return [Google::Ads::Googleads::V0::Resources::Customer]
|
95
|
+
# The customer referenced in the query.
|
96
|
+
# @!attribute [rw] geo_target_constant
|
97
|
+
# @return [Google::Ads::Googleads::V0::Resources::GeoTargetConstant]
|
98
|
+
# The geo target constant referenced in the query.
|
99
|
+
# @!attribute [rw] keyword_view
|
100
|
+
# @return [Google::Ads::Googleads::V0::Resources::KeywordView]
|
101
|
+
# The keyword view referenced in the query.
|
102
|
+
# @!attribute [rw] recommendation
|
103
|
+
# @return [Google::Ads::Googleads::V0::Resources::Recommendation]
|
104
|
+
# The recommendation referenced in the query.
|
105
|
+
# @!attribute [rw] shared_criterion
|
106
|
+
# @return [Google::Ads::Googleads::V0::Resources::SharedCriterion]
|
107
|
+
# The shared set referenced in the query.
|
108
|
+
# @!attribute [rw] shared_set
|
109
|
+
# @return [Google::Ads::Googleads::V0::Resources::SharedSet]
|
110
|
+
# The shared set referenced in the query.
|
111
|
+
# @!attribute [rw] metrics
|
112
|
+
# @return [Google::Ads::Googleads::V0::Common::Metrics]
|
113
|
+
# The metrics.
|
114
|
+
# @!attribute [rw] ad_network_type
|
115
|
+
# @return [Google::Ads::Googleads::V0::Enums::AdNetworkTypeEnum::AdNetworkType]
|
116
|
+
# Ad network type.
|
117
|
+
# @!attribute [rw] date
|
118
|
+
# @return [Google::Protobuf::StringValue]
|
119
|
+
# Date to which metrics apply.
|
120
|
+
# YYYY-MM-DD format, e.g., 2018-04-17.
|
121
|
+
# @!attribute [rw] day_of_week
|
122
|
+
# @return [Google::Ads::Googleads::V0::Enums::DayOfWeekEnum::DayOfWeek]
|
123
|
+
# Day of the week, e.g., MONDAY.
|
124
|
+
# @!attribute [rw] device
|
125
|
+
# @return [Google::Ads::Googleads::V0::Enums::DeviceEnum::Device]
|
126
|
+
# Device to which metrics apply.
|
127
|
+
# @!attribute [rw] hour
|
128
|
+
# @return [Google::Protobuf::Int32Value]
|
129
|
+
# Hour of day as a number between 0 and 23, inclusive.
|
130
|
+
# @!attribute [rw] month
|
131
|
+
# @return [Google::Protobuf::StringValue]
|
132
|
+
# Month as represented by the date of the first day of a month.
|
133
|
+
# @!attribute [rw] month_of_year
|
134
|
+
# @return [Google::Ads::Googleads::V0::Enums::MonthOfYearEnum::MonthOfYear]
|
135
|
+
# Month of the year, e.g., January.
|
136
|
+
# @!attribute [rw] quarter
|
137
|
+
# @return [Google::Protobuf::StringValue]
|
138
|
+
# Quarter as represented by the date of the first day of a quarter.
|
139
|
+
# Uses the calendar year for quarters,
|
140
|
+
# e.g., the second quarter of 2018 starts on 2018-04-01.
|
141
|
+
# @!attribute [rw] slot
|
142
|
+
# @return [Google::Ads::Googleads::V0::Enums::SlotEnum::Slot]
|
143
|
+
# Position of the ad.
|
144
|
+
# @!attribute [rw] week
|
145
|
+
# @return [Google::Protobuf::StringValue]
|
146
|
+
# Week as defined as Monday through Sunday, and represented by the date of
|
147
|
+
# Monday.
|
148
|
+
# @!attribute [rw] year
|
149
|
+
# @return [Google::Protobuf::Int32Value]
|
150
|
+
# Year, formatted as yyyy.
|
151
|
+
class GoogleAdsRow; end
|
152
|
+
end
|
153
|
+
end
|
154
|
+
end
|
155
|
+
end
|
156
|
+
end
|
@@ -0,0 +1,29 @@
|
|
1
|
+
# Copyright 2018 Google LLC
|
2
|
+
#
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
+
# you may not use this file except in compliance with the License.
|
5
|
+
# You may obtain a copy of the License at
|
6
|
+
#
|
7
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
8
|
+
#
|
9
|
+
# Unless required by applicable law or agreed to in writing, software
|
10
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
11
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12
|
+
# See the License for the specific language governing permissions and
|
13
|
+
# limitations under the License.
|
14
|
+
|
15
|
+
module Google
|
16
|
+
module Ads
|
17
|
+
module Googleads
|
18
|
+
module V0
|
19
|
+
module Services
|
20
|
+
# Request message for {Google::Ads::Googleads::V0::Services::KeywordViewService::GetKeywordView KeywordViewService::GetKeywordView}.
|
21
|
+
# @!attribute [rw] resource_name
|
22
|
+
# @return [String]
|
23
|
+
# The resource name of the keyword view to fetch.
|
24
|
+
class GetKeywordViewRequest; end
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|
29
|
+
end
|
@@ -0,0 +1,112 @@
|
|
1
|
+
# Copyright 2018 Google LLC
|
2
|
+
#
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
+
# you may not use this file except in compliance with the License.
|
5
|
+
# You may obtain a copy of the License at
|
6
|
+
#
|
7
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
8
|
+
#
|
9
|
+
# Unless required by applicable law or agreed to in writing, software
|
10
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
11
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12
|
+
# See the License for the specific language governing permissions and
|
13
|
+
# limitations under the License.
|
14
|
+
|
15
|
+
module Google
|
16
|
+
module Ads
|
17
|
+
module Googleads
|
18
|
+
module V0
|
19
|
+
module Services
|
20
|
+
# Request message for {Google::Ads::Googleads::V0::Services::RecommendationService::GetRecommendation RecommendationService::GetRecommendation}.
|
21
|
+
# @!attribute [rw] resource_name
|
22
|
+
# @return [String]
|
23
|
+
# The resource name of the recommendation to fetch.
|
24
|
+
class GetRecommendationRequest; end
|
25
|
+
|
26
|
+
# Request message for {Google::Ads::Googleads::V0::Services::RecommendationService::ApplyRecommendation RecommendationService::ApplyRecommendation}.
|
27
|
+
# @!attribute [rw] customer_id
|
28
|
+
# @return [String]
|
29
|
+
# The ID of the customer with the recommendation.
|
30
|
+
# @!attribute [rw] operations
|
31
|
+
# @return [Array<Google::Ads::Googleads::V0::Services::ApplyRecommendationOperation>]
|
32
|
+
# The list of operations to apply recommendations.
|
33
|
+
class ApplyRecommendationRequest; end
|
34
|
+
|
35
|
+
# Information about the operation to apply a recommendation and any parameters
|
36
|
+
# to
|
37
|
+
# customize it.
|
38
|
+
# @!attribute [rw] resource_name
|
39
|
+
# @return [String]
|
40
|
+
# The resource name of the recommendation to apply.
|
41
|
+
# @!attribute [rw] campaign_budget
|
42
|
+
# @return [Google::Ads::Googleads::V0::Services::ApplyRecommendationOperation::CampaignBudgetParameters]
|
43
|
+
# Optional parameters to use when applying a campaign budget
|
44
|
+
# recommendation.
|
45
|
+
# @!attribute [rw] text_ad
|
46
|
+
# @return [Google::Ads::Googleads::V0::Services::ApplyRecommendationOperation::TextAdParameters]
|
47
|
+
# Optional parameters to use when applying a text ad recommendation.
|
48
|
+
# @!attribute [rw] keyword
|
49
|
+
# @return [Google::Ads::Googleads::V0::Services::ApplyRecommendationOperation::KeywordParameters]
|
50
|
+
# Optional parameters to use when applying keyword recommendation.
|
51
|
+
# @!attribute [rw] target_cpa_opt_in
|
52
|
+
# @return [Google::Ads::Googleads::V0::Services::ApplyRecommendationOperation::TargetCpaOptInParameters]
|
53
|
+
# Optional parameters to use when applying target CPA opt-in
|
54
|
+
# recommendation.
|
55
|
+
class ApplyRecommendationOperation
|
56
|
+
# Parameters to use when applying a campaign budget recommendation.
|
57
|
+
# @!attribute [rw] new_budget_amount_micros
|
58
|
+
# @return [Google::Protobuf::Int64Value]
|
59
|
+
# New budget amount to set for target budget resource. This is a required
|
60
|
+
# field.
|
61
|
+
class CampaignBudgetParameters; end
|
62
|
+
|
63
|
+
# Parameters to use when applying a text ad recommendation.
|
64
|
+
# @!attribute [rw] ad
|
65
|
+
# @return [Google::Ads::Googleads::V0::Resources::Ad]
|
66
|
+
# New ad to add to recommended ad group. All necessary fields need to be
|
67
|
+
# set in this message. This is a required field.
|
68
|
+
class TextAdParameters; end
|
69
|
+
|
70
|
+
# Parameters to use when applying keyword recommendation.
|
71
|
+
# @!attribute [rw] ad_group
|
72
|
+
# @return [Google::Protobuf::StringValue]
|
73
|
+
# The ad group resource to add keyword to. This is a required field.
|
74
|
+
# @!attribute [rw] match_type
|
75
|
+
# @return [Google::Ads::Googleads::V0::Enums::KeywordMatchTypeEnum::KeywordMatchType]
|
76
|
+
# The match type of the keyword. This is a required field.
|
77
|
+
# @!attribute [rw] cpc_bid_micros
|
78
|
+
# @return [Google::Protobuf::Int64Value]
|
79
|
+
# Optional, CPC bid to set for the keyword. If not set, keyword will use
|
80
|
+
# bid based on bidding strategy used by target ad group.
|
81
|
+
class KeywordParameters; end
|
82
|
+
|
83
|
+
# Parameters to use when applying Target CPA recommendation.
|
84
|
+
# @!attribute [rw] target_cpa_micros
|
85
|
+
# @return [Google::Protobuf::Int64Value]
|
86
|
+
# Average CPA to use for Target CPA bidding strategy. This is a required
|
87
|
+
# field.
|
88
|
+
# @!attribute [rw] new_campaign_budget_amount_micros
|
89
|
+
# @return [Google::Protobuf::Int64Value]
|
90
|
+
# Optional, budget amount to set for the campaign.
|
91
|
+
class TargetCpaOptInParameters; end
|
92
|
+
end
|
93
|
+
|
94
|
+
# Response message for {Google::Ads::Googleads::V0::Services::RecommendationService::ApplyRecommendation RecommendationService::ApplyRecommendation}.
|
95
|
+
# @!attribute [rw] results
|
96
|
+
# @return [Array<Google::Ads::Googleads::V0::Services::ApplyRecommendationResult>]
|
97
|
+
# Results of operations to apply recommendations.
|
98
|
+
class ApplyRecommendationResponse; end
|
99
|
+
|
100
|
+
# The result of applying a recommendation.
|
101
|
+
# @!attribute [rw] resource_name
|
102
|
+
# @return [String]
|
103
|
+
# Returned for successful applies.
|
104
|
+
# @!attribute [rw] status
|
105
|
+
# @return [Google::Rpc::Status]
|
106
|
+
# Returned for failed operations.
|
107
|
+
class ApplyRecommendationResult; end
|
108
|
+
end
|
109
|
+
end
|
110
|
+
end
|
111
|
+
end
|
112
|
+
end
|
@@ -0,0 +1,64 @@
|
|
1
|
+
# Copyright 2018 Google LLC
|
2
|
+
#
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
+
# you may not use this file except in compliance with the License.
|
5
|
+
# You may obtain a copy of the License at
|
6
|
+
#
|
7
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
8
|
+
#
|
9
|
+
# Unless required by applicable law or agreed to in writing, software
|
10
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
11
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12
|
+
# See the License for the specific language governing permissions and
|
13
|
+
# limitations under the License.
|
14
|
+
|
15
|
+
module Google
|
16
|
+
module Ads
|
17
|
+
module Googleads
|
18
|
+
module V0
|
19
|
+
module Services
|
20
|
+
# Request message for {Google::Ads::Googleads::V0::Services::SharedCriterionService::GetSharedCriterion SharedCriterionService::GetSharedCriterion}.
|
21
|
+
# @!attribute [rw] resource_name
|
22
|
+
# @return [String]
|
23
|
+
# The resource name of the shared criterion to fetch.
|
24
|
+
class GetSharedCriterionRequest; end
|
25
|
+
|
26
|
+
# Request message for {Google::Ads::Googleads::V0::Services::SharedCriterionService::MutateSharedCriteria SharedCriterionService::MutateSharedCriteria}.
|
27
|
+
# @!attribute [rw] customer_id
|
28
|
+
# @return [String]
|
29
|
+
# The ID of the customer whose shared criteria are being modified.
|
30
|
+
# @!attribute [rw] operations
|
31
|
+
# @return [Array<Google::Ads::Googleads::V0::Services::SharedCriterionOperation>]
|
32
|
+
# The list of operations to perform on individual shared criteria.
|
33
|
+
class MutateSharedCriteriaRequest; end
|
34
|
+
|
35
|
+
# A single operation (create, remove) on an shared criterion.
|
36
|
+
# @!attribute [rw] create
|
37
|
+
# @return [Google::Ads::Googleads::V0::Resources::SharedCriterion]
|
38
|
+
# Create operation: No resource name is expected for the new shared
|
39
|
+
# criterion.
|
40
|
+
# @!attribute [rw] remove
|
41
|
+
# @return [String]
|
42
|
+
# Remove operation: A resource name for the removed shared criterion is
|
43
|
+
# expected,
|
44
|
+
# in this format:
|
45
|
+
#
|
46
|
+
# +customers/{customer_id}/sharedCriteria/{shared_set_id}_{criterion_id}+
|
47
|
+
class SharedCriterionOperation; end
|
48
|
+
|
49
|
+
# Response message for a shared criterion mutate.
|
50
|
+
# @!attribute [rw] results
|
51
|
+
# @return [Array<Google::Ads::Googleads::V0::Services::MutateSharedCriterionResult>]
|
52
|
+
# All results for the mutate.
|
53
|
+
class MutateSharedCriteriaResponse; end
|
54
|
+
|
55
|
+
# The result for the shared criterion mutate.
|
56
|
+
# @!attribute [rw] resource_name
|
57
|
+
# @return [String]
|
58
|
+
# Returned for successful operations.
|
59
|
+
class MutateSharedCriterionResult; end
|
60
|
+
end
|
61
|
+
end
|
62
|
+
end
|
63
|
+
end
|
64
|
+
end
|