Developer doesn't have permission to access service

71 views
Skip to first unread message

1210xin H5

unread,
Feb 18, 2022, 2:36:46 AM2/18/22
to Google Ads API and AdWords API Forum
When I try to create a new campaign using Google ads API, I get an error: developer doesn't have permission to access service

I have authorized the highest authority

Please help me, thank you


Response log:


[2022-02-18T15:28:46.080554+08:00] google-ads.INFO: Request made: Host: "googleads.googleapis.com", Method: "/google.ads.googleads.v8.services.CampaignBudgetService/MutateCampaignBudgets", CustomerId: xxxxxxxxx, RequestId: "ILM4o8TE1b7DOO5jwWOhdQ", IsFault: 0, FaultMessage: "None"  
[2022-02-18T15:28:46.584000+08:00] google-ads.WARNING: Request made: Host: "googleads.googleapis.com", Method: "/google.ads.googleads.v8.services.CampaignService/MutateCampaigns", CustomerId: xxxxxxxxx, RequestId: "VYj-nDqtyl-no9OjXxjVng", IsFault: 1, FaultMessage: "["Developer doesn't have permission to access service."]"  
[2022-02-18T15:28:46.586514+08:00] google-ads.NOTICE: Request
-------
Method Name: /google.ads.googleads.v8.services.CampaignService/MutateCampaigns
Host: googleads.googleapis.com
Headers: {
    "x-goog-api-client": "gl-php\/7.3.4 gccl\/12.1.0 gapic\/12.1.0 gax\/1.10.0 grpc\/1.38.0RC1 rest\/1.10.0",
    "x-goog-request-params": "customer_id=xxxxxxxxx",
    "developer-token": "REDACTED",
    "login-customer-id": "xxxxxxxxx"
}
Request:
{"customerId":"xxxxxxxxx","operations":[{"create":{"name":"yize_20220217_1","status":"PAUSED","advertisingChannelType":"DISPLAY","campaignBudget":"customers\/xxxxxxxxx\/campaignBudgets\/10388640663","startDate":"20220218","targetCpa":{"targetCpaMicros":"10000"}}}]}

Response
-------
Headers: {
    "request-id": "VYj-nDqtyl-no9OjXxjVng",
    "date": "Fri, 18 Feb 2022 07:28:46 GMT",
    "alt-svc": "h3=\":443\"; ma=2592000,h3-29=\":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\""
}

Fault
-------
Status code: 7
Details: The caller does not have permission
Failure: {"errors":[{"errorCode":{"authorizationError":"SERVICE_ACCESS_DENIED"},"message":"Developer doesn't have permission to access service."}],"requestId":"VYj-nDqtyl-no9OjXxjVng"}  


Google Ads API Forum Advisor

unread,
Feb 20, 2022, 9:56:02 PM2/20/22
to h5.12...@gmail.com, adwor...@googlegroups.com
Hi,

Thank you for reaching out to our API support team.

So our team can troubleshoot the SERVICE_ACCESS_DENIED error, you may refer to the below items :
  • Could you confirm whether your developer token was indeed approved for the Google Ads API? If the developer token was approved for a different API then you may clarify this with the Compliance Team via this contact form.
  • Could you confirm if the user / email address that was used to generate the OAuth2 credentials had the appropriate access level to manage the account?
If the developer token was indeed approved for the Google Ads API, and the credentials have the appropriate access from the user, then you may provide our team with the complete details of your logs so we can investigate further.

You may then send the complete logs via the Reply privately to author option. If this option is not available, you may send the details directly to our googleadsa...@google.com alias instead.

Best regards,

Google Logo
Peter Laurence
Google Ads API Team
 


ref:_00D1U1174p._5004Q2Www46:ref

Google Ads API Forum Advisor

unread,
Feb 20, 2022, 11:16:17 PM2/20/22
to h5.12...@gmail.com, adwor...@googlegroups.com

Hi,

Thanks for reaching out to the Google Ads API Forum.

Could you provide us with the complete request and response logs with the request-id, so our team can better check?

For the client library, logging can be enabled by navigating to the Client libraries > Your client library (ex select Python) > Logging documentation, which you can access from this link. You may then send the requested information via the Reply privately to author option. If this option is not available, you may send the details directly to our googleadsa...@google.com alias instead by referring to this thread.

Regards,

Google Logo
Yasar
Google Ads API Team
 


ref:_00D1U1174p._5004Q2Www2A:ref
Reply all
Reply to author
Forward
0 new messages