I try to create campaign with GoogleAdsService.Mutate and mutations like these: [ { "Operation": { "CampaignBudgetOperation": { "Operation": { "Create": { "resource_name": "customers/809xxxx186/campaignBudgets/-1", "amount_micros": { "value": 100500000 }, "delivery_method": 2, "explicitly_shared": {}, "period": 2, "type": 2 } } } } }, { "Operation": { "LabelOperation": { "Operation": { "Create": { "resource_name": "customers/809xxxx186/labels/-2", "name": { "value": "yyy:zzz:777" }, "text_label": { "background_color": { "value": "#940CFE" }, "description": { "value": "generated label" } } } } } } }, { "Operation": { "CampaignOperation": { "Operation": { "Create": { "resource_name": "customers/809xxxx186/campaigns/-3", "name": { "value": "Test Campaign" }, "status": 3, "advertising_channel_type": 4, "shopping_setting": { "merchant_id": { "value": 121868788 }, "sales_country": { "value": "RU" }, "campaign_priority": {} }, "campaign_budget": { "value": "customers/809xxxx186/campaignBudgets/-1" }, "bidding_strategy_type": 9, "CampaignBiddingStrategy": { "TargetSpend": { "cpc_bid_ceiling_micros": { "value": 10000000 } } } } } } } }, { "Operation": { "CampaignLabelOperation": { "Operation": { "Create": { "campaign": { "value": "customers/809xxxx186/campaigns/-3" }, "label": { "value": "customers/809xxxx186/labels/-2" } } } } } } ]
But it fails with error: { "errors": [ { "error_code": { "ErrorCode": { "RequestError": 11 } }, "message": "Field 'resource_name' cannot be modified by 'CREATE' operation.", "location": { "field_path_elements": [ { "field_name": "mutate_operations", "index": { "value": 1 } }, { "field_name": "label_operation" }, { "field_name": "create" }, { "field_name": "resource_name" } ] } }, { "error_code": { "ErrorCode": { "NewResourceCreationError": 4 } }, "message": "Parent resource with specified temp ID failed validation, so no validation will be done for this child resource.", "trigger": { "Value": { "Int64Value": -2 } }, "location": { "field_path_elements": [ { "field_name": "mutate_operations", "index": { "value": 3 } } ] } } ] } It looks like a bug. -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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/cf53b478-fc58-4338-8eb4-6a7c16da24c2%40googlegroups.com.