HI.

I have tried various ways to set the language of the campaign to Japanese, 
but I just can't succeed.

When I send the following request, I get the error. How can I set the 
language?



-request content-

# campaign_budget_operation
create {
  resource_name: "customers/9007301272/campaignBudgets/-1"
  name: "2021-08-30"
  amount_micros: 5000000000
}

# campaign_operation
create {
  resource_name: "customers/9007301272/campaigns/-2"
  status: ENABLED
  advertising_channel_type: SEARCH
  network_settings {
    target_google_search: true
    target_search_network: false
    target_content_network: false
    target_partner_search_network: false
  }
  target_spend {
    cpc_bid_ceiling_micros: 200000000
  }
  name: "2021-08-30_test"
  campaign_budget: "customers/9007301272/campaignBudgets/-1"
}

#campaign_criterion_operation
create {
  resource_name: "customers/9007301272/campaignCriteria/-2~-3"
  language {
    language_constant: "languageConstants/1005"
  }
}



-error content-


Request made: ClientCustomerId: 9007301272, Host: googleads.googleapis.com, 
Method: /google.ads.googleads.v8.services.GoogleAdsService/Mutate, 
RequestId: KYIigy_qmr7nUSti-6FV3A, IsFault: True, FaultMessage: The field's 
contents don't match another field that represents the same data.
(<_InactiveRpcError of RPC that terminated with:
        status = StatusCode.INVALID_ARGUMENT
        details = "Request contains an invalid argument."
        debug_error_string = 
"{"created":"@1630302826.032834000","description":"Error received from peer 
ipv4:216.58.220.106:443","file":"src/core/lib/surface/call.cc","file_line":1068,"grpc_message":"Request
 
contains an invalid argument.","grpc_status":3}"
>, <_InactiveRpcError of RPC that terminated with:
        status = StatusCode.INVALID_ARGUMENT
        details = "Request contains an invalid argument."
        debug_error_string = 
"{"created":"@1630302826.032834000","description":"Error received from peer 
ipv4:216.58.220.106:443","file":"src/core/lib/surface/call.cc","file_line":1068,"grpc_message":"Request
 
contains an invalid argument.","grpc_status":3}"
>, errors {
  error_code {
    mutate_error: INCONSISTENT_FIELD_VALUES
  }
  message: "The field\'s contents don\'t match another field that 
represents the same data."
  location {
    field_path_elements {
      field_name: "mutate_operations"
      index: 2
    }
    field_path_elements {
      field_name: "campaign_criterion_operation"
    }
    field_path_elements {
      field_name: "create"
    }
    field_path_elements {
      field_name: "resource_name"
    }
  }
}
request_id: "KYIigy_qmr7nUSti-6FV3A"
, 'KYIigy_qmr7nUSti-6FV3A')

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 
"AdWords API and Google Ads 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/84d4aa67-4072-4baa-a77a-2f60cb090bcen%40googlegroups.com.

Reply via email to