Hello,

I'm trying to get customer/account labels but don't know how. I've tried 
all the options I've found. Here is my last option:
*I need this labels from Screen*
[image: 2022-05-17_11-00.png]

*My Code:*
$queryLabels3 = "SELECT customer_label.customer, customer_label.label, 
customer_label.resource_name, customer.id FROM customer_label";

/** @var GoogleAdsServerStreamDecorator $labelStream */
$labelStream = $googleAdsServiceClient->searchStream(4854014806, 
$queryLabels3);
foreach ($labelStream->iterateAllElements() as $googleAdsRowForLabels) {
/** @var GoogleAdsRow $googleAdsRowForLabels */ 
"customers/9144796124/labels/3439160676" 
// $queryLabels
var_dump($googleAdsRowForLabels->getCustomerLabel()->getLabel());
var_dump($googleAdsRowForLabels->getCustomerLabel()->getCustomer());
var_dump($googleAdsRowForLabels->getCustomerLabel()->getResourceName());
var_dump($customerId);
}

*Result:*
string(38) "customers/1138211281/labels/2504236680"
string(20) "customers/4854014806"
string(46) "customers/4854014806/customerLabels/2504236680"
int(8377105507)

How can I get the names of the labels, not their IDs? I also want to 
clarify that I do not need campaign labels, but account/customer labels

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 [email protected]
To unsubscribe from this group, send email to
[email protected]
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/3b798f86-fdc7-46a2-a252-4eaff9922763n%40googlegroups.com.
  • Ge... Vladimir Hiuk
    • ... 'Google Ads API Forum Advisor' via Google Ads API and AdWords API Forum
      • ... Vladimir Hiuk
        • ... Vladimir Hiuk
      • ... Vladimir Hiuk
        • ... 'Google Ads API Forum Advisor' via Google Ads API and AdWords API Forum

Reply via email to