Not able to connect to test account

75 views
Skip to first unread message

Rahul Verma

unread,
Oct 14, 2021, 2:11:36 PM10/14/21
to AdWords API and Google Ads API Forum
Steps i followed
1. Create a new google account.
2. create a google ads manager account.
3. get a google ads developer token for test account.
4. setup cloud console by enabling the google ads api and api credentials(oauth client id and secret) and add same google account as test user in consent screen.
5. create a different google account and create a test manager account and test account in it.
6. setup client library in php and fill up configuration details placed in home directory (developer token of manager account, client id and secret of manager account id cloud console and login customer id of manager account)
7. command php authenticateindesktopapplication.php and get refresh token and then filling it in configuration file.
8. command php getcampaignsphp --customerId xxxxxxxxx (using the customer id of test account) is returning USER PERMISSION DENIED. User doesn't have permission to access customer. Note: If you're accessing a client customer, the manager's customer id must be set in the 'login-customer-id' header.

But i did fill up login customer id in google_ads_php.ini file.

Can anyone please point out what am i m doing wrong here?

Google Ads API Forum Advisor

unread,
Oct 15, 2021, 2:35:37 AM10/15/21
to rv25...@gmail.com, adwor...@googlegroups.com

Hi Rahul,

 

Can you please check if you have properly filled up the login-customer-id without hyphens (-)? You can refer to this link for reference on the Google Ads API's call structure. If you're still encountering any errors, please provide the complete request and response logs with request ID so we can better investigate your concern. You can send these to me via Reply privately to author option or if this option is not available, you may send the details directly to our googleadsa...@google.com alias instead.

 

Regards,

Google Logo
Kevin Gil Soriano
Google Ads API Team
 


ref:_00D1U1174p._5004Q2PJg0c:ref
Reply all
Reply to author
Forward
0 new messages