Re: get_campaigns, testing, GoogleAds, error: "Unauthorized CREATE operation in invoking a service's mutate method"

2021-01-21 Thread Дуршлаг Макаронин


[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: 50
  }
}


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*\u\"\u0010\u0012\u000e\n\noperations\u0018\u",
  "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*\u\"\u0010\u0012\u000e\n\noperations\u0018\u",
  "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 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/185937c8-9a3b-4593-afa7-ea2cc28ddf3eo%40googlegroups.com.


Re: get_campaigns, testing, GoogleAds, error: "Unauthorized CREATE operation in invoking a service's mutate method"

2021-01-21 Thread Дуршлаг Макаронин

>
> Thanks for answers.
> Yes, I was wrong in my question. Of course I was trying to CREATE the 
> campaign, not GET it. =)
>
> Let's start simple, I'm using the add_campaign.py example. It has a 
> customer_id parameter. Which of my IDs should I use?
> I have 3 accounts:
> 659-129-2780 - customer ID
> 821-147-4449 - customer ID (test account)
> 447-045-4427 - client customer ID (test test account)
>
> Anyway, all three work with errors
>
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/5c6eab40-dee8-4ee7-a74f-44562567eaf1o%40googlegroups.com.


get_campaigns, testing, GoogleAds, error: "Unauthorized CREATE operation in invoking a service's mutate method"

2021-01-21 Thread Дуршлаг Макаронин
I am trying to get a list of campaigns using an example from the 
documentation 
(https://developers.google.com/google-ads/api/docs/campaigns/create-campaigns). 
I get this error:

Request with ID "fFkcENuC9XxW3n4cCJduHA" 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

I work in a test environment. Everything seems to be set up correctly...

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/083f9fed-d52b-4a39-a37c-cc18618528e2o%40googlegroups.com.