I created a new customer with this code 
https://github.com/googleads/google-ads-php/blob/master/examples/AccountManagement/CreateCustomer.php

When I look linked account, I seeing my test mcc account and everything 
look good. (admin permission etc.)

after that I tried add a campaign under this account with this code 
https://github.com/googleads/google-ads-php/blob/master/examples/BasicOperations/AddCampaigns.php

but I see this error.

===================================================

[2020-04-26T14:27:11.129454+02:00] google-ads.INFO: Request made: Host: 
"googleads.googleapis.com", Method: 
"/google.ads.googleads.v3.services.CustomerService/CreateCustomerClient", 
ClientCustomerId: 133855XXXX, RequestId: "FTeid-Bq26C7EkSVIV2dSw", IsFault: 
0, FaultMessage: "None"  

Created a customer with resource name "customers/481193XXXX" under the 
manager account with customer ID 133855XXXX.

[2020-04-26T14:29:00.011704+02:00] google-ads.WARNING: Request made: Host: 
"googleads.googleapis.com", Method: 
"/google.ads.googleads.v3.services.CampaignBudgetService/MutateCampaignBudgets",
 
ClientCustomerId: 481193XXXX, RequestId: "OmVm383tnrDYE0u-8LlzpA", IsFault: 
1, FaultMessage: "["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"]"
  
[2020-04-26T14:29:00.015405+02:00] google-ads.NOTICE: Request
-------
Method Name: 
/google.ads.googleads.v3.services.CampaignBudgetService/MutateCampaignBudgets
Host: googleads.googleapis.com
Headers: {
    "x-goog-api-client": "gl-php\/7.4.4 gapic\/ gax\/1.3.0 grpc\/1.28.0",
    "x-goog-request-params": "customer_id=481193XXXX",
    "developer-token": "REDACTED"
}
Request: 
{"customerId":"481193XXXX","operations":[{"create":{"name":"Interplanetary 
Cruise Budget 
#5ea57e8b53734","amountMicros":"500000","deliveryMethod":"STANDARD"}}]}

Response
-------
Headers: {
    "request-id": "OmVm383tnrDYE0u-8LlzpA",
    "date": "Sun, 26 Apr 2020 12:28:58 GMT",
    "alt-svc": "quic=\":443\"; ma=2592000; v=\"46,43\",h3-Q050=\":443\"; 
ma=2592000,h3-Q049=\":443\"; ma=2592000,h3-Q048=\":443\"; 
ma=2592000,h3-Q046=\":443\"; ma=2592000,h3-Q043=\":443\"; 
ma=2592000,h3-T050=\":443\"; ma=2592000"
}

Fault
-------
Status code: 7
Details: The caller does not have permission
Failure: 
{"errors":[{"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"}]}
  


-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 [email protected]
To unsubscribe from this group, send email to
[email protected]
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/1f854a62-c0bd-49d8-901b-f71dd788fe7e%40googlegroups.com.

Reply via email to