BillingSetup: Resource Not Found

70 views
Skip to first unread message

FW API

unread,
Oct 25, 2021, 9:19:35 AM10/25/21
to AdWords API and Google Ads API Forum
Hello.

I'm trying to create an Account Budget. I first want to retrieve existing billing_setups:

> query for account 2306816448: select billing_setup.resource_name from billing_setup
> SUCCESS REQUEST SUMMARY. Method: google.ads.googleads.v8.services.GoogleAdsService/SearchStream, Endpoint: googleads.googleapis.com:443, CustomerID: 2306816448, RequestID: xyU3gGC5ktLuyKqVJSqX8Q, ResponseCode: OK, Fault: null.

This gives me one resource_name: customers/2306816448/billingSetups/6659245698

I create an account_budget using that id, and get "Resource Not Found".

Which is weird, because I just retrieved that resource.

What happens here?

________________________________________________________________

Request
-------
MethodName: google.ads.googleads.v8.services.AccountBudgetProposalService/MutateAccountBudgetProposal
Headers: {developer-token=REDACTED, login-customer-id=6231667853, x-goog-api-client=gl-java/15.0.1 gapic/ gax/1.65.1 grpc/1.37.0}
Body: customer_id: "2306816448"
operation {
  create {
    proposal_type: CREATE
    proposed_end_time_type: FOREVER
    proposed_spending_limit_type: INFINITE
    billing_setup: "customers/2306816448/billingSetups/6659245698"
    proposed_name: "hierNameEinf\303\274gen - 25. 10. 2021"
    proposed_start_date_time: "2021-10-25 15:25:13"
  }
}


Response
--------
Headers: Metadata(content-type=application/grpc,request-id=IwveQaMqWeBYryoEmsJa_A,date=Mon, 25 Oct 2021 13:16:41 GMT,alt-svc=h3=":443"; ma=2592000,h3-29=":443"; ma=2592000,h3-Q050=":443"; ma=2592000,h3-Q046=":443"; ma=2592000,h3-Q043=":443"; ma=2592000)
Body: null
Failure message: errors {
  error_code {
    mutate_error: RESOURCE_NOT_FOUND
  }
  message: "Resource was not found."
  location {
    field_path_elements {
      field_name: "operation"
    }
    field_path_elements {
      field_name: "create"
    }
    field_path_elements {
      field_name: "billing_setup"
    }
  }
}
request_id: "IwveQaMqWeBYryoEmsJa_A"

Status: Status{code=INVALID_ARGUMENT, description=Request contains an invalid argument., cause=null}.

Google Ads API Forum Advisor

unread,
Oct 25, 2021, 10:01:56 PM10/25/21
to api.fw...@gmail.com, adwor...@googlegroups.com
Hi,

Thank you for posting your concern.

I would like to inform you first that I am going to delete your initial post as it contains generated logs on your end. I will just paste here the context of your concern and the generated API logs with redacted fields, and you can see it below.

To further investigate, could you provide the complete request and response logs with request ID and request header generated on your end for retrieving the billing setup? 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.

Also, remember to use a billing setup with a payments account where you have write access. 


I'm trying to create an Account Budget. I first want to retrieve existing billing_setups:

> query for account **********: select billing_setup.resource_name from billing_setup
> SUCCESS REQUEST SUMMARY. Method: google.ads.googleads.v8.services.GoogleAdsService/SearchStream, Endpoint: googleads.googleapis.com:443, CustomerID: **********, RequestID: xyU3gGC5ktLuyKqVJSqX8Q, ResponseCode: OK, Fault: null.

This gives me one resource_name: customers/**********/billingSetups/**********


I create an account_budget using that id, and get "Resource Not Found".

Which is weird, because I just retrieved that resource.

What happens here?

________________________________________________________________
Request
-------
MethodName: google.ads.googleads.v8.services.AccountBudgetProposalService/MutateAccountBudgetProposal
Endpoint: googleads.googleapis.com:443
Headers: {developer-token=REDACTED, login-customer-id=**********, x-goog-api-client=gl-java/15.0.1 gapic/ gax/1.65.1 grpc/1.37.0}
Body: customer_id: "**********"

operation {
  create {
    proposal_type: CREATE
    proposed_end_time_type: FOREVER
    proposed_spending_limit_type: INFINITE
    billing_setup: "customers/**********/billingSetups/**********"

    proposed_name: "hierNameEinf\303\274gen - 25. 10. 2021"
    proposed_start_date_time: "2021-10-25 15:25:13"
  }
}


Response
--------
Headers: Metadata(content-type=application/grpc,request-id=IwveQaMqWeBYryoEmsJa_A,date=Mon, 25 Oct 2021 13:16:41 GMT,alt-svc=h3=":443"; ma=2592000,h3-29=":443"; ma=2592000,h3-Q050=":443"; ma=2592000,h3-Q046=":443"; ma=2592000,h3-Q043=":443"; ma=2592000)
Body: null
Failure message: errors {
  error_code {
    mutate_error: RESOURCE_NOT_FOUND
  }
  message: "Resource was not found."
  location {
    field_path_elements {
      field_name: "operation"
    }
    field_path_elements {
      field_name: "create"
    }
    field_path_elements {
      field_name: "billing_setup"
    }
  }
}
request_id: "IwveQaMqWeBYryoEmsJa_A"

Status: Status{code=INVALID_ARGUMENT, description=Request contains an invalid argument., cause=null}.
"

Regards,
Google Logo
Ernie John Blanca Tacata
Google Ads API Team
 


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