CreateLabel using LabelService

33 views
Skip to first unread message

Hemalatha D

unread,
Feb 12, 2024, 9:44:30 PMFeb 12
to Google Ad Manager API Forum
Hi Team,

I'm using xml schema to createLabels. but, getting error HTTP Status Code: 500
To createLabel, do we need to enable permission, if yes, could you please enable it from your end.

Networkcode- 133009657
ApplicationName- Nine Digital (Production)

<?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope
        xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
        xmlns:xsd="http://www.w3.org/2001/XMLSchema"
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <soapenv:Header>
    <ns1:RequestHeader
soapenv:actor="http://schemas.xmlsoap.org/soap/actor/next"
soapenv:mustUnderstand="0"
 xmlns:ns1=[gamApiVersion]>
    <ns1:networkCode>[networkCode]</ns1:networkCode>
      <ns1:applicationName>[applicationName]</ns1:applicationName>
    </ns1:RequestHeader>
  </soapenv:Header>
   <soapenv:Body>
      <createLabels xmlns=[gamApiVersion]>
         <labels>          
            <name>[labelName]</name>          
            <types>[labelType]</types>
         </labels>
      </createLabels>
   </soapenv:Body>
</soapenv:Envelope>

=====================

Internal : Unexpected error Error during Web API HTTP Request
HTTP Status Code: 500
HTTP Response Content: <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:Header><ResponseHeader xmlns="https://www.google.com/apis/ads/publisher/v202311"><requestId>b85bb2d0c1a5f2c3882d45d6c5945011</requestId><responseTime>116</responseTime></ResponseHeader></soap:Header><soap:Body><soap:Fault><faultcode>soap:Server</faultcode><faultstring>[PermissionError.PERMISSION_DENIED @ ]</faultstring><detail><ApiExceptionFault xmlns="https://www.google.com/apis/ads/publisher/v202311"><message>[PermissionError.PERMISSION_DENIED @ ]</message><errors xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="PermissionError"><fieldPath></fieldPath><trigger></trigger><errorString>PermissionError.PERMISSION_DENIED</errorString><reason>PERMISSION_DENIED</reason></errors></ApiExceptionFault></detail></soap:Fault></soap:Body></soap:Envelope>

Ad Manager API Forum Advisor

unread,
Feb 13, 2024, 1:28:14 AMFeb 13
to lathakri...@gmail.com, google-doubleclick...@googlegroups.com
Hello,

Thank you for reaching out to the Ad Manager API support team.

By reviewing your concern, I understand that you are facing permission while creating labels using the Ad Manager API. I would like to inform you that it is not possible for us to enable the permission in your network to create labels. From user roles and teams you would be able to restrict the permission of the required user in the Ad Manager API / UI. From the UserService, with the createUsers() method you would be able to create a user with a required role based upon your requirements. You may get all roles in your network with the getAllRoles() method. You may refer to the help article regarding create and edit the user roles. And, from the Ad Manager API you can also create teams from the TeamService and from UserTeamAssociationService , add users to those teams with a specific role. I would suggest you to check the help article regarding creating and adding users to teams.

Even after enabling the permission to create the label and still you are facing the issue then, please the user email / service account email which is used for authenticating the API query. Hope this helps. For any other assistance you may get back to us.
 
This message is in relation to case "ref:!00D1U01174p.!5004Q02rz3Ry:ref"

Thanks,
 
Google Logo Ad Manager API Team

 

คาสิโน UFA356 เว็บตรง100%

unread,
4:37 AM (10 hours ago) 4:37 AM
to Google Ad Manager API Forum

Even after enabling the permission to create the label and still you are facing the issue then, please the user email / service account email which is used for authenticating the API query. Hope this helps. For any other assistance you may get back to us.
ในวันที่ วันอังคารที่ 13 กุมภาพันธ์ ค.ศ. 2024 เวลา 13 นาฬิกา 28 นาที 14 วินาที UTC+7 Ad Manager API Forum Advisor เขียนว่า:
Reply all
Reply to author
Forward
0 new messages