-
Notifications
You must be signed in to change notification settings - Fork 262
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ArgumentParser not found #464
Comments
Hi @GitHubgopinath - It looks like your script which is located in Could you provide us with the code that you are trying to execute so that we can investigate? |
Hello @PierrickVoulet `<?php /**
namespace Google\Ads\GoogleAds\examples\AccountManagement; use GetOpt\GetOpt; /**
class CreateCustomer
} CreateCustomer::main(); ?>` |
Q:-is trying to call the CreateCustomer.php example? Ans :- Yes ,Iam running the example code given given in google ads |
I was dowloaded google ads library file from this Google ads api -php ,i think some of files missing in it like use Google\Ads\GoogleAds\examples\Utils\ArgumentNames; |
Did you follow the getting started instructions? Feel free to let us know if you reach any issue when doing so. |
Hello @PierrickVoulet Thannkyou, I will check step by step get back you, |
Dear @PierrickVoulet ,
ApiException was thrown with message '{ "message": "The caller does not have permission", "code": 7, "status": "PERMISSION_DENIED", "details": [ { "@type": 0, "data": "type.googleapis.com/google.ads.googleads.v6.errors.GoogleAdsFailure" }, { "@type": 0, "data": [ { "errorCode": { "authorizationError": "USER_PERMISSION_DENIED" }, "message": "User doesn't have permission to access customer. Note: If you're accessing a client customer, the manager's customer id must be set in the 'login-customer-id' header. See https://developers.google.com/google-ads/api/docs/concepts/call-structure#login-customer-id" } ] } ] }'. 3.While I am Creating the New Campaign Also I am getting same error of above ,how can i solve it ? |
For any further questions that are not specific to the client library but to the Google Ads API, please contact the dedicated support. |
Thanks for your reply Please check this, google_ads_php.php file anything i missed `[GOOGLE_ADS] ; Required for manager accounts only: Specify the login customer ID used to authenticate API calls. ; This header is only required for methods that update the resources of an entity when permissioned ; Optional additional settings. [OAUTH2] ; For installed application flow. ; For service account flow. [LOGGING] [CONNECTION] ; Optional transport settings. |
I want fill these details also ?
|
You can uncomment and set the |
I got the clear idea about Google ads and adwords, up to now working fine everything It's a Great support from you Thank you so much @PierrickVoulet |
Hi ,Iam working with google ads iam gettings this error,please help me
Fatal error: Uncaught Error: Class 'Google\Ads\GoogleAds\examples\Utils\ArgumentParser' not found in C:\xampp\htdocs\googleads\CreateCustomer.php:48 Stack trace: #0 C:\xampp\htdocs\googleads\CreateCustomer.php(128): Google\Ads\GoogleAds\examples\AccountManagement\CreateCustomer::main() #1 {main} thrown in C:\xampp\htdocs\googleads\CreateCustomer.php on line 48
Originally posted by @GitHubgopinath in #286 (comment)
The text was updated successfully, but these errors were encountered: