I had changed them but still this occurs: Headers: { "developer-token": "REDACTED", "login-customer-id": "2790970472", "x-goog-api-client": "gl-python/3.11.6 grpc/1.57.0 gax/2.11.1 gccl/22.1.0 pb/4.24.2", "x-goog-request-params": "customer_id=8065644350" } Request: customer_id: "8065644350" operations { create { name: "testing camp-60041" status: PAUSED advertising_channel_type: SEARCH campaign_budget: "customers/8065644350/campaignBudgets/13283649992" target_cpa { target_cpa_micros: 1000000 } } } Response ------- Headers: { "google.ads.googleads.v15.errors.googleadsfailure-bin": "\nd\n\u0003\u0003\u0002\u00123The operation is not allowed for the given context.\"(\u0012\u000e\n\noperations\u0018\u0000\u0012\b\n\u0006create\u0012\f\n\ntarget_cpa\u0012\u0016mhs9oEcOy2U-TjCslh9syA", "grpc-status-details-bin": "\b\u0003\u0012%Request contains an invalid argument.\u001a\u0001\nDtype.googleapis.com/google.ads.googleads.v15.errors.GoogleAdsFailure\u0012~\nd\n\u0003\u0003\u0002\u00123The operation is not allowed for the given context.\"(\u0012\u000e\n\noperations\u0018\u0000\u0012\b\n\u0006create\u0012\f\n\ntarget_cpa\u0012\u0016mhs9oEcOy2U-TjCslh9syA", "request-id": "mhs9oEcOy2U-TjCslh9syA" } Fault: errors { error_code { context_error: OPERATION_NOT_PERMITTED_FOR_CONTEXT } message: "The operation is not allowed for the given context." location { field_path_elements { field_name: "operations" index: 0 } field_path_elements { field_name: "create" } field_path_elements { field_name: "target_cpa" } } } request_id: "mhs9oEcOy2U-TjCslh9syA"
On Wednesday, January 10, 2024 at 2:51:08 PM UTC+5:30 Google Ads API Forum Advisor wrote: > Hi, > > Thank you for reaching out to the Google Ads API support team. > > By reviewing your query, I understand that you encountered an error > when trying to set up the target cpa micros. Kindly note that the > DUPLICATE_NAME > <https://developers.google.com/google-ads/api/reference/rpc/v15/CampaignBudgetErrorEnum.CampaignBudgetError#duplicate_name> > > error means, A campaign budget with this name already exists. I suggest you > to modify the name of the campaign budget to a unique one that isn't > already in use within your Google Ads account. Once you've chosen a unique > name, update the name field in your request with the new name and resubmit > the request. Let me know how it goes after trying the provided suggestion. > > > This message is in relation to case "ref:!00D1U01174p.!5004Q02rVlSi:ref" > > Thanks, > > [image: Google Logo] Google Ads API Team > > > -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Also find us on our blog: https://googleadsdeveloper.blogspot.com/ =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ You received this message because you are subscribed to the Google Groups "AdWords API and Google Ads API Forum" group. To post to this group, send email to adwords-api@googlegroups.com To unsubscribe from this group, send email to adwords-api+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/adwords-api?hl=en --- You received this message because you are subscribed to the Google Groups "Google Ads API and AdWords API Forum" group. To unsubscribe from this group and stop receiving emails from it, send an email to adwords-api+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-api/b6d3c642-6c58-4360-9678-c48b5c6bdeccn%40googlegroups.com.