Create or Fetch Google Ads Account by user Email address (Google Ads API - PHP Library)

288 views
Skip to first unread message

Darshan Kumawat

unread,
Jul 26, 2021, 6:40:26 AM7/26/21
to AdWords API and Google Ads API Forum
Hi Team,
I have integrated google ads API in PHP with my google ads manager (test account).
My Problem is - Whenever new user register to my portal, then I want to find out their Google Ads account using his email address, if his Google Ads account is not exists then I want to create his "Google Ads Account" using Google Ads API from my portal.

I have seen this procedure is implemented in many social media web applications, but i don't know how to implement it.
is any other library required to create or fetch users ads account by email authentication?

I have followed steps from reference link (Google Ads API - PHP Library), But not found any solution.
Kindly let me know, If any solution.

Google Ads API Forum Advisor

unread,
Jul 27, 2021, 6:41:28 AM7/27/21
to mxwebde...@gmail.com, adwor...@googlegroups.com

Hi Darshan,

Thanks for reaching out to us.

You may get the list of users with access to an account so that you can manage the user access. You can refer to this API documentation.

As for your requirement, you can first retrieve your account hierarchy using this guide. For each sub-account returned, you can query a specific user if it exists already in one of the accounts.

If the user does not exist, then it would mean that they do not have an account yet. You can then create a new account as per this API documentation. Later on, once your users have account, then you run the listAccessibleCustomers (or any API service) to look up accounts

In addition, as a Google Ads admin, you can manage user access invitations to a Google Ads account with this guide

Regards,

Google Logo
Yasar Ramjan Makandar
Google Ads API Team
 



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