Skip to content

Commit 01aca32

Browse files
committed
Changes for release v23_2.
1 parent 4cdd198 commit 01aca32

File tree

3,381 files changed

+7857
-79432
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

3,381 files changed

+7857
-79432
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
39.0.0
2+
-----
3+
- Compatibility with v23.2 of the API: https://developers.google.com/google-ads/api/docs/release-notes
4+
- Renamed 'gaada' to 'ads_assistant' for metadata headers.
5+
6+
17
38.1.0
28
-----
39
- Added more detailed metadata headers.

codegen/factories.rb

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ module Resources
2626
end
2727
module Services
2828
end
29+
module Actions
30+
end
2931
end)
3032

3133
potential_resources = []
@@ -59,6 +61,10 @@ module Services
5961
Dir["#{GEM_ROOT}/lib/google/ads/google_ads/#{version.to_s.downcase}/errors/*.rb"].each do |fn|
6062
require fn.gsub("#{GEM_ROOT}/lib/", "")
6163
end
64+
65+
Dir["#{GEM_ROOT}/lib/google/ads/google_ads/#{version.to_s.downcase}/actions/*.rb"].each do |fn|
66+
require fn.gsub("#{GEM_ROOT}/lib/", "")
67+
end
6268
end
6369

6470
resources = filter_resources_for_google_ads(version, potential_resources)

codegen/src/filters.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ def get_class_name(klass)
6565

6666
def get_expanded_class_name(klass)
6767
components = klass.name.split("::")
68-
while !["Resources", "Common", "Services"].include?(components.first)
68+
while !["Resources", "Common", "Services", "Actions"].include?(components.first)
6969
components.shift
7070
end
7171
components.shift

lib/google/ads/google_ads/config.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ class Config
3434
attr_accessor :login_customer_id
3535
attr_accessor :linked_customer_id
3636
attr_accessor :use_cloud_org_for_api_access
37-
attr_accessor :gaada
37+
attr_accessor :ads_assistant
3838

3939
attr_accessor :log_level
4040
attr_accessor :log_target
@@ -60,7 +60,7 @@ def initialize(&block)
6060
@login_customer_id = nil
6161
@linked_customer_id = nil
6262
@use_cloud_org_for_api_access = false
63-
@gaada = nil
63+
@ads_assistant = nil
6464

6565
@log_level = nil
6666
@log_target = nil

lib/google/ads/google_ads/google_ads_client.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ def load_environment_config
114114
if @config.use_cloud_org_for_api_access.is_a?(String)
115115
@config.use_cloud_org_for_api_access = @config.use_cloud_org_for_api_access.downcase == "true"
116116
end
117-
@config.gaada = ENV.fetch("GOOGLE_ADS_GAADA", @config.gaada)
117+
@config.ads_assistant = ENV.fetch("GOOGLE_ADS_ASSISTANT", @config.ads_assistant)
118118
end
119119

120120
# Return a service for the provided entity type. For example, passing

lib/google/ads/google_ads/interceptors/metadata_interceptor.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,13 @@ module Ads
2424
module GoogleAds
2525
module Interceptors
2626
class MetadataInterceptor < GRPC::ClientInterceptor
27-
def initialize(developer_token, login_customer_id, linked_customer_id, use_cloud_org_for_api_access, gaada)
27+
def initialize(developer_token, login_customer_id, linked_customer_id, use_cloud_org_for_api_access, ads_assistant)
2828
super()
2929
@developer_token = developer_token
3030
@login_customer_id = login_customer_id
3131
@linked_customer_id = linked_customer_id
3232
@use_cloud_org_for_api_access = use_cloud_org_for_api_access
33-
@gaada = gaada
33+
@ads_assistant = ads_assistant
3434
end
3535

3636
def request_response(request:, call:, method:, metadata: {})
@@ -61,8 +61,8 @@ def update_metadata(metadata)
6161
# The python library iterates over metadata and modifies x-goog-api-client
6262
# Here we can directly access it.
6363
if metadata.key?(:"x-goog-api-client")
64-
if @gaada
65-
metadata[:"x-goog-api-client"] += " gaada/#{@gaada}"
64+
if @ads_assistant
65+
metadata[:"x-goog-api-client"] += " gaada/#{@ads_assistant}"
6666
end
6767

6868
# Check if "pb" is already in the header

lib/google/ads/google_ads/service_lookup.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ def call
3232
config.login_customer_id,
3333
config.linked_customer_id,
3434
config.use_cloud_org_for_api_access,
35-
config.gaada
35+
config.ads_assistant
3636
)
3737

3838
version_alternates = {}

lib/google/ads/google_ads/v20/common/ad_asset_pb.rb

Lines changed: 2 additions & 24 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/google/ads/google_ads/v20/common/ad_type_infos_pb.rb

Lines changed: 2 additions & 24 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/google/ads/google_ads/v20/common/additional_application_info_pb.rb

Lines changed: 2 additions & 23 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)