Got error in first call of google adword API

34 views
Skip to first unread message

Divyesh patel

unread,
Feb 27, 2019, 5:12:52 PM2/27/19
to AdWords API and Google Ads API Forum
Hello Developers,
I got the error in first call API.
I have already set clientId, ClientSecret, RefreshToken in adsapi_php.ini files and put those file in root directory of Codeigniter project.

This was the error which i got,

An uncaught Exception was encountered

Type: InvalidArgumentException

Message: All of 'clientId', 'clientSecret', and 'refreshToken' must be set when using installed/web application flow.

Filename: /var/projects/filud/filud_dev/application/vendor/googleads/googleads-php-lib/src/Google/AdsApi/Common/OAuth2TokenBuilder.php

Line Number: 225

Backtrace:

File: /var/projects/filud/filud_dev/application/vendor/googleads/googleads-php-lib/src/Google/AdsApi/Common/OAuth2TokenBuilder.php
Line: 173
Function: validatePlease look at the error and give me a solution for that.


Please look at the error and give me a solution for that.

Thank you

googleadsapi...@google.com

unread,
Feb 27, 2019, 10:34:54 PM2/27/19
to AdWords API and Google Ads API Forum
Hi Divyesh,

The error you encountered seems specific to PHP client library rather than the AdWords API. This said, I would suggest to post your issue on this link as the client library owners of PHP are better equipped to assist you here.

Thanks and regards,
Luis
AdWords API Team


=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
    http://googleadsdeveloper.blogspot.com/search/label/adwords_api
    https://developers.google.com/adwords/api/community/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

Was your question answered? Please rate your experience with us by taking a short survey.
If not -- reply to this email and tell us what else we can do to help.

Take Survey

Also find us on our blog and discussion group:
http://googleadsdeveloper.blogspot.com/search/label/adwords_api
https://developers.google.com/adwords/api/community/

--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 adwor...@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscribe@googlegroups.com
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 adwords-api+unsubscribe@googlegroups.com.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-api/bac98b6c-fe92-4cd4-a16a-3ff155ca60d3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages