I cannot see a link/button saying "Reply privately to author". I will post the details here in public anyway (as it's regarding test accounts).
*Accounts details* Manager account ID: 584-763-1725 (this is a test account, not yet approved) Customer account ID: 106-298-8633 (this is a test account created under the above manager account) *Output of the request and response* GoogleAds.DetailedRequestLogs Information: 1 : [2021-03-29 14:15:11Z] - ---------------BEGIN API CALL--------------- Request ------- Method Name: /google.ads.googleads.v6.services.KeywordPlanIdeaService/GenerateKeywordIdeas Host: https://googleads.googleapis.com Headers: { "x-goog-api-client": "gl-dotnet/3.1.0 gapic/7.0.0 gax/3.2.0+002f6637d17e4170f5db7ec7ca6f0163e6df1481 grpc/2.35.0", "developer-token": "REDACTED", "login-customer-id": "1062988633", "x-goog-request-params": "customer_id=1062988633" } { "customerId": "1062988633", "keywordSeed": { "keywords": [ "ondernemen", "brexit", "corona" ] }, "keywordPlanNetwork": "GOOGLE_SEARCH_AND_PARTNERS", "language": "languageConstants/1010" } Response -------- Headers: { "request-id": "9TTCpoYXYbIWZVbeOyuhSQ", "date": "Mon, 29 Mar 2021 14:15:12 GMT", "alt-svc": "h3-29=\":443\"; ma=2592000,h3-T051=\":443\"; ma=2592000,h3-Q050=\":443\"; ma=2592000,h3-Q046=\":443\"; ma=2592000,h3-Q043=\":443\"; ma=2592000,quic=\":443\"; ma=2592000; v=\"46,43\"", "google.ads.googleads.v6.errors.googleadsfailure-bin": "Cv8BCgJIAhL4AVVzZXIgZG9lc24ndCBoYXZlIHBlcm1pc3Npb24gdG8gYWNjZXNzIGN1c3RvbWVyLiBOb3RlOiBJZiB5b3UncmUgYWNjZXNzaW5nIGEgY2xpZW50IGN1c3RvbWVyLCB0aGUgbWFuYWdlcidzIGN1c3RvbWVyIGlkIG11c3QgYmUgc2V0IGluIHRoZSAnbG9naW4tY3VzdG9tZXItaWQnIGhlYWRlci4gU2VlIGh0dHBzOi8vZGV2ZWxvcGVycy5nb29nbGUuY29tL2dvb2dsZS1hZHMvYXBpL2RvY3MvY29uY2VwdHMvY2FsbC1zdHJ1Y3R1cmUjY2lk", "grpc-status-details-bin": "CAcSI1RoZSBjYWxsZXIgZG9lcyBub3QgaGF2ZSBwZXJtaXNzaW9uGsoCCkN0eXBlLmdvb2dsZWFwaXMuY29tL2dvb2dsZS5hZHMuZ29vZ2xlYWRzLnY2LmVycm9ycy5Hb29nbGVBZHNGYWlsdXJlEoICCv8BCgJIAhL4AVVzZXIgZG9lc24ndCBoYXZlIHBlcm1pc3Npb24gdG8gYWNjZXNzIGN1c3RvbWVyLiBOb3RlOiBJZiB5b3UncmUgYWNjZXNzaW5nIGEgY2xpZW50IGN1c3RvbWVyLCB0aGUgbWFuYWdlcidzIGN1c3RvbWVyIGlkIG11c3QgYmUgc2V0IGluIHRoZSAnbG9naW4tY3VzdG9tZXItaWQnIGhlYWRlci4gU2VlIGh0dHBzOi8vZGV2ZWxvcGVycy5nb29nbGUuY29tL2dvb2dsZS1hZHMvYXBpL2RvY3MvY29uY2VwdHMvY2FsbC1zdHJ1Y3R1cmUjY2lk" } Fault: { "StatusCode": 7, "Details": "The caller does not have permission", "RequestId": "9TTCpoYXYbIWZVbeOyuhSQ", "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#cid" } ] } } ----------------END API CALL---------------- On Monday, March 29, 2021 at 3:45:27 AM UTC+2 adsapiforumadvisor wrote: > Hi, > > Thank you for the reply. > > The USER_PERMISSION_DENIED > <https://developers.google.com/google-ads/api/docs/best-practices/common-errors#user_permission_denied> > > error occurs when authenticating as a user with access to a manager account > but not specifying *login-customer-id* in the request. With this, if the > user account / email address you used to generate the Oauth2 credential has > access to the manager account 584-763-xxxx, then it is correct to put its > customer ID in the *login-customer-id*. > > For the DEVELOPER_TOKEN_NOT_APPROVED > <https://developers.google.com/google-ads/api/reference/rpc/v6/AuthorizationErrorEnum.AuthorizationError?hl=en#developer_token_not_approved>, > > this error occurs when you used a developer token that only has test > account > <https://developers.google.com/google-ads/api/docs/access-levels?hl=en> > access level to the production account. However, since you said that it was > just a test account, then could you confirm if this is the type > <https://developers.google.com/google-ads/api/docs/first-call/overview?hl=en#test_account> > > of account you created for testing Google Ads API functionalities? If yes, > then the error should not be encountered. That being said, could you > provide the following details via *Reply privately to author* option to > investigate: > > - Customer ID of the test manager account > - Complete request > > <https://developers.google.com/google-ads/api/docs/concepts/field-service#request> > > and response > > <https://developers.google.com/google-ads/api/docs/concepts/field-service#response> > > logs with request ID > > <https://developers.google.com/google-ads/api/docs/concepts/call-structure#request-id> > > generated on your end > > > Regards, > [image: Google Logo] > Ernie John Blanca Tacata > Google Ads API Team > > > ref:_00D1U1174p._5004Q2CTeXz:ref > -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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/d86bbd3a-69b7-4958-b6b3-46e5892b521fn%40googlegroups.com.
