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,47 @@
|
|
1
|
+
# Copyright 2018 Google LLC
|
2
|
+
#
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
+
# you may not use this file except in compliance with the License.
|
5
|
+
# You may obtain a copy of the License at
|
6
|
+
#
|
7
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
8
|
+
#
|
9
|
+
# Unless required by applicable law or agreed to in writing, software
|
10
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
11
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12
|
+
# See the License for the specific language governing permissions and
|
13
|
+
# limitations under the License.
|
14
|
+
|
15
|
+
module Google
|
16
|
+
module Ads
|
17
|
+
module Googleads
|
18
|
+
module V0
|
19
|
+
module Resources
|
20
|
+
# CampaignSharedSets are used for managing the shared sets associated with a
|
21
|
+
# campaign.
|
22
|
+
# @!attribute [rw] resource_name
|
23
|
+
# @return [String]
|
24
|
+
# The resource name of the campaign shared set.
|
25
|
+
# Campaign shared set resource names have the form:
|
26
|
+
#
|
27
|
+
# +customers/{customer_id}/campaignSharedSets/{campaign_id}_{shared_set_id}+
|
28
|
+
# @!attribute [rw] campaign
|
29
|
+
# @return [Google::Protobuf::StringValue]
|
30
|
+
# The campaign to which the campaign shared set belongs.
|
31
|
+
# @!attribute [rw] shared_set
|
32
|
+
# @return [Google::Protobuf::StringValue]
|
33
|
+
# The shared set associated with the campaign. This may be a negative keyword
|
34
|
+
# shared set of another customer. This customer should be a manager of the
|
35
|
+
# other customer, otherwise the campaign shared set will exist but have no
|
36
|
+
# serving effect. Only negative keyword shared sets can be associated with
|
37
|
+
# Shopping campaigns. Only negative placement shared sets can be associated
|
38
|
+
# with Display mobile app campaigns.
|
39
|
+
# @!attribute [rw] status
|
40
|
+
# @return [Google::Ads::Googleads::V0::Enums::CampaignSharedSetStatusEnum::CampaignSharedSetStatus]
|
41
|
+
# The status of this campaign shared set. Read only.
|
42
|
+
class CampaignSharedSet; end
|
43
|
+
end
|
44
|
+
end
|
45
|
+
end
|
46
|
+
end
|
47
|
+
end
|
@@ -0,0 +1,57 @@
|
|
1
|
+
# Copyright 2018 Google LLC
|
2
|
+
#
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
+
# you may not use this file except in compliance with the License.
|
5
|
+
# You may obtain a copy of the License at
|
6
|
+
#
|
7
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
8
|
+
#
|
9
|
+
# Unless required by applicable law or agreed to in writing, software
|
10
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
11
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12
|
+
# See the License for the specific language governing permissions and
|
13
|
+
# limitations under the License.
|
14
|
+
|
15
|
+
module Google
|
16
|
+
module Ads
|
17
|
+
module Googleads
|
18
|
+
module V0
|
19
|
+
module Resources
|
20
|
+
# A customer.
|
21
|
+
# @!attribute [rw] resource_name
|
22
|
+
# @return [String]
|
23
|
+
# The resource name of the customer.
|
24
|
+
# Customer resource names have the form:
|
25
|
+
#
|
26
|
+
# +customers/{customer_id}+
|
27
|
+
# @!attribute [rw] id
|
28
|
+
# @return [Google::Protobuf::Int64Value]
|
29
|
+
# The ID of the customer.
|
30
|
+
# @!attribute [rw] descriptive_name
|
31
|
+
# @return [Google::Protobuf::StringValue]
|
32
|
+
# Optional, non-unique descriptive name of the customer.
|
33
|
+
# @!attribute [rw] currency_code
|
34
|
+
# @return [Google::Protobuf::StringValue]
|
35
|
+
# The currency in which the account operates.
|
36
|
+
# A subset of the currency codes from the ISO 4217 standard is
|
37
|
+
# supported.
|
38
|
+
# @!attribute [rw] time_zone
|
39
|
+
# @return [Google::Protobuf::StringValue]
|
40
|
+
# The local timezone ID of the customer.
|
41
|
+
# @!attribute [rw] tracking_url_template
|
42
|
+
# @return [Google::Protobuf::StringValue]
|
43
|
+
# The URL template for constructing a tracking URL out of parameters.
|
44
|
+
# @!attribute [rw] auto_tagging_enabled
|
45
|
+
# @return [Google::Protobuf::BoolValue]
|
46
|
+
# Whether auto-tagging is enabled for the customer.
|
47
|
+
# @!attribute [rw] has_partners_badge
|
48
|
+
# @return [Google::Protobuf::BoolValue]
|
49
|
+
# Whether the Customer has a Partners program badge. If the Customer is not
|
50
|
+
# associated with the Partners program, this will be false. For more
|
51
|
+
# information, see https://support.google.com/partners/answer/3125774
|
52
|
+
class Customer; end
|
53
|
+
end
|
54
|
+
end
|
55
|
+
end
|
56
|
+
end
|
57
|
+
end
|
@@ -0,0 +1,44 @@
|
|
1
|
+
# Copyright 2018 Google LLC
|
2
|
+
#
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
+
# you may not use this file except in compliance with the License.
|
5
|
+
# You may obtain a copy of the License at
|
6
|
+
#
|
7
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
8
|
+
#
|
9
|
+
# Unless required by applicable law or agreed to in writing, software
|
10
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
11
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12
|
+
# See the License for the specific language governing permissions and
|
13
|
+
# limitations under the License.
|
14
|
+
|
15
|
+
module Google
|
16
|
+
module Ads
|
17
|
+
module Googleads
|
18
|
+
module V0
|
19
|
+
module Resources
|
20
|
+
# A geo target constant.
|
21
|
+
# @!attribute [rw] resource_name
|
22
|
+
# @return [String]
|
23
|
+
# The resource name of the geo target constant.
|
24
|
+
# Geo target constant resource names have the form:
|
25
|
+
#
|
26
|
+
# +geoTargetConstants/{geo_target_constant_id}+
|
27
|
+
# @!attribute [rw] id
|
28
|
+
# @return [Google::Protobuf::Int64Value]
|
29
|
+
# The ID of the geo target constant.
|
30
|
+
# @!attribute [rw] name
|
31
|
+
# @return [Google::Protobuf::StringValue]
|
32
|
+
# Geo target constant English name.
|
33
|
+
# @!attribute [rw] country_code
|
34
|
+
# @return [Google::Protobuf::StringValue]
|
35
|
+
# The ISO-3166-1 alpha-2 country code that is associated with the target.
|
36
|
+
# @!attribute [rw] target_type
|
37
|
+
# @return [Google::Protobuf::StringValue]
|
38
|
+
# Geo target constant target type.
|
39
|
+
class GeoTargetConstant; end
|
40
|
+
end
|
41
|
+
end
|
42
|
+
end
|
43
|
+
end
|
44
|
+
end
|
data/lib/google/ads/googleads/v0/services/doc/google/ads/googleads/v0/resources/google_ads_field.rb
ADDED
@@ -0,0 +1,89 @@
|
|
1
|
+
# Copyright 2018 Google LLC
|
2
|
+
#
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
+
# you may not use this file except in compliance with the License.
|
5
|
+
# You may obtain a copy of the License at
|
6
|
+
#
|
7
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
8
|
+
#
|
9
|
+
# Unless required by applicable law or agreed to in writing, software
|
10
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
11
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12
|
+
# See the License for the specific language governing permissions and
|
13
|
+
# limitations under the License.
|
14
|
+
|
15
|
+
module Google
|
16
|
+
module Ads
|
17
|
+
module Googleads
|
18
|
+
module V0
|
19
|
+
module Resources
|
20
|
+
# A field or resource (artifact) used by GoogleAdsService.
|
21
|
+
# @!attribute [rw] resource_name
|
22
|
+
# @return [String]
|
23
|
+
# The resource name of the artifact.
|
24
|
+
# Artifact resource names have the form:
|
25
|
+
#
|
26
|
+
# +googleAdsFields/{name}+
|
27
|
+
# @!attribute [rw] name
|
28
|
+
# @return [Google::Protobuf::StringValue]
|
29
|
+
# The name of the artifact.
|
30
|
+
# @!attribute [rw] category
|
31
|
+
# @return [Google::Ads::Googleads::V0::Enums::GoogleAdsFieldCategoryEnum::GoogleAdsFieldCategory]
|
32
|
+
# The category of the artifact.
|
33
|
+
# @!attribute [rw] selectable
|
34
|
+
# @return [Google::Protobuf::BoolValue]
|
35
|
+
# Whether the artifact can be used in a SELECT clause in search
|
36
|
+
# queries.
|
37
|
+
# @!attribute [rw] filterable
|
38
|
+
# @return [Google::Protobuf::BoolValue]
|
39
|
+
# Whether the artifact can be used in a WHERE clause in search
|
40
|
+
# queries.
|
41
|
+
# @!attribute [rw] sortable
|
42
|
+
# @return [Google::Protobuf::BoolValue]
|
43
|
+
# Whether the artifact can be used in a ORDER BY clause in search
|
44
|
+
# queries.
|
45
|
+
# @!attribute [rw] selectable_with
|
46
|
+
# @return [Array<Google::Protobuf::StringValue>]
|
47
|
+
# The names of all resources, segments, and metrics that are selectable with
|
48
|
+
# the described artifact.
|
49
|
+
# @!attribute [rw] attribute_resources
|
50
|
+
# @return [Array<Google::Protobuf::StringValue>]
|
51
|
+
# The names of all resources that are selectable with the described
|
52
|
+
# artifact. Fields from these resources do not segment metrics when included
|
53
|
+
# in search queries.
|
54
|
+
#
|
55
|
+
# This field is only set for artifacts whose category is RESOURCE.
|
56
|
+
# @!attribute [rw] metrics
|
57
|
+
# @return [Array<Google::Protobuf::StringValue>]
|
58
|
+
# The names of all metrics that are selectable with the described artifact.
|
59
|
+
#
|
60
|
+
# This field is only set for artifacts whose category is either RESOURCE or
|
61
|
+
# SEGMENT.
|
62
|
+
# @!attribute [rw] segments
|
63
|
+
# @return [Array<Google::Protobuf::StringValue>]
|
64
|
+
# The names of all artifacts, whether a segment or another resource, that
|
65
|
+
# segment metrics when included in search queries.
|
66
|
+
#
|
67
|
+
# This field is only set for artifacts of category RESOURCE, SEGMENT or
|
68
|
+
# METRIC.
|
69
|
+
# @!attribute [rw] enum_values
|
70
|
+
# @return [Array<Google::Protobuf::StringValue>]
|
71
|
+
# Values the artifact can assume if it is a field of type ENUM.
|
72
|
+
#
|
73
|
+
# This field is only set for artifacts of category SEGMENT or ATTRIBUTE.
|
74
|
+
# @!attribute [rw] data_type
|
75
|
+
# @return [Google::Ads::Googleads::V0::Enums::GoogleAdsFieldDataTypeEnum::GoogleAdsFieldDataType]
|
76
|
+
# This field determines the operators that can be used with the artifact
|
77
|
+
# in WHERE clauses.
|
78
|
+
# @!attribute [rw] type_url
|
79
|
+
# @return [Google::Protobuf::StringValue]
|
80
|
+
# The URL of proto describing the artifact's data type.
|
81
|
+
# @!attribute [rw] is_repeated
|
82
|
+
# @return [Google::Protobuf::BoolValue]
|
83
|
+
# Whether the field artifact is repeated.
|
84
|
+
class GoogleAdsField; end
|
85
|
+
end
|
86
|
+
end
|
87
|
+
end
|
88
|
+
end
|
89
|
+
end
|
data/lib/google/ads/googleads/v0/services/doc/google/ads/googleads/v0/resources/keyword_view.rb
ADDED
@@ -0,0 +1,32 @@
|
|
1
|
+
# Copyright 2018 Google LLC
|
2
|
+
#
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
+
# you may not use this file except in compliance with the License.
|
5
|
+
# You may obtain a copy of the License at
|
6
|
+
#
|
7
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
8
|
+
#
|
9
|
+
# Unless required by applicable law or agreed to in writing, software
|
10
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
11
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12
|
+
# See the License for the specific language governing permissions and
|
13
|
+
# limitations under the License.
|
14
|
+
|
15
|
+
module Google
|
16
|
+
module Ads
|
17
|
+
module Googleads
|
18
|
+
module V0
|
19
|
+
module Resources
|
20
|
+
# A keyword view.
|
21
|
+
# @!attribute [rw] resource_name
|
22
|
+
# @return [String]
|
23
|
+
# The resource name of the keyword view.
|
24
|
+
# Keyword view resource names have the form:
|
25
|
+
#
|
26
|
+
# +customers/{customer_id}/keywordViews/{ad_group_id}_{criterion_id}+
|
27
|
+
class KeywordView; end
|
28
|
+
end
|
29
|
+
end
|
30
|
+
end
|
31
|
+
end
|
32
|
+
end
|
data/lib/google/ads/googleads/v0/services/doc/google/ads/googleads/v0/resources/recommendation.rb
ADDED
@@ -0,0 +1,223 @@
|
|
1
|
+
# Copyright 2018 Google LLC
|
2
|
+
#
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
+
# you may not use this file except in compliance with the License.
|
5
|
+
# You may obtain a copy of the License at
|
6
|
+
#
|
7
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
8
|
+
#
|
9
|
+
# Unless required by applicable law or agreed to in writing, software
|
10
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
11
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12
|
+
# See the License for the specific language governing permissions and
|
13
|
+
# limitations under the License.
|
14
|
+
|
15
|
+
module Google
|
16
|
+
module Ads
|
17
|
+
module Googleads
|
18
|
+
module V0
|
19
|
+
module Resources
|
20
|
+
# A recommendation.
|
21
|
+
# @!attribute [rw] resource_name
|
22
|
+
# @return [String]
|
23
|
+
# The resource name of the recommendation.
|
24
|
+
#
|
25
|
+
# +customers/{customer_id}/recommendations/{recommendation_id}+
|
26
|
+
# @!attribute [rw] type
|
27
|
+
# @return [Google::Ads::Googleads::V0::Enums::RecommendationTypeEnum::RecommendationType]
|
28
|
+
# The type of recommendation.
|
29
|
+
# @!attribute [rw] impact
|
30
|
+
# @return [Google::Ads::Googleads::V0::Resources::Recommendation::RecommendationImpact]
|
31
|
+
# The impact on account performance as a result of applying the
|
32
|
+
# recommendation.
|
33
|
+
# @!attribute [rw] campaign_budget
|
34
|
+
# @return [Google::Protobuf::StringValue]
|
35
|
+
# The budget targeted by this recommendation. This will be set only when
|
36
|
+
# the recommendation affects a single campaign budget.
|
37
|
+
#
|
38
|
+
# This field must not be used in WHERE clauses.
|
39
|
+
#
|
40
|
+
# This field will be set for the following recommendation types:
|
41
|
+
# CAMPAIGN_BUDGET
|
42
|
+
# @!attribute [rw] campaign
|
43
|
+
# @return [Google::Protobuf::StringValue]
|
44
|
+
# The campaign targeted by this recommendation. This will be set only when
|
45
|
+
# the recommendation affects a single campaign.
|
46
|
+
#
|
47
|
+
# This field must not be used in WHERE clauses.
|
48
|
+
#
|
49
|
+
# This field will be set for the following recommendation types:
|
50
|
+
# ENHANCED_CPC_OPT_IN, KEYWORD, MAXIMIZE_CLICKS_OPT_IN,
|
51
|
+
# MAXIMIZE_CONVERSIONS_OPT_IN, OPTIMIZE_AD_ROTATION, SEARCH_PARTNERS_OPT_IN,
|
52
|
+
# TARGET_CPA_OPT_IN, TEXT_AD
|
53
|
+
# @!attribute [rw] ad_group
|
54
|
+
# @return [Google::Protobuf::StringValue]
|
55
|
+
# The ad group targeted by this recommendation. This will be set only when
|
56
|
+
# the recommendation affects a single ad group.
|
57
|
+
#
|
58
|
+
# This field must not be used in WHERE clauses.
|
59
|
+
#
|
60
|
+
# This field will be set for the following recommendation types:
|
61
|
+
# KEYWORD, OPTIMIZE_AD_ROTATION, TEXT_AD
|
62
|
+
# @!attribute [rw] dismissed
|
63
|
+
# @return [Google::Protobuf::BoolValue]
|
64
|
+
# Whether the recommendation is dismissed or not.
|
65
|
+
# @!attribute [rw] campaign_budget_recommendation
|
66
|
+
# @return [Google::Ads::Googleads::V0::Resources::Recommendation::CampaignBudgetRecommendation]
|
67
|
+
# The campaign budget recommendation.
|
68
|
+
# @!attribute [rw] keyword_recommendation
|
69
|
+
# @return [Google::Ads::Googleads::V0::Resources::Recommendation::KeywordRecommendation]
|
70
|
+
# The keyword recommendation.
|
71
|
+
# @!attribute [rw] text_ad_recommendation
|
72
|
+
# @return [Google::Ads::Googleads::V0::Resources::Recommendation::TextAdRecommendation]
|
73
|
+
# Add expanded text ad recommendation.
|
74
|
+
# @!attribute [rw] target_cpa_opt_in_recommendation
|
75
|
+
# @return [Google::Ads::Googleads::V0::Resources::Recommendation::TargetCpaOptInRecommendation]
|
76
|
+
# The TargetCPA opt-in recommendation.
|
77
|
+
# @!attribute [rw] maximize_conversions_opt_in_recommendation
|
78
|
+
# @return [Google::Ads::Googleads::V0::Resources::Recommendation::MaximizeConversionsOptInRecommendation]
|
79
|
+
# The MaximizeConversions Opt-In recommendation.
|
80
|
+
# @!attribute [rw] enhanced_cpc_opt_in_recommendation
|
81
|
+
# @return [Google::Ads::Googleads::V0::Resources::Recommendation::EnhancedCpcOptInRecommendation]
|
82
|
+
# The Enhanced Cost-Per-Click Opt-In recommendation.
|
83
|
+
# @!attribute [rw] search_partners_opt_in_recommendation
|
84
|
+
# @return [Google::Ads::Googleads::V0::Resources::Recommendation::SearchPartnersOptInRecommendation]
|
85
|
+
# The Search Partners Opt-In recommendation.
|
86
|
+
# @!attribute [rw] maximize_clicks_opt_in_recommendation
|
87
|
+
# @return [Google::Ads::Googleads::V0::Resources::Recommendation::MaximizeClicksOptInRecommendation]
|
88
|
+
# The MaximizeClicks Opt-In recommendation.
|
89
|
+
# @!attribute [rw] optimize_ad_rotation_recommendation
|
90
|
+
# @return [Google::Ads::Googleads::V0::Resources::Recommendation::OptimizeAdRotationRecommendation]
|
91
|
+
# The Optimize Ad Rotation recommendation.
|
92
|
+
class Recommendation
|
93
|
+
# The impact of making the change as described in the recommendation.
|
94
|
+
# Some types of recommendations may not have impact information.
|
95
|
+
# @!attribute [rw] base_metrics
|
96
|
+
# @return [Google::Ads::Googleads::V0::Resources::Recommendation::RecommendationMetrics]
|
97
|
+
# Base metrics at the time the recommendation was generated.
|
98
|
+
# @!attribute [rw] potential_metrics
|
99
|
+
# @return [Google::Ads::Googleads::V0::Resources::Recommendation::RecommendationMetrics]
|
100
|
+
# Estimated metrics if the recommendation is applied.
|
101
|
+
class RecommendationImpact; end
|
102
|
+
|
103
|
+
# Weekly account performance metrics. For some recommendation types, these
|
104
|
+
# are averaged over the past 90-day period and hence can be fractional.
|
105
|
+
# @!attribute [rw] impressions
|
106
|
+
# @return [Google::Protobuf::DoubleValue]
|
107
|
+
# Number of ad impressions.
|
108
|
+
# @!attribute [rw] clicks
|
109
|
+
# @return [Google::Protobuf::DoubleValue]
|
110
|
+
# Number of ad clicks.
|
111
|
+
# @!attribute [rw] cost_micros
|
112
|
+
# @return [Google::Protobuf::Int64Value]
|
113
|
+
# Cost (in micros) for advertising, in the local currency for the account.
|
114
|
+
# @!attribute [rw] conversions
|
115
|
+
# @return [Google::Protobuf::DoubleValue]
|
116
|
+
# Number of conversions.
|
117
|
+
# @!attribute [rw] video_views
|
118
|
+
# @return [Google::Protobuf::DoubleValue]
|
119
|
+
# Number of video views for a video ad campaign.
|
120
|
+
class RecommendationMetrics; end
|
121
|
+
|
122
|
+
# The budget recommendation for budget constrained campaigns.
|
123
|
+
# @!attribute [rw] current_budget_amount_micros
|
124
|
+
# @return [Google::Protobuf::Int64Value]
|
125
|
+
# The current budget amount in micros.
|
126
|
+
# @!attribute [rw] recommended_budget_amount_micros
|
127
|
+
# @return [Google::Protobuf::Int64Value]
|
128
|
+
# The recommended budget amount in micros.
|
129
|
+
# @!attribute [rw] budget_options
|
130
|
+
# @return [Array<Google::Ads::Googleads::V0::Resources::Recommendation::CampaignBudgetRecommendation::CampaignBudgetRecommendationOption>]
|
131
|
+
# The budget amounts and associated impact estimates for some values of
|
132
|
+
# possible budget amounts.
|
133
|
+
class CampaignBudgetRecommendation
|
134
|
+
# The impact estimates for a given budget amount.
|
135
|
+
# @!attribute [rw] budget_amount_micros
|
136
|
+
# @return [Google::Protobuf::Int64Value]
|
137
|
+
# The budget amount for this option.
|
138
|
+
# @!attribute [rw] impact
|
139
|
+
# @return [Google::Ads::Googleads::V0::Resources::Recommendation::RecommendationImpact]
|
140
|
+
# The impact estimate if budget is changed to amount specified in this
|
141
|
+
# option.
|
142
|
+
class CampaignBudgetRecommendationOption; end
|
143
|
+
end
|
144
|
+
|
145
|
+
# The keyword recommendation.
|
146
|
+
# @!attribute [rw] keyword
|
147
|
+
# @return [Google::Ads::Googleads::V0::Common::KeywordInfo]
|
148
|
+
# The recommended keyword.
|
149
|
+
# @!attribute [rw] recommended_cpc_bid_micros
|
150
|
+
# @return [Google::Protobuf::Int64Value]
|
151
|
+
# The recommended CPC (cost-per-click) bid.
|
152
|
+
class KeywordRecommendation; end
|
153
|
+
|
154
|
+
# The text ad recommendation.
|
155
|
+
# @!attribute [rw] ad
|
156
|
+
# @return [Google::Ads::Googleads::V0::Resources::Ad]
|
157
|
+
# Recommended ad.
|
158
|
+
# @!attribute [rw] creation_date
|
159
|
+
# @return [Google::Protobuf::StringValue]
|
160
|
+
# Creation date of the recommended ad.
|
161
|
+
# YYYY-MM-DD format, e.g., 2018-04-17.
|
162
|
+
# @!attribute [rw] auto_apply_date
|
163
|
+
# @return [Google::Protobuf::StringValue]
|
164
|
+
# Date, if present, is the earliest when the recommendation will be auto
|
165
|
+
# applied.
|
166
|
+
# YYYY-MM-DD format, e.g., 2018-04-17.
|
167
|
+
class TextAdRecommendation; end
|
168
|
+
|
169
|
+
# The Target CPA opt-in recommendation.
|
170
|
+
# @!attribute [rw] options
|
171
|
+
# @return [Array<Google::Ads::Googleads::V0::Resources::Recommendation::TargetCpaOptInRecommendation::TargetCpaOptInRecommendationOption>]
|
172
|
+
# The available goals and corresponding options for Target CPA strategy.
|
173
|
+
# @!attribute [rw] recommended_target_cpa_micros
|
174
|
+
# @return [Google::Protobuf::Int64Value]
|
175
|
+
# The recommended average CPA target. See required budget amount and impact
|
176
|
+
# of using this recommendation in options list.
|
177
|
+
class TargetCpaOptInRecommendation
|
178
|
+
# The Target CPA opt-in option with impact estimate.
|
179
|
+
# @!attribute [rw] goal
|
180
|
+
# @return [Google::Ads::Googleads::V0::Enums::TargetCpaOptInRecommendationGoalEnum::TargetCpaOptInRecommendationGoal]
|
181
|
+
# The goal achieved by this option.
|
182
|
+
# @!attribute [rw] target_cpa_micros
|
183
|
+
# @return [Google::Protobuf::Int64Value]
|
184
|
+
# Average CPA target.
|
185
|
+
# @!attribute [rw] required_campaign_budget_amount_micros
|
186
|
+
# @return [Google::Protobuf::Int64Value]
|
187
|
+
# The minimum campaign budget, in local currency for the account,
|
188
|
+
# required to achieve the target CPA.
|
189
|
+
# Amount is specified in micros, where one million is equivalent to one
|
190
|
+
# currency unit.
|
191
|
+
# @!attribute [rw] impact
|
192
|
+
# @return [Google::Ads::Googleads::V0::Resources::Recommendation::RecommendationImpact]
|
193
|
+
# The impact estimate if this option is selected.
|
194
|
+
class TargetCpaOptInRecommendationOption; end
|
195
|
+
end
|
196
|
+
|
197
|
+
# The Maximize Conversions Opt-In recommendation.
|
198
|
+
# @!attribute [rw] recommended_budget_amount_micros
|
199
|
+
# @return [Google::Protobuf::Int64Value]
|
200
|
+
# The recommended new budget amount.
|
201
|
+
class MaximizeConversionsOptInRecommendation; end
|
202
|
+
|
203
|
+
# The Enhanced Cost-Per-Click Opt-In recommendation.
|
204
|
+
class EnhancedCpcOptInRecommendation; end
|
205
|
+
|
206
|
+
# The Search Partners Opt-In recommendation.
|
207
|
+
class SearchPartnersOptInRecommendation; end
|
208
|
+
|
209
|
+
# The Maximize Clicks opt-in recommendation.
|
210
|
+
# @!attribute [rw] recommended_budget_amount_micros
|
211
|
+
# @return [Google::Protobuf::Int64Value]
|
212
|
+
# The recommended new budget amount.
|
213
|
+
# Only set if the current budget is too high.
|
214
|
+
class MaximizeClicksOptInRecommendation; end
|
215
|
+
|
216
|
+
# The Optimize Ad Rotation recommendation.
|
217
|
+
class OptimizeAdRotationRecommendation; end
|
218
|
+
end
|
219
|
+
end
|
220
|
+
end
|
221
|
+
end
|
222
|
+
end
|
223
|
+
end
|