Hello Takeshi, Thanks for the reply. I suspect the same as well. But I am making the calls based on the account information that is provided by google adwords team after applying for the account set up. So I am not sure where is the issues. I am attaching the API logs as per your message below.
Could you please tell me where I am making wrong? If you want I can email my account information to your email for further investigation (if you give me the email address). Thanks, Bikram. On Wednesday, November 6, 2013 12:25:16 AM UTC-8, Takeshi Hagikura (AdWords API Team) wrote: > > Hi Bikram, > > My first guess is you are making an API call against a client account that > is different from the account you authenticated with using OAuth2. > Can you please share the SOAP request xml (please remove sensitive info > before posting) log and the email you used when you authenticated using > OAuth2? > > Best, > - Takeshi, AdWords API Team > > On Friday, November 1, 2013 8:30:39 AM UTC+9, Bikram Bhuyan wrote: >> >> Hello, >> >> We have a test mcc account and a test customer id. Also we have got the >> pending developer token for our production account. I generated the >> OAuth2ClientId, OAuth2ClientSecret & OAuth2RefreshToken successfully by >> following the steps. Now when I make a the api call to fetch the list of >> campaign associated with my test customer id, I am getting >> "AuthorizationError.USER_PERMISSION_DENIED" error. >> >> Could you please suggest if I am missing any set up process? >> >> If you want I can send you my IDs and token currently I used in the >> application. >> >> Thanks, >> Bikram. >> > -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Also find us on our blog and discussion group: http://googleadsdeveloper.blogspot.com http://groups.google.com/group/adwords-api =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ You received this message because you are subscribed to the Google Groups "AdWords 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 Forum" group. To unsubscribe from this group and stop receiving emails from it, send an email to adwords-api+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
SOAP CALL ----------- host=adwords.google.com,url=/api/adwords/cm/v201309/CampaignService,method=get,operator=None,requestId=0004ea85d032d9900ae66ec500006f9f,serviceName=CampaignService,methodName=get,operations=0,responseTime=86 -----------------BEGIN API CALL--------------------- Request ------- <?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><!--POST /api/adwords/cm/v201309/CampaignService User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; MS Web Services Client Protocol 2.0.50727.5472) Authorization: Bearer ya29.AHES6ZSensoTj0uYMdYblf3NOF04vh5aSNFzZcSc8nnbQTY2WV2TaRk VsDebuggerCausalityData: uIDPo0TPZG9jO1pFlhYUcdEKvzkAAAAAiQYLbXKeSUa6zRK/3dpYAr/X76HJFoVIgdsC6Zyc8q4ACQAA Content-Type: text/xml; charset=utf-8 SOAPAction: "" Host: adwords.google.com Content-Length: 988 Accept-Encoding: gzip Connection: Keep-Alive TimeStamp: Wed, 06 Nov 2013 09:53:22 GMT --><soap:Header><RequestHeader xmlns="https://adwords.google.com/api/adwords/cm/v201309"><developerToken xmlns="https://adwords.google.com/api/adwords/cm/v201309">******</developerToken><clientCustomerId xmlns="https://adwords.google.com/api/adwords/cm/v201309">248-591-9506</clientCustomerId><userAgent xmlns="https://adwords.google.com/api/adwords/cm/v201309">Etrigue Corporation (AwApi-DotNet/16.2.0, Common-Dotnet/1.9.0, .NET CLR/2.0.50727.5472, gzip)</userAgent></RequestHeader></soap:Header><soap:Body><get xmlns="https://adwords.google.com/api/adwords/cm/v201309"><serviceSelector><fields>Id</fields><fields>Name</fields><fields>Status</fields><paging><startIndex>0</startIndex><numberResults>500</numberResults></paging></serviceSelector></get></soap:Body></soap:Envelope> Response -------- <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><!--Content-Encoding: X-Content-Type-Options: nosniff X-Frame-Options: SAMEORIGIN X-XSS-Protection: 1; mode=block Content-Length: 508 Cache-Control: private, max-age=0 Content-Type: text/xml; charset=UTF-8 Date: Wed, 06 Nov 2013 17:52:31 GMT Expires: Wed, 06 Nov 2013 17:52:31 GMT Server: GSE TimeStamp: Wed, 06 Nov 2013 09:53:22 GMT --><soap:Header><ResponseHeader xmlns="https://adwords.google.com/api/adwords/cm/v201309"><requestId>0004ea85d032d9900ae66ec500006f9f</requestId><serviceName>CampaignService</serviceName><methodName>get</methodName><operations>0</operations><responseTime>86</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/cm/v201309"><message>[AuthorizationError.USER_PERMISSION_DENIED @ ; trigger:'<null>']</message><ApplicationException.Type>ApiException</ApplicationException.Type><errors xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="AuthorizationError"><fieldPath></fieldPath><trigger><null></trigger><errorString>AuthorizationError.USER_PERMISSION_DENIED</errorString><ApiError.Type>AuthorizationError</ApiError.Type><reason>USER_PERMISSION_DENIED</reason></errors></ApiExceptionFault></detail></soap:Fault></soap:Body></soap:Envelope> -----------------END API CALL-----------------------