Filter Accounts on Account Selection Screen to show only those accounts which are valid Google Ads Accounts

57 views
Skip to first unread message

Muhammad Adil

unread,
May 25, 2022, 10:43:59 AM5/25/22
to Google Ads API and AdWords API Forum
Hello, 

Is it possible to filter the accounts in the account selection screen, so that the user can only see and select from accounts that are valid Google Ads Accounts? 

The context for this is we have an application where the users are able to link their Google Ads accounts and then view various reports. But sometimes, people select accounts that cause the "The customer can't be used because it isn't enabled"   error to appear. We understand that this is happening because of faulty accounts, so we want to filter out such accounts hence eliminating the possibility of users selecting them. Does Google provide any method for us to achieve this goal??

Regards,
Adil

Google Ads API Forum Advisor

unread,
May 26, 2022, 11:14:58 AM5/26/22
to mohamma...@gmail.com, adwor...@googlegroups.com
Hi Adil,

Thank you for raising this concern to the Google Ads API Forum. In Google Ads API's perspective you can use customer_client and include the customer_client.status and filter by your preferred enum value which has corresponding status. With the help of this suggestion you can determine in advance the account is cancelled and opt it out in the API request. I hope it helps.

Best regards,
Google Logo
Jinky
Google Ads API Team
 


ref:_00D1U1174p._5004Q2bDP9c:ref

Muhammad Adil

unread,
May 26, 2022, 2:43:08 PM5/26/22
to Google Ads API and AdWords API Forum
Hey there, 

Thank you for the reply. 

I was asking this question with respect to this Account Selection Screen (image attached).

Let's say I want to filter out the accounts here based on their statuses. Does Google provide a way to implement this filtering? How can I make sure that the user only sees the correct options here which will not lead to an error? 

Regards,
Adil



ad.png

Google Ads API Forum Advisor

unread,
May 27, 2022, 11:57:55 AM5/27/22
to mohamma...@gmail.com, adwor...@googlegroups.com
Hi Muhammad,

If you are referring to the screen that presents selectable Ads accounts after clicking sign in from https://ads.google.com/, this is not possible in the Ads API, and as far I'm aware, it is not a possible using the Google Ads UI. However, I recommend checking with product support to see if it can be done through the web interface.

Regards,
Matt
Google Ads API Team

Google Logo
Matt
Google Ads API Team
 


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