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
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