Skip to content

Commit

Permalink
Version 15_0 changes (#457)
Browse files Browse the repository at this point in the history
  • Loading branch information
danielfrg authored Oct 19, 2023
1 parent 3c656cf commit 317a0ed
Show file tree
Hide file tree
Showing 1,375 changed files with 124,085 additions and 102 deletions.
4 changes: 2 additions & 2 deletions codegen/spec/template_service_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
let(:gapic_client_class) {
double(
:klass,
name: "Google::Ads::GoogleAds::V14::Services::GoogleAdsService::Client",
name: "Google::Ads::GoogleAds::V15::Services::GoogleAdsService::Client",
)
}

Expand All @@ -26,7 +26,7 @@
# require returns true, so let's just stub it here
allow(service).to receive(:require).with(path).and_return(true)
stub_const(
"Google::Ads::GoogleAds::V14::Services::GoogleAdsService::Service",
"Google::Ads::GoogleAds::V15::Services::GoogleAdsService::Service",
double(
:fake_service_klass,
rpc_descs: {Search: double(input: input)}
Expand Down
2 changes: 1 addition & 1 deletion examples/planning/generate_forecast_metrics.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

require 'optparse'
require 'google/ads/google_ads'
require "google/ads/google_ads/v14/services"
require "google/ads/google_ads/v15/services"
require 'date'

# [START generate_forecast_metrics]
Expand Down
2 changes: 1 addition & 1 deletion examples/planning/generate_historical_metrics.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

require 'optparse'
require 'google/ads/google_ads'
require "google/ads/google_ads/v14/services"
require "google/ads/google_ads/v15/services"
require 'date'

# [START generate_forecast_metrics]
Expand Down
4 changes: 2 additions & 2 deletions lib/google/ads/google_ads/api_versions.rb
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
module Google
module Ads
module GoogleAds
KNOWN_API_VERSIONS = [:V13, :V14]
DEFAULT_API_VERSION = :V14
KNOWN_API_VERSIONS = [:V13, :V14, :V15]
DEFAULT_API_VERSION = :V15

def self.default_api_version
DEFAULT_API_VERSION
Expand Down
31 changes: 31 additions & 0 deletions lib/google/ads/google_ads/utils/v15/path_lookup_util.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# Encoding: utf-8
#
# Copyright 2022 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# Utility that generates up resource names for entities given IDs.

require "google/ads/google_ads/utils/build_path_lookup_class"

module Google
module Ads
module GoogleAds
module Utils
module V15
PathLookupUtil = Utils.build_path_lookup_class(:v15)
end
end
end
end
end
54 changes: 54 additions & 0 deletions lib/google/ads/google_ads/v15/common/ad_asset_pb.rb

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

84 changes: 84 additions & 0 deletions lib/google/ads/google_ads/v15/common/ad_type_infos_pb.rb

Large diffs are not rendered by default.

54 changes: 54 additions & 0 deletions lib/google/ads/google_ads/v15/common/asset_policy_pb.rb

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

58 changes: 58 additions & 0 deletions lib/google/ads/google_ads/v15/common/asset_set_types_pb.rb

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

99 changes: 99 additions & 0 deletions lib/google/ads/google_ads/v15/common/asset_types_pb.rb

Large diffs are not rendered by default.

46 changes: 46 additions & 0 deletions lib/google/ads/google_ads/v15/common/asset_usage_pb.rb

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 317a0ed

Please sign in to comment.