get an error "AuthorizationError.USER_PERMISSION_DENIED @ ; trigger:'<null>'" while try to fetch campaigns

179 views
Skip to first unread message

Aniruddha Ghosh

unread,
Jan 7, 2016, 9:03:15 AM1/7/16
to AdWords API Forum

  Hi mate,
 
     I'm using this adwords app for the first time. I have configured everything as per documentation but while i tried to fetch the campaigns from the MCC account (live acount. i'm not
     using any sandbox mode) , i got the error like  following :

     Fatal error: Uncaught SoapFault exception: [soap:Server] [AuthorizationError.USER_PERMISSION_DENIED @ ; trigger:'<null>'] in C:\xampp\htdocs\ganalytics\Google-
      Adwords-
      API\src\Google\Api\Ads\Common\Lib\AdsSoapClient.php:216 Stack trace: #0 C:\xampp\htdocs\ganalytics\Google-Adwords-API\src\Google\Api\Ads\Common
      \Lib\AdsSoapClient.php(216): SoapClient->__soapCall('mutate', Array, NULL, Array, Array) #1 C:\xampp\htdocs\ganalytics\Google-Adwords-API\src\Google\Api\Ads\AdWords
      \v201509\CampaignService.php(7933): AdsSoapClient->__soapCall('mutate', Array) #2 C:\xampp\htdocs\ganalytics\Google-Adwords-API\src\adwords.php(72):
       CampaignService->mutate(Array) #3 {main} thrown in C:\xampp\htdocs\ganalytics\Google-Adwords-API\src\Google\Api\Ads\Common\Lib\AdsSoapClient.php on line
     216

   Please see the attached screen shots and let me know whether i'have done anything wrong? and what should i do under this situation?

  Aniruddha


adwords_api.jpg
adwords_error.jpg
auth.ini.jpg

Anthony Madrigal

unread,
Jan 7, 2016, 4:37:12 PM1/7/16
to AdWords API Forum
Hi Aniruddha,

It seems you are using your manager client account Id in your auth.ini file. When using any service other than CustomerService or ManagedCustomerService, it will not work. You will need to modify your auth.ini file to be one of your client customer Ids.

If this does not work or if you are already using a client customer Id, please reply privately to author your SOAP request and response.

Regards,
Anthony
AdWords API Team

Bhumin B

unread,
May 12, 2016, 9:05:27 AM5/12/16
to AdWords API Forum
Hi Anthony Madrigal,
Same issued i am facing please give me your contact to send my soap file  privatly

Anthony Madrigal

unread,
May 12, 2016, 9:14:18 AM5/12/16
to AdWords API Forum
Hi Bhumin,

I will be glad to take a look at your SOAP logs. All you need to do is click the drop down next to the reply button and select Reply privately to author. This will send me the SOAP logs privately.

Thanks,
Anthony
AdWords API Team
Reply all
Reply to author
Forward
0 new messages