Hi, 
I am trying to create a new label using Ads API in PHP using the official 
php library. According to the specification the right way how to create a 
label is

" 
   
   1. Create a TextLabel instance.
   2. Set the desired background color for this TextLabel.
   3. Enter text for this TextLabel using the description field.
   4. Wrap the TextLabel in a LabelOperation and send it to 
   LabelService.MutateLabels 
   
<https://developers.google.com/google-ads/api/reference/rpc/v5/LabelService#mutatelabels>
   .
   
   "

How exactly should I do that? When I try to do

$labelOperation = new LabelOperation();
$labelOperation->setCreate($lbl);
$operations = [$labelOperation];

it ends with an error - the setCreate() method throws an exception " 
Expect Google\Ads\GoogleAds\V5\Resources\Label. 
"

Any idea what to do with it? Thanks

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 
"AdWords API and Google Ads 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/8d3de4d8-7c01-4add-9a99-6ebb9d4de07cn%40googlegroups.com.

Reply via email to