Hi Peter,

thanks for reaching out. I've worded this issue terribly, apologies. Let me 
try and rephrase: There are label IDs which are being reported as applied 
to a specific client by querying the `*customer_client*` resource, let's 
take for example customer 929-857-9278.

SELECT
  customer_client.applied_labels, customer_client.id
FROM customer_client
WHERE customer_client.id = 9298579278

This query returns five labels:

customer_client {
  resource_name: "customers/5811963229/customerClients/9298579278"
  id: 9298579278
  applied_labels: "customers/5811963229/labels/2504066243"
  applied_labels: "customers/5811963229/labels/2504104868"
  applied_labels: "customers/5811963229/labels/2504105044"
  applied_labels: "customers/5811963229/labels/2504105333"
  applied_labels: "customers/5811963229/labels/21583384862"
}

However, some of these labels don't seem to exist in the `*customer_label*` 
resource when querying:

SELECT customer.id, customer_label.label
FROM customer_label
WHERE
  customer_label.label IN (
    'customers/5811963229/labels/2504105044',
    'customers/5811963229/labels/2504066243',
    'customers/5811963229/labels/2504104868',
    'customers/5811963229/labels/2504105333',
    'customers/5811963229/labels/21583384862'
  )
  AND customer.id = 9298579278

This request only returns two labels:

customer {
  resource_name: "customers/9298579278"
  id: 9298579278
}
customer_label {
  resource_name: "customers/9298579278/customerLabels/2504066243"
  label: "customers/5811963229/labels/2504066243"
}

customer {
  resource_name: "customers/9298579278"
  id: 9298579278
}
customer_label {
  resource_name: "customers/9298579278/customerLabels/21583384862"
  label: "customers/5811963229/labels/21583384862"
}

Same behavior when using the *`label`* resource:

SELECT label.id, label.status FROM label
WHERE
label.id IN (
  2504105044,
  2504066243,
  2504104868,
  2504105333,
  21583384862
)

Only two labels returned, too:

label {
  resource_name: "customers/5811963229/labels/2504066243"
  status: ENABLED
  id: 2504066243
}

label {
  resource_name: "customers/5811963229/labels/21583384862"
  status: ENABLED
  id: 21583384862
}


I hope this makes the issue more understandable. I will be sending over 
request and response logs shortly.


Thanks again & best,
Dorian
On Thursday, 21 April 2022 at 10:44:02 UTC+2 adsapi wrote:

> Hi Dorian,
>
> Thank you for reaching out.
>
> Regarding your follow up post, could you confirm whether what you meant is 
> :
>
> *"As an addendum, I've checked a sample of accounts using 
> `customer_client`, and the additional labels also don't show up in that 
> resource. It seems to really only be `customer_label` that returns those 
> label IDs."*
>
> If yes, then as per the documentation of the customer_label 
> <https://developers.google.com/google-ads/api/fields/v10/customer_label?hl=en>
>  
> resource, it states that "*Represents a relationship between a customer 
> and a label. This customer may not have access to all the labels attached 
> to it. Additional CustomerLabels may be returned by increasing permissions 
> with login-customer-id.*".
>
> The label 
> <https://developers.google.com/google-ads/api/fields/v10/label?hl=en> 
> resource, on the other hand, should only return labels associated or 
> created within the account or customer_id specified in the request. The 
> customer_client 
> <https://developers.google.com/google-ads/api/fields/v10/customer_client?hl=en>
>  
> should then return "*the resource names of the labels owned by the 
> requesting customer that are applied to the client customer.*".
>
> That said, so that our team can help identify as to where the additional 
> labels (those from customer_label) are coming from, could you share the 
> 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 of your customer_label resource request, and specify a sample of these 
> labels that are not found anywhere else?
>
> 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.
>
> Best regards,
>
> [image: Google Logo] 
> Peter Laurence 
> Google Ads API Team 
>   
>
> ref:_00D1U1174p._5004Q2a4sbV: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 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/31352451-a7ae-4692-bc3e-410505aa3484n%40googlegroups.com.
  • `c... Dorian Kind
    • ... Dorian Kind
    • ... Dorian Kind
      • ... 'Google Ads API Forum Advisor' via Google Ads API and AdWords API Forum
        • ... Dorian Kind

Reply via email to