Google AdWords connect to MCC account and pull the data using API

180 views
Skip to first unread message

Bhanushankar J

unread,
Jan 20, 2020, 12:20:13 AM1/20/20
to AdWords API and Google Ads API Forum
Hello There,
I would like to have help on Google Adwords API or Ads API.
  • Here is the procedure that I want to follow 
    • Using gmail username and password user logging using my web app
    • Using that auth I would like to connect user with their MCC account which is belongs to the gmail account though which user has logged in
    • Do operation for ads management 
    • Get reports etc

  1. I am using this lib + php (https://www.googleapis.com/auth/adwords)
  2. And this is the scope for authentication : https://www.googleapis.com/auth/adwords 
  3. I am also having developer token but I can't able to bring the customer id of logged in user 
  4. It always return us customer id of our developer token account 
  5. so I am stuck and it would be great if i will get help for the next procedures or flow
It would be great if anyone can help here or any alternative way to move ahead.

Google Ads API Forum Advisor Prod

unread,
Jan 21, 2020, 3:19:55 PM1/21/20
to bhanus...@moontechnolabs.com, adwor...@googlegroups.com

Hi Bhanushankar,

Once you create your credentials from the MCC level, you should specify a client account in your clientCustomerId for your adsapi_php.ini to run API calls and reports. Let me know if you face any issues.

Regards,
Anthony
Google Ads API Team



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