Closed evrenios closed 8 months ago
I'm not sure why those aren't working, but the easiest way to do this would probably be to call:
adwords.credential_handler.set_credential('client_customer_id', new_value)
Let me know if that works out!
nope didnt work
You need to add the issued_at and expires_in attributes for the oauth2_token or else it breaks.
oauth2_token: {
access_token: "xxx",
refresh_token: "xxx",
issued_at: "xxx",
expires_in: 0
},
Hello, i have a manager account which have multiple clients attached to it.
any given time, i need to be able to do different api calls for different client ids.
currently i can only do api calls with default api object that loads from adwords_api.yml with
i tried to create custom objects with
and call authorize method on it but i'm receiving
AdsCommon::Errors::OAuth2VerificationRequired
i even tried to init with the client id that i wrote to yaml file, and still received that error.
than i tried to give the yaml config specifically, which failed again.
i also tried to use
use_runtime_config.rb
in https://github.com/googleads/google-api-ads-ruby/blob/master/adwords_api/examples/v201809/misc/use_runtime_config.rb
which gave me this error
how can i accomplish this need.
Thanks.