Adding Ajesh / Sudheer

On Tue, Mar 19, 2019 at 10:49 AM ServiceNow Test Account <
[email protected]> wrote:

> Hi,
>
> Tried making the API call with the below request, but got an authorization
> error. I am using the developer token of the manager account. Please refer
> the screenshot of the API center console attached. Why am I getting this
> error ? How to fix this ?
>
> Below is the request and response xml.
>
> Request:
>
>
> <s:Envelope
> xmlns:s="http://schemas.xmlsoap.org/soap/envelope/";>
> <s:Header>
> <RequestHeader
> xmlns="https://adwords.google.com/api/adwords/o/v201809";>
> <clientCustomerId
> xmlns="https://adwords.google.com/api/adwords/cm/v201809";>5406218576
> </clientCustomerId>
> <developerToken
> xmlns="https://adwords.google.com/api/adwords/cm/v201809
> ">y2wBbbgo9zk1qFD1L5Tfyw
> </developerToken>
> <userAgent
> xmlns="https://adwords.google.com/api/adwords/cm/v201809";>unknown
> (AwApi-DotNet/24.1.0, Common-Dotnet/9.4.0, .NET CLR/4.0.30319.42000,
> OAuthServiceAccountFlow, SelectorBuilder, gzip)
> </userAgent>
> </RequestHeader>
> </s:Header>
> <s:Body
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
> xmlns:xsd="http://www.w3.org/2001/XMLSchema";>
> <get
> xmlns="https://adwords.google.com/api/adwords/o/v201809";>
> <selector>
> <searchParameters xsi:type="RelatedToQuerySearchParameter">
> <queries>bakery</queries>
> <queries>pastries</queries>
> <queries>birthday cake</queries>
> </searchParameters>
> <searchParameters xsi:type="LanguageSearchParameter">
> <languages>
> <id
> xmlns="https://adwords.google.com/api/adwords/cm/v201809";>1000
> </id>
> </languages>
> </searchParameters>
> <searchParameters xsi:type="NetworkSearchParameter">
> <networkSetting>
> <targetGoogleSearch
> xmlns="https://adwords.google.com/api/adwords/cm/v201809";>true
> </targetGoogleSearch>
> <targetSearchNetwork
> xmlns="https://adwords.google.com/api/adwords/cm/v201809";>false
> </targetSearchNetwork>
> <targetContentNetwork
> xmlns="https://adwords.google.com/api/adwords/cm/v201809";>false
> </targetContentNetwork>
> <targetPartnerSearchNetwork
> xmlns="https://adwords.google.com/api/adwords/cm/v201809";>false
> </targetPartnerSearchNetwork>
> </networkSetting>
> </searchParameters>
> <ideaType>KEYWORD</ideaType>
> <requestType>IDEAS</requestType>
> <requestedAttributeTypes>KEYWORD_TEXT</requestedAttributeTypes>
> <requestedAttributeTypes>SEARCH_VOLUME</requestedAttributeTypes>
> <requestedAttributeTypes>AVERAGE_CPC</requestedAttributeTypes>
> <requestedAttributeTypes>COMPETITION</requestedAttributeTypes>
>
> <requestedAttributeTypes>CATEGORY_PRODUCTS_AND_SERVICES</requestedAttributeTypes>
> <paging>
> <startIndex
> xmlns="https://adwords.google.com/api/adwords/cm/v201809";>0
> </startIndex>
> <numberResults
> xmlns="https://adwords.google.com/api/adwords/cm/v201809";>500
> </numberResults>
> </paging>
> </selector>
> </get>
> </s:Body>
> </s:Envelope>
>
>
>
>
> Response:
>
> <soap:Envelope
>     xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/";>
>     <soap:Header>
>         <ResponseHeader
>             xmlns:ns2="https://adwords.google.com/api/adwords/cm/v201809";
>             xmlns="https://adwords.google.com/api/adwords/o/v201809";>
>             <ns2:requestId>000584617ed5e83c0ab46599d9071107</ns2:requestId>
>             <ns2:serviceName>TargetingIdeaService</ns2:serviceName>
>             <ns2:methodName>get</ns2:methodName>
>             <ns2:operations>1</ns2:operations>
>             <ns2:responseTime>59</ns2:responseTime>
>         </ResponseHeader>
>     </soap:Header>
>     <soap:Body>
>         <soap:Fault>
>             <faultcode>soap:Server</faultcode>
>             <faultstring>[AuthorizationError.USER_PERMISSION_DENIED @ ;
> trigger:'&lt;null&gt;']</faultstring>
>             <detail>
>                 <ApiExceptionFault
>                     xmlns="
> https://adwords.google.com/api/adwords/o/v201809";
>                     xmlns:ns2="
> https://adwords.google.com/api/adwords/cm/v201809";>
>
> <ns2:message>[AuthorizationError.USER_PERMISSION_DENIED @ ;
> trigger:'&lt;null&gt;']</ns2:message>
>
> <ns2:ApplicationException.Type>ApiException</ns2:ApplicationException.Type>
>                     <ns2:errors
>                         xmlns:xsi="
> http://www.w3.org/2001/XMLSchema-instance";
> xsi:type="ns2:AuthorizationError">
>                         <ns2:fieldPath></ns2:fieldPath>
>                         <ns2:trigger>&lt;null&gt;</ns2:trigger>
>
> <ns2:errorString>AuthorizationError.USER_PERMISSION_DENIED</ns2:errorString>
>
> <ns2:ApiError.Type>AuthorizationError</ns2:ApiError.Type>
>                         <ns2:reason>USER_PERMISSION_DENIED</ns2:reason>
>                     </ns2:errors>
>                 </ApiExceptionFault>
>             </detail>
>         </soap:Fault>
>     </soap:Body>
> </soap:Envelope>
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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].
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/CAGrLDUoQoes6oES6LXwni35ukdGtg4Lyp7EwfU8PphWubnqa%2Bg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
  • Re: Reg... ServiceNow Test Account
    • RE... googleadsapi-forumadvisor via AdWords API and Google Ads API Forum
    • Re... servicenowta
      • ... googleadsapi-forumadvisor via AdWords API and Google Ads API Forum
        • ... ServiceNow Test Account

Reply via email to