Cannot fetch campaigns data from linked account

31 views
Skip to first unread message

Дмитрий Горбачев

unread,
Nov 27, 2020, 7:21:38 AM11/27/20
to AdWords API and Google Ads API Forum
Trying to get campaigns within linked client but getting following error:

"message": "The caller does not have permission",
    "code": 7,
    "status": "PERMISSION_DENIED",
    "details": [
        {
            "@type": "google.ads.googleads.v5.errors.googleadsfailure-bin",
            "data": "<Unknown Binary Data>"
        },
        {
            "@type": "grpc-status-details-bin",
            "data": "<Unknown Binary Data>"
        },
        {
            "@type": "request-id",
            "data": "EimILj865eOukgDfJ5XUzg"
        }
    ]

Google clients builds with withLoginCustomerId and withLinkedCustomerId methods.
Error occurs while calling iterateAllElements method

Google Ads API Forum Advisor Prod

unread,
Nov 30, 2020, 3:14:47 PM11/30/20
to digorb...@gmail.com, adwor...@googlegroups.com

Hello, 

Thank you for reaching out to Google Ads Support.

AuthorizationError.USER_PERMISSION_DENIED indicates the account used to make the API request and the account being queried are not linked. Follow the link accounts to your manager accounts guide to link your accounts through the Google Ads UI or link the accounts through the API.

Please let us know if you have any further issues.

Regards,
Abraham

Google Logo
Abraham Williams
Google Ads API Team
 


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