Get ListAccessibleCustomers error "Request contains an invalid argument"

2023-04-10 Thread Khải Nguyễn Danh
Hi i have granted this webapp permission to access my ad account but when i 
try to get client data getting the error "", _developerToken, _clientId, 
_clientSecret are what i use to get the account .RefestToken, but when I 
reuse it here it gives an error, here is my code:

 GoogleAdsConfig config = new GoogleAdsConfig()
{
DeveloperToken = _developerToken,
OAuth2Mode = 
Google.Ads.Gax.Config.OAuth2Flow.APPLICATION,
OAuth2ClientId = _clientId,
OAuth2ClientSecret = _clientSecret,
OAuth2RefreshToken = account.RefestToken,
};

GoogleAdsClient googleAdsClient = new 
GoogleAdsClient(config);
CustomerServiceClient customerServiceClient =

googleAdsClient.GetService(Google.Ads.GoogleAds.Services.V11.CustomerService);

Google.Ads.GoogleAds.V11.Errors.GoogleAdsException: 
'Status(StatusCode="InvalidArgument", Detail="Request contains an invalid 
argument.", DebugException="Grpc.Core.Internal.CoreErrorDetailException: 
{"created":"@1681123473.14200","description":"Error received from peer 
ipv4:142.251.130.10:443","file":"..\..\..\src\core\lib\surface\call.cc","file_line":1070,"grpc_message":"Request
 
contains an invalid argument.","grpc_status":3}")'

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/0447bd01-4931-4ab8-b4b7-51afd3c2b5ean%40googlegroups.com.


RE: Request contains an invalid argument.

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

Thank you for raising this concern to the Google Ads API support team.

Regarding the issue you are experiencing, can you please provide the complete 
request and response logs with request ID and request header generated on your 
end so our team can investigate and provide guidance accordingly?

Note that these logs can be requested or provided to the developer handling the 
Google Ads API transactions when logging of the API requests has been enabled. 
You may check here and click your client library for the specific guideline to 
enable it.

You may then send the requested logs 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,

Google Ads API Team
ref:_00D1U1174p._5004Q2jWp2r: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/_3ELG0RR5SKN00OiukVJg2Rju-vi2L0qwlXA%40sfdc.net.


Request contains an invalid argument.

2023-03-07 Thread 'Ibrahim Jarrar' via Google Ads API and AdWords API Forum
I am getting this error with no idea whats the reason, it happens both in 
v11 and v12 of the API, any clues would be really appreciated:

(<_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:172.217.16.42:443 {created_time:“2023-03-07T11:49:42.198406+01: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:172.217.16.42:443 {created_time:“2023-03-07T11:49:42.198406+01:00”, 
grpc_status:3, grpc_message:“Request contains an invalid argument.“}”
>, errors {
  error_code {
request_error: UNKNOWN
  }
  message: “The error code is not in this version.”
  location {
field_path_elements {
  field_name: “operations”
  index: 0
}
field_path_elements {
  field_name: “update”
}
field_path_elements {
  field_name: “resource_name”
}
  }
}
request_id: “EkD68T9hnWlYbaRFzGcpDg”
, ‘EkD68T9hnWlYbaRFzGcpDg’)
python-BaseException
status = StatusCode.INVALID_ARGUMENT
details = “Request contains an invalid argument.”
debug_error_string = “UNKNOWN:Error received from peer 
ipv4:172.217.16.42:443 {created_time:“2023-03-07T11:49:42.198406+01: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:172.217.16.42:443 {created_time:“2023-03-07T11:49:42.198406+01:00”, 
grpc_status:3, grpc_message:“Request contains an invalid argument.“}”
>, errors {
  error_code {
request_error: UNKNOWN
  }
  message: “The error code is not in this version.”
  location {
field_path_elements {
  field_name: “operations”
  index: 0
}
field_path_elements {
  field_name: “update”
}
field_path_elements {
  field_name: “resource_name”
}
  }
}
request_id: “EkD68T9hnWlYbaRFzGcpDg”
, ‘EkD68T9hnWlYbaRFzGcpDg’)

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/da5d06d3-b182-4f8e-8149-9595d6c688cdn%40googlegroups.com.


Re: Request contains an invalid argument

2023-03-06 Thread Ramanajee
Hi Raju,
it looks like you are using a deprecated Google Ads API version, you can 
find API deprecated schedule here 
<https://developers.google.com/google-ads/api/docs/sunset-dates>. try to 
migrate the Google Ads API version to the latest.

Thanks,
Ramanajee
On Monday, 6 March 2023 at 17:14:13 UTC+5:30 Raju Choudhary wrote:

> Please help how to fix this
>
> On Monday, 6 March 2023 at 17:11:17 UTC+5:30 Raju Choudhary wrote:
>
>> ApiException was thrown with message '{
>>     "message": "Request contains an invalid argument.",
>> "code": 3,
>> "status": "INVALID_ARGUMENT",
>> "details": [
>> {
>> "@type": "type.googleapis.com
>> \/google.ads.googleads.v10.errors.GoogleAdsFailure",
>> "errors": [
>> {
>> "errorCode": {
>> "requestError": "UNKNOWN"
>> },
>> "message": " Version v10 is deprecated. Requests to 
>> this version will be blocked."
>> }
>> ],
>> "requestId": "8EHcdlwakPGTQwLelXFYuw"
>> }
>> ]
>> }'.
>>
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/d26feb4a-240e-4b03-b50a-75bb4b44339cn%40googlegroups.com.


Re: Request contains an invalid argument

2023-03-06 Thread Raju Choudhary
Please help how to fix this

On Monday, 6 March 2023 at 17:11:17 UTC+5:30 Raju Choudhary wrote:

> ApiException was thrown with message '{
> "message": "Request contains an invalid argument.",
> "code": 3,
> "status": "INVALID_ARGUMENT",
> "details": [
> {
> "@type": "type.googleapis.com
> \/google.ads.googleads.v10.errors.GoogleAdsFailure",
> "errors": [
> {
> "errorCode": {
> "requestError": "UNKNOWN"
> },
> "message": " Version v10 is deprecated. Requests to 
> this version will be blocked."
> }
> ],
> "requestId": "8EHcdlwakPGTQwLelXFYuw"
> }
> ]
> }'.
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/81db5699-829f-4041-b572-14aececfc3a4n%40googlegroups.com.


Request contains an invalid argument

2023-03-06 Thread Raju Choudhary
ApiException was thrown with message '{
"message": "Request contains an invalid argument.",
"code": 3,
"status": "INVALID_ARGUMENT",
"details": [
{
"@type": 
"type.googleapis.com\/google.ads.googleads.v10.errors.GoogleAdsFailure",
"errors": [
{
"errorCode": {
"requestError": "UNKNOWN"
},
"message": " Version v10 is deprecated. Requests to 
this version will be blocked."
}
],
"requestId": "8EHcdlwakPGTQwLelXFYuw"
}
]
}'.

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/132622d2-2b67-468c-9c41-678d1c4bafedn%40googlegroups.com.


Re: UNKNOWN: Request contains an invalid argument

2023-01-19 Thread Google Ads API and AdWords API Forum
Re-posting the last inquiry 
(https://groups.google.com/g/adwords-api/c/L5iZCcnKEVE)  from the forum as 
it wasn't routed to our support queue.

Kind regards,
Carmela
Google Ads API Team

On Wednesday, January 18, 2023 at 11:22:20 PM UTC+8 spe...@theathletic.com 
wrote:

> Hey there, is there anyway to get more details on the error below?  I've 
> been seeing a bunch of errors similar to the one below and would like to 
> figure out if I'm sending a field improperly, if there's something wrong in 
> the header, etc.
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> *((<_InactiveRpcError of RPC that terminated with:status = 
> StatusCode.INVALID_ARGUMENTdetails = "Request contains an invalid 
> argument."debug_error_string = "UNKNOWN:Error received from peer 
> ipv4:XXX.XXX.XXX.XXX:XXX 
> {created_time:"2023-01-18T15:15:28.45754822+00: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:XXX.XXX.XXX.XXX:XXX 
> {created_time:"2023-01-18T15:15:28.45754822+00:00", grpc_status:3, 
> grpc_message:"Request contains an invalid argument."}">, errors {  
> error_code {request_error: UNKNOWN  }  message: "The error code is not 
> in this version."}request_id: "z9O8LXXdmyNhpknXwLSCIw", 
> 'z9O8LXXdmyNhpknXwLSCIw'); 3543)*
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/a0d7047d-f94e-4b26-bb18-513c1603f8d4n%40googlegroups.com.


UNKNOWN: Request contains an invalid argument

2023-01-18 Thread 'Spencer Tibbitts' via Google Ads API and AdWords API Forum
Hey there, is there anyway to get more details on the error below?  I've 
been seeing a bunch of errors similar to the one below and would like to 
figure out if I'm sending a field improperly, if there's something wrong in 
the header, etc.
















*((<_InactiveRpcError of RPC that terminated with:status = 
StatusCode.INVALID_ARGUMENTdetails = "Request contains an invalid 
argument."debug_error_string = "UNKNOWN:Error received from peer 
ipv4:XXX.XXX.XXX.XXX:XXX 
{created_time:"2023-01-18T15:15:28.45754822+00: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:XXX.XXX.XXX.XXX:XXX 
{created_time:"2023-01-18T15:15:28.45754822+00:00", grpc_status:3, 
grpc_message:"Request contains an invalid argument."}">, errors {  
error_code {request_error: UNKNOWN  }  message: "The error code is not 
in this version."}request_id: "z9O8LXXdmyNhpknXwLSCIw", 
'z9O8LXXdmyNhpknXwLSCIw'); 3543)*

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/3120f618-c761-406f-995e-fe7e26584527n%40googlegroups.com.


RE: Request contains an invalid argument using add_offline_user_data_job_operations method from google ads python package

2022-12-27 Thread 'Google Ads API Forum Advisor' via Google Ads API and AdWords API Forum
Hi Edgar,

Thanks for reaching out to the Google Ads API Forum.

With regards to your concern of having an error message: "The error code is not 
in this version.”  for our team to further check and validate the issues, could 
you provide us with the updated complete API logs (request and response with 
request-id) generated on your end? Note that this can be requested or provided 
to the developer handling the Google Ads API transactions when logging of the 
API requests has been enabled. You may check here and click your client library 
for the specific guideline to enable it.

Please see Python logging guidelines for more information.

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

Regards,

Marjorie
Google Ads API Team
ref:_00D1U1174p._5004Q2hNrAf: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/SM_e40RNJMNE00hfPXyLo1T6qPHVVDgpFj3w%40sfdc.net.


Request contains an invalid argument using add_offline_user_data_job_operations method from google ads python package

2022-12-26 Thread Edgar Leroux
Hello,

When I try to use the add_offline_user_data_job_operations method from 
google ads python package i get the following error even tho I upgraded the 
version to "v12" and the package google-ads to its latest version :

  File 
"/hexagonal_job_template/hexagon/application/application_framework.py", 
line 112, in execute_application

self.application.execute(target_provider)

  File "/hexagonal_job_template/hexagon/context.py", line 187, in wrapper

return fn(*args, **kwargs)

  File 
"/hexagonal_job_template/hexagon/application/custom/gads_remarketing.py", 
line 30, in execute

service.upload_data(query_name)

  File "/hexagonal_job_template/hexagon/infra/gads_connector.py", line 592, 
in upload_data

self.insert_data_list(resource_name, hashed_email_list)

  File "/hexagonal_job_template/hexagon/infra/gads_connector.py", line 501, 
in insert_data_list


offline_user_data_job_service_client.add_offline_user_data_job_operations(

  File 
"/usr/local/lib/python3.9/site-packages/google/ads/googleads/v12/services/services/offline_user_data_job_service/client.py",
 
line 591, in add_offline_user_data_job_operations

response = rpc(

  File 
"/usr/local/lib/python3.9/site-packages/google/api_core/gapic_v1/method.py", 
line 154, in __call__

return wrapped_func(*args, **kwargs)

  File 
"/usr/local/lib/python3.9/site-packages/google/api_core/grpc_helpers.py", 
line 72, in error_remapped_callable

return callable_(*args, **kwargs)

  File "/usr/local/lib/python3.9/site-packages/grpc/_interceptor.py", line 
247, in __call__

response, ignored_call = self._with_call(request,

  File "/usr/local/lib/python3.9/site-packages/grpc/_interceptor.py", line 
290, in _with_call

return call.result(), call

  File "/usr/local/lib/python3.9/site-packages/grpc/_interceptor.py", line 
146, in result

raise self._exception

  File "/usr/local/lib/python3.9/site-packages/grpc/_interceptor.py", line 
274, in continuation

response, call = self._thunk(new_method).with_call(

  File "/usr/local/lib/python3.9/site-packages/grpc/_interceptor.py", line 
301, in with_call

return self._with_call(request,

  File "/usr/local/lib/python3.9/site-packages/grpc/_interceptor.py", line 
290, in _with_call

return call.result(), call

  File "/usr/local/lib/python3.9/site-packages/grpc/_interceptor.py", line 
146, in result

raise self._exception

  File "/usr/local/lib/python3.9/site-packages/grpc/_interceptor.py", line 
274, in continuation

response, call = self._thunk(new_method).with_call(

  File "/usr/local/lib/python3.9/site-packages/grpc/_interceptor.py", line 
301, in with_call

return self._with_call(request,

  File "/usr/local/lib/python3.9/site-packages/grpc/_interceptor.py", line 
287, in _with_call

call = self._interceptor.intercept_unary_unary(continuation,

  File 
"/usr/local/lib/python3.9/site-packages/google/ads/googleads/interceptors/exception_interceptor.py",
 
line 99, in intercept_unary_unary

self._handle_grpc_failure(response)

  File 
"/usr/local/lib/python3.9/site-packages/google/ads/googleads/interceptors/exception_interceptor.py",
 
line 71, in _handle_grpc_failure

    raise self._get_error_from_response(response)

google.ads.googleads.errors.GoogleAdsException: (<_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.250.178.138:443 
{created_time:"2022-12-26T10:04:24.807792876+00: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.250.178.138:443 
{created_time:"2022-12-26T10:04:24.807792876+00:00", grpc_status:3, 
grpc_message:"Request contains an invalid argument."}"

>, errors {

  error_code {

request_error: UNKNOWN

  }

  message: "The error code is not in this version."

}

request_id: "PPRxsFZDJhK_Q4WUrkAtLA"

, 'PPRxsFZDJhK_Q4WUrkAtLA')

 Thanks for your help !

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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...@go

Error message only contains "Request contains an invalid argument" without details when using grpc client

2022-08-11 Thread Kenny Chen
Hello,
When I am using grpc client in golang to remove a campaign, the only error 
message I can get is "rpc error: code = InvalidArgument desc = Request 
contains an invalid argument.".
But when I am using rest api to remove a campaign, I can get more 
information like "Resource was not found", "This operation is not allowed 
because the resource is removed." or "Resource name 
'customer/1234567890/campaigns/12345678901' is malformed: expected 
'customers/{customer_id}/campaigns/{campaign_id}'." ...etc

I want to know how can I get a completed error message without directly 
using rest.
Do other languages using offical google api client library have the same 
issue? I know there isn't a offical google api client library for golang.

belows are the full outputs of 1 grpc error and 3 rest responses (I 
replaced campaign id, customer id and request id with "x").

grpc:
panic: rpc error: code = InvalidArgument desc = Request contains an invalid 
argument.

rest 1:
{
  "error": {
    "code": 400,
"message": "Request contains an invalid argument.",
"status": "INVALID_ARGUMENT",
"details": [
  {
"errors": [
  {
"errorCode": {
  "mutateError": "RESOURCE_NOT_FOUND"
},
"message": "Resource was not found.",
  "stringValue": "CampaignId: x"
},
"location": {
  "fieldPathElements": [
{
  "fieldName": "operations",
  "index": 0
    },
    {
  "fieldName": "remove"
}
  ]
}
  }
],
"requestId": "x"
  }
}

rest2:
{
  "error": {
"code": 400,
"message": "Request contains an invalid argument.",
"details": [
  {
"@type": 
"type.googleapis.com/google.ads.googleads.v11.errors.GoogleAdsFailure",
"errors": [
  {
"errorCode": {
  "requestError": "RESOURCE_NAME_MALFORMED"
},
"message": "Resource name 'customer/x/campaigns/x' is 
malformed: expected 'customers/{customer_id}/campaigns/{campaign_id}'.",
    "location": {
  "fieldPathElements": [
{
  "fieldName": "operations",
  "index": 0
},
{
  "fieldName": "remove"
}
  ]
}
  }
],
"requestId": "x"
  }
]
  }
}

rest 3:
{
  "error": {
"code": 400,
"message": "Request contains an invalid argument.",
"details": [
  {
"@type": 
"type.googleapis.com/google.ads.googleads.v11.errors.GoogleAdsFailure",
"errors": [
  {
"errorCode": {
  "operationAccessDeniedError": 
"OPERATION_NOT_PERMITTED_FOR_REMOVED_RESOURCE"
},
"message": "This operation is not allowed because the resource 
is removed.",
"trigger": {
  "stringValue": "Campaign"
},
"location": {
  "fieldPathElements": [
{
  "fieldName": "operations",
  "index": 0
}
  ]
}
  }
],
"requestId": "x"
  }
]
  }
}

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/81ed5852-f358-468a-ad28-a15a8cce1c3cn%40googlegroups.com.


Create/Update Feed Fails with "Request contains an invalid argument" error

2022-05-05 Thread John Miner
We are in the process of migrating the .NET Nuget package for 
"Google.Ads.GoogleAds" from version "9.0.0" to version "11.0.1", and we use 
C#.

After doing so, we are now making a call like the following in order to 
update a Feed:

using Google.Ads.GoogleAds;
using Google.Ads.GoogleAds.Lib;
using Google.Ads.GoogleAds.Util;
using Google.Ads.GoogleAds.V10.Services;

// We load the Google.Ads.GoogleAds.V10.Resources.Feed into the "feed" 
variable here.
var operation = new FeedOperation() {
Update = feed,
UpdateMask = FieldMasks.AllSetFieldsOf(feed)
};
var googleAdsConfig = apiContext.GetAdsApiAppConfig();
var googleAdsClient = new GoogleAdsClient(googleAdsConfig);
FeedServiceClient serviceClient = 
googleAdsClient.GetService(Services.V10.FeedService);
long customerId = 0; // We are storing this customer ID on our end when we 
create the Feed, so the 0 here is just a placeholder.
MutateFeedsResponse response = await 
serviceClient.MutateFeedsAsync(customerId.ToString(), new 
List() { operation }, cancellationToken);

Upon running the MutateFeedsAsync method, we immediately get back the 
following error:

{"Status(StatusCode=\"InvalidArgument\", Detail=\"Request contains an 
invalid argument.\", 
DebugException=\"Grpc.Core.Internal.CoreErrorDetailException: 
{\"created\":\"@1651768123.01600\",\"description\":\"Error received 
from peer 
ipv4:172.***.**.**:443\",\"file\":\"..\\..\\..\\src\\core\\lib\\surface\\call.cc\",\"file_line\":1070,\"grpc_message\":\"Request
 
contains an invalid argument.\",\"grpc_status\":3}\")"}

What is going on here? Updating feeds worked just fine previously, so what 
are we missing with v11.0.1 that is keeping us from updating Feeds?

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/1ee92e04-476c-4154-91ca-5cb70bfcafa1n%40googlegroups.com.


Error creating test accounts: Request contains an invalid argument

2022-04-04 Thread Javier Val
Hello!

In one of my integration tests, I am creating test accounts with the 
following format: *string.Format("{0}_{1}", "Create_Account_Name", 
DateTime.Now.ToString("ddMM_hhmmss")).* For example, 
Create_Account_Name_04042022_125948. 

Until today, it has worked fine for me. But now the test fails me, getting 
the following error message: "Request contains an invalid argument". 

I paste an example error trace, hoping you can help me, because I can't 
find the reason for the failure:


[13: 00: 14 WRN]Google Account not created for client 
Create_Account_Name_04042022_125948
[13: 01: 49 INF]Google response: Result {
"ResourceName": "",
"InvitationLink": "",
"ResourceNameAsCustomerName": null
}

"StatusCode": 3,
"Details": "Request contains an invalid argument.",
"RequestId": "LJ93dGQhwlCKsc3eIsIoBw",
"Failure": {
"errors": [{
"errorCode": {
"stringLengthError": "TOO_SHORT"
},
"message": "Too short.",
"trigger": {
"stringValue": ""
},
"location": {
"fieldPathElements": [{
"fieldName": "operations",
"index": 0
}, {
"fieldName": "create"
}, {
"fieldName": "name"
}
]
}
}
],
"requestId": "LJ93dGQhwlCKsc3eIsIoBw"
}


Thank you very much for your help.
All the best!

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/9eeda699-0ba3-4933-99a6-bebc49a95240n%40googlegroups.com.


RE: Request contains an invalid argument.

2022-03-03 Thread 'Google Ads API Forum Advisor' via Google Ads API and AdWords API Forum
Hi there,

Thanks for reaching out to the Google Ads API Forum.

Could you provide us with the complete request and response logs with the 
request-id, so our team can better check?

For the client library, logging can be enabled by navigating to the Client 
libraries > Your client library (ex Java) > Logging documentation, which you 
can access from this link.

You may then 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.

Regards,

Yasar
Google Ads API Team
ref:_00D1U1174p._5004Q2XkffV: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/dB9f30R8689D00sIleMb66TeWfjRU6idRibg%40sfdc.net.


Request contains an invalid argument.

2022-03-02 Thread br coretus
Hello team,
I am facing this error when I am created campaign using API.

*{ "message": "Request contains an invalid argument.", "code": 3, "status": 
"INVALID_ARGUMENT", "details": [ { "@type": 
"google.ads.googleads.v10.errors.googleadsfailure-bin", "data": "" }, { "@type": "grpc-status-details-bin", "data": "" }, { "@type": "request-id", "data": "KF7Y8fewnv1xGgTBfL0PzQ" 
} ] }*

I don't know how to solve this can you please tell me.

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/ffc592ab-bc55-4f35-86c3-6a06f2572645n%40googlegroups.com.


"Request contains an invalid argument" - how to see what argument is invalid?

2022-02-25 Thread Stiofán Ó Riain
Hi there

Thanks for reading my question.

I am using mutateCampaignCriteria to try to remove some IPs from a 
campaign's IP Exclusions List.

This code in general works fine (it works for other campaigns), but it is 
failing for one particular campaign and I don't know why.

This is the error:

{

"message": "Request contains an invalid argument.",

"code": 3,

"status": "INVALID_ARGUMENT",

"details": [

{

"@type": "google.ads.googleads.v8.errors.googleadsfailure-bin",

"data": ""

},

{

"@type": "grpc-status-details-bin",

"data": ""

},

{

"@type": "request-id",

"data": "17PPRUpbUluJ4aEbH9X86A"

}

]

}

However from what I can see I am sending valid data.

(1) How can I see what data is causing this issue?

(2) How can I automatically recover from an issue like this? For example, 
is there a way I can simply "reset" the IP Exclusions List for a campaign 
so it is blank and I can start over? Note I don't want to manually do this 
(log into the Google Ads account and manually delete the IPs), I should be 
able to do it using code.

I am using the PHP library.

Thanks for your help.

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/ac8e4713-d6d4-4595-a3cc-09f55218fbd9n%40googlegroups.com.


Re: AddCampaignBidModifier example. ApiException: Request contains an invalid argument

2020-12-15 Thread Андрей Ласевичев
no, I don't have a С implementation. Now I will try to install the C 
implementation.

вторник, 15 декабря 2020 г. в 13:04:17 UTC+5, adsapiforumadvisor: 

> That's the gRPC version, not the protobuf version.
> Could you please confirm the protobuf version and whether you're using the 
> C implementation?
> Please follow the link 
>  
> I provided for more information.
>
> ref:_00D1U1174p._5004Q28nD7b: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/34b89024-b4ef-4ff7-9a68-7fb71f7d40cbn%40googlegroups.com.


Re: AddCampaignBidModifier example. ApiException: Request contains an invalid argument

2020-12-15 Thread Google Ads API Forum Advisor Prod
That's the gRPC version, not the protobuf version.
Could you please confirm the protobuf version and whether you're using the C 
implementation?
Please follow the link I provided for more information.
ref:_00D1U1174p._5004Q28nD7b: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/nxPjq0QLDFQF009DQWrTAnRCi8Y-D7j6YDyw%40sfdc.net.


Re: AddCampaignBidModifier example. ApiException: Request contains an invalid argument

2020-12-14 Thread Андрей Ласевичев
Hello there! I am using  php_grpc-1.34.0rc2-7.3-ts-vc15-x64. Is this 
version working?

вторник, 15 декабря 2020 г. в 12:52:49 UTC+5, adsapiforumadvisor: 

> Hello there,
>
> Could you tell what protobuf 
>  
> version 
> you're using and do you use the C implementation 
> 
> ?
> Note that we have a known issue that the PHP implementation 
> 
>  
> may sometimes not work as expected.
>
> Best,
> Thanet, Google Ads API Team
>
> ref:_00D1U1174p._5004Q28nD7b: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/ecc7c4b2-9f0b-43ff-bb39-bfc27b366c5an%40googlegroups.com.


RE: AddCampaignBidModifier example. ApiException: Request contains an invalid argument

2020-12-14 Thread Google Ads API Forum Advisor Prod
Hello there,

Could you tell what protobuf version you're using and do you use the C 
implementation?
Note that we have a known issue that the PHP implementation may sometimes not 
work as expected.

Best,
Thanet, Google Ads API Team
ref:_00D1U1174p._5004Q28nD7b: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/dAf4U0QLDF7D00b7tchfJcSEyvIX_o5GfKBA%40sfdc.net.


Re: AddCampaignBidModifier example. ApiException: Request contains an invalid argument

2020-12-14 Thread Андрей Ласевичев
Can you tell me how to fix the error? where did I go wrong?

пятница, 4 декабря 2020 г. в 18:40:16 UTC+5, Андрей Ласевичев: 

> trying to repeat the example from github 
> https://github.com/googleads/google-ads-php/blob/master/examples/CampaignManagement/AddCampaignBidModifier.php
>  
> $campaignBidModifier = new CampaignBidModifier([
> 'campaign' => ResourceNames::forCampaign($customer_id, $campaign_id) ,
> 'bid_modifier' => '0.2',
> 'interaction_type' => new InteractionTypeInfo(
> ['type' => InteractionTypeEnum\InteractionType::CALLS]
> )
> /]);
> /$campaignBidModifierOperation = new CampaignBidModifierOperation();
> $campaignBidModifierOperation->setCreate($campaignBidModifier);
>
> $campaignBidModifierService = 
> $this->googleAdsClient->getCampaignBidModifierServiceClient();
> $response = $campaignBidModifierService->mutateCampaignBidModifiers(
> $customer_id,
> [$campaignBidModifierOperation]
> );
>
>   Gives an error message: 
> *Fatal error*: Uncaught Google\ApiCore\ApiException: { "message": 
> "Request contains an invalid argument.", "code": 3, "status": 
> "INVALID_ARGUMENT", "details": [ { "@type": 
> "google.ads.googleads.v6.errors.googleadsfailure-bin", "data": " Binary Data>" }, { "@type": "grpc-status-details-bin", "data": " Binary Data>" }, { "@type": "request-id", "data": "AERI1ncjWWMKFKxUqRA2YQ" 
> } ] }  
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/c6ffaa8a-91a8-4f1f-8a90-55931edfcfd5n%40googlegroups.com.


AddCampaignBidModifier example. ApiException: Request contains an invalid argument

2020-12-04 Thread Андрей Ласевичев
trying to repeat the example from github 
https://github.com/googleads/google-ads-php/blob/master/examples/CampaignManagement/AddCampaignBidModifier.php
 
$campaignBidModifier = new CampaignBidModifier([
'campaign' => ResourceNames::forCampaign($customer_id, $campaign_id) ,
'bid_modifier' => '0.2',
'interaction_type' => new InteractionTypeInfo(
['type' => InteractionTypeEnum\InteractionType::CALLS]
)
/]);
/$campaignBidModifierOperation = new CampaignBidModifierOperation();
$campaignBidModifierOperation->setCreate($campaignBidModifier);

$campaignBidModifierService = 
$this->googleAdsClient->getCampaignBidModifierServiceClient();
$response = $campaignBidModifierService->mutateCampaignBidModifiers(
$customer_id,
[$campaignBidModifierOperation]
);

  Gives an error message: 
*Fatal error*: Uncaught Google\ApiCore\ApiException: { "message": "Request 
contains an invalid argument.", "code": 3, "status": "INVALID_ARGUMENT", 
"details": [ { "@type": 
"google.ads.googleads.v6.errors.googleadsfailure-bin", "data": "" }, { "@type": "grpc-status-details-bin", "data": "" }, { "@type": "request-id", "data": "AERI1ncjWWMKFKxUqRA2YQ" 
} ] }  

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/15dd5412-b549-4ad9-b333-713e0c5e9805n%40googlegroups.com.


RE: "Request contains an invalid argument" with UNKNOWN requestError

2019-12-11 Thread Google Ads API Forum Advisor Prod
Hello,

Thank you for writing to us. From the shared details, it looks like you are 
trying to create a call_feed_item using ExtensionFeedItemService via Google Ads 
API and facing this error. Also, I observed you have specified the resource 
name in your request which is not required while creating the new extension 
feed item. I was successfully able to create the call extension feed on my end 
and have attached the logs for your reference. Could you please retry the 
request by referencing the logs and upgrading to the latest version of Google 
Ads API from the client libraries here to make the API calls? Here is the guide 
to migrate from v1 to v2. If the issue persists, could you please share the 
complete request and response logs along with the client customer id for me to 
investigate this further on my end?

P.S. Please use Reply privately to author option while sharing the details.

Regards,
Nikisha Patel, Google Ads API Team
ref:_00D1U1174p._5001UOEHd8: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/g-3Oe0Q2D7VM0024awZsAlS8mW_SDjWZyWNw%40sfdc.net.


logs_call_feed_item
Description: Binary data


"Request contains an invalid argument" with UNKNOWN requestError

2019-12-10 Thread guofu Zhong
Hi team,

we are using API 
"Google.Ads.GoogleAds.V1.Services.ExtensionFeedItemServiceClient.MutateExtensionFeedItemsAsync"
 
to crreate the CallExtension for* Customer id 5698641415.*
the request payload 
is  
Arguments:{"Item1":"5698641415","Item2":[{"Create":{"ResourceName":"","ExtensionType":0,"AdSchedules":[],"Device":0,"Status":0,"ExtensionCase":0,"ServingResourceTargetingCase":0},"Remove":"","OperationCase":1}]}

as below function parameter.
Item1 = customerId, Item2 = operations, validateOnly = null,callSettings = 
null
extensionFeedItemService.MutateExtensionFeedItemsAsync(customerId, 
operations, validateOnly, callSettings);

the returned result:

Raw Exception: {
  "StatusCode": 3,
  "Details": "Request contains an invalid argument.",
*  "RequestId": "evkQLq5_8buAOPmLcT8LKA",*
  "Failure": {
"errors": [
  {
"errorCode": {
  "requestError": "UNKNOWN"
},
"message": "The error code is not in this version.",
"trigger": {
  "stringValue": ""
},
"location": {
  "fieldPathElements": [
{
  "fieldName": "operations",
  "index": "0"
}
  ]
}
  }
Could you help me take a look the root cause?
Thanks,
Guofu

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/d1e8a0c3-c432-45be-bd90-2a714944f62d%40googlegroups.com.