Re: `customer_label` returning labels that don't exist in `label`

2022-04-21 Thread Dorian Kind
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 
> 
>  
> 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 
>  
> 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 
> 
>  
> 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 
> 
>  
> and 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 

RE: `customer_label` returning labels that don't exist in `label`

2022-04-21 Thread 'Google Ads API Forum Advisor' via Google Ads API and AdWords API Forum
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 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 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 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 and 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 googleadsapi-supp...@google.com alias instead.

Best regards,

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/V9B8W0RAOLKV00a96lxKsyTzG7iy0wY0Dp_Q%40sfdc.net.


Re: `customer_label` returning labels that don't exist in `label`

2022-04-20 Thread Dorian Kind
The first sentence should of course be "...using the *`customer_client`* 
resource...". Apologies for the confusion.

On Tuesday, 19 April 2022 at 22:46:38 UTC+2 Dorian Kind wrote:

> Hi,
>
> when downloading all applied account labels within a manager account using 
> the `customer_label` resource and then comparing the returned IDs with the 
> labels listed by the `label` resource, a small number of labels only exist 
> in the former. Both requests use the same login-customer-id.
> Checking the web UI, these additional labels also don't seem to show up in 
> the interface.
>
> For a specific example, running the query
>
> SELECT customer_client.applied_labels, customer_client.id FROM 
> customer_client WHERE customer_client.applied_labels CONTAINS ALL 
> ('customers/5811963229/labels/2504104868 <(250)%20410-4868>')
>
> lists around 165 accounts in our manager account which have label ID 
> 2504104868 <(250)%20410-4868> applied, but running the corresponding query
>
> SELECT label.id, label.name, label.status FROM label
> WHERE label.id = 2504104868 <(250)%20410-4868>
>
> using the same login customer ID 5811963229 returns no results. Is there 
> anything I'm missing?
>
> Thanks & regards,
> Dorian
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/b6f6ea96-9fd1-4ad0-b56e-753017dcac29n%40googlegroups.com.


Re: `customer_label` returning labels that don't exist in `label`

2022-04-19 Thread Dorian Kind
As an addendum, I've checked a sample of accounts using `customer_label`, 
and the additional labels also don't show up in that resource. It seems to 
really only be `customer_client` that returns those label IDs.

On Tuesday, 19 April 2022 at 22:46:38 UTC+2 Dorian Kind wrote:

> Hi,
>
> when downloading all applied account labels within a manager account using 
> the `customer_label` resource and then comparing the returned IDs with the 
> labels listed by the `label` resource, a small number of labels only exist 
> in the former. Both requests use the same login-customer-id.
> Checking the web UI, these additional labels also don't seem to show up in 
> the interface.
>
> For a specific example, running the query
>
> SELECT customer_client.applied_labels, customer_client.id FROM 
> customer_client WHERE customer_client.applied_labels CONTAINS ALL 
> ('customers/5811963229/labels/2504104868 <(250)%20410-4868>')
>
> lists around 165 accounts in our manager account which have label ID 
> 2504104868 <(250)%20410-4868> applied, but running the corresponding query
>
> SELECT label.id, label.name, label.status FROM label
> WHERE label.id = 2504104868 <(250)%20410-4868>
>
> using the same login customer ID 5811963229 returns no results. Is there 
> anything I'm missing?
>
> Thanks & regards,
> Dorian
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/39238060-713f-4f83-8912-5fb84379cf4dn%40googlegroups.com.


`customer_label` returning labels that don't exist in `label`

2022-04-19 Thread Dorian Kind
Hi,

when downloading all applied account labels within a manager account using 
the `customer_label` resource and then comparing the returned IDs with the 
labels listed by the `label` resource, a small number of labels only exist 
in the former. Both requests use the same login-customer-id.
Checking the web UI, these additional labels also don't seem to show up in 
the interface.

For a specific example, running the query

SELECT customer_client.applied_labels, customer_client.id FROM 
customer_client WHERE customer_client.applied_labels CONTAINS ALL 
('customers/5811963229/labels/2504104868')

lists around 165 accounts in our manager account which have label ID 
2504104868 applied, but running the corresponding query

SELECT label.id, label.name, label.status FROM label
WHERE label.id = 2504104868

using the same login customer ID 5811963229 returns no results. Is there 
anything I'm missing?

Thanks & regards,
Dorian

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/d9bbbf30-ea07-43d1-b928-d1a4f00f5eb9n%40googlegroups.com.