Error. Create campaigns in testing env (python lib)

80 views
Skip to first unread message

jinov...@gmail.com

unread,
Jan 22, 2021, 1:57:45 PM1/22/21
to AdWords API and Google Ads API Forum
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 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
Reply all
Reply to author
Forward
0 new messages