Closed devzer01 closed 1 year ago
It's an elseif
so if you provide either jsonKeyFilePath
or scopes
, it should fall into the first if without going to the second one.
Do you retain the format (including all the section name) of the google_ads_php.ini
file?
It looks like you cut it short. Could you confirm?
hi thanks for your response, you are right there is no section name in my .ini file. what should the section be called? i followed the documentation here which didn't have a section https://developers.google.com/google-ads/api/docs/client-libs/php/oauth-service
Please copy this example file and comment/uncomment the keys accordingly. Thanks.
i am using the latest version of the php client library from master (running the example code) i have
google_ads_php.ini
placed in my home directory with the following contentsand then I run the example basic operations get campaign I see the following error message
I examine the validate function in class
OAuth2TokenBuilder
as followsit appears that the test for clientId, clientSecret is lacking to test if key file is not set. because based on what I understand the clientId test will always fail even with the keyfile is set.
or am I doing something wrong?
will wait for your response thanks