budgets API question

50 views
Skip to first unread message

Hwansang Cho

unread,
May 1, 2022, 10:59:20 PM5/1/22
to Google Ads API and AdWords API Forum
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

Google Ads API Forum Advisor

unread,
May 3, 2022, 12:50:56 AM5/3/22
to hwan...@gmail.com, adwor...@googlegroups.com
Hi Hwan Sang Cho,

Thank you for posting your concern.

To take a closer look at the issue and before answering the question, could you provide the complete request and response logs with request ID and request header generated on your end where we can see the error related with the expiration and leading to your question? With the help of this information, we can answer your question and address the concern accordingly.

You can provide it via Reply privately to author option. If this option is not available, then send it instead on this email address googleadsa...@google.com.

Regards,
Google Logo
Ernie John
Google Ads API Team
 


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