RE: mutateadgroupads error : operation_not_permitted_for_context

2024-06-03 Thread 'Google Ads API Forum Advisor' via Google Ads API and AdWords API Forum
Hi,

Thank you for contacting the Google Ads API support team.

I understand that you are getting OPERATION_NOT_PERMITTED_FOR_CONTEXT error, to 
assist you further please provide us with complete API request and response 
logs with request-id and request header generated at your end.

If you are using a client library and haven't enabled the logging yet, I would 
request you to enable logging for the specific client library that you are 
using. You can refer to the guides Java, .Net, PHP, Python, Ruby or Perl to 
enable logging at your end. For REST interface requests, you can enable logging 
via the curl command by using the -i flag.

You can send the details via Reply privately to the author option, or direct 
private reply to this email.
This message is in relation to case "ref:!00D1U01174p.!5004Q02tJAUO:ref" 
(ADR-00237677)

Thanks,

Google Ads API Team

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


mutateAdGroupAds error : OPERATION_NOT_PERMITTED_FOR_CONTEXT

2024-06-02 Thread 'sun zhujian' via Google Ads API and AdWords API Forum
errors {
  error_code {
context_error: OPERATION_NOT_PERMITTED_FOR_CONTEXT
  }
  message: "The operation is not allowed for the given context."
  trigger {
string_value: "SEARCH"
  }
  location {
field_path_elements {
  field_name: "operations"
  index: 0
}
  }
}
request_id: "t19TJ7lDtxqMACaU2PGahA"



-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/d281ce17-fe51-498e-9a58-88d5c2a2a8fcn%40googlegroups.com.


RE: operation_not_permitted_for_context

2024-03-26 Thread 'Google Ads API Forum Advisor' via Google Ads API and AdWords API Forum
Hi,

Hope you are doing well.

I could see that the campaign: 20717377421 has status 'Removed', this is the 
reason you are facing an error. Please note that it is not possible to perform 
any mutate operation on the removed campaigns. Hope this helps.
This message is in relation to case "ref:!00D1U01174p.!5004Q02s0DIE:ref" 
(ADR-00228624)

Thanks,

Google Ads API Team

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


OPERATION_NOT_PERMITTED_FOR_CONTEXT

2024-03-25 Thread Paulo Silva
hi

i try to send block ip for campaing

* Preparing request to 
https://googleads.googleapis.com/v15/customers/5932574280/campaignCriteria:mutate
* Current time is 2024-03-25T14:40:47.850Z
* Enable automatic URL encoding
* Using default HTTP version
* Enable timeout of 3ms
* Enable SSL validation
* Enable cookie sending with jar of 12 cookies
* TLSv1.2 (IN), TLS header, Supplemental data (23):
* 17 bytes stray data read before trying h2 connection
* TLSv1.2 (OUT), TLS header, Supplemental data (23):
*   Trying 2800:3f0:4001:830::200a:443...
* Connected to googleads.googleapis.com (2800:3f0:4001:830::200a) port 443 
(#3)
* ALPN, offering h2
* ALPN, offering http/1.1
*  CAfile: /etc/ssl/cert.pem
* TLSv1.0 (OUT), TLS header, Certificate Status (22):
* TLSv1.3 (OUT), TLS handshake, Client hello (1):
* TLSv1.2 (IN), TLS header, Certificate Status (22):
* TLSv1.3 (IN), TLS handshake, Server hello (2):
* TLSv1.2 (IN), TLS header, Finished (20):
* TLSv1.2 (IN), TLS header, Supplemental data (23):
* TLSv1.3 (IN), TLS handshake, Encrypted Extensions (8):
* TLSv1.3 (IN), TLS handshake, Certificate (11):
* TLSv1.3 (IN), TLS handshake, CERT verify (15):
* TLSv1.3 (IN), TLS handshake, Finished (20):
* TLSv1.2 (OUT), TLS header, Finished (20):
* TLSv1.3 (OUT), TLS change cipher, Change cipher spec (1):
* TLSv1.2 (OUT), TLS header, Supplemental data (23):
* TLSv1.3 (OUT), TLS handshake, Finished (20):
* SSL connection using TLSv1.3 / TLS_AES_256_GCM_SHA384
* ALPN, server accepted to use h2
* Server certificate:
*  subject: CN=upload.video.google.com
*  start date: Feb 26 08:18:27 2024 GMT
*  expire date: May 20 08:18:26 2024 GMT
*  subjectAltName: host "googleads.googleapis.com" matched cert's 
"*.googleapis.com"
*  issuer: C=US; O=Google Trust Services LLC; CN=GTS CA 1C3
*  SSL certificate verify ok.
* Using HTTP2, server supports multiplexing
* Connection state changed (HTTP/2 confirmed)
* Copying HTTP/2 data in stream buffer to connection buffer after upgrade: 
len=0
* TLSv1.2 (OUT), TLS header, Supplemental data (23):
* TLSv1.2 (OUT), TLS header, Supplemental data (23):
* TLSv1.2 (OUT), TLS header, Supplemental data (23):
* Using Stream ID: 1 (easy handle 0x1040096f200)
* TLSv1.2 (OUT), TLS header, Supplemental data (23):

> POST /v15/customers/5932574280/campaignCriteria:mutate HTTP/2
> Host: googleads.googleapis.com
> user-agent: insomnia/8.6.1
> content-type: application/json
> accept: */*
> content-length: 170

* TLSv1.2 (OUT), TLS header, Supplemental data (23):

| 
{"customer_id":"5932574280","operations":[{"create":{"campaign":"customers/5932574280/campaigns/20717377421","negative":true,"ip_block":{"ip_address":"86.163.43.213"}}}]}

* We are completely uploaded and fine
* TLSv1.2 (IN), TLS header, Supplemental data (23):
* TLSv1.3 (IN), TLS handshake, Newsession Ticket (4):
* TLSv1.3 (IN), TLS handshake, Newsession Ticket (4):
* old SSL session ID is stale, removing
* TLSv1.2 (IN), TLS header, Supplemental data (23):
* TLSv1.2 (OUT), TLS header, Supplemental data (23):
* TLSv1.2 (IN), TLS header, Supplemental data (23):
* TLSv1.2 (IN), TLS header, Supplemental data (23):

< HTTP/2 400 
< request-id: InVoUjxhE7_vjMQaL09Pxw
< vary: X-Origin
< vary: Referer
< vary: Origin,Accept-Encoding
< content-type: application/json; charset=UTF-8
< date: Mon, 25 Mar 2024 14:40:48 GMT
< server: ESF
< cache-control: private
< x-xss-protection: 0
< x-frame-options: SAMEORIGIN
< x-content-type-options: nosniff
< alt-svc: h3=":443"; ma=2592000,h3-29=":443"; ma=2592000
< accept-ranges: none


* TLSv1.2 (IN), TLS header, Supplemental data (23):
* Received 998 B chunk
* TLSv1.2 (IN), TLS header, Supplemental data (23):
* Connection #3 to host googleads.googleapis.com left intact

but i receive this response

{
"error": {
"code": 400,
"message": "Request contains an invalid argument.",
"status": "INVALID_ARGUMENT",
"details": [
{
"@type": 
"type.googleapis.com/google.ads.googleads.v15.errors.GoogleAdsFailure",
"errors": [
{
"errorCode": {
"contextError": "OPERATION_NOT_PERMITTED_FOR_CONTEXT"
},
"message": "The operation is not allowed for the given context.",
"trigger": {
"stringValue": "EXPRESS(EXPRESS_SMART)"
},
"location": {
"fieldPathElements": [
{
"fieldName": "operations",
"index": 0
},
{
"fieldName": "create"
},
{
"fieldName": "ip_block"
}
]
}
}
],
"requestId": "InVoUjxhE7_vjMQaL09Pxw"
}
]
}
}

can i help me?

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=

OPERATION_NOT_PERMITTED_FOR_CONTEXT

2024-03-25 Thread Paulo Silva
Hi
a try to sendo blocked ips to campaing with this request

* Preparing request to 
https://googleads.googleapis.com/v15/customers/5932574280/campaignCriteria:mutate
* Current time is 2024-03-25T14:40:47.850Z
* Enable automatic URL encoding
* Using default HTTP version
* Enable timeout of 3ms
* Enable SSL validation
* Enable cookie sending with jar of 12 cookies
* TLSv1.2 (IN), TLS header, Supplemental data (23):
* 17 bytes stray data read before trying h2 connection
* TLSv1.2 (OUT), TLS header, Supplemental data (23):
*   Trying 2800:3f0:4001:830::200a:443...
* Connected to googleads.googleapis.com (2800:3f0:4001:830::200a) port 443 
(#3)
* ALPN, offering h2
* ALPN, offering http/1.1
*  CAfile: /etc/ssl/cert.pem
* TLSv1.0 (OUT), TLS header, Certificate Status (22):
* TLSv1.3 (OUT), TLS handshake, Client hello (1):
* TLSv1.2 (IN), TLS header, Certificate Status (22):
* TLSv1.3 (IN), TLS handshake, Server hello (2):
* TLSv1.2 (IN), TLS header, Finished (20):
* TLSv1.2 (IN), TLS header, Supplemental data (23):
* TLSv1.3 (IN), TLS handshake, Encrypted Extensions (8):
* TLSv1.3 (IN), TLS handshake, Certificate (11):
* TLSv1.3 (IN), TLS handshake, CERT verify (15):
* TLSv1.3 (IN), TLS handshake, Finished (20):
* TLSv1.2 (OUT), TLS header, Finished (20):
* TLSv1.3 (OUT), TLS change cipher, Change cipher spec (1):
* TLSv1.2 (OUT), TLS header, Supplemental data (23):
* TLSv1.3 (OUT), TLS handshake, Finished (20):
* SSL connection using TLSv1.3 / TLS_AES_256_GCM_SHA384
* ALPN, server accepted to use h2
* Server certificate:
*  subject: CN=upload.video.google.com
*  start date: Feb 26 08:18:27 2024 GMT
*  expire date: May 20 08:18:26 2024 GMT
*  subjectAltName: host "googleads.googleapis.com" matched cert's 
"*.googleapis.com"
*  issuer: C=US; O=Google Trust Services LLC; CN=GTS CA 1C3
*  SSL certificate verify ok.
* Using HTTP2, server supports multiplexing
* Connection state changed (HTTP/2 confirmed)
* Copying HTTP/2 data in stream buffer to connection buffer after upgrade: 
len=0
* TLSv1.2 (OUT), TLS header, Supplemental data (23):
* TLSv1.2 (OUT), TLS header, Supplemental data (23):
* TLSv1.2 (OUT), TLS header, Supplemental data (23):
* Using Stream ID: 1 (easy handle 0x1040096f200)
* TLSv1.2 (OUT), TLS header, Supplemental data (23):

> POST /v15/customers/5932574280/campaignCriteria:mutate HTTP/2
> Host: googleads.googleapis.com
> user-agent: insomnia/8.6.1
> content-type: application/json
> developer-token: litD5RA_CgW3FMlCnb7mTw
> authorization: Bearer 
ya29.a0Ad52N39bZic5lbbyLEYJyn863a7-FPHZXvRRzzUNoM_NP8udRX7SVvdoChe1UXUMZ3qoayI_F4a1xpWuDNBvIP9eWmiryAelRYyTNssIHXKjHmmk4FbJnEwGZd0H28oeU3tPygaNQhVEfjIR-KHHoInmqOx7QvgryXWt6AaCgYKAQ8SAQ8SFQHGX2Mih65SeZLyq9IPU9eUf0GjxQ0173
> accept: */*
> content-length: 170

* TLSv1.2 (OUT), TLS header, Supplemental data (23):

| 
{"customer_id":"5932574280","operations":[{"create":{"campaign":"customers/5932574280/campaigns/20717377421","negative":true,"ip_block":{"ip_address":"86.163.43.213"}}}]}

* We are completely uploaded and fine
* TLSv1.2 (IN), TLS header, Supplemental data (23):
* TLSv1.3 (IN), TLS handshake, Newsession Ticket (4):
* TLSv1.3 (IN), TLS handshake, Newsession Ticket (4):
* old SSL session ID is stale, removing
* TLSv1.2 (IN), TLS header, Supplemental data (23):
* TLSv1.2 (OUT), TLS header, Supplemental data (23):
* TLSv1.2 (IN), TLS header, Supplemental data (23):
* TLSv1.2 (IN), TLS header, Supplemental data (23):

< HTTP/2 400 
< request-id: InVoUjxhE7_vjMQaL09Pxw
< vary: X-Origin
< vary: Referer
< vary: Origin,Accept-Encoding
< content-type: application/json; charset=UTF-8
< date: Mon, 25 Mar 2024 14:40:48 GMT
< server: ESF
< cache-control: private
< x-xss-protection: 0
< x-frame-options: SAMEORIGIN
< x-content-type-options: nosniff
< alt-svc: h3=":443"; ma=2592000,h3-29=":443"; ma=2592000
< accept-ranges: none


* TLSv1.2 (IN), TLS header, Supplemental data (23):
* Received 998 B chunk
* TLSv1.2 (IN), TLS header, Supplemental data (23):
* Connection #3 to host googleads.googleapis.com left intact

But a receive this response

{
"error": {
"code": 400,
"message": "Request contains an invalid argument.",
"status": "INVALID_ARGUMENT",
"details": [
{
"@type": 
"type.googleapis.com/google.ads.googleads.v15.errors.GoogleAdsFailure",
"errors": [
{
"errorCode": {
"contextError": "OPERATION_NOT_PERMITTED_FOR_CONTEXT"
},
"message": "The operation is not allowed for the given context.",
"trigger": {
"stringValue": "EXPRESS(EXPRESS_SMART)"
},
"location": {
"fieldPathElements": [
{
"fieldName": "operations",
"index": 0
},
{
&quo

OPERATION_NOT_PERMITTED_FOR_CONTEXT

2024-03-13 Thread Gomathi Gunasekaran
Regarding the budget creation issue, I'm encountering difficulties in 
creating budgets. while this functionality worked good in the previous 
version, I've encountered unexpected behaviour upon transitioning to v16

{
  "mutateOperations": [
{
  "campaignBudgetOperation": {
"create": {
  "amountMicros": 1,
  "resourceName": "customers/{customer id}/campaignBudgets/-21"
}
  }
}
  ]
}

{
  "error": {
"code": 400,
"message": "Request contains an invalid argument.",
"status": "INVALID_ARGUMENT",
"details": [
  {
"@type": 
"type.googleapis.com/google.ads.googleads.v16.errors.GoogleAdsFailure",
"errors": [
  {
"errorCode": {
  "contextError": "OPERATION_NOT_PERMITTED_FOR_CONTEXT"
},
"message": "The operation is not allowed for the given 
context.",
"location": {
  "fieldPathElements": [
{
  "fieldName": "mutate_operations",
  "index": 0
},
{
  "fieldName": "campaign_budget_operation"
}
  ]
}
  }
],
"requestId": "PZICEDkPZmRLdds_vTqLpZ9Zg"
  }
]
  }
}

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/18ae522b-87ca-40e7-ba6e-c31089974d74n%40googlegroups.com.


OPERATION_NOT_PERMITTED_FOR_CONTEXT

2023-11-29 Thread Igor Vinicius
Hello!
I'm trying integrate with Google Ads to manage client accounts. I create a 
Administrator account in Google Ads, i create an app in Google console to 
use OAuth2. The whole flow seems correct to me. The client enters my 
system, connects the Google account and gives permission to manage the 
Google Ads accounts, selects which account he wants to manage and then he 
would create and manage the campaigns. But when trying to create a budget 
in the test account I created, I receive the following error: 
{
"message": "Request contains an invalid argument.",
"code": 3,
"status": "INVALID_ARGUMENT",
"details": [
{
"@type": 
"type.googleapis.com\/google.ads.googleads.v14.errors.GoogleAdsFailure",
"errors": [
{
"errorCode": {
"contextError": "OPERATION_NOT_PERMITTED_FOR_CONTEXT"
},
"message": "The operation is not allowed for the given context.",
"location": {
"fieldPathElements": [
{
"fieldName": "operations",
"index": 0
}
]
}
}
],
"requestId": "ArYSSi9oTlKjluA9YtXjcw"
}
]
} But the error doesn't tell me what permission I don't have and I haven't 
found how to get that permission. I need help to solve this problem. The 
same happens when trying to create campaigns, so I need to know what needs 
to be configured. 

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/5d301640-86dd-4153-a2e8-335c8cf1cd8en%40googlegroups.com.


OPERATION_NOT_PERMITTED_FOR_CONTEXT for MutateAdGroupAds

2023-07-27 Thread 穆金龙
e.Message
"Status(StatusCode=\"InvalidArgument\", Detail=\"Request contains an 
invalid argument.\", 
DebugException=\"Grpc.Core.Internal.CoreErrorDetailException: 
{\"created\":\"@1690436367.73000\",\"description\":\"Error received 
from peer 
ipv4:142.251.43.10:443\",\"file\":\"..\\..\\..\\src\\core\\lib\\surface\\call.cc\",\"file_line\":953,\"grpc_message\":\"Request
 
contains an invalid argument.\",\"grpc_status\":3}\")"
e.Failure
{{ "errors": [ { "errorCode": { "contextError": 
"OPERATION_NOT_PERMITTED_FOR_CONTEXT" }, "message": "The operation is not 
allowed for the given context.", "trigger": { "stringValue": 
"OWNED_AND_OPERATED" }, "location": { "fieldPathElements": [ { "fieldName": 
"operations", "index": 0 } ] } } ], "requestId": "ttSWFGCaxHUAOpyoEX_hBw" }}
Errors: {[ { "errorCode": { "contextError": 
"OPERATION_NOT_PERMITTED_FOR_CONTEXT" }, "message": "The operation is not 
allowed for the given context.", "trigger": { "stringValue": 
"OWNED_AND_OPERATED" }, "location": { "fieldPathElements": [ { "fieldName": 
"operations", "index": 0 } ] } } ]}
RequestId: "ttSWFGCaxHUAOpyoEX_hBw"
e.RequestId
"ttSWFGCaxHUAOpyoEX_hBw"

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/b6d4b0a2-e5a7-431a-9d4b-402ef892beebn%40googlegroups.com.


Re: campaignbudgets:mute [operation_not_permitted_for_context]

2023-07-25 Thread ADVERTISEMENT FMAD

Where can I find a customer account?


How do I distinguish between an manager account and a client account?

Thank you.
2023년 7월 26일 수요일 오전 5시 5분 58초 UTC+9에 Google Ads API Forum Advisor님이 작성:

> Hi,
>
> Thanks for reaching out to Google Ads API Support.
>
> With regards to your concern, I can see that you encountered the 
> *OPERATION_NOT_PERMITTED_FOR_CONTEXT* error. This means that the 
> operation is not allowed for the given context. Upon checking, I can see 
> that you are trying to mutate the campaign budget. Please note that 
> creating a campaign budget should be done on a *client account only* and 
> not on a manager account. 
>
> If you're still encountering the error on a client account, please provide 
> the complete *request* and *response* logs with *request* *ID* generated 
> as shown in the respective links so we can take a closer look and assist 
> you.
>
> Links included in this email:
>
>- *OPERATION_NOT_PERMITTED_FOR_CONTEXT - *
>
> *https://developers.google.com/google-ads/api/reference/rpc/v14/ContextErrorEnum.ContextError#operation_not_permitted_for_context*
>  
>
> <https://developers.google.com/google-ads/api/reference/rpc/v14/ContextErrorEnum.ContextError#operation_not_permitted_for_context>
>  
>- *Google Ads API - *
>*https://developers.google.com/google-ads/api/docs/start* 
><https://developers.google.com/google-ads/api/docs/start>  
>- *Request - *
>
> *https://developers.google.com/google-ads/api/docs/concepts/field-service#request*
>  
>
> <https://developers.google.com/google-ads/api/docs/concepts/field-service#request>
>  
>- *Response -  *
>
> *https://developers.google.com/google-ads/api/docs/concepts/field-service#response*
>  
>
> <https://developers.google.com/google-ads/api/docs/concepts/field-service#response>
>  
>- *Request ID - *
>
> *https://developers.google.com/google-ads/api/docs/concepts/call-structure#request-id*
>  
>
> <https://developers.google.com/google-ads/api/docs/concepts/call-structure#request-id>
>  
>
> This message is in relation to case "ref:_00D1U1174p._5004Q2nSPWf:ref"
>
> Thanks,
>   
> [image: Google Logo] Google Ads API Team 
>
>
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/f9b07fdd-e2d2-442d-890b-c05d0fd1327cn%40googlegroups.com.


RE: campaignbudgets:mute, [operation_not_permitted_for_context]

2023-07-25 Thread 'Google Ads API Forum Advisor' via Google Ads API and AdWords API Forum
Hi,

I hope you're doing well today.

I see that you've already raised the same issue in this forum thread 
(https://groups.google.com/d/msgid/adwords-api/34d9657c-565a-415f-906d-6f42e1aa339fn%40googlegroups.com).
 For better tracking of the issue, let's continue the discussion on the 
original thread since our team has already responded there.

This message is in relation to case "ref:_00D1U1174p._5004Q2nSPKU:ref"

Thanks,

Google Ads API Team

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


RE: campaignbudgets:mute [operation_not_permitted_for_context]

2023-07-25 Thread 'Google Ads API Forum Advisor' via Google Ads API and AdWords API Forum
Hi,

Thanks for reaching out to Google Ads API Support.

With regards to your concern, I can see that you encountered the 
OPERATION_NOT_PERMITTED_FOR_CONTEXT error. This means that the operation is not 
allowed for the given context. Upon checking, I can see that you are trying to 
mutate the campaign budget. Please note that creating a campaign budget should 
be done on a client account only and not on a manager account.

If you're still encountering the error on a client account, please provide the 
complete request and response logs with request ID generated as shown in the 
respective links so we can take a closer look and assist you.

Links included in this email:

OPERATION_NOT_PERMITTED_FOR_CONTEXT - 
https://developers.google.com/google-ads/api/reference/rpc/v14/ContextErrorEnum.ContextError#operation_not_permitted_for_context
Google Ads API - https://developers.google.com/google-ads/api/docs/start
Request - 
https://developers.google.com/google-ads/api/docs/concepts/field-service#request
Response - 
https://developers.google.com/google-ads/api/docs/concepts/field-service#response
Request ID - 
https://developers.google.com/google-ads/api/docs/concepts/call-structure#request-id

This message is in relation to case "ref:_00D1U1174p._5004Q2nSPWf:ref"

Thanks,

Google Ads API Team

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


campaignBudgets:mute, [OPERATION_NOT_PERMITTED_FOR_CONTEXT]

2023-07-25 Thread ADVERTISEMENT FMAD
Hello.

I'm running campaignBudgets:mute, but I'm getting the following response.

The account is a test account.
customerID : 8385520011
requestId :  5YBrGdnX1ZZ_MneU9xSudQ

request : 
{"operations": [{"create": {"deliveryMethod": "STANDARD","type": 
"STANDARD","period": "DAILY","amountMicros": 100,"name": 
"Test_google_ads_google_display20230427181647","explicitlyShared": true}}]}

reponse:
{ "error": { "code": 400, "message": "Request contains an invalid 
argument.", "status": "INVALID_ARGUMENT", "details": [ { "@type": "
type.googleapis.com/google.ads.googleads.v14.errors.GoogleAdsFailure", 
"errors": [ { "errorCode": { "contextError": 
"OPERATION_NOT_PERMITTED_FOR_CONTEXT" }, "message": "The operation is not 
allowed for the given context.", "location": { "fieldPathElements": [ { 
"fieldName": "operations", "index": 0 } ] } } ], "requestId": 
"5YBrGdnX1ZZ_MneU9xSudQ" } ] } }


Please reply.
Thank you.

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/b86f89a0-3e75-42f2-abc2-db040a4a3f62n%40googlegroups.com.


campaignBudgets:mute [OPERATION_NOT_PERMITTED_FOR_CONTEXT]

2023-07-25 Thread ADVERTISEMENT FMAD


Hello.

I'm running campaignBudgets:mute, but I'm getting the following response.

The account is a test account.


request : 
{"operations": [{"create": {"deliveryMethod": "STANDARD","type": 
"STANDARD","period": "DAILY","amountMicros": 100,"name": 
"Test_google_ads_google_display20230427181647","explicitlyShared": true}}]}

reponse:
{ "error": { "code": 400, "message": "Request contains an invalid 
argument.", "status": "INVALID_ARGUMENT", "details": [ { "@type": "
type.googleapis.com/google.ads.googleads.v14.errors.GoogleAdsFailure", 
"errors": [ { "errorCode": { "contextError": 
"OPERATION_NOT_PERMITTED_FOR_CONTEXT" }, "message": "The operation is not 
allowed for the given context.", "location": { "fieldPathElements": [ { 
"fieldName": "operations", "index": 0 } ] } } ], "requestId": 
"5YBrGdnX1ZZ_MneU9xSudQ" } ] } }


Please reply.
Thank you.

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/34d9657c-565a-415f-906d-6f42e1aa339fn%40googlegroups.com.


campaignBudgets:mute, [OPERATION_NOT_PERMITTED_FOR_CONTEXT]

2023-07-25 Thread ADVERTISEMENT FMAD
Hello.

I'm running campaignBudgets:mute, but I'm getting the following response.

The account is a test account.



{ "error": { "code": 400, "message": "Request contains an invalid 
argument.", "status": "INVALID_ARGUMENT", "details": [ { "@type": 
"type.googleapis.com/google.ads.googleads.v14.errors.GoogleAdsFailure", 
"errors": [ { "errorCode": { "contextError": 
"OPERATION_NOT_PERMITTED_FOR_CONTEXT" }, "message": "The operation is not 
allowed for the given context.", "location": { "fieldPathElements": [ { 
"fieldName": "operations", "index": 0 } ] } } ], "requestId": 
"5YBrGdnX1ZZ_MneU9xSudQ" } ] } }


Please reply.
Thank you.

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/65eb8189-96a8-4a71-a10d-65a226e2333dn%40googlegroups.com.


RE: operation_not_permitted_for_context when create feed

2023-07-06 Thread 'Google Ads API Forum Advisor' via Google Ads API and AdWords API Forum
Hi Xueyao,

Thank you for reaching out to us.

Kindly note that there was a recent blog post released about the Image and 
Location Auto-migration in August 2023. The migrations occur at the account 
level. During the migration of an account, which will take several minutes, you 
won’t be able to execute any image or location mutations of either extensions 
or assets. This may be the reason why you can't proceed with your mutation. 
However, when the migration is complete, you will have access to the assets. 
You may check the mentioned blog post here 
(https://ads-developers.googleblog.com/2023/07/image-and-location-auto-migration.html)
 for more information.

This message is in relation to case "ref:_00D1U1174p._5004Q2mrxF8:ref"

Thanks,

Google Ads API Team

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


OPERATION_NOT_PERMITTED_FOR_CONTEXT when create feed

2023-07-06 Thread Xueyao Yang
Hi,

We got the error OPERATION_NOT_PERMITTED_FOR_CONTEXT when we were trying to 
create the feed for location ad extension accroding to this doc: 
https://developers.google.com/google-ads/api/docs/location-extensions/google-ads-location-extensions#create-location-feed,
 
but we could created the feed for another account by the same pattern, 
could you please help to take a look, thanks!
Request:
{ {
"origin": "GOOGLE",
"placesLocationFeedData": {
"oauthInfo": {
"httpMethod": "GET",
"httpRequestUrl": "https://www.googleapis.com/auth/adwords;,
"httpAuthorizationHeader": "Bearer $_Token_$"
},
"emailAddress": "$_EmaiAddress_$",
"businessAccountId": "115697877818510146446",
"labelFilters": ["3368959950"]
    },
"name": "GMBFeed_3368959950"
}
}

Response:
{ {
"errors": [{
"errorCode": {
"contextError": "OPERATION_NOT_PERMITTED_FOR_CONTEXT"
},
"message": "The operation is not allowed for the given 
context.",
"location": {
"fieldPathElements": [{
"fieldName": "operations",
"index": 0
}, {
"fieldName": "create"
}, {
"fieldName": "resource_name"
}
]
}
}
],
"requestId": "58_7ZTtx8UZIPw768Bh6qQ"
}
}

But when we created the feed for customer 6526338068 by using the same 
request (just modified the "name" as "GMBFeed_6526338068" and the  
labelFilters as ["6526338068"] ), the feed was created successfully.

Thanks

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/de56dec5-51e2-4846-8c20-0d5b8b1e668fn%40googlegroups.com.


Error running unmodified Python democontext_error: OPERATION_NOT_PERMITTED_FOR_CONTEXT

2023-06-28 Thread Jakob Steixner
Hi, 

I am currently getting an error trying to run the unchanged Python demo for 
`add_campaigns.py`, specifically in line 49 when trying to specify the 
campaign budget. 
(https://github.com/googleads/google-ads-python/blob/main/examples/basic_operations/add_campaigns.py#L49)

Could this be related to trying to use the wrong type of account (i.e. 
manager account vs. client account)? Or to insufficient funds being 
allocated to the account?

Thank you very much!

Here is the error response:

(<_InactiveRpcError of RPC that terminated with:
status = StatusCode.INVALID_ARGUMENT
details = "Request contains an invalid argument."
debug_error_string = "UNKNOWN:Error received from peer 
ipv4:142.251.208.106:443 
{created_time:"2023-06-28T10:39:27.303527057+02:00", grpc_status:3, 
grpc_message:"Request contains an invalid argument."}"
>, <_InactiveRpcError of RPC that terminated with:
status = StatusCode.INVALID_ARGUMENT
details = "Request contains an invalid argument."
debug_error_string = "UNKNOWN:Error received from peer 
ipv4:142.251.208.106:443 
{created_time:"2023-06-28T10:39:27.303527057+02:00", grpc_status:3, 
grpc_message:"Request contains an invalid argument."}"
>, errors {
  error_code {
context_error: OPERATION_NOT_PERMITTED_FOR_CONTEXT
  }
  message: "The operation is not allowed for the given context."
  location {
field_path_elements {
  field_name: "operations"
  index: 0
}
  }
}
request_id: "fhNCjYqn53q4wK_YM9hdLA"
, 'fhNCjYqn53q4wK_YM9hdLA')

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/06474bd4-74f9-4ce6-bcaa-d372e9f0e572n%40googlegroups.com.


OPERATION_NOT_PERMITTED_FOR_CONTEXT

2023-04-27 Thread MEGANATHAN P
Hello Team,

Request ,
{
  "operations": [
{
  "create": {
"deliveryMethod": "STANDARD",
"type": "STANDARD",
"period": "DAILY",
"amountMicros": 7,
"name": "Test_google_ads_google_display20230427181647",
"explicitlyShared": true
  }
}
  ]
}
i  am getting error below error form thr google ads api how to fox this
response:

{
  "error": {
"code": 400,
"message": "Request contains an invalid argument.",
"status": "INVALID_ARGUMENT",
"details": [
  {
"@type": 
"type.googleapis.com/google.ads.googleads.v13.errors.GoogleAdsFailure",
"errors": [
  {
"errorCode": {
  "contextError": "OPERATION_NOT_PERMITTED_FOR_CONTEXT"
},
"message": "The operation is not allowed for the given 
context.",
"location": {
  "fieldPathElements": [
{
  "fieldName": "operations",
  "index": 0
}
  ]
}
  }
],
"requestId": "tCsl9-nVnNKiidFsHgt-6w"
  }
]
  }
}


Thanks!

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/e6c01113-8b54-40d6-a7eb-0a3969f20965n%40googlegroups.com.


context_error: OPERATION_NOT_PERMITTED_FOR_CONTEXT

2023-03-08 Thread Aimane FARISSI
Hello, 
i'm getting this error while trying to create LOCAL_CAMPAIGN
first step budget created correctly, but second step campaign creation got 
the error.

any help.

Request
---
MethodName: 
google.ads.googleads.v13.services.CampaignService/MutateCampaigns
Endpoint: googleads.googleapis.com:443
Headers: {developer-token=REDACTED, login-customer-id=6350088078, 
x-goog-api-client=gl-java/1.8.0_322 gccl/23.0.0 gapic/23.0.0 gax/2.23.0 
grpc/1.52.1 pb/3.21.12}
Body: customer_id: "6721821997"
operations {
  create {
status: ENABLED
advertising_channel_type: LOCAL
advertising_channel_sub_type: LOCAL_CAMPAIGN
maximize_conversion_value {
  target_roas: 3.5
}
local_campaign_setting {
  location_source_type: GOOGLE_MY_BUSINESS
}
optimization_goal_setting {
  optimization_goal_types: CALL_CLICKS
  optimization_goal_types: DRIVING_DIRECTIONS
}
name: "1717 - test ads a #1502953868 : Montant est de 2,00 
\342\202\254."
campaign_budget: "customers/6721821997/campaignBudgets/12418307278"
start_date: "20230308"
end_date: "20230309"
  }
}


Response

Headers: 
Metadata(content-type=application/grpc,request-id=KSmESoIBBm44a9rz-4pWCA,date=Wed,
 
08 Mar 2023 12:02:23 GMT,alt-svc=h3=":443"; ma=2592000,h3-29=":443"; 
ma=2592000)
Body: null
Failure message: errors {
  error_code {
context_error: OPERATION_NOT_PERMITTED_FOR_CONTEXT
  }
  message: "The operation is not allowed for the given context."
  location {
field_path_elements {
  field_name: "operations"
  index: 0
}
field_path_elements {
  field_name: "create"
}
field_path_elements {
  field_name: "advertising_channel_sub_type"
}
  }
}
request_id: "KSmESoIBBm44a9rz-4pWCA"

Status: Status{code=INVALID_ARGUMENT, description=Request contains an 
invalid argument., cause=null}.

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/6a008609-0ff6-47e3-bb65-69493c8e1dd9n%40googlegroups.com.


Re: I'm getting OPERATION_NOT_PERMITTED_FOR_CONTEXT when trying to create a campaign budget using Google ads api

2022-05-19 Thread Faith Amao
I have figured it, thanks

On Thursday, May 19, 2022 at 7:56:59 PM UTC+1 Faith Amao wrote:

> I have sent a message as "reply to author" please check and help me out, 
> something is really at stake if this doesn’t work out ASAP 
> Thanks
>
> On Tuesday, May 17, 2022 at 3:42:45 PM UTC+1 adsapi wrote:
>
>> Hi Faith,
>>
>> Thank you for considering my insights. However, If you have additional 
>> questions regarding the topic being discussed in this thread, feel free to 
>> send those over to our team and we would be happy to assist you further.
>>
>>
>> Best regards,
>> [image: Google Logo] 
>> Jinky 
>> Google Ads API Team 
>>   ​​​
>>
>> ref:_00D1U1174p._5004Q2ariYM: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 
"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/18d948b2-b5cc-4650-a9b0-6f5513f624d6n%40googlegroups.com.


Re: I'm getting OPERATION_NOT_PERMITTED_FOR_CONTEXT when trying to create a campaign budget using Google ads api

2022-05-19 Thread Faith Amao
I have sent a message as "reply to author" please check and help me out, 
something is really at stake if this doesn’t work out ASAP 
Thanks

On Tuesday, May 17, 2022 at 3:42:45 PM UTC+1 adsapi wrote:

> Hi Faith,
>
> Thank you for considering my insights. However, If you have additional 
> questions regarding the topic being discussed in this thread, feel free to 
> send those over to our team and we would be happy to assist you further.
>
>
> Best regards,
> [image: Google Logo] 
> Jinky 
> Google Ads API Team 
>   ​​​
>
> ref:_00D1U1174p._5004Q2ariYM: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 
"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/e63bf1fc-bfe6-4ec3-b113-57f5c7bef2c3n%40googlegroups.com.


Re: I'm getting OPERATION_NOT_PERMITTED_FOR_CONTEXT when trying to create a campaign budget using Google ads api

2022-05-17 Thread 'Google Ads API Forum Advisor' via Google Ads API and AdWords API Forum
Hi Faith,

Thank you for considering my insights. However, If you have additional 
questions regarding the topic being discussed in this thread, feel free to send 
those over to our team and we would be happy to assist you further.

Best regards,

Jinky
Google Ads API Team

​​​
ref:_00D1U1174p._5004Q2ariYM: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 
"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/ewfMy0RC17IP00cGRWF0ZmTPStMuvNaMmyWg%40sfdc.net.


Re: I'm getting OPERATION_NOT_PERMITTED_FOR_CONTEXT when trying to create a campaign budget using Google ads api

2022-05-17 Thread Faith Amao
Thank you for your response.
I'll do that now and update you on the progress.

Thanks,
Faith.

On Tue, 17 May 2022, 08:42 Google Ads API Forum Advisor,
 wrote:

> Hi Faith,
>
> Thank you for providing the requested information. I work with Darwin and
> allow me to assist you here.
>
> Upon checking the information, it appears that you are creating a campaign
> in the manager account. Unfortunately, in Google Ads API's perspective this
> is not possible as creating a campaign is only possible on a client
> account. This is also the reason why the error occurred. With this, please
> try creating a campaign on the client account. I hope it helps and let me
> know what goes after.
>
> Best regards,
> [image: Google Logo]
> Jinky
> Google Ads API Team
>
>
> ref:_00D1U1174p._5004Q2ariYM: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 
"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/CALdPUf3CYBCPzL%3DZu4ATrSb-e9sZ77vNmPmpsy0R%2BKRdBcAMww%40mail.gmail.com.


Re: I'm getting OPERATION_NOT_PERMITTED_FOR_CONTEXT when trying to create a campaign budget using Google ads api

2022-05-13 Thread Faith Amao
Can you please assist me with this


On Thursday, May 12, 2022 at 4:56:31 PM UTC+1 Faith Amao wrote:

> "requestId": "yXdhrx2Dmow-Bmkz1kltZA" 
> customerId = "6243662635"
>
> On Thursday, May 12, 2022 at 11:37:28 AM UTC+1 adsapi wrote:
>
>> Hi Faith,
>>  
>>
>> Thanks for reaching out to the Google Ads API Support team.
>>
>>
>> With regard to your concern, It seems you have encountered a problem 
>> ContextError 
>> <https://developers.google.com/google-ads/api/reference/rpc/v10/ContextErrorEnum.ContextError?hl=en#operation_not_permitted_for_context>.
>>  
>> That error said, The operation is not allowed for the given context. 
>> However, so our team can better check this concern, could you provide the
>>  request-id 
>> <https://developers.google.com/google-ads/api/docs/concepts/call-structure#request-id>
>>  and 
>> customer-id to further investigation on this?
>>  
>>
>> You can provide it via Reply privately to the author option. If this 
>> option is not available, then send it instead on this email address 
>> googleadsa...@google.com.
>>
>>
>> Regards,
>> [image: Google Logo] 
>> Darwin 
>> Google Ads API Team 
>>   
>>
>> ref:_00D1U1174p._5004Q2ariYM: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 
"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/aa9b1d66-7ecc-4e14-9fda-9242f9f094ean%40googlegroups.com.


Re: I'm getting OPERATION_NOT_PERMITTED_FOR_CONTEXT when trying to create a campaign budget using Google ads api

2022-05-12 Thread Faith Amao
"requestId": "yXdhrx2Dmow-Bmkz1kltZA" 
customerId = "6243662635"

On Thursday, May 12, 2022 at 11:37:28 AM UTC+1 adsapi wrote:

> Hi Faith,
>  
>
> Thanks for reaching out to the Google Ads API Support team.
>
>
> With regard to your concern, It seems you have encountered a problem 
> ContextError 
> <https://developers.google.com/google-ads/api/reference/rpc/v10/ContextErrorEnum.ContextError?hl=en#operation_not_permitted_for_context>.
>  
> That error said, The operation is not allowed for the given context. 
> However, so our team can better check this concern, could you provide the
>  request-id 
> <https://developers.google.com/google-ads/api/docs/concepts/call-structure#request-id>
>  and 
> customer-id to further investigation on this?
>  
>
> You can provide it via Reply privately to the author option. If this 
> option is not available, then send it instead on this email address 
> googleadsa...@google.com.
>
>
> Regards,
> [image: Google Logo] 
> Darwin 
> Google Ads API Team 
>   
>
> ref:_00D1U1174p._5004Q2ariYM: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 
"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/cd273119-5d2e-4d7c-8a9a-328caf77efban%40googlegroups.com.


I'm getting OPERATION_NOT_PERMITTED_FOR_CONTEXT when trying to create a campaign budget using Google ads api

2022-05-10 Thread Faith Amao
Hi

I'm getting an error when trying to create a campaign budget using Google 
Ads REST API

Here is my body request:
operations: [
{
create: {
type: "SMART_CAMPAIGN",
name: "bib jjghujjgg",
amountMicros: 500,
},
},
],
partialFailure: true,
validateOnly: true,
responseContentType: "MUTABLE_RESOURCE",

And my header:
headers: {
"content-type": "application/json",
Authorization: `Bearer ${accessToken}`,
"developer-token": developerToken,
"login-customer-id": customerId,
},

And here is the error:
"partialFailureError": {
"code": 3,
"message": "The operation is not allowed for the given context., at 
operations[0]",
"details": [
{
"@type": 
"type.googleapis.com/google.ads.googleads.v10.errors.GoogleAdsFailure",
"errors": [
{
"errorCode": {
"contextError": "OPERATION_NOT_PERMITTED_FOR_CONTEXT"
},
"message": "The operation is not allowed for the given context.",
"location": {
"fieldPathElements": [
{
"fieldName": "operations",
"index": 0
}
]
}
}
]
}
]
}

Thanks for your help,
Faith.

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/aa77a8be-b333-4272-8f26-a253e87f1ae0n%40googlegroups.com.


c# Create Budget Error OPERATION_NOT_PERMITTED_FOR_CONTEXT

2022-02-12 Thread Karin Rutter
HI
I am totaly newbe on Google Ads API...
The first 2 weeks sped time to configurations of my app that finaly can get 
the API call without errors... just accout infos ;-) but for my big success.

the next step I try to create compaing but I got 
error OPERATION_NOT_PERMITTED_FOR_CONTEXT

The Code what I use come from code exemple from Google

private static string CreateBudget(GoogleAdsClient client, long customerId)
{
// Get the BudgetService.
CampaignBudgetServiceClient budgetService = client.GetService(
Services.V9.CampaignBudgetService);

// Create the campaign budget.
CampaignBudget budget = new CampaignBudget()
{
Name = "Interplanetary Cruise Budget #" + 
ExampleUtilities.GetRandomString(),
DeliveryMethod = BudgetDeliveryMethod.Standard,
AmountMicros = 50
};

// Create the operation.
CampaignBudgetOperation budgetOperation = new 
CampaignBudgetOperation()
{
Create = budget
};

// Create the campaign budget.
MutateCampaignBudgetsResponse response = 
budgetService.MutateCampaignBudgets(
customerId.ToString(), new CampaignBudgetOperation[] { 
budgetOperation });
return response.Results[0].ResourceName;
}

Thanks for Help
Adam

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/d0215dcf-71b4-4c01-935c-3536103b9c6an%40googlegroups.com.


Re: OPERATION_NOT_PERMITTED_FOR_CONTEXT

2021-11-23 Thread Sergey Gusak
Thanks, it works!
Added configData.Add("LoginCustomerId", ""); // manager customer id 
must be without dashes (-)
to code and it processed

On Tuesday, November 23, 2021 at 7:26:14 AM UTC+2 adsapi wrote:

> Hi Sergey,
>
> Thank you for reaching out to us.
>
> With regard to your concern, please do note that the API request to create 
> campaign budget is for client account only. Since you're submitted a n API 
> request using MCC account, then this is the reason why the 
> OPERATION_NOT_PERMITTED_FOR_CONTEXT error occurred..
>
> For USER_PERMISSION_DENIED, this error occurs when the authorized customer 
> does not have access to the operating customer. You may check this guide 
> <https://developers.google.com/google-ads/api/docs/best-practices/common-errors#user_permission_denied>
>  
> for further details to the said error.
>
> Regards,
>
> Reminder: Share your feedback about the Google Ads (AdWords) API! Take the 
> 2021 
> Google Ads API and AdWords API Annual Survey 
> <https://google.qualtrics.com/jfe/form/SV_eQbOpf4VxRyyqqO?source=so>
>   
> [image: Google Logo] 
> Teejay Wennie Pimentel 
> Google Ads API Team 
>   
>
> ref:_00D1U1174p._5004Q2RvRNp: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/c5b5931b-3501-4a1d-8310-dd2377c721b3n%40googlegroups.com.


RE: OPERATION_NOT_PERMITTED_FOR_CONTEXT

2021-11-22 Thread 'Google Ads API Forum Advisor' via AdWords API and Google Ads API Forum
Hi Sergey,

Thank you for reaching out to us.

With regard to your concern, please do note that the API request to create 
campaign budget is for client account only. Since you're submitted a n API 
request using MCC account, then this is the reason why the 
OPERATION_NOT_PERMITTED_FOR_CONTEXT error occurred..

For USER_PERMISSION_DENIED, this error occurs when the authorized customer does 
not have access to the operating customer. You may check this guide for further 
details to the said error.

Regards,

Reminder: Share your feedback about the Google Ads (AdWords) API! Take the 2021 
Google Ads API and AdWords API Annual Survey

Teejay Wennie Pimentel
Google Ads API Team
ref:_00D1U1174p._5004Q2RvRNp: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/_hVlG0R30F3C00aPy5VGpfQZ2qqqEhXN9_iw%40sfdc.net.


Re: OPERATION_NOT_PERMITTED_FOR_CONTEXT

2021-11-22 Thread Sergey Gusak
Sorry, I've mixed errors
Using CustomerID is cause of issue:
Failure:
Message: Status(StatusCode="PermissionDenied", Detail="The caller does not 
have permission", 
DebugException="Grpc.Core.Internal.CoreErrorDetailException: 
{"created":"@1637623447.83000","description":"Error received from peer 
ipv4:142.250.203.138:443","file":"..\..\..\src\core\lib\surface\call.cc","file_line":1070,"grpc_message":"The
 
caller does not have permission","grpc_status":7}")
Failure: { "errors": [ { "errorCode": { "authorizationError": 
"USER_PERMISSION_DENIED" }, "message": "User doesn't have permission to 
access customer. Note: If you're accessing a client customer, the manager's 
customer id must be set in the 'login-customer-id' header. See 
https://developers.google.com/google-ads/api/docs/concepts/call-structure#cid; 
} ], "requestId": "9W3MpagerCsjGYlk_ixT_Q" }
Request ID: 9W3MpagerCsjGYlk_ixT_Q

Using MCC ID:
Failure:
Message: Status(StatusCode="InvalidArgument", Detail="Request contains an 
invalid argument.", 
DebugException="Grpc.Core.Internal.CoreErrorDetailException: 
{"created":"@1637623064.47200","description":"Error received from peer 
ipv4:142.250.186.202:443","file":"..\..\..\src\core\lib\surface\call.cc","file_line":1070,"grpc_message":"Request
 
contains an invalid argument.","grpc_status":3}")
Failure: { "errors": [ { "errorCode": { "contextError": 
"OPERATION_NOT_PERMITTED_FOR_CONTEXT" }, "message": "The operation is not 
allowed for the given context.", "location": { "fieldPathElements": [ { 
"fieldName": "operations", "index": 0 } ] } } ], "requestId": 
"4FXbvyotDzdHYave7pmPwg" }
Request ID: 4FXbvyotDzdHYave7pmPwg
On Tuesday, November 23, 2021 at 1:24:21 AM UTC+2 Sergey Gusak wrote:

> Hello,
> Trying to request campaignBudgetMutate (Google Ads structure is MCC > 
> Customer)
> If use in configs CustomerID seeing this:
> Failure:
> Message: Status(StatusCode="InvalidArgument", Detail="Request contains an 
> invalid argument.", 
> DebugException="Grpc.Core.Internal.CoreErrorDetailException: 
> {"created":"@1637623064.47200","description":"Error received from peer 
> ipv4:142.250.186.202:443","file":"..\..\..\src\core\lib\surface\call.cc","file_line":1070,"grpc_message":"Request
>  
> contains an invalid argument.","grpc_status":3}")
> Failure: { "errors": [ { "errorCode": { "contextError": 
> "OPERATION_NOT_PERMITTED_FOR_CONTEXT" }, "message": "The operation is not 
> allowed for the given context.", "location": { "fieldPathElements": [ { 
> "fieldName": "operations", "index": 0 } ] } } ], "requestId": 
> "4FXbvyotDzdHYave7pmPwg" }
> Request ID: 4FXbvyotDzdHYave7pmPwg
>
> If use in configs MCC ID seeing this:
> Failure:
> Message: Status(StatusCode="PermissionDenied", Detail="The caller does not 
> have permission", 
> DebugException="Grpc.Core.Internal.CoreErrorDetailException: 
> {"created":"@1637623447.83000","description":"Error received from peer 
> ipv4:142.250.203.138:443","file":"..\..\..\src\core\lib\surface\call.cc","file_line":1070,"grpc_message":"The
>  
> caller does not have permission","grpc_status":7}")
> Failure: { "errors": [ { "errorCode": { "authorizationError": 
> "USER_PERMISSION_DENIED" }, "message": "User doesn't have permission to 
> access customer. Note: If you're accessing a client customer, the manager's 
> customer id must be set in the 'login-customer-id' header. See 
> https://developers.google.com/google-ads/api/docs/concepts/call-structure#cid;
>  
> } ], "requestId": "9W3MpagerCsjGYlk_ixT_Q" }
> Request ID: 9W3MpagerCsjGYlk_ixT_Q
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/a87a234b-97a2-4cf8-992b-97eb675ac36an%40googlegroups.com.


OPERATION_NOT_PERMITTED_FOR_CONTEXT

2021-11-22 Thread Sergey Gusak
Hello,
Trying to request campaignBudgetMutate (Google Ads structure is MCC > 
Customer)
If use in configs CustomerID seeing this:
Failure:
Message: Status(StatusCode="InvalidArgument", Detail="Request contains an 
invalid argument.", 
DebugException="Grpc.Core.Internal.CoreErrorDetailException: 
{"created":"@1637623064.47200","description":"Error received from peer 
ipv4:142.250.186.202:443","file":"..\..\..\src\core\lib\surface\call.cc","file_line":1070,"grpc_message":"Request
 
contains an invalid argument.","grpc_status":3}")
Failure: { "errors": [ { "errorCode": { "contextError": 
"OPERATION_NOT_PERMITTED_FOR_CONTEXT" }, "message": "The operation is not 
allowed for the given context.", "location": { "fieldPathElements": [ { 
"fieldName": "operations", "index": 0 } ] } } ], "requestId": 
"4FXbvyotDzdHYave7pmPwg" }
Request ID: 4FXbvyotDzdHYave7pmPwg

If use in configs MCC ID seeing this:
Failure:
Message: Status(StatusCode="PermissionDenied", Detail="The caller does not 
have permission", 
DebugException="Grpc.Core.Internal.CoreErrorDetailException: 
{"created":"@1637623447.83000","description":"Error received from peer 
ipv4:142.250.203.138:443","file":"..\..\..\src\core\lib\surface\call.cc","file_line":1070,"grpc_message":"The
 
caller does not have permission","grpc_status":7}")
Failure: { "errors": [ { "errorCode": { "authorizationError": 
"USER_PERMISSION_DENIED" }, "message": "User doesn't have permission to 
access customer. Note: If you're accessing a client customer, the manager's 
customer id must be set in the 'login-customer-id' header. See 
https://developers.google.com/google-ads/api/docs/concepts/call-structure#cid; 
} ], "requestId": "9W3MpagerCsjGYlk_ixT_Q" }
Request ID: 9W3MpagerCsjGYlk_ixT_Q

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/d5c8e588-5c2c-4869-ad4b-cec1597197e4n%40googlegroups.com.


Re: OPERATION_NOT_PERMITTED_FOR_CONTEXT for demographic targeting

2021-09-29 Thread Google Ads API Forum Advisor
Hi Lakshya,

Thank you for the trace that you provided. However, these do not appear to be 
the complete request and response logs with request ID that my colleague Ernie 
earlier requested.

That said, and since it appears that you are using Ruby, you can first enable 
logging by referring to this guide. Once enabled, you may retry your request 
and provide to our team the generated logs as these would greatly help us in 
troubleshooting the API error you are encountering.

Furthermore, I would highly recommend that you send the requested information 
via the Reply privately to author option. If this option is not available, you 
may send the details directly to our googleadsapi-supp...@google.com alias 
instead.

Best regards,

Peter Laurence Napa Oliquino
Google Ads API Team
ref:_00D1U1174p._5004Q2OUL1d: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/IwXe90R06M9P00QBHLDrhFTbivyHlxIPaWjA%40sfdc.net.


Re: OPERATION_NOT_PERMITTED_FOR_CONTEXT for demographic targeting

2021-09-27 Thread Lakshya Garg
Hi,

I am trying to add demographic for local campaign.

options[:customer_id] = '1642674633'
options[:ad_group_id] = '133212439888'

Please find the below logs:

request_id:  8orcWK_fFAnfvMeqTNet0g

WARN -- : CID: 1642674633, Host: googleads.googleapis.com:443, Method: 
/google.ads.googleads.v8.services.AdGroupCriterionService/MutateAdGroupCriteria,
 
IsFault: yes, Request ID: 8orcWK_fFAnfvMeqTNet0g
Error with message: The operation is not allowed for the given context.
On field: operations
On field: create
On field: gender
Type: context_error
Code: OPERATION_NOT_PERMITTED_FOR_CONTEXT
Error with message: The operation is not allowed for the given context.
On field: operations
On field: create
On field: age_range
Type: context_error
Code: OPERATION_NOT_PERMITTED_FOR_CONTEXT
Traceback (most recent call last):
13: from add_demographic_criteria.rb:77:in `'
12: from add_demographic_criteria.rb:29:in 
`add_demographic_targeting_criteria'
11: from 
/Users/synup/.rvm/gems/ruby-2.5.1/gems/google-ads-googleads-14.0.0/lib/google/ads/google_ads/service_wrapper.rb:50:in
 
`method_missing'
10: from 
/Users/synup/.rvm/gems/ruby-2.5.1/gems/google-ads-googleads-14.0.0/lib/google/ads/google_ads/service_wrapper.rb:50:in
 
`public_send'
 9: from 
/Users/synup/.rvm/gems/ruby-2.5.1/gems/google-ads-googleads-14.0.0/lib/google/ads/google_ads/v8/services/ad_group_criterion_service/client.rb:333:in
 
`mutate_ad_group_criteria'
 8: from 
/Users/synup/.rvm/gems/ruby-2.5.1/gems/gapic-common-0.6.0/lib/gapic/grpc/service_stub.rb:156:in
 
`call_rpc'
 7: from 
/Users/synup/.rvm/gems/ruby-2.5.1/gems/gapic-common-0.6.0/lib/gapic/grpc/service_stub/rpc_call.rb:121:in
 
`call'
 6: from 
/Users/synup/.rvm/gems/ruby-2.5.1/gems/grpc-1.40.0-universal-darwin/src/ruby/lib/grpc/generic/client_stub.rb:173:in
 
`block in request_response'
 5: from 
/Users/synup/.rvm/gems/ruby-2.5.1/gems/grpc-1.40.0-universal-darwin/src/ruby/lib/grpc/generic/interceptors.rb:175:in
 
`intercept!'
 4: from 
/Users/synup/.rvm/gems/ruby-2.5.1/gems/google-ads-googleads-14.0.0/lib/google/ads/google_ads/interceptors/logging_interceptor.rb:53:in
 
`request_response'
 3: from 
/Users/synup/.rvm/gems/ruby-2.5.1/gems/grpc-1.40.0-universal-darwin/src/ruby/lib/grpc/generic/interceptors.rb:177:in
 
`block in intercept!'
 2: from 
/Users/synup/.rvm/gems/ruby-2.5.1/gems/grpc-1.40.0-universal-darwin/src/ruby/lib/grpc/generic/interceptors.rb:175:in
 
`intercept!'
 1: from 
/Users/synup/.rvm/gems/ruby-2.5.1/gems/google-ads-googleads-14.0.0/lib/google/ads/google_ads/interceptors/error_interceptor.rb:63:in
 
`request_response'
/Users/synup/.rvm/gems/ruby-2.5.1/gems/google-ads-googleads-14.0.0/lib/google/ads/google_ads/interceptors/error_interceptor.rb:67:in
 
`rescue in request_response': 
Google::Ads::GoogleAds::Errors::GoogleAdsError 
(Google::Ads::GoogleAds::Errors::GoogleAdsError)

On Monday, September 27, 2021 at 1:15:30 PM UTC+5:30 adsapi wrote:

> Hi Lakshya,
>
> Thank you for posting your concern.
>
> To investigate the issue that you experienced, could you provide 
> the complete request 
> <https://developers.google.com/google-ads/api/docs/concepts/field-service#request>
>  
> and response 
> <https://developers.google.com/google-ads/api/docs/concepts/field-service#response>
>  
> logs with request ID 
> <https://developers.google.com/google-ads/api/docs/concepts/call-structure#request-id>
>  
> generated on your end where we can see the error?
>
> If you haven't enabled the logging of the API transactions for the 
> specific client library that you are using, then please refer to the 
> specific guide below: 
>
>- Java - 
>https://developers.google.com/google-ads/api/docs/client-libs/java/logging 
>- .Net - 
>
> https://developers.google.com/google-ads/api/docs/client-libs/dotnet/logging 
>- PHP - 
>https://developers.google.com/google-ads/api/docs/client-libs/php/logging 
>- Python - 
>
> https://developers.google.com/google-ads/api/docs/client-libs/python/logging 
>- Ruby - 
>https://developers.google.com/google-ads/api/docs/client-libs/ruby/logging 
>- Perl - 
>https://developers.google.com/google-ads/api/docs/client-libs/perl/logging 
>
>
> You can provide it via *Reply privately to author* option. If this option 
> is not available, then send it instead on this email address 
> googleadsa...@google.com.
>
> Regards,
> [image: Google Logo] 
> Ernie John Blanca Tacata 
> Google Ads API Team 
>   
>
> ref:_00D1U1174p._5004Q2OUL1d:ref
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=

RE: OPERATION_NOT_PERMITTED_FOR_CONTEXT for demographic targeting

2021-09-27 Thread Google Ads API Forum Advisor
Hi Lakshya,

Thank you for posting your concern.

To investigate the issue that you experienced, could you provide the complete 
request and response logs with request ID generated on your end where we can 
see the error?

If you haven't enabled the logging of the API transactions for the specific 
client library that you are using, then please refer to the specific guide 
below:

Java - 
https://developers.google.com/google-ads/api/docs/client-libs/java/logging
.Net - 
https://developers.google.com/google-ads/api/docs/client-libs/dotnet/logging
PHP - https://developers.google.com/google-ads/api/docs/client-libs/php/logging
Python - 
https://developers.google.com/google-ads/api/docs/client-libs/python/logging
Ruby - 
https://developers.google.com/google-ads/api/docs/client-libs/ruby/logging
Perl - 
https://developers.google.com/google-ads/api/docs/client-libs/perl/logging


You can provide it via Reply privately to author option. If this option is not 
available, then send it instead on this email address 
googleadsapi-supp...@google.com.

Regards,

Ernie John Blanca Tacata
Google Ads API Team
ref:_00D1U1174p._5004Q2OUL1d: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/RmJa70R031JG00XgtvHkA8RB6V66kpVLuRdA%40sfdc.net.


OPERATION_NOT_PERMITTED_FOR_CONTEXT for demographic targeting

2021-09-26 Thread Lakshya Garg
Hi ,

I am having test account, and i am trying to create demographic targeting. 
I tried creating at campaign as well as ad level. but getting the 
exception: OPERATION_NOT_PERMITTED_FOR_CONTEXT..

Can you please help with this?

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/c764a4bf-140e-4c7b-a4ef-903ddd413ae7n%40googlegroups.com.


Re: OPERATION_NOT_PERMITTED_FOR_CONTEXT with PHP examples AddCampaigns.php

2021-08-17 Thread Google Ads API Forum Advisor
Hi Matěj,

Thank you for the reply.

You need to link the client accounts to your manager account, which your user 
account have an access, and follow the call structure that I've mentioned on my 
previous email. You may check this document as it discussed the suggestion that 
I provided.

Let me know if you have further questions.

Regards,

Ernie John Blanca Tacata
Google Ads API Team
ref:_00D1U1174p._5004Q2LmM8U: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/NDHEg0QXZ18900JcM_e-UCTfGoMtZX7qSuVA%40sfdc.net.


Re: OPERATION_NOT_PERMITTED_FOR_CONTEXT with PHP examples AddCampaigns.php

2021-08-16 Thread Matěj Humpál , Follow Bubble

Hi Ernie,

yes, I have followed all the steps you mention before and as I mention 
in the previous message, I was able to make the API work after I 
accepted the invitation to the client account I myself created a few 
moments before.


My concern is: Do I have to be explicitly invited to all client accounts 
I need to work with via the API, even though my Manager Account can 
already work with their data in the ads administration? Or will I have 
access through the manager account?


Thanks for clarification.

Sincerely,

Matěj Humpál
Developer Lead
Follow Bubble s.r.o.

Dne 13. 8. 2021 v 7.29 Google Ads API Forum Advisor napsal(a):

Hi Matěj,

Thanks for the reply. I work with Yasar and let me provide support to 
your concern.


Could you confirm if your question is related on how to authenticate 
in Google Ads API to avoid the error? If yes, then you may see the key 
things to remember below:
1. Set customer ID (without hyphen) of the manager account to 
login-customer-id
2. Generate Oauth2 credential / API token using user account / email 
address that has access to that manager account
3. Set customer ID of the client account (without hyphen), where you 
want to make API request, to the *customer_id* field. This client 
account should have an active link with the manager account mentioned 
in first step


Regards,
Google Logo 
Ernie John Blanca Tacata
Google Ads API Team



ref:_00D1U1174p._5004Q2LmM8U: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 a topic in the 
Google Groups "AdWords API and Google Ads API Forum" group.
To unsubscribe from this topic, visit 
https://groups.google.com/d/topic/adwords-api/If1zxD7UBmk/unsubscribe 
.
To unsubscribe from this group and all its topics, 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/_LXhL0QXRJ9900itJkoMvlSDe3IA_Yx4F_zQ%40sfdc.net 
.


--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/9b3d2629-9d66-3521-fa1b-c8a96716ec97%40followbubble.com.


Re: OPERATION_NOT_PERMITTED_FOR_CONTEXT with PHP examples AddCampaigns.php

2021-08-12 Thread Google Ads API Forum Advisor
Hi Matěj,

Thanks for the reply. I work with Yasar and let me provide support to your 
concern.

Could you confirm if your question is related on how to authenticate in Google 
Ads API to avoid the error? If yes, then you may see the key things to remember 
below:
1. Set customer ID (without hyphen) of the manager account to login-customer-id
2. Generate Oauth2 credential / API token using user account / email address 
that has access to that manager account
3. Set customer ID of the client account (without hyphen), where you want to 
make API request, to the customer_id field. This client account should have an 
active link with the manager account mentioned in first step

Regards,

Ernie John Blanca Tacata
Google Ads API Team
ref:_00D1U1174p._5004Q2LmM8U: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/_LXhL0QXRJ9900itJkoMvlSDe3IA_Yx4F_zQ%40sfdc.net.


Re: OPERATION_NOT_PERMITTED_FOR_CONTEXT with PHP examples AddCampaigns.php

2021-08-12 Thread Matěj Humpál , Follow Bubble
Never mind, I just accepted an invitation to a client account (under the 
same e-mail address that the Manager Account is under) and everything 
(or basic get/add campaign operations) started working.


Not that this is super clear behaviour, but OK. Is there a clearer, more 
straightforward way?


Is there anything else I should be aware about?

Matěj Humpál
Developer Lead
Follow Bubble s.r.o.

Dne 12. 8. 2021 v 9.09 Google Ads API Forum Advisor napsal(a):


Hi MH,

Thanks for reaching out to us.

Kindly note that you may receive error ‘USER_PERMISSION_DENIED’ if 
you’re incorrectly setting the 'login-customer-id’ in the request or 
when a user doesn't have permission to access a customer and you’re 
accessing a client customer using 'login-customer-id’ in the request.


That being said, you may refer to this 
<https://developers.google.com/google-ads/api/docs/concepts/call-structure?hl=en> 
documentation on how to specify the login-customer-id property in the 
request properly.


With regards to the issue found in the logs you’ve shared, the error 
OPERATION_NOT_PERMITTED_FOR_CONTEXT 
<https://developers.google.com/google-ads/api/reference/rpc/v8/ContextErrorEnum.ContextError?hl=en#operation_not_permitted_for_context> 
means that sometimes the operation may work for some configurations, 
but for your particular configuration, it will not work.


That being said, the target customer ID from your request, 7868560570, 
is a test manager account, which is why you are receiving the error, 
OPERATION_NOT_PERMITTED_FOR_CONTEXT. The CampaignBudgetService 
<https://developers.google.com/google-ads/api/reference/rpc/v8/CampaignBudgetService> 
may only be used on a client customer account (i.e. an account that 
has campaigns in it). Please retry using a client customer.


Let us know if you have any further questions.

Regards,

Google Logo 
Yasar Ramjan Makandar
Google Ads API Team



ref:_00D1U1174p._5004Q2LmM8U:ref --
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/ 
<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 
<http://groups.google.com/group/adwords-api?hl=en>

---
You received this message because you are subscribed to a topic in the 
Google Groups "AdWords API and Google Ads API Forum" group.
To unsubscribe from this topic, visit 
https://groups.google.com/d/topic/adwords-api/If1zxD7UBmk/unsubscribe 
<https://groups.google.com/d/topic/adwords-api/If1zxD7UBmk/unsubscribe>.
To unsubscribe from this group and all its topics, send an email to 
adwords-api+unsubscr...@googlegroups.com 
<mailto:adwords-api+unsubscr...@googlegroups.com>.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/rOizA0QXPT7600ohHvqFjuRluJRp6A-xStVg%40sfdc.net 
<https://groups.google.com/d/msgid/adwords-api/rOizA0QXPT7600ohHvqFjuRluJRp6A-xStVg%40sfdc.net?utm_medium=email_source=footer>.


--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/e6946c5d-f733-8f45-1a52-79d8710d39d8%40followbubble.com.


Re: OPERATION_NOT_PERMITTED_FOR_CONTEXT with PHP examples AddCampaigns.php

2021-08-12 Thread Matěj Humpál , Follow Bubble

Thanks for a quick response!

Also thanks for the clarification, I expected something along these lines.

I still don't understand why I wouldn't have permissions to access 
customers I created myself 5 minutes ago. The USER_PERMISSION_DENIED i 
get is when I use --customerId parameter 7930612705.


Do I assume correctly that I should be able to query customers I am able 
to see/change in the administration?


Or is it necessary to additionally set up permissions somewhere?

Matěj Humpál
Developer Lead
Follow Bubble s.r.o.

Dne 12. 8. 2021 v 9.09 Google Ads API Forum Advisor napsal(a):


Hi MH,

Thanks for reaching out to us.

Kindly note that you may receive error ‘USER_PERMISSION_DENIED’ if 
you’re incorrectly setting the 'login-customer-id’ in the request or 
when a user doesn't have permission to access a customer and you’re 
accessing a client customer using 'login-customer-id’ in the request.


That being said, you may refer to this 
<https://developers.google.com/google-ads/api/docs/concepts/call-structure?hl=en> 
documentation on how to specify the login-customer-id property in the 
request properly.


With regards to the issue found in the logs you’ve shared, the error 
OPERATION_NOT_PERMITTED_FOR_CONTEXT 
<https://developers.google.com/google-ads/api/reference/rpc/v8/ContextErrorEnum.ContextError?hl=en#operation_not_permitted_for_context> 
means that sometimes the operation may work for some configurations, 
but for your particular configuration, it will not work.


That being said, the target customer ID from your request, 7868560570, 
is a test manager account, which is why you are receiving the error, 
OPERATION_NOT_PERMITTED_FOR_CONTEXT. The CampaignBudgetService 
<https://developers.google.com/google-ads/api/reference/rpc/v8/CampaignBudgetService> 
may only be used on a client customer account (i.e. an account that 
has campaigns in it). Please retry using a client customer.


Let us know if you have any further questions.

Regards,

Google Logo 
Yasar Ramjan Makandar
Google Ads API Team



ref:_00D1U1174p._5004Q2LmM8U:ref --
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/ 
<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 
<http://groups.google.com/group/adwords-api?hl=en>

---
You received this message because you are subscribed to a topic in the 
Google Groups "AdWords API and Google Ads API Forum" group.
To unsubscribe from this topic, visit 
https://groups.google.com/d/topic/adwords-api/If1zxD7UBmk/unsubscribe 
<https://groups.google.com/d/topic/adwords-api/If1zxD7UBmk/unsubscribe>.
To unsubscribe from this group and all its topics, send an email to 
adwords-api+unsubscr...@googlegroups.com 
<mailto:adwords-api+unsubscr...@googlegroups.com>.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/rOizA0QXPT7600ohHvqFjuRluJRp6A-xStVg%40sfdc.net 
<https://groups.google.com/d/msgid/adwords-api/rOizA0QXPT7600ohHvqFjuRluJRp6A-xStVg%40sfdc.net?utm_medium=email_source=footer>.


--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/c961d5ae-9567-09b3-8ddf-319fcf387bbb%40followbubble.com.


RE: OPERATION_NOT_PERMITTED_FOR_CONTEXT with PHP examples AddCampaigns.php

2021-08-12 Thread Google Ads API Forum Advisor
Hi MH,

Thanks for reaching out to us.

Kindly note that you may receive error ‘USER_PERMISSION_DENIED’ if you’re 
incorrectly setting the 'login-customer-id’ in the request or when a user 
doesn't have permission to access a customer and you’re accessing a client 
customer using 'login-customer-id’ in the request.

That being said, you may refer to this documentation on how to specify the 
login-customer-id property in the request properly.

With regards to the issue found in the logs you’ve shared, the error 
OPERATION_NOT_PERMITTED_FOR_CONTEXT means that sometimes the operation may work 
for some configurations, but for your particular configuration, it will not 
work.

That being said, the target customer ID from your request, 7868560570, is a 
test manager account, which is why you are receiving the error, 
OPERATION_NOT_PERMITTED_FOR_CONTEXT. The CampaignBudgetService may only be used 
on a client customer account (i.e. an account that has campaigns in it). Please 
retry using a client customer.

Let us know if you have any further questions.

Regards,

Yasar Ramjan Makandar
Google Ads API Team
ref:_00D1U1174p._5004Q2LmM8U: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/rOizA0QXPT7600ohHvqFjuRluJRp6A-xStVg%40sfdc.net.


OPERATION_NOT_PERMITTED_FOR_CONTEXT with PHP examples AddCampaigns.php

2021-08-11 Thread Matěj Humpál

Hello,

I keep getting the error above on adding a budget when using PHP example 
code from https://github.com/googleads/google-ads-php 
(examples/BasicOperations/AddCampaigns.php) . I do have a test account and 
the only thing I changed in the code was the account ID.

Various GET operations are running OK, although the result is mostly empty 
as the account is new.

Do I have to set additional permissions somehow? I find the documentation 
not quite aligning with reality in places.

I am using the ID of my test account. Do I have to create a customer 
sub-account and use that for testing the API? When I try that, the only 
error I get is USER_PERMISSION_DENIED.

Below is the result I get running the example file:

[2021-08-11T16:00:53.997292+02:00] google-ads.WARNING: Request made: Host: 
"googleads.googleapis.com", Method: 
"/google.ads.googleads.v8.services.CampaignBudgetService/MutateCampaignBudgets",
 
CustomerId: 7868560570, RequestId: "-M7Gbo0wtv4jblE2qXWg3A", IsFault: 1, 
FaultMessage: "["The operation is not allowed for the given context."]"  
[2021-08-11T16:00:53.999249+02:00] google-ads.NOTICE: Request
---
Method Name: 
/google.ads.googleads.v8.services.CampaignBudgetService/MutateCampaignBudgets
Host: googleads.googleapis.com
Headers: {
"x-goog-api-client": "gl-php\/7.4.21 gapic\/ gax\/1.7.1 grpc\/1.38.0",
"x-goog-request-params": "customer_id=7868560570",
"developer-token": "REDACTED"
}
Request: 
{"customerId":"7868560570","operations":[{"create":{"name":"Interplanetary 
Cruise Budget 
#2021-08-11T16:00:53.239+02:00","amountMicros":"50","deliveryMethod":"STANDARD"}}]}

Response
---
Headers: {
"request-id": "-M7Gbo0wtv4jblE2qXWg3A",
"date": "Wed, 11 Aug 2021 14:00:54 GMT",
"alt-svc": "h3=\":443\"; ma=2592000,h3-29=\":443\"; 
ma=2592000,h3-T051=\":443\"; ma=2592000,h3-Q050=\":443\"; 
ma=2592000,h3-Q046=\":443\"; ma=2592000,h3-Q043=\":443\"; 
ma=2592000,quic=\":443\"; ma=2592000; v=\"46,43\""
}

Fault
---
Status code: 3
Details: Request contains an invalid argument.
Failure: 
{"errors":[{"errorCode":{"contextError":"OPERATION_NOT_PERMITTED_FOR_CONTEXT"},"message":"The
 
operation is not allowed for the given 
context.","location":{"fieldPathElements":[{"fieldName":"operations","index":0}]}}],"requestId":"-M7Gbo0wtv4jblE2qXWg3A"}
 
 

Thank you for your help.

MH

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/a116c2d2-d687-49b0-84e6-cd0383caaa4an%40googlegroups.com.


Re: OPERATION_NOT_PERMITTED_FOR_CONTEXT

2021-08-06 Thread Google Ads API Forum Advisor
Hi,

I noticed that you posted on several threads regarding your concern. Our team 
recommends that we continue discussions on a single thread instead, for better 
tracking of issues.

That being said, you may refer to my response to your concern in this thread, 
to address the OPERATION_NOT_PERMITTED_FOR_CONTEXT error and also the other 
error you mentioned, concerning Smart Display Campaigns.

Best regards,

Peter Laurence Napa Oliquino
Google Ads API Team
ref:_00D1U1174p._5004Q2JZPPz: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/oHfmd0QXEQTM00RzQjs0ikQxq3_4dTBLFCcQ%40sfdc.net.


Re: OPERATION_NOT_PERMITTED_FOR_CONTEXT

2021-08-05 Thread Google Ads API Forum Advisor
Hello Aditya,

In the future, if a thread is a few months old and no longer active, could you 
do us a huge favor and just start a new thread? Sometimes, your issue may be 
different than the last one, and it can be confusing to some other people who 
may have had their issue already resolved on the thread. I do appreciate that 
you are checking the forum first, though.

This time, rather than making you start a new thread, I'll just answer. Thank 
you for providing the logs with the error. That makes it much easier for me to 
explain what's going on. For this campaign type, this is working as intended. 
You cannot add a campaign criterion with a user list to this campaign type. Let 
me break down the error to show you.

The operation is not allowed for the given context. This means that sometimes 
the operation may work for some configurations, but for your particular 
configuration, it will not work.
trigger {  string_value: "DISPLAY(DISPLAY_FULL_AUTOMATION)"} This is telling 
you that the campaign type is of type DISPLAY with the subtype of the campaign 
being DISPLAY_FULL_AUTOMATION. When something is full automation, usually you 
cannot control the specifics of how the campaign runs. All the choices are 
automated, and the choices are made for you by the campaign, since the campaign 
is automated.
location {  field_path_elements {field_name: "operations"index: 0  }  
field_path_elements {field_name: "create"  }  field_path_elements {
field_name: "user_list"  }} This is telling you that the item you can't add is 
the user list.

Putting all these pieces of the error together, this is saying that you can't 
add a campaign criterion with a user list to a campaign of type DISPLAY 
(DISPLAY_FULL_AUTOMATION). Google Ads does not allow this based on the current 
configuration. However, you can do this for other campaign types.

Best,
Nadine Wang, Google Ads API Team
ref:_00D1U1174p._5004Q269XD1: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/IW5b10QXDE5900t04SuZN8Rj-D91HQSHevnQ%40sfdc.net.


Re: OPERATION_NOT_PERMITTED_FOR_CONTEXT

2021-08-05 Thread Aditya Naukri
I am also facing the same issue. I am trying to link my Customer Match 
UserList to the campaign. Getting the following error using the code:
 

CampaignCriterionServiceClient campaignCriterionServiceClient = 
googleAdsClient.getLatestVersion().createCampaignCriterionServiceClient();
  UserListInfo userListInfo = 
UserListInfo.newBuilder().setUserList(userList).build();
  CampaignCriterion campaignCriterion = 
CampaignCriterion.newBuilder().setCampaign(ResourceNames.campaign(customerId, 
campaignId)).mergeUserList(userListInfo).build();
  
  CampaignCriterionOperation criterionOperation = 
CampaignCriterionOperation.newBuilder().setCreate(campaignCriterion).build();
  
  MutateCampaignCriteriaResponse response = 
campaignCriterionServiceClient.mutateCampaignCriteria(Long.toString(customerId),
 
ImmutableList.of(criterionOperation)); 

*ERROR:*

request_id: "2aU6KGGvOVHmF06kHCreNA"
Status: Status{code=INVALID_ARGUMENT, description=Request contains an 
invalid argument., cause=null}.Request ID 2aU6KGGvOVHmF06kHCreNA failed due 
to GoogleAdsException. Underlying errors:  Error 0: error_code {  
context_error: OPERATION_NOT_PERMITTED_FOR_CONTEXT}message: "The operation 
is not allowed for the given context."trigger {  string_value: 
"DISPLAY(DISPLAY_FULL_AUTOMATION)"}location {  field_path_elements {
field_name: "operations"index: 0  }  field_path_elements {
field_name: "create"  }  field_path_elements {field_name: "user_list"  
}}

On Thursday, July 8, 2021 at 7:07:30 AM UTC+5:30 adsapi wrote:

> Hello there,
>
> Thank you for raising this to us.
>
> So our team can better check on the issue, could you share with us the 
> following details below?
>
>- If using the AdWords API 
><https://developers.google.com/adwords/api/docs/guides/start> 
>   - complete SOAP logs (request 
>   
> <https://developers.google.com/adwords/api/docs/guides/call-structure#request>
>and response 
>   
> <https://developers.google.com/adwords/api/docs/guides/call-structure#response>
>  with 
>   requestId) 
>- If using the Google Ads API 
><https://developers.google.com/google-ads/api/docs/start> 
>   - complete logs (request 
>   
> <https://developers.google.com/google-ads/api/docs/concepts/field-service#request>
>and response 
>   
> <https://developers.google.com/google-ads/api/docs/concepts/field-service#response>
>with request-id 
>   
> <https://developers.google.com/google-ads/api/docs/concepts/call-structure#request-id>
>   ) 
>
> Please send the requested details via the *Reply privately to author* option. 
> If this option is not available, you may send the details directly to our 
> *googleadsa...@google.com* alias instead.
>
> Regards,
> [image: Google Logo] 
> Mark Kevin Albios 
> Google Ads API Team 
>   
>
> ref:_00D1U1174p._5004Q2JZPPz: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/b6a869ea-02da-4068-bd9b-8d11d9ccc767n%40googlegroups.com.


Re: OPERATION_NOT_PERMITTED_FOR_CONTEXT

2021-08-05 Thread Aditya Naukri
I am also facing the same issue. I am trying to link my Customer Match 
UserList to the campaign. Getting the following error using the code:
 

CampaignCriterionServiceClient campaignCriterionServiceClient = 
googleAdsClient.getLatestVersion().createCampaignCriterionServiceClient();
  UserListInfo userListInfo = 
UserListInfo.newBuilder().setUserList(userList).build();
  CampaignCriterion campaignCriterion = 
CampaignCriterion.newBuilder().setCampaign(ResourceNames.campaign(customerId, 
campaignId)).mergeUserList(userListInfo).build();
  
  CampaignCriterionOperation criterionOperation = 
CampaignCriterionOperation.newBuilder().setCreate(campaignCriterion).build();
  
  MutateCampaignCriteriaResponse response = 
campaignCriterionServiceClient.mutateCampaignCriteria(Long.toString(customerId),
 
ImmutableList.of(criterionOperation)); 

*ERROR:*

request_id: "2aU6KGGvOVHmF06kHCreNA"
Status: Status{code=INVALID_ARGUMENT, description=Request contains an 
invalid argument., cause=null}.Request ID 2aU6KGGvOVHmF06kHCreNA failed due 
to GoogleAdsException. Underlying errors:  Error 0: error_code {  
context_error: OPERATION_NOT_PERMITTED_FOR_CONTEXT}message: "The operation 
is not allowed for the given context."trigger {  string_value: 
"DISPLAY(DISPLAY_FULL_AUTOMATION)"}location {  field_path_elements {
field_name: "operations"index: 0  }  field_path_elements {
field_name: "create"  }  field_path_elements {field_name: "user_list"  
}}

On Friday, October 16, 2020 at 7:05:10 PM UTC+5:30 cv wrote:

> Hi Ernie,
>
> I am not sure is this the reason.
> Because I am facing issue with this account only.
>
> Can you please help?
>
> Thanks
>
>
> On Friday, 16 October 2020 at 10:43:20 UTC+5:30 adsapiforumadvisor wrote:
>
>> Hi,
>>
>> Thanks for posting your concern.
>>
>> I would like to inform you first that API version v3 
>> <https://developers.google.com/google-ads/api/docs/release-notes#300_beta_2020-02-27>,
>>  
>> which you are currently using, is already deprecated as discussed on our 
>> Deprecation 
>> Schedule <https://developers.google.com/google-ads/api/docs/sunset-dates> 
>> document. 
>> With this, we recommend that you upgrade to the newest version by following 
>> this guide 
>> <https://developers.google.com/google-ads/api/docs/version-migration#top_of_page>
>>  to 
>> try out new features in Google Ads API.
>>
>> After migrating to the newest version, please try the API request again. 
>> If the issue persists, you can provide the complete request and response 
>> logs, together with the error message and customer ID, so our team can 
>> investigate. You can provide the requested details via *Reply privately 
>> to author* option.
>>
>> Regards,
>> [image: Google Logo] 
>> Ernie John Blanca Tacata 
>> Google Ads API Team 
>>   
>>
>> ref:_00D1U1174p._5004Q269XD1: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/441b5807-9edd-4fb2-a052-80382a1b32d3n%40googlegroups.com.


RE: OPERATION_NOT_PERMITTED_FOR_CONTEXT

2021-07-07 Thread Google Ads API Forum Advisor
Hello there,

Thank you for raising this to us.

So our team can better check on the issue, could you share with us the 
following details below?

If using the AdWords API

complete SOAP logs (request and response with requestId)

If using the Google Ads API

complete logs (request and response with request-id)


Please send the requested details via the Reply privately to author option. If 
this option is not available, you may send the details directly to our 
googleadsapi-supp...@google.com alias instead.

Regards,

Mark Kevin Albios
Google Ads API Team
ref:_00D1U1174p._5004Q2JZPPz: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/O_a6G0QVWKI300UN58Lz9jTV-Dgemk0vT_Sg%40sfdc.net.


OPERATION_NOT_PERMITTED_FOR_CONTEXT

2021-07-07 Thread JustRide with Vinay
Fault: errors {
  error_code {
context_error: OPERATION_NOT_PERMITTED_FOR_CONTEXT
  }
  message: "The operation is not allowed for the given context."
  location {
field_path_elements {
  field_name: "operations"
  index: 0
}
  }

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/ac007dbf-27b4-4f81-b33a-3f614c12acb3n%40googlegroups.com.


Re: OPERATION_NOT_PERMITTED_FOR_CONTEXT

2020-10-16 Thread cv
Hi Ernie,

I am not sure is this the reason.
Because I am facing issue with this account only.

Can you please help?

Thanks


On Friday, 16 October 2020 at 10:43:20 UTC+5:30 adsapiforumadvisor wrote:

> Hi,
>
> Thanks for posting your concern.
>
> I would like to inform you first that API version v3 
> ,
>  
> which you are currently using, is already deprecated as discussed on our 
> Deprecation 
> Schedule  
> document. 
> With this, we recommend that you upgrade to the newest version by following 
> this guide 
> 
>  to 
> try out new features in Google Ads API.
>
> After migrating to the newest version, please try the API request again. 
> If the issue persists, you can provide the complete request and response 
> logs, together with the error message and customer ID, so our team can 
> investigate. You can provide the requested details via *Reply privately 
> to author* option.
>
> Regards,
> [image: Google Logo] 
> Ernie John Blanca Tacata 
> Google Ads API Team 
>   
>
> ref:_00D1U1174p._5004Q269XD1: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/89917fed-e146-4154-8f0c-e7b465e2c484n%40googlegroups.com.


RE: OPERATION_NOT_PERMITTED_FOR_CONTEXT

2020-10-15 Thread Google Ads API Forum Advisor Prod
Hi,

Thanks for posting your concern.

I would like to inform you first that API version v3, which you are currently 
using, is already deprecated as discussed on our Deprecation Schedule document. 
With this, we recommend that you upgrade to the newest version by following 
this guide to try out new features in Google Ads API.

After migrating to the newest version, please try the API request again. If the 
issue persists, you can provide the complete request and response logs, 
together with the error message and customer ID, so our team can investigate. 
You can provide the requested details via Reply privately to author option.

Regards,

Ernie John Blanca Tacata
Google Ads API Team
ref:_00D1U1174p._5004Q269XD1: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/Se8Uw0QIA3TI00abuUYWvrQOCBNTKk9gqT5w%40sfdc.net.


OPERATION_NOT_PERMITTED_FOR_CONTEXT

2020-10-15 Thread cv
Hi,

I am getting error while adding campaigns to negative placement list.

Response: {"partialFailureError":{"code":3,"message":"The operation is not 
allowed for the given context., at 
operations[1].create.campaign","details":[{"@type":"type.googleapis.com/google.ads.googleads.v3.errors.GoogleAdsFailure","errors":[{"errorCode":{"contextError":"OPERATION_NOT_PERMITTED_FOR_CONTEXT"},"message":"The
 
operation is not allowed for the given 
context.","trigger":{"stringValue":"DISPLAY(DISPLAY_FULL_AUTOMATION)"},"location":{"fieldPathElements":[{"fieldName":"operations","index":"1"},{"fieldName":"create"},{"fieldName":"campaign"}]}}]}]},"results":[{"resourceName":"customers\/XXX\/campaignSharedSets\/XXX~XXX"},{}]}
 

Why it was like this?

Thanks,

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/cd31279f-b13b-4452-99e0-fe69b8b76fd8n%40googlegroups.com.