How can I get the status of an adAccount?

23 views
Skip to first unread message

Frank S

unread,
Jan 25, 2022, 1:14:11 AM1/25/22
to Google Ads API and AdWords API Forum
Hi all,
Here I have the code to access the Customer

try (CustomerServiceClient customerServiceClient = googleAdsClient.getLatestVersion()
.createCustomerServiceClient()) {
String customerResourceName = ResourceNames.customer(adsAccountId);
Customer customer = customerServiceClient.getCustomer(customerResourceName);
LoggerUtil.info(log,
"adsAccountId:" + " ,its ConversionTrackingId is:" + customer.getConversionTrackingSetting()
.getConversionTrackingId());
return customer;
}

But I want to know whether the adAccount is enabled or disabled to judge the status of the adAccount, so that I can know whether the adAccount can normally create Ads or not.

I searched the developers.google.com/google-ads/api/docs/samples but I cannot get relative codes to solve my problem.

Could anybody know how to deal with it? Thanks a lot !

Google Ads API Forum Advisor

unread,
Jan 25, 2022, 10:21:05 AM1/25/22
to frank...@gmail.com, adwor...@googlegroups.com
Hi Frank,

Thanks for reaching out. Obtaining account status isn't currently supported in the Ads API. However, this has been requested by other users. If this feature becomes supported in a future version of the API, it will be mentioned in the release notes.

Regards,
Matt
Google Ads API Team

Google Logo
Matt
Google Ads API Team
 
 

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