Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
41.1.0
-----
- Added Bundler autorequire support
- Restored block forwarding.

41.0.0
-----
- Compatibility with v24 of the API: https://developers.google.com/google-ads/api/docs/release-notes
Expand Down
6 changes: 3 additions & 3 deletions lib/google/ads/google_ads/service_wrapper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -41,16 +41,16 @@ def method_missing(name, *args, **kwargs, &blk)
write_field(request, value, name)
end

service.public_send(name, request, options)
service.public_send(name, request, options, &blk)
elsif !kwargs.empty? && args.empty?
kwargs.each do |name, value|
write_field(request, value, name)
end

service.public_send(name, request, nil)
service.public_send(name, request, nil, &blk)
elsif args.empty?
# no args specified at all, just pass through
service.public_send(name, request, nil)
service.public_send(name, request, nil, &blk)
else
# this branch is the legacy version, which is no longer supported

Expand Down
2 changes: 1 addition & 1 deletion lib/google/ads/google_ads/version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ module Google
module Ads
module GoogleAds
CLIENT_LIB_NAME = 'gccl'.freeze
CLIENT_LIB_VERSION = '41.0.0'.freeze
CLIENT_LIB_VERSION = '41.1.0'.freeze
VERSION = CLIENT_LIB_VERSION
end
end
Expand Down