I need to know the field name for budget amount

44 views
Skip to first unread message

David Scott

unread,
Jul 18, 2020, 9:03:13 AM7/18/20
to AdWords API and Google Ads API Forum
Here is my code. When I have    campaign_budget.amount in the query the results say:  "message": "Unrecognized field in the query: 'campaign_budget.amount'."
I also tried Amount. The documentation says the field name is Amount but because I need to know what the budget amount is, I can't just ignore that it isn't available. The query works just fine if I leave out that line. What is the field name?


  curl -X POST \\
  -H 'Authorization: Bearer $access_token' \\
  -H 'Content-Type: application/json' \\
  -H 'developer-token: $DEVELOPER_TOKEN' \\
  -H 'login-customer-id: $MANAGER_CUSTOMER_ID' \\
  -d '{

"query": 

"SELECT
  campaign_budget.amount,
  campaign_budget.reference_count,
  campaign_budget.delivery_method,
  campaign_budget.status

FROM campaign_budget WHERE campaign_budget.id = $Budget"

}

Google Ads API Forum Advisor Prod

unread,
Jul 20, 2020, 10:17:25 AM7/20/20
to goo...@secondsiteadvertising.com, adwor...@googlegroups.com
Hi David,

Thank you for reaching out to us. I see that you're encountering an unrecognized field error for campaign_budget.amount. Could you try the query "campaign_budget.amount_micros" as listed here? Let me know if you're still running into the issue.

Thank you,
Bryan, Google Ads API Team 

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