{
"customer": {
"resourceName": "customers/8663393180",
"descriptiveName": "Test Manager"
},
"customerClient": {
"resourceName": "customers/8663393180/customerClients/9045782450",
"clientCustomer": "customers/9045782450",
"hidden": false,
"level": "1",
"timeZone": "Asia/Calcutta",
"testAccount": true,
"manager": false,
"descriptiveName": "Test Account 2",
"currencyCode": "INR",
"id": "9045782450"
}
},
{
"customer": {
"resourceName": "customers/8663393180",
"descriptiveName": "Test Manager"
},
"customerClient": {
"resourceName": "customers/8663393180/customerClients/8663393180",
"clientCustomer": "customers/8663393180",
"hidden": false,
"level": "0",
"timeZone": "Asia/Calcutta",
"testAccount": true,
"manager": true,
"descriptiveName": "Test Manager",
"currencyCode": "INR",
"id": "8663393180"
}
} consider these two cases. in them 8663393180, is the manager or customer 
and
9045782450 is the customerClient . 
https://developers.google.com/google-ads/api/samples/add-performance-max-campaign
 
now my question is in the link provided above contains code having class 
AddPerformanceMaxCampaign
.that is used to create a perfomance max campaign and in the customer id we 
fill the customer client id to create campaign for it. 

private const CUSTOMER_ID = 9045782450;
if here we fill 9045782450, then it will work. but if we fill the id of 
manager here likeprivate const CUSTOMER_ID = 9045782450;

private const CUSTOMER_ID = 8663393180;
in this case, i get an error as shown below : 
{
"errors": {
"status_code": 500,
"message": "TECHNICAL_ASSET_ERROR",
"error_details": "{\n \"message\": \"Request contains an invalid 
argument.\",\n \"code\": 3,\n \"status\": \"INVALID_ARGUMENT\",\n 
\"details\": [\n {\n \"@type\": 
\"type.googleapis.com\\/google.ads.googleads.v17.errors.GoogleAdsFailure\",\n 
\"errors\": [\n {\n \"errorCode\": {\n \"contextError\": 
\"OPERATION_NOT_PERMITTED_FOR_CONTEXT\"\n },\n \"message\": \"The operation 
is not allowed for the given context.\",\n \"location\": {\n 
\"fieldPathElements\": [\n {\n \"fieldName\": \"mutate_operations\",\n 
\"index\": 0\n },\n {\n \"fieldName\": \"campaign_budget_operation\"\n }\n 
]\n }\n },\n {\n \"errorCode\": {\n \"mutateError\": 
\"RESOURCE_NOT_FOUND\"\n },\n \"message\": \"Resource was not found.\",\n 
\"trigger\": {\n \"int64Value\": \"-1\"\n },\n \"location\": {\n 
\"fieldPathElements\": [\n {\n \"fieldName\": \"mutate_operations\",\n 
\"index\": 1\n },\n {\n \"fieldName\": \"campaign_operation\"\n },\n {\n 
\"fieldName\": \"create\"\n },\n {\n \"fieldName\": \"campaign_budget\"\n 
}\n ]\n }\n },\n {\n \"errorCode\": {\n \"mutateError\": 
\"RESOURCE_NOT_FOUND\"\n },\n \"message\": \"Resource was not found.\",\n 
\"trigger\": {\n \"int64Value\": \"-2\"\n },\n \"location\": {\n 
\"fieldPathElements\": [\n {\n \"fieldName\": \"mutate_operations\",\n 
\"index\": 2\n },\n {\n \"fieldName\": \"asset_group_operation\"\n },\n {\n 
\"fieldName\": \"create\"\n },\n {\n \"fieldName\": \"campaign\"\n }\n ]\n 
}\n },\n {\n \"errorCode\": {\n \"mutateError\": \"RESOURCE_NOT_FOUND\"\n 
},\n \"message\": \"Resource was not found.\",\n \"trigger\": {\n 
\"int64Value\": \"-3\"\n },\n \"location\": {\n \"fieldPathElements\": [\n 
{\n \"fieldName\": \"mutate_operations\",\n \"index\": 3\n },\n {\n 
\"fieldName\": \"asset_group_asset_operation\"\n },\n {\n \"fieldName\": 
\"create\"\n },\n {\n \"fieldName\": \"asset_group\"\n }\n ]\n }\n },\n {\n 
\"errorCode\": {\n \"mutateError\": \"RESOURCE_NOT_FOUND\"\n },\n 
\"message\": \"Resource was not found.\",\n \"trigger\": {\n 
\"int64Value\": \"-3\"\n },\n \"location\": {\n \"fieldPathElements\": [\n 
{\n \"fieldName\": \"mutate_operations\",\n \"index\": 4\n },\n {\n 
\"fieldName\": \"asset_group_asset_operation\"\n },\n {\n \"fieldName\": 
\"create\"\n },\n {\n \"fieldName\": \"asset_group\"\n }\n ]\n }\n },\n {\n 
\"errorCode\": {\n \"mutateError\": \"RESOURCE_NOT_FOUND\"\n },\n 
\"message\": \"Resource was not found.\",\n \"trigger\": {\n 
\"int64Value\": \"-3\"\n },\n \"location\": {\n \"fieldPathElements\": [\n 
{\n \"fieldName\": \"mutate_operations\",\n \"index\": 5\n },\n {\n 
\"fieldName\": \"asset_group_asset_operation\"\n },\n {\n \"fieldName\": 
\"create\"\n },\n {\n \"fieldName\": \"asset_group\"\n }\n ]\n }\n },\n {\n 
\"errorCode\": {\n \"mutateError\": \"RESOURCE_NOT_FOUND\"\n },\n 
\"message\": \"Resource was not found.\",\n \"trigger\": {\n 
\"int64Value\": \"-3\"\n },\n \"location\": {\n \"fieldPathElements\": [\n 
{\n \"fieldName\": \"mutate_operations\",\n \"index\": 6\n },\n {\n 
\"fieldName\": \"asset_group_asset_operation\"\n },\n {\n \"fieldName\": 
\"create\"\n },\n {\n \"fieldName\": \"asset_group\"\n }\n ]\n }\n },\n {\n 
\"errorCode\": {\n \"mutateError\": \"RESOURCE_NOT_FOUND\"\n },\n 
\"message\": \"Resource was not found.\",\n \"trigger\": {\n 
\"int64Value\": \"-3\"\n },\n \"location\": {\n \"fieldPathElements\": [\n 
{\n \"fieldName\": \"mutate_operations\",\n \"index\": 7\n },\n {\n 
\"fieldName\": \"asset_group_asset_operation\"\n },\n {\n \"fieldName\": 
\"create\"\n },\n {\n \"fieldName\": \"asset_group\"\n }\n ]\n }\n },\n {\n 
\"errorCode\": {\n \"mutateError\": \"RESOURCE_NOT_FOUND\"\n },\n 
\"message\": \"Resource was not found.\",\n \"trigger\": {\n 
\"int64Value\": \"-3\"\n },\n \"location\": {\n \"fieldPathElements\": [\n 
{\n \"fieldName\": \"mutate_operations\",\n \"index\": 8\n },\n {\n 
\"fieldName\": \"asset_group_asset_operation\"\n },\n {\n \"fieldName\": 
\"create\"\n },\n {\n \"fieldName\": \"asset_group\"\n }\n ]\n }\n },\n {\n 
\"errorCode\": {\n \"mutateError\": \"RESOURCE_NOT_FOUND\"\n },\n 
\"message\": \"Resource was not found.\",\n \"trigger\": {\n 
\"int64Value\": \"-3\"\n },\n \"location\": {\n \"fieldPathElements\": [\n 
{\n \"fieldName\": \"mutate_operations\",\n \"index\": 9\n },\n {\n 
\"fieldName\": \"asset_group_asset_operation\"\n },\n {\n \"fieldName\": 
\"create\"\n },\n {\n \"fieldName\": \"asset_group\"\n }\n ]\n }\n },\n {\n 
\"errorCode\": {\n \"mutateError\": \"RESOURCE_NOT_FOUND\"\n },\n 
\"message\": \"Resource was not found.\",\n \"trigger\": {\n 
\"int64Value\": \"-3\"\n },\n \"location\": {\n \"fieldPathElements\": [\n 
{\n \"fieldName\": \"mutate_operations\",\n \"index\": 10\n },\n {\n 
\"fieldName\": \"asset_group_asset_operation\"\n },\n {\n \"fieldName\": 
\"create\"\n },\n {\n \"fieldName\": \"asset_group\"\n }\n ]\n }\n },\n {\n 
\"errorCode\": {\n \"mutateError\": \"RESOURCE_NOT_FOUND\"\n },\n 
\"message\": \"Resource was not found.\",\n \"trigger\": {\n 
\"int64Value\": \"-3\"\n },\n \"location\": {\n \"fieldPathElements\": [\n 
{\n \"fieldName\": \"mutate_operations\",\n \"index\": 11\n },\n {\n 
\"fieldName\": \"asset_group_asset_operation\"\n },\n {\n \"fieldName\": 
\"create\"\n },\n {\n \"fieldName\": \"asset_group\"\n }\n ]\n }\n },\n {\n 
\"errorCode\": {\n \"mutateError\": \"RESOURCE_NOT_FOUND\"\n },\n 
\"message\": \"Resource was not found.\",\n \"trigger\": {\n 
\"int64Value\": \"-3\"\n },\n \"location\": {\n \"fieldPathElements\": [\n 
{\n \"fieldName\": \"mutate_operations\",\n \"index\": 13\n },\n {\n 
\"fieldName\": \"asset_group_asset_operation\"\n },\n {\n \"fieldName\": 
\"create\"\n },\n {\n \"fieldName\": \"asset_group\"\n }\n ]\n }\n },\n {\n 
\"errorCode\": {\n \"mutateError\": \"RESOURCE_NOT_FOUND\"\n },\n 
\"message\": \"Resource was not found.\",\n \"trigger\": {\n 
\"int64Value\": \"-3\"\n },\n \"location\": {\n \"fieldPathElements\": [\n 
{\n \"fieldName\": \"mutate_operations\",\n \"index\": 15\n },\n {\n 
\"fieldName\": \"asset_group_asset_operation\"\n },\n {\n \"fieldName\": 
\"create\"\n },\n {\n \"fieldName\": \"asset_group\"\n }\n ]\n }\n },\n {\n 
\"errorCode\": {\n \"mutateError\": \"RESOURCE_NOT_FOUND\"\n },\n 
\"message\": \"Resource was not found.\",\n \"trigger\": {\n 
\"int64Value\": \"-3\"\n },\n \"location\": {\n \"fieldPathElements\": [\n 
{\n \"fieldName\": \"mutate_operations\",\n \"index\": 17\n },\n {\n 
\"fieldName\": \"asset_group_asset_operation\"\n },\n {\n \"fieldName\": 
\"create\"\n },\n {\n \"fieldName\": \"asset_group\"\n }\n ]\n }\n },\n {\n 
\"errorCode\": {\n \"mutateError\": \"RESOURCE_NOT_FOUND\"\n },\n 
\"message\": \"Resource was not found.\",\n \"trigger\": {\n 
\"int64Value\": \"-3\"\n },\n \"location\": {\n \"fieldPathElements\": [\n 
{\n \"fieldName\": \"mutate_operations\",\n \"index\": 19\n },\n {\n 
\"fieldName\": \"asset_group_asset_operation\"\n },\n {\n \"fieldName\": 
\"create\"\n },\n {\n \"fieldName\": \"asset_group\"\n }\n ]\n }\n },\n {\n 
\"errorCode\": {\n \"mutateError\": \"RESOURCE_NOT_FOUND\"\n },\n 
\"message\": \"Resource was not found.\",\n \"trigger\": {\n 
\"int64Value\": \"-3\"\n },\n \"location\": {\n \"fieldPathElements\": [\n 
{\n \"fieldName\": \"mutate_operations\",\n \"index\": 21\n },\n {\n 
\"fieldName\": \"asset_group_asset_operation\"\n },\n {\n \"fieldName\": 
\"create\"\n },\n {\n \"fieldName\": \"asset_group\"\n }\n ]\n }\n },\n {\n 
\"errorCode\": {\n \"mutateError\": \"RESOURCE_NOT_FOUND\"\n },\n 
\"message\": \"Resource was not found.\",\n \"trigger\": {\n 
\"int64Value\": \"-3\"\n },\n \"location\": {\n \"fieldPathElements\": [\n 
{\n \"fieldName\": \"mutate_operations\",\n \"index\": 23\n },\n {\n 
\"fieldName\": \"asset_group_asset_operation\"\n },\n {\n \"fieldName\": 
\"create\"\n },\n {\n \"fieldName\": \"asset_group\"\n }\n ]\n }\n },\n {\n 
\"errorCode\": {\n \"mutateError\": \"RESOURCE_NOT_FOUND\"\n },\n 
\"message\": \"Resource was not found.\",\n \"trigger\": {\n 
\"int64Value\": \"-3\"\n },\n \"location\": {\n \"fieldPathElements\": [\n 
{\n \"fieldName\": \"mutate_operations\",\n \"index\": 25\n },\n {\n 
\"fieldName\": \"asset_group_asset_operation\"\n },\n {\n \"fieldName\": 
\"create\"\n },\n {\n \"fieldName\": \"asset_group\"\n }\n ]\n }\n },\n {\n 
\"errorCode\": {\n \"mutateError\": \"RESOURCE_NOT_FOUND\"\n },\n 
\"message\": \"Resource was not found.\",\n \"trigger\": {\n 
\"int64Value\": \"-3\"\n },\n \"location\": {\n \"fieldPathElements\": [\n 
{\n \"fieldName\": \"mutate_operations\",\n \"index\": 26\n },\n {\n 
\"fieldName\": \"asset_group_signal_operation\"\n },\n {\n \"fieldName\": 
\"create\"\n },\n {\n \"fieldName\": \"asset_group\"\n }\n ]\n }\n }\n ],\n 
\"requestId\": \"59YF2se-ralCQnoeu3Pw_w\"\n }\n ]\n} in file 
/application/vendor/google/gax/src/ApiException.php on line number 267"
}
}
any way to create a P Max campiagn for manager id as well ????

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/c07be08e-4937-4e8e-a628-2ab448655fc0n%40googlegroups.com.

Reply via email to