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,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 campaign.
|
21
|
+
# @!attribute [rw] resource_name
|
22
|
+
# @return [String]
|
23
|
+
# The resource name of the campaign.
|
24
|
+
# Campaign resource names have the form:
|
25
|
+
#
|
26
|
+
# +customers/{customer_id}/campaigns/{campaign_id}+
|
27
|
+
# @!attribute [rw] id
|
28
|
+
# @return [Google::Protobuf::Int64Value]
|
29
|
+
# The ID of the campaign.
|
30
|
+
# @!attribute [rw] name
|
31
|
+
# @return [Google::Protobuf::StringValue]
|
32
|
+
# The name of the campaign.
|
33
|
+
#
|
34
|
+
# This field is required and should not be empty when creating new
|
35
|
+
# campaigns.
|
36
|
+
#
|
37
|
+
# It must not contain any null (code point 0x0), NL line feed
|
38
|
+
# (code point 0xA) or carriage return (code point 0xD) characters.
|
39
|
+
# @!attribute [rw] status
|
40
|
+
# @return [Google::Ads::Googleads::V0::Enums::CampaignStatusEnum::CampaignStatus]
|
41
|
+
# The status of the campaign.
|
42
|
+
#
|
43
|
+
# When a new campaign is added, the status defaults to ENABLED.
|
44
|
+
# @!attribute [rw] serving_status
|
45
|
+
# @return [Google::Ads::Googleads::V0::Enums::CampaignServingStatusEnum::CampaignServingStatus]
|
46
|
+
# The ad serving status of the campaign.
|
47
|
+
# @!attribute [rw] ad_serving_optimization_status
|
48
|
+
# @return [Google::Ads::Googleads::V0::Enums::AdServingOptimizationStatusEnum::AdServingOptimizationStatus]
|
49
|
+
# The ad serving optimization status of the campaign.
|
50
|
+
# @!attribute [rw] advertising_channel_type
|
51
|
+
# @return [Google::Ads::Googleads::V0::Enums::AdvertisingChannelTypeEnum::AdvertisingChannelType]
|
52
|
+
# The primary serving target for ads within the campaign.
|
53
|
+
# The targeting options can be refined in +network_settings+.
|
54
|
+
#
|
55
|
+
# This field is required and should not be empty when creating new
|
56
|
+
# campaigns.
|
57
|
+
#
|
58
|
+
# Can be set only when creating campaigns.
|
59
|
+
# After the campaign is created, the field can not be changed.
|
60
|
+
# @!attribute [rw] advertising_channel_sub_type
|
61
|
+
# @return [Google::Ads::Googleads::V0::Enums::AdvertisingChannelSubTypeEnum::AdvertisingChannelSubType]
|
62
|
+
# Optional refinement to +advertising_channel_type+.
|
63
|
+
# Must be a valid sub-type of the parent channel type.
|
64
|
+
#
|
65
|
+
# Can be set only when creating campaigns.
|
66
|
+
# After campaign is created, the field can not be changed.
|
67
|
+
# @!attribute [rw] tracking_url_template
|
68
|
+
# @return [Google::Protobuf::StringValue]
|
69
|
+
# The URL template for constructing a tracking URL.
|
70
|
+
# @!attribute [rw] url_custom_parameters
|
71
|
+
# @return [Array<Google::Ads::Googleads::V0::Common::CustomParameter>]
|
72
|
+
# The list of mappings used to substitute custom parameter tags in a
|
73
|
+
# +tracking_url_template+, +final_urls+, or +mobile_final_urls+.
|
74
|
+
# @!attribute [rw] network_settings
|
75
|
+
# @return [Google::Ads::Googleads::V0::Resources::Campaign::NetworkSettings]
|
76
|
+
# The network settings for the campaign.
|
77
|
+
# @!attribute [rw] hotel_setting
|
78
|
+
# @return [Google::Ads::Googleads::V0::Resources::Campaign::HotelSettingInfo]
|
79
|
+
# The hotel setting for the campaign.
|
80
|
+
# @!attribute [rw] dynamic_search_ads_setting
|
81
|
+
# @return [Google::Ads::Googleads::V0::Resources::Campaign::DynamicSearchAdsSetting]
|
82
|
+
# The setting for controlling Dynamic Search Ads (DSA).
|
83
|
+
# @!attribute [rw] shopping_setting
|
84
|
+
# @return [Google::Ads::Googleads::V0::Resources::Campaign::ShoppingSetting]
|
85
|
+
# The setting for controlling Shopping campaigns.
|
86
|
+
# @!attribute [rw] campaign_budget
|
87
|
+
# @return [Google::Protobuf::StringValue]
|
88
|
+
# The budget of the campaign.
|
89
|
+
#
|
90
|
+
# This field must not be used in WHERE clauses.
|
91
|
+
# @!attribute [rw] bidding_strategy_type
|
92
|
+
# @return [Google::Ads::Googleads::V0::Enums::BiddingStrategyTypeEnum::BiddingStrategyType]
|
93
|
+
# The type of bidding strategy.
|
94
|
+
#
|
95
|
+
# A bidding strategy can be created by setting either the bidding scheme to
|
96
|
+
# create a standard bidding strategy or the +bidding_strategy+ field to
|
97
|
+
# create a portfolio bidding strategy.
|
98
|
+
#
|
99
|
+
# This field is read-only.
|
100
|
+
# @!attribute [rw] start_date
|
101
|
+
# @return [Google::Protobuf::StringValue]
|
102
|
+
# The date when campaign started.
|
103
|
+
#
|
104
|
+
# This field must not be used in WHERE clauses.
|
105
|
+
# @!attribute [rw] campaign_group
|
106
|
+
# @return [Google::Protobuf::StringValue]
|
107
|
+
# The campaign group this campaign belongs to.
|
108
|
+
# @!attribute [rw] end_date
|
109
|
+
# @return [Google::Protobuf::StringValue]
|
110
|
+
# The date when campaign ended.
|
111
|
+
#
|
112
|
+
# This field must not be used in WHERE clauses.
|
113
|
+
# @!attribute [rw] bidding_strategy
|
114
|
+
# @return [Google::Protobuf::StringValue]
|
115
|
+
# Portfolio bidding strategy used by campaign.
|
116
|
+
#
|
117
|
+
# This field must not be used in WHERE clauses.
|
118
|
+
# @!attribute [rw] manual_cpc
|
119
|
+
# @return [Google::Ads::Googleads::V0::Common::ManualCpc]
|
120
|
+
# Standard Manual CPC bidding strategy.
|
121
|
+
# Manual click-based bidding where user pays per click.
|
122
|
+
# @!attribute [rw] manual_cpm
|
123
|
+
# @return [Google::Ads::Googleads::V0::Common::ManualCpm]
|
124
|
+
# Standard Manual CPM bidding strategy.
|
125
|
+
# Manual impression-based bidding where user pays per thousand
|
126
|
+
# impressions.
|
127
|
+
# @!attribute [rw] maximize_conversions
|
128
|
+
# @return [Google::Ads::Googleads::V0::Common::MaximizeConversions]
|
129
|
+
# Standard Maximize Conversions bidding strategy that automatically
|
130
|
+
# maximizes number of conversions given a daily budget.
|
131
|
+
# @!attribute [rw] maximize_conversion_value
|
132
|
+
# @return [Google::Ads::Googleads::V0::Common::MaximizeConversionValue]
|
133
|
+
# Standard Maximize Conversion Value bidding strategy that automatically
|
134
|
+
# sets bids to maximize revenue while spending your budget.
|
135
|
+
# @!attribute [rw] target_cpa
|
136
|
+
# @return [Google::Ads::Googleads::V0::Common::TargetCpa]
|
137
|
+
# Standard Target CPA bidding strategy that automatically sets bids to
|
138
|
+
# help get as many conversions as possible at the target
|
139
|
+
# cost-per-acquisition (CPA) you set.
|
140
|
+
# @!attribute [rw] target_roas
|
141
|
+
# @return [Google::Ads::Googleads::V0::Common::TargetRoas]
|
142
|
+
# Standard Target ROAS bidding strategy that automatically maximizes
|
143
|
+
# revenue while averaging a specific target return on ad spend (ROAS).
|
144
|
+
# @!attribute [rw] target_spend
|
145
|
+
# @return [Google::Ads::Googleads::V0::Common::TargetSpend]
|
146
|
+
# Standard Target Spend bidding strategy that automatically sets your bids
|
147
|
+
# to help get as many clicks as possible within your budget.
|
148
|
+
# @!attribute [rw] percent_cpc
|
149
|
+
# @return [Google::Ads::Googleads::V0::Common::PercentCpc]
|
150
|
+
# Standard Percent Cpc bidding strategy where bids are a fraction of the
|
151
|
+
# advertised price for some good or service.
|
152
|
+
class Campaign
|
153
|
+
# The network settings for the campaign.
|
154
|
+
# @!attribute [rw] target_google_search
|
155
|
+
# @return [Google::Protobuf::BoolValue]
|
156
|
+
# Whether ads will be served with google.com search results.
|
157
|
+
# @!attribute [rw] target_search_network
|
158
|
+
# @return [Google::Protobuf::BoolValue]
|
159
|
+
# Whether ads will be served on partner sites in the Google Search Network
|
160
|
+
# (requires +target_google_search+ to also be +true+).
|
161
|
+
# @!attribute [rw] target_content_network
|
162
|
+
# @return [Google::Protobuf::BoolValue]
|
163
|
+
# Whether ads will be served on specified placements in the Google Display
|
164
|
+
# Network. Placements are specified using the Placement criterion.
|
165
|
+
# @!attribute [rw] target_partner_search_network
|
166
|
+
# @return [Google::Protobuf::BoolValue]
|
167
|
+
# Whether ads will be served on the Google Partner Network.
|
168
|
+
# This is available only to some select Google partner accounts.
|
169
|
+
class NetworkSettings; end
|
170
|
+
|
171
|
+
# Campaign-level settings for hotel ads.
|
172
|
+
# @!attribute [rw] hotel_center_id
|
173
|
+
# @return [Google::Protobuf::Int64Value]
|
174
|
+
# The linked Hotel Center account.
|
175
|
+
class HotelSettingInfo; end
|
176
|
+
|
177
|
+
# The setting for controlling Dynamic Search Ads (DSA).
|
178
|
+
# @!attribute [rw] domain_name
|
179
|
+
# @return [Google::Protobuf::StringValue]
|
180
|
+
# The Internet domain name that this setting represents, e.g., "google.com"
|
181
|
+
# or "www.google.com".
|
182
|
+
# @!attribute [rw] language_code
|
183
|
+
# @return [Google::Protobuf::StringValue]
|
184
|
+
# The language code specifying the language of the domain, e.g., "en".
|
185
|
+
# @!attribute [rw] use_supplied_urls_only
|
186
|
+
# @return [Google::Protobuf::BoolValue]
|
187
|
+
# Whether the campaign uses advertiser supplied URLs exclusively.
|
188
|
+
# @!attribute [rw] feed_ids
|
189
|
+
# @return [Array<Google::Protobuf::Int64Value>]
|
190
|
+
# The list of page feeds associated with the campaign.
|
191
|
+
class DynamicSearchAdsSetting; end
|
192
|
+
|
193
|
+
# The setting for Shopping campaigns. Defines the universe of products that
|
194
|
+
# can be advertised by the campaign, and how this campaign interacts with
|
195
|
+
# other Shopping campaigns.
|
196
|
+
# @!attribute [rw] merchant_id
|
197
|
+
# @return [Google::Protobuf::Int64Value]
|
198
|
+
# ID of the Merchant Center account.
|
199
|
+
# This field is required for create operations. This field is immutable for
|
200
|
+
# campaigns of type AdvertisingChannelType.SHOPPING.
|
201
|
+
# @!attribute [rw] sales_country
|
202
|
+
# @return [Google::Protobuf::StringValue]
|
203
|
+
# Sales country of products to include in the campaign.
|
204
|
+
# This field is required for create operations. This field is immutable.
|
205
|
+
# This field must be set to 'ZZ' for campaigns of types other than
|
206
|
+
# AdvertisingChannelType.SHOPPING.
|
207
|
+
# @!attribute [rw] campaign_priority
|
208
|
+
# @return [Google::Protobuf::Int32Value]
|
209
|
+
# Priority of the campaign. Campaigns with numerically higher priorities
|
210
|
+
# take precedence over those with lower priorities.
|
211
|
+
# This field is required for create operations. Allowed values are between
|
212
|
+
# 0 and 2, inclusive. This field must be set to 3 for campaigns of type
|
213
|
+
# AdvertisingChannelSubType.SHOPPING_SMART_ADS.
|
214
|
+
# @!attribute [rw] enable_local
|
215
|
+
# @return [Google::Protobuf::BoolValue]
|
216
|
+
# Enable local inventory ads.
|
217
|
+
class ShoppingSetting; end
|
218
|
+
end
|
219
|
+
end
|
220
|
+
end
|
221
|
+
end
|
222
|
+
end
|
223
|
+
end
|
@@ -0,0 +1,46 @@
|
|
1
|
+
# Copyright 2018 Google LLC
|
2
|
+
#
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
+
# you may not use this file except in compliance with the License.
|
5
|
+
# You may obtain a copy of the License at
|
6
|
+
#
|
7
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
8
|
+
#
|
9
|
+
# Unless required by applicable law or agreed to in writing, software
|
10
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
11
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12
|
+
# See the License for the specific language governing permissions and
|
13
|
+
# limitations under the License.
|
14
|
+
|
15
|
+
module Google
|
16
|
+
module Ads
|
17
|
+
module Googleads
|
18
|
+
module V0
|
19
|
+
module Resources
|
20
|
+
# Represents a bid-modifiable only criterion at the campaign level.
|
21
|
+
# @!attribute [rw] resource_name
|
22
|
+
# @return [String]
|
23
|
+
# The resource name of the campaign bid modifier.
|
24
|
+
# Campaign bid modifier resource names have the form:
|
25
|
+
#
|
26
|
+
# +customers/{customer_id}/campaignBidModifiers/{campaign_id}_{criterion_id}+
|
27
|
+
# @!attribute [rw] campaign
|
28
|
+
# @return [Google::Protobuf::StringValue]
|
29
|
+
# The campaign to which this criterion belongs.
|
30
|
+
# @!attribute [rw] criterion_id
|
31
|
+
# @return [Google::Protobuf::Int64Value]
|
32
|
+
# The ID of the criterion to bid modify.
|
33
|
+
#
|
34
|
+
# This field is ignored for mutates.
|
35
|
+
# @!attribute [rw] bid_modifier
|
36
|
+
# @return [Google::Protobuf::DoubleValue]
|
37
|
+
# The modifier for the bid when the criterion matches.
|
38
|
+
# @!attribute [rw] interaction_type
|
39
|
+
# @return [Google::Ads::Googleads::V0::Common::InteractionTypeInfo]
|
40
|
+
# Criterion for interaction type. Only supported for search campaigns.
|
41
|
+
class CampaignBidModifier; end
|
42
|
+
end
|
43
|
+
end
|
44
|
+
end
|
45
|
+
end
|
46
|
+
end
|
data/lib/google/ads/googleads/v0/services/doc/google/ads/googleads/v0/resources/campaign_budget.rb
ADDED
@@ -0,0 +1,88 @@
|
|
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 campaign budget.
|
21
|
+
# @!attribute [rw] resource_name
|
22
|
+
# @return [String]
|
23
|
+
# The resource name of the campaign budget.
|
24
|
+
# Campaign budget resource names have the form:
|
25
|
+
#
|
26
|
+
# +customers/{customer_id}/campaignBudgets/{budget_id}+
|
27
|
+
# @!attribute [rw] id
|
28
|
+
# @return [Google::Protobuf::Int64Value]
|
29
|
+
# The ID of the campaign budget.
|
30
|
+
#
|
31
|
+
# A campaign budget is created using the CampaignBudgetService create
|
32
|
+
# operation and is assigned a budget ID. A budget ID can be shared across
|
33
|
+
# different campaigns; the system will then allocate the campaign budget
|
34
|
+
# among different campaigns to get optimum results.
|
35
|
+
# @!attribute [rw] name
|
36
|
+
# @return [Google::Protobuf::StringValue]
|
37
|
+
# The name of the campaign budget.
|
38
|
+
#
|
39
|
+
# When creating a campaign budget through CampaignBudgetService, every
|
40
|
+
# explicitly shared campaign budget must have a non-null, non-empty name.
|
41
|
+
# Campaign budgets that are not explicitly shared derive their name from the
|
42
|
+
# attached campaign's name.
|
43
|
+
#
|
44
|
+
# The length of this string must be between 1 and 255, inclusive,
|
45
|
+
# in UTF-8 bytes, (trimmed).
|
46
|
+
# @!attribute [rw] amount_micros
|
47
|
+
# @return [Google::Protobuf::Int64Value]
|
48
|
+
# The amount of the budget, in the local currency for the account.
|
49
|
+
# Amount is specified in micros, where one million is equivalent to one
|
50
|
+
# currency unit.
|
51
|
+
# @!attribute [rw] status
|
52
|
+
# @return [Google::Ads::Googleads::V0::Enums::BudgetStatusEnum::BudgetStatus]
|
53
|
+
# The status of this campaign budget. This field is read-only.
|
54
|
+
# @!attribute [rw] delivery_method
|
55
|
+
# @return [Google::Ads::Googleads::V0::Enums::BudgetDeliveryMethodEnum::BudgetDeliveryMethod]
|
56
|
+
# The delivery method that determines the rate at which the campaign budget
|
57
|
+
# is spent.
|
58
|
+
#
|
59
|
+
# Defaults to STANDARD if unspecified in a create operation.
|
60
|
+
# @!attribute [rw] explicitly_shared
|
61
|
+
# @return [Google::Protobuf::BoolValue]
|
62
|
+
# Whether the budget is explicitly shared. This field is set to false by
|
63
|
+
# default.
|
64
|
+
#
|
65
|
+
# If true, the budget was created with the purpose of sharing
|
66
|
+
# across one or more campaigns.
|
67
|
+
#
|
68
|
+
# If false, the budget was created with the intention of only being used
|
69
|
+
# with a single campaign. The budget's name and status will stay in sync
|
70
|
+
# with the campaign's name and status. Attempting to share the budget with a
|
71
|
+
# second campaign will result in an error.
|
72
|
+
#
|
73
|
+
# A non-shared budget can become an explicitly shared. The same operation
|
74
|
+
# must
|
75
|
+
# also assign the budget a name.
|
76
|
+
#
|
77
|
+
# A shared campaign budget can never become non-shared.
|
78
|
+
# @!attribute [rw] reference_count
|
79
|
+
# @return [Google::Protobuf::Int64Value]
|
80
|
+
# The number of campaigns actively using the budget.
|
81
|
+
#
|
82
|
+
# This field is read-only.
|
83
|
+
class CampaignBudget; end
|
84
|
+
end
|
85
|
+
end
|
86
|
+
end
|
87
|
+
end
|
88
|
+
end
|
@@ -0,0 +1,66 @@
|
|
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 campaign criterion.
|
21
|
+
# @!attribute [rw] resource_name
|
22
|
+
# @return [String]
|
23
|
+
# The resource name of the campaign criterion.
|
24
|
+
# Campaign criterion resource names have the form:
|
25
|
+
#
|
26
|
+
# +customers/{customer_id}/campaignCriteria/{campaign_id}_{criterion_id}+
|
27
|
+
# @!attribute [rw] campaign
|
28
|
+
# @return [Google::Protobuf::StringValue]
|
29
|
+
# The campaign to which the criterion belongs.
|
30
|
+
#
|
31
|
+
# This field must not be used in WHERE clauses.
|
32
|
+
# @!attribute [rw] criterion_id
|
33
|
+
# @return [Google::Protobuf::Int64Value]
|
34
|
+
# The ID of the criterion.
|
35
|
+
#
|
36
|
+
# This field is ignored during mutate.
|
37
|
+
# @!attribute [rw] bid_modifier
|
38
|
+
# @return [Google::Protobuf::FloatValue]
|
39
|
+
# The modifier for the bids when the criterion matches.
|
40
|
+
# Allowable modifier values depend on the criterion:
|
41
|
+
# * 0.1 - 10.0: Location
|
42
|
+
# * 0.1 - 4.0: Device (mobile). Use 0 to opt out of mobile.
|
43
|
+
# @!attribute [rw] negative
|
44
|
+
# @return [Google::Protobuf::BoolValue]
|
45
|
+
# Whether to target (+false+) or exclude (+true+) the criterion.
|
46
|
+
# @!attribute [rw] type
|
47
|
+
# @return [Google::Ads::Googleads::V0::Enums::CriterionTypeEnum::CriterionType]
|
48
|
+
# The type of the criterion.
|
49
|
+
# @!attribute [rw] keyword
|
50
|
+
# @return [Google::Ads::Googleads::V0::Common::KeywordInfo]
|
51
|
+
# Keyword.
|
52
|
+
# @!attribute [rw] location
|
53
|
+
# @return [Google::Ads::Googleads::V0::Common::LocationInfo]
|
54
|
+
# Location.
|
55
|
+
# @!attribute [rw] device
|
56
|
+
# @return [Google::Ads::Googleads::V0::Common::DeviceInfo]
|
57
|
+
# Device.
|
58
|
+
# @!attribute [rw] ad_schedule
|
59
|
+
# @return [Google::Ads::Googleads::V0::Common::AdScheduleInfo]
|
60
|
+
# Ad Schedule.
|
61
|
+
class CampaignCriterion; end
|
62
|
+
end
|
63
|
+
end
|
64
|
+
end
|
65
|
+
end
|
66
|
+
end
|
data/lib/google/ads/googleads/v0/services/doc/google/ads/googleads/v0/resources/campaign_group.rb
ADDED
@@ -0,0 +1,49 @@
|
|
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 campaign group.
|
21
|
+
# @!attribute [rw] resource_name
|
22
|
+
# @return [String]
|
23
|
+
# The resource name of the campaign group.
|
24
|
+
# Campaign group resource names have the form:
|
25
|
+
#
|
26
|
+
# +customers/{customer_id}/campaignGroups/{campaign_group_id}+
|
27
|
+
# @!attribute [rw] id
|
28
|
+
# @return [Google::Protobuf::Int64Value]
|
29
|
+
# The ID of the campaign group.
|
30
|
+
# @!attribute [rw] name
|
31
|
+
# @return [Google::Protobuf::StringValue]
|
32
|
+
# The name of the campaign group.
|
33
|
+
#
|
34
|
+
# This field is required and should not be empty when creating new campaign
|
35
|
+
# groups.
|
36
|
+
#
|
37
|
+
# It must not contain any null (code point 0x0), NL line feed
|
38
|
+
# (code point 0xA) or carriage return (code point 0xD) characters.
|
39
|
+
# @!attribute [rw] status
|
40
|
+
# @return [Google::Ads::Googleads::V0::Enums::CampaignGroupStatusEnum::CampaignGroupStatus]
|
41
|
+
# The status of the campaign group.
|
42
|
+
#
|
43
|
+
# When a new campaign group is added, the status defaults to ENABLED.
|
44
|
+
class CampaignGroup; end
|
45
|
+
end
|
46
|
+
end
|
47
|
+
end
|
48
|
+
end
|
49
|
+
end
|