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

2021-01-22 Thread Google Ads API Forum Advisor Prod
Hi Дуршлаг,

Thank you for reaching out. Could you please share the source code you used via 
the Reply privately to author option for us to further investigate?

Thanks and regards,
Xiaoming, Google Ads API Team

Xiaoming
Google Ads API Team
ref:_00D1U1174p._5004Q2B2Bhn:ref

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/ae-6B0QNCSMK009CCdiX0YTduHEWeP7369sQ%40sfdc.net.


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.


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

2021-01-21 Thread Google Ads API Forum Advisor Prod
Hi,

In addition to my earlier response, I would recommend that you use a client 
account ID as the customer ID since campaigns are created and associated to 
client accounts and not to MCC/manager accounts.

I hope this helps.

Best regards,

Peter Laurence Napa Oliquino
Google Ads API Team
ref:_00D1U1174p._5004Q2B2Bhn:ref

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/11TAO0QNBMPS00MIJmsD8jQQOkWoC8sNmfrw%40sfdc.net.


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

2021-01-21 Thread Google Ads API Forum Advisor Prod
Hi,

Since you mentioned that you wish to GET a list of campaigns, you can use this 
example instead. This is because the previous example that was being referred 
to was a call to a method which CREATEs campaigns.

Should issues persist, you may enable logging by navigating to the Client 
libraries > Your client library (ex. Java) > Logging documentation, which you 
can access from this link.

You may then provide the complete request and response logs and send it using 
the Reply privately to author option, so our team can further investigate.

Best regards,

Peter Laurence Napa Oliquino
Google Ads API Team
ref:_00D1U1174p._5004Q2B2Bhn:ref

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/mBF0v0QNBMLH00Y7pYj_wjRZKcbBuRbilxTA%40sfdc.net.


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.