Class ArgumentParser not found

688 views
Skip to first unread message

Сергей Бр

unread,
May 23, 2019, 5:04:11 PM5/23/19
to AdWords API and Google Ads API Forum
google-ads-php library successfully installed through composer.
But.
When I try to run the example GetAccountInformation

Class Google\Ads\GoogleAds\Examples\Utils\ArgumentParser not found

at this code part

        $options = (new ArgumentParser())->parseCommandArguments([
            ArgumentNames::CUSTOMER_ID => GetOpt::REQUIRED_ARGUMENT
        ]);

Any thoughts?

Google Ads API Forum Advisor Prod

unread,
May 24, 2019, 1:08:56 AM5/24/19
to adwor...@googlegroups.com

Hi,

Thanks for reaching out.

In the sample code of GetAccountInformation, there is a CUSTOMER_ID field that is required before you execute the code.

Screenshot from 2019-05-24 11-45-19

Could you confirm if you already set this before running the code? If not, can you try to set your clientCustomerId in the 'INSERT_CUSTOMER_ID_HERE' then retry the request? Feel free to write back if the error persists after setting the CUSTOMER_ID.

Regards,
Dannison
Google Ads API Team



ref:_00D1U1174p._5001UAqSzC:ref

revarasi Sofa

unread,
May 24, 2019, 2:08:01 AM5/24/19
to adsapifor...@gmail.com, AdWords API and Google Ads API Forum
service korsi sopa dibandung

--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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...@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...@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/Va1TL000000000000000000000000000000000000000000000PRZSYI00Vr2NAab0QDKAyBOG46Rxow%40sfdc.net.
For more options, visit https://groups.google.com/d/optout.

Сергей Бр

unread,
May 25, 2019, 8:08:34 PM5/25/19
to AdWords API and Google Ads API Forum
Sure, customer id was already set, sorry for not mention it. Still error.

Google Ads API Forum Advisor Prod

unread,
May 26, 2019, 10:15:14 PM5/26/19
to adwor...@googlegroups.com
Hi,

Thank you for confirming this. It appears that your concern is related to the PHP client library. That said, you could open your concern to the PHP GitHub Issue Tracker as the client library owners are better equipped in answering your concerns.

Сергей Бр

unread,
Jun 17, 2019, 5:18:26 PM6/17/19
to AdWords API and Google Ads API Forum
solved by reinstalling the lib
and not through zip downloading at first
but through git clone
and then install through composer etc.
Reply all
Reply to author
Forward
0 new messages