|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.google.api.ads.adwords.v201109.info.InfoSelector
public class InfoSelector
Specifies the type of API usage information to be returned. API
usage information
returned is based on the API usage
type specified. All returned
values are specific to the developer token being used
to call InfoService.get.
For each of the apiUsageType values, other
InfoSelector
fields must also be set as described below:
FREE_USAGE_API_UNITS_PER_MONTH : Returns
the number of allocated
free API units for this entire month. Specify only the apiUsageType
parameter.TOTAL_USAGE_API_UNITS_PER_MONTH : Returns
the total number of allocated API
units for this entire month. Includes both free and paid
API units. Specify only the
apiUsageType parameter.OPERATION_COUNT : Returns the number
of operations recorded over the given
date range. The given dates are inclusive; to get the
operation count for a single day,
supply it as both the start and end date. Specify the
apiUsageType and
dateRange parameters. UNIT_COUNT : Returns the number of API
units recorded.
UNIT_COUNT_FOR_CLIENTS : Returns the
number of API units recorded for a
subset of clients over the given date range. The given
dates are inclusive; to get
the unit count for a single day, supply it as both the
start and end date. Specify the
apiUsageType, dateRange and clientEmails parameters.METHOD_COST : Returns the cost, in API units per
operation, of the given
method on a specific date. Methods default to a cost of
1. Specify the apiUsageType,
dateRange (start date and end date should be the same),
serviceName, methodName,
operator parameters.
| Constructor Summary | |
|---|---|
InfoSelector()
|
|
InfoSelector(String serviceName,
String methodName,
Operator operator,
DateRange dateRange,
String[] clientEmails,
long[] clientCustomerIds,
Boolean includeSubAccounts,
ApiUsageType apiUsageType)
|
|
| Method Summary | |
|---|---|
boolean |
equals(Object obj)
|
ApiUsageType |
getApiUsageType()
Gets the apiUsageType value for this InfoSelector. |
long[] |
getClientCustomerIds()
Gets the clientCustomerIds value for this InfoSelector. |
long |
getClientCustomerIds(int i)
|
String[] |
getClientEmails()
Gets the clientEmails value for this InfoSelector. |
String |
getClientEmails(int i)
|
DateRange |
getDateRange()
Gets the dateRange value for this InfoSelector. |
static org.apache.axis.encoding.Deserializer |
getDeserializer(String mechType,
Class _javaType,
QName _xmlType)
Get Custom Deserializer |
Boolean |
getIncludeSubAccounts()
Gets the includeSubAccounts value for this InfoSelector. |
String |
getMethodName()
Gets the methodName value for this InfoSelector. |
Operator |
getOperator()
Gets the operator value for this InfoSelector. |
static org.apache.axis.encoding.Serializer |
getSerializer(String mechType,
Class _javaType,
QName _xmlType)
Get Custom Serializer |
String |
getServiceName()
Gets the serviceName value for this InfoSelector. |
static org.apache.axis.description.TypeDesc |
getTypeDesc()
Return type metadata object |
int |
hashCode()
|
void |
setApiUsageType(ApiUsageType apiUsageType)
Sets the apiUsageType value for this InfoSelector. |
void |
setClientCustomerIds(int i,
long _value)
|
void |
setClientCustomerIds(long[] clientCustomerIds)
Sets the clientCustomerIds value for this InfoSelector. |
void |
setClientEmails(int i,
String _value)
|
void |
setClientEmails(String[] clientEmails)
Sets the clientEmails value for this InfoSelector. |
void |
setDateRange(DateRange dateRange)
Sets the dateRange value for this InfoSelector. |
void |
setIncludeSubAccounts(Boolean includeSubAccounts)
Sets the includeSubAccounts value for this InfoSelector. |
void |
setMethodName(String methodName)
Sets the methodName value for this InfoSelector. |
void |
setOperator(Operator operator)
Sets the operator value for this InfoSelector. |
void |
setServiceName(String serviceName)
Sets the serviceName value for this InfoSelector. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public InfoSelector()
public InfoSelector(String serviceName,
String methodName,
Operator operator,
DateRange dateRange,
String[] clientEmails,
long[] clientCustomerIds,
Boolean includeSubAccounts,
ApiUsageType apiUsageType)
| Method Detail |
|---|
public String getServiceName()
public void setServiceName(String serviceName)
serviceName - * The name of the service.public String getMethodName()
public void setMethodName(String methodName)
methodName - * The method whose cost has been queried.public Operator getOperator()
public void setOperator(Operator operator)
operator - * Specifies the operator. This is applicable when the method
is a "mutate" method.public DateRange getDateRange()
public void setDateRange(DateRange dateRange)
dateRange - * Date range to get the API usage for. The given dates are inclusive;
to get the usage
information for a single day, supply it as both the
start and end date.public String[] getClientEmails()
public void setClientEmails(String[] clientEmails)
clientEmails - * List of login emails used to identify the clients to retrieve
the API usage for.
If the list is null or empty, return the API usage
for all clients.
NOTE: Only one of clientEmails or clientCustomerIds
may be specified at once.public String getClientEmails(int i)
public void setClientEmails(int i,
String _value)
public long[] getClientCustomerIds()
public void setClientCustomerIds(long[] clientCustomerIds)
clientCustomerIds - * List of login customer IDs used to identify the clients to
retrieve the API usage for.
If the list is null or empty, return the API usage
for all clients.
NOTE: Only one of clientEmails or clientCustomerIds
may be specified at once.public long getClientCustomerIds(int i)
public void setClientCustomerIds(int i,
long _value)
public Boolean getIncludeSubAccounts()
public void setIncludeSubAccounts(Boolean includeSubAccounts)
includeSubAccounts - * If true, include child accounts of the MCC in the search.public ApiUsageType getApiUsageType()
null.public void setApiUsageType(ApiUsageType apiUsageType)
apiUsageType - * The API usage type information that needs to be fetched.
This field is required
and should not be null.public boolean equals(Object obj)
equals in class Objectpublic int hashCode()
hashCode in class Objectpublic static org.apache.axis.description.TypeDesc getTypeDesc()
public static org.apache.axis.encoding.Serializer getSerializer(String mechType,
Class _javaType,
QName _xmlType)
public static org.apache.axis.encoding.Deserializer getDeserializer(String mechType,
Class _javaType,
QName _xmlType)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||