Hello
I tried to get the campaigns using google-ads-php sdk.
I tried to get the campaigns by using one account in my manager account so 
I can get the campaigns list successfully
for example
*php examples/BasicOperations/GetCampaigns.php --customerId xxxxxx0632*

but I tried to get them with general account (not inside manager account) 
so it shows error

error is

ApiException was thrown with message '{
    "message": "The caller does not have permission",
    "code": 7,
    "status": "PERMISSION_DENIED",
    "details": [
        {
            "@type": 
"type.googleapis.com\/google.ads.googleads.v11.errors.GoogleAdsFailure",
            "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"
                }
            ],
            "requestId": "oPSM3-sbB3ml9QpAmXh5AA"
        }
    ]
}'.

So how can i get the campaigns in general account?
Thanks

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
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 
"Google Ads API and AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/0eda7084-c9a0-44c1-a529-34e97d335a2an%40googlegroups.com.
  • Ge... Oleg Disrupt
    • ... 'Google Ads API Forum Advisor' via Google Ads API and AdWords API Forum

Reply via email to