To whom it may concern
Hello. I have a question for google API usage. It will be appreciate if you make me clear of this.
1. Customer ID
6820470188
2. Currently using for getting budgets
SELECT
account_budget_proposal.id,
account_budget_proposal.resource_name,
account_budget_proposal.proposal_type,
account_budget_proposal.status,
account_budget_proposal.approved_spending_limit_micros,
account_budget_proposal.proposed_spending_limit_micros,
account_budget_proposal.creation_date_time,
account_budget_proposal.approval_date_time,
account_budget_proposal.approved_start_date_time,
account_budget_proposal.approved_end_date_time,
account_budget_proposal.approved_end_time_type,
account_budget_proposal.approved_spending_limit_type,
account_budget_proposal.proposed_start_date_time,
account_budget_proposal.proposed_end_date_time,
account_budget_proposal.proposed_end_time_type,
account_budget_proposal.proposed_spending_limit_type
FROM account_budget_proposal
WHERE {Where clauses}
3. Reponse
Array
(
[0] => Array
(
[id] => 604370333
[name] => ..
[resourceName] => customers/6820470188/accountBudgets/604370333
[status] => APPROVED
[adjustedSpendingLimitMicros] => 118782258
[adjustedSpendingLimitType] => UNSPECIFIED
[totalAdjustmentsMicros] => 1682258
[approvedSpendingLimitMicros] => 117100000
[approvedSpendingLimitType] => UNSPECIFIED
[approvedStartDateTime] => 2019-12-24 18:08:15
[approvedEndDateTime] =>
[approvedEndTimeType] => FOREVER
[proposedStartDateTime] => 2019-12-24 18:08:15
[proposedEndDateTime] =>
[proposedEndTimeType] => FOREVER
[billingSetupId] => 604233976
[billingSetupStatus] => CANCELLED
...
)
[1] => Array
(
[id] => 427473773
[name] => ...
[resourceName] => customers/6820470188/accountBudgets/427473773
[status] => APPROVED
[adjustedSpendingLimitMicros] => 25004238
[adjustedSpendingLimitType] => UNSPECIFIED
[totalAdjustmentsMicros] => 4238
[approvedSpendingLimitMicros] => 0
[approvedSpendingLimitType] => UNSPECIFIED
[approvedStartDateTime] =>
[approvedEndDateTime] =>
[approvedEndTimeType] => UNSPECIFIED
[proposedStartDateTime] => 2017-12-15 15:40:09
[proposedEndDateTime] =>
[proposedEndTimeType] => FOREVER
[billingSetupId] => 427414629
[billingSetupStatus] => CANCELLED
...
)
)
4. Question
The ID, 427473773, is not valid status (expired as I know). But I don't know how to distinguish which one is expired with the response. Please let me know the way to do it.
Best regards,
Hwan Sang Cho