Yes, my apologies, how we actually determine whether an account is "active" 
is if it has any enabled campaigns. Relevant code below:

private boolean hasActiveCampaign(ManagedCustomer customer) throws IOException {
   if (customer.getTestAccount()) {
      return true;
   }

   CampaignServiceInterface campaignService = 
service(CampaignServiceInterface.class,
      getSession(customer.getCustomerId().toString()));
   Selector selector = new SelectorBuilder()
      .fields(CampaignField.Status)
      .equals(CampaignField.Status, CampaignStatus.ENABLED.getValue())
      .limit(1)
      .build();
   Campaign[] campaigns = campaignService.get(selector).getEntries();
   return campaigns != null && campaigns.length > 0;
}

I will provide the requested customer information to you in a private message 
shortly.
-Jordan

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/9046a59a-b48d-4ca3-acdc-440cd989da0a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
  • ... Etleap Dev
    • ... 'Luis Xander Talag (AdWords API Team)' via AdWords API and Google Ads API Forum
      • ... Etleap Dev
        • ... Etleap Dev

Reply via email to