I am trying to create campaign using an example from the documentation (
https://developers.google.com/google-ads/api/docs/campaigns/create-campaigns
). 

My IDs:
659-129-2780 - customer ID
821-147-4449 - customer ID (test account)
447-045-4427 - client customer ID (test test account)  

Log:
[2021-01-22 07:38:48,844 - DEBUG] Making request: POST 
https://accounts.google.com/o/oauth2/token
[2021-01-22 07:38:48,849 - DEBUG] Starting new HTTPS connection (1): 
accounts.google.com:443
[2021-01-22 07:38:49,048 - DEBUG] https://accounts.google.com:443 "POST 
/o/oauth2/token HTTP/1.1" 200 None
[2021-01-22 07:38:50,310 - INFO] Request
-------
Method: 
/google.ads.googleads.v6.services.CampaignBudgetService/MutateCampaignBudgets
Host: googleads.googleapis.com:443
Headers: {
"developer-token": "REDACTED",
"login-customer-id": "8211474449",
"x-goog-api-client": "gl-python/3.8.7 grpc/1.34.1 gax/1.25.0 gapic/8.2.0",
"x-goog-request-params": "customer_id=8211474449"
}
Request: customer_id: "8211474449"
operations {
create {
delivery_method: STANDARD
name: "Interplanetary Budget 1fa38e7d-c39a-4ac4-9336-562e5cf4e841"
amount_micros: 500000
}
}


Response
-------
Headers: {
"google.ads.googleads.v6.errors.googleadsfailure-bin": 
"\na\n\u0003\u0003\u0003\u0012DUnauthorized CREATE operation in invoking a 
service's mutate 
method.\u001a\u0002*\u0000\"\u0010\u0012\u000e\n\noperations\u0018\u0000",
"grpc-status-details-bin": "\b\u0003\u0012%Request contains an invalid 
argument.\u001a\u0001\
nCtype.googleapis.com/google.ads.googleads.v6.errors.GoogleAdsFailure\u0012c\na\n\u0003\u0003\u0003\u0012DUnauthorized
 
<http://nctype.googleapis.com/google.ads.googleads.v6.errors.GoogleAdsFailure%5Cu0012c%5Cna%5Cn%5Cu0003%5Cu0003%5Cu0003%5Cu0012DUnauthorized>
 
CREATE operation in invoking a service's mutate 
method.\u001a\u0002*\u0000\"\u0010\u0012\u000e\n\noperations\u0018\u0000",
"request-id": "3bAmB_c_IiNT0iZNh4wI5A"
}
Fault: errors {
error_code {
operation_access_denied_error: CREATE_OPERATION_NOT_PERMITTED
}
message: "Unauthorized CREATE operation in invoking a service\'s mutate 
method."
trigger {
string_value: ""
}
location {
field_path_elements {
field_name: "operations"
index: 0
}
}
}
[2021-01-22 07:38:50,310 - WARNING] Request made: ClientCustomerId: 
8211474449, Host: googleads.googleapis.com:443, Method: 
/google.ads.googleads.v6.services.CampaignBudgetService/MutateCampaignBudgets, 
RequestId: 3bAmB_c_IiNT0iZNh4wI5A, IsFault: True, FaultMessage: 
Unauthorized CREATE operation in invoking a service's mutate method.
Request with ID "3bAmB_c_IiNT0iZNh4wI5A" failed with status 
"INVALID_ARGUMENT" and includes the following errors:
Error with message "Unauthorized CREATE operation in invoking a service's 
mutate method.".
On field: operations

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 [email protected]
To unsubscribe from this group, send email to
[email protected]
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/18280e53-78b6-440c-bb43-9b6c4a8f7a31n%40googlegroups.com.

Reply via email to