Hi, 

I found a page In the reference that describes the search method.
https://developers.google.com/google-ads/api/docs/client-libs/ruby/migration

According to this, if the options argument is not needed, the conventional 
way of passing arguments seems to be fine, but does the google-ads-ruby 
library cause an error?
https://github.com/googleads/google-ads-ruby/blob/master/lib/google/ads/google_ads/v8/services/google_ads_service/client.rb

I tried to fix it as below, but it still doesn't seem to work.

response = ga_service.search(
  request: {
    customer_id: customer_id,
    query: query,
  },
  options: {}
)
2021年9月10日金曜日 18:32:07 UTC+9 mingo:

> Hi,
> I'm using the Google Ads API to get a conversion action ID.
> I was using v6 until the other day, but I upgraded to v8 because I 
> received a notice that the request will be closed.
> However, since 9/8, the request has failed.
> Looking at the migration guide, I don't think there were any changes to 
> the 'search' method. Is this mentioned somewhere in the documentation?
> The error status and Ruby source code are as follows.
>
> ruby/2.7.0/gems/google-ads-googleads-12.0.2/lib/google/ads/google_ads/v8/services/google_ads_service/client.rb:247:in
>  
> `search'
>
> client = Google::Ads::GoogleAds::GoogleAdsClient.new do |config|
>   config.client_id = ENV['GOOGLE_CLIENT_ID']
>   config.client_secret = ENV['GOOGLE_CLIENT_SECRET']
>   config.refresh_token = ENV['REFRESH_TOKEN']
>   config.developer_token = ENV['DEVELOPER_TOKEN']
> end
> ga_service = client.service.google_ads
> response = ga_service.search(
>   customer_id: conversion_api.sub_account_id,
>   query: query
> )
>
> Thanks.
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/db02a882-e2e3-4167-9744-af7974297bfbn%40googlegroups.com.

Reply via email to