adGroupAdLabel = AdGroupAdLabel.newBuilder()
 .setAdGroupAd(
 StringValue.of(ResourceNames.adGroupAd(accountId, adGroupId, adId))
 )
 .setLabel(StringValue.of(ResourceNames.label(accountId, labelId)))
 .build

operation = AdGroupAdLabelOperation.newBuilder()
 .setCreate(adGroupAdLabel)
 .build()


adGroupAdLabelOperationList.append(operation)


result = service
 .mutateAdGroupAdLabels(accountId, adGroupAdLabelOperationList, true, false)

// This result list returns a wrong return name by the API
result[0].getResourceName == `customers/{customer_id}/adGroupAdLabels/
{ad_id}~{ad_group_id}~{label_id}`
// and it should be
result[0].getResourceName == 
`customers/{customer_id}/adGroupAdLabels/{ad_group_id}~{ad_id}~{label_id}`
//The ad_group_id and the ad_id are returned in the wrong place
//After the call, this other method call fails unless you fix the position 
of the ids:

val adLabel = 
client.getVersion1.createAdGroupAdLabelServiceClient().getAdGroupAdLabel(result[0].getResourceName)



Here's the simplified code I'm using to attach an existing label to a 
adGroupAd, when testing it I found out that the result resource name is wrong.


Tested with the latest version as of now (3.0.1) and got the same result.



-- 










GetYourGuide Deutschland GmbH

Erich-Weinert-Straße 145, 10409 
Berlin, Germany

Geschäftsführer: Johannes Reck, Tao Tao, Nils Chrestin


Amtsgericht Charlottenburg HRB 132059 B; USt-IdNr. DE276456081


 
<https://www.facebook.com/GetYourGuide>  <https://twitter.com/GetYourGuide> 
 <https://www.instagram.com/getyourguide/>  
<https://www.linkedin.com/company/getyourguide-ag>  
<http://www.getyourguide.com>




-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/d3c31352-b6e0-41e7-9f92-282fedf22dfa%40googlegroups.com.

Reply via email to