Hi Google Ads Support. Basically I am building a ads-management website where I am having a manager account having ID : 1534919382 and having a developer token with test access.
I made a Google Cloud Platform with https://www.googleapis.com/auth/adwords scope, So when a customer sign-in using their accounts, I am extracting the ad-accounts using their access token using *customers:listAccessibleCustomers.* when they select one I am creating a client under my manager account using* https://googleads.googleapis.com/v15/customers/${LOGIN_CUSTOMER_ID}:createCustomerClient *and it is returning a resource name with customerId under my account. Now I am creating a campaign, adGroup, Responsive searchad details using *https://googleads.googleapis.com/v15/customers/${customerId}/googleAds:mutate *and adding keywords to adGroup using * https://googleads.googleapis.com/v15/customers/${customerId}/adGroupCriteria:mutate.* It is posting the ad and is reflecting when i open and see under client account that got created under my manager account, But i want that posted ad copy to be published to their actual ads account. I checked the groups for any previous discussions then i found like i need to create a *customers.customerClientLinks.mutate.* *Below is the request :* POST https://googleads.googleapis.com/v15/customers/2176562982/customerClientLinks:mutate HTTP/1.1 developer-token: ********************** login-customer-id: 1534919382 Authorization: Bearer [YOUR_ACCESS_TOKEN] Accept: application/json Content-Type: application/json { "operation": { "create": { "clientCustomer": "customers/2176562982" } } } *Below is the response i got :* { "error": { "code": 403, "message": "The caller does not have permission", "status": "PERMISSION_DENIED", "details": [ { "@type": "type.googleapis.com/google.ads.googleads.v15.errors.GoogleAdsFailure", "errors": [ { "errorCode": { "authorizationError": "AUTHORIZATION_ERROR" }, "message": "Authorization of the client failed.", "location": { "fieldPathElements": [ { "fieldName": "operation" } ] } }, { "errorCode": { "managerLinkError": "ALREADY_MANAGED_IN_HIERARCHY" }, "message": "Client is already managed in hierarchy.", "location": { "fieldPathElements": [ { "fieldName": "operation" } ] } }, { "errorCode": { "managerLinkError": "CUSTOMER_CANNOT_MANAGE_SELF" }, "message": "You are not allowed to link a manager account to itself.", "trigger": { "int64Value": "1594921327" }, "location": { "fieldPathElements": [ { "fieldName": "operation" } ] } }, { "errorCode": { "requestError": "UNKNOWN" }, "message": "The error code is not in this version.", "location": { "fieldPathElements": [ { "fieldName": "operation" } ] } } ], "requestId": "qFLIaKNQN92YEjS1Nxk_zA" } ] } } If it is connected why ads that are posted not getting reflected in the actual customers account. Please rectify this. I had followed this discussion : * https://groups.google.com/g/adwords-api/c/lygZl0DxXns/m/R3mv_qGDAgAJ* *and while updating below is the request :* POST https://googleads.googleapis.com/v15/customers/2176562982/customerClientLinks:mutate?key=[YOUR_API_KEY] HTTP/1.1 developer-token: ********************** login-customer-id: 1534919382 Authorization: Bearer [YOUR_ACCESS_TOKEN] Accept: application/json Content-Type: application/json { "operation": { "updateMask": "hidden", "update": { "resourceName": "customers/2176562982/customerClientLinks/2176562982~2176562982", "hidden": true } } } *Response i got is :* { "error": { "code": 400, "message": "Request contains an invalid argument.", "status": "INVALID_ARGUMENT", "details": [ { "@type": "type.googleapis.com/google.ads.googleads.v15.errors.GoogleAdsFailure", "errors": [ { "errorCode": { "mutateError": "RESOURCE_NOT_FOUND" }, "message": "Resource was not found.", "location": { "fieldPathElements": [ { "fieldName": "operation" }, { "fieldName": "update" }, { "fieldName": "resource_name" } ] } } ], "requestId": "BCfD9kOh4oeYkmGBLJodng" } ] } } I am so confused about how this process actually works, even ads created through my website are posting in the client account created under manager account, why they are not reflecting in their actual account. Can you help me what i am missing out and help me in understanding the concepts behind this. -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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/84f935c0-e595-48ad-8ad5-2c05c8fc08a4n%40googlegroups.com.