Hi, Details of AdWords account:
Email Id: serviceno...@position2.com CID: 540-621-8576 If it is possible shall we have a screen sharing session to figure out the issue On Tuesday, March 19, 2019 at 3:46:35 PM UTC+5:30, ServiceNow Test Account 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">xxxxxxxxxx > </clientCustomerId> > <developerToken > xmlns="https://adwords.google.com/api/adwords/cm/v201809">xxxxxxxxxxxxxxxx > </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:'<null>']</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:'<null>']</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><null></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 adwords-api@googlegroups.com To unsubscribe from this group, send email to adwords-api+unsubscr...@googlegroups.com 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 adwords-api+unsubscr...@googlegroups.com. 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/2e78194f-7c4a-4984-a3b1-51c0ab12eb66%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.