google-ads-php icon indicating copy to clipboard operation
google-ads-php copied to clipboard

No Logging Using REST Transport

Open roydidier opened this issue 4 years ago • 8 comments

I am using Google Ads client library V5 and I have no log generated

I have set logging parameters into google_ads_php.ini [LOGGING] ; Optional logging settings. logFilePath = "/home/metaio-dev-di/google-ads-php/V5/GoogleAdsApi.log" logLevel = "DEBUG"

I don't find what is wrong

thanks

roydidier avatar Sep 04 '20 15:09 roydidier

Hi @roydidier - I just tested on my side but did not replicate, I see DEBUG logs in the file I specified. Could you give more detail about your setup: OS, PHP, protobuf, transport? Also did you migrate from an older version of the library or is this a brand new setup?

PierrickVoulet avatar Sep 04 '20 15:09 PierrickVoulet

Hi Pierrick

thany you for you quick answer. Linux version 4.15.0-109-generic (buildd@lgw01-amd64-010) (gcc version 7.5.0 (Ubuntu 7.5.0-3ubuntu1~18.04)) PHP 7.2.33 It was working fine with Google Ads API V1 and V2 and I see now that log is not writtten anymore since middle of june . I don't remember having changing anything at this time. I am currently migrating to V5 and get the same issue.

where can I find the protobuf and tranport info?

thanks

roydidier avatar Sep 04 '20 16:09 roydidier

Hello Pierrick

did you get my answer?

Hi Pierrick

thany you for you quick answer. Linux version 4.15.0-109-generic (buildd@lgw01-amd64-010) (gcc version 7.5.0 (Ubuntu 7.5.0-3ubuntu1~18.04)) PHP 7.2.33 It was working fine with Google Ads API V1 and V2 and I see now that log is not writtten anymore since middle of june . I don't remember having changing anything at this time. I am currently migrating to V5 and get the same issue.

where can I find the protobuf and tranport info?

thanks

Didier Roy Head of Software [image: WIHP] http://www.wihphotels.com wihphotels.com http://www.wihphotels.com 77 rue du Faubourg St-Antoine 75011 Paris, France +33 1 53 46 10 63 TEL(ext 47)

Le ven. 4 sept. 2020 à 17:37, Pierrick Voulet [email protected] a écrit :

Hi @roydidier https://github.com/roydidier - I just tested on my side but did not replicate, I see DEBUG logs in the file. Could you give more detail about your setup: OS, PHP, protobuf, transport? Also did you migrate from an older version of the library or is this a brand new setup?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/googleads/google-ads-php/issues/414#issuecomment-687224941, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADPKGWSQY4NOFZSCFETHFO3SEECS5ANCNFSM4QYRSDXA .

roydidier avatar Sep 08 '20 11:09 roydidier

Hello Didier,

I replicate using the REST transport. Could you confirm that you are using REST as a transport on your end? This should be the case if you do not have the gRPC PHP extension installed and configured on the environment.

If you do use REST, the best workaround for now would be to switch to gRPC. You would be able to do this following the instructions in the requirements section of our documentation.

PierrickVoulet avatar Sep 08 '20 14:09 PierrickVoulet

Hello Pierrick

it was this. it is working fine now

thank you for your help

Didier Roy Head of Software [image: WIHP] http://www.wihphotels.com wihphotels.com http://www.wihphotels.com 77 rue du Faubourg St-Antoine 75011 Paris, France +33 1 53 46 10 63 TEL(ext 47)

Le mar. 8 sept. 2020 à 16:57, Pierrick Voulet [email protected] a écrit :

Hello Didier,

I replicate using the REST transport. Could you confirm that you are using REST as a transport https://developers.google.com/google-ads/api/docs/client-libs/php/transport on your end? This should be the case if you do not have the gRPC PHP extension installed and configured on the environment.

If you do use REST, the best workaround for now would be to switch to gRPC. You would be able to do this following the instructions in the requirements section of our documentation https://github.com/googleads/google-ads-php#requirements.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/googleads/google-ads-php/issues/414#issuecomment-688934503, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADPKGWSN6O47EPO25MQ32GTSEZA6FANCNFSM4QYRSDXA .

roydidier avatar Sep 09 '20 07:09 roydidier

I dug a bit more on this: this is unrelated to the interceptor reimplementation that has been done in V3 as I replicate the issue with V2.

PierrickVoulet avatar Sep 09 '20 13:09 PierrickVoulet

This feature depends on the gax-php dependency, a feature request googleapis/gax-php/issues/234 was created on their repository.

PierrickVoulet avatar May 26 '21 18:05 PierrickVoulet

Enabling gRPC solved it for me ... Thanks @PierrickVoulet! 👍

jabeztadesse avatar Oct 18 '23 15:10 jabeztadesse