Budget Status is always unspecified

38 views
Skip to first unread message

Estanislao Ledesma

unread,
Sep 27, 2021, 11:39:32 AM9/27/21
to AdWords API and Google Ads API Forum
Hi,
I'm trying to create a budget with this request:
operations {
  create {
    status: ENABLED
    delivery_method: STANDARD
    name: "Interplanetary Cruise Budget #2021-09-27T12:37:16.112-0300"
    amount_micros: 500000
    explicitly_shared: false
  }
}
partial_failure: true
response_content_type: MUTABLE_RESOURCE

And I get this response:
Body: results {
  resource_name: "customers/9938855968/campaignBudgets/9553067006"
  campaign_budget {
    resource_name: "customers/9938855968/campaignBudgets/9553067006"
    delivery_method: STANDARD
    period: DAILY
    type: STANDARD
    id: 9553067006
    name: "Interplanetary Cruise Budget #2021-09-27T12:37:16.112-0300"
    amount_micros: 500000
    explicitly_shared: false
  }

As you can see, the response has no field for status, even though in th ui the budget is enabled. How could I get it in the response?
Thanks,
Estanislao

Google Ads API Forum Advisor

unread,
Sep 29, 2021, 3:00:23 AM9/29/21
to estanisla...@gmail.com, adwor...@googlegroups.com
Hi Estanislao,

For our team to take a closer look, could you also share the complete request and response logs, with the request-id? You may then send the requested information via the Reply privately to author option. If this option is not available, you may send the details directly to our googleadsa...@google.com alias instead.

Best regards,

Google Logo
Peter Laurence Napa Oliquino
Google Ads API Team
 


ref:_00D1U1174p._5004Q2OUTP2:ref

Estanislao Ledesma

unread,
Sep 29, 2021, 9:48:49 AM9/29/21
to AdWords API and Google Ads API Forum
Already sent them.

Google Ads API Forum Advisor

unread,
Sep 30, 2021, 3:18:25 AM9/30/21
to estanisla...@gmail.com, adwor...@googlegroups.com
Hi Estanislao,

This is to confirm that I have received the logs and have already performed my investigation.

Upon checking, the status attribute is output only, and with this, it would be ignored when passed in any mutate requests. As you may also see in this example for creating a campaign budget, this attribute is also not included. In addition, since the said attribute is output only, specifying the response_content_type: MUTABLE_RESOURCE would still not return this in a mutate request as the attribute is not a mutable one.

If you wish to query all the attributes of your campaign's budget, you may use the campaign_budget view instead. I hope this helps.

Estanislao Ledesma

unread,
Oct 1, 2021, 7:54:51 AM10/1/21
to AdWords API and Google Ads API Forum
Hi Peter,
Thanks for the clarification! Will try that.
Regards,
Estanislao

Reply all
Reply to author
Forward
0 new messages