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.


RE: Images Video

2022-08-11 Thread 'Google Ads API Forum Advisor' via Google Ads API and AdWords API Forum
Hi Rodrigo,

Thank you for reaching out to us.

Moving forward, you may use this ad_group_ad.ad.video_ad.video.asset field for 
you to find the video asset you are referring to. However you may try this 
query below to see this:

SELECT ad_group.id, ad_group_ad.ad.id, campaign.id, ad_group_ad.ad.type, 
ad_group_ad.ad.video_ad.bumper.companion_banner.asset, 
ad_group_ad.ad.video_ad.video.asset FROM ad_group_ad WHERE ad_group_ad.ad.id = 
600642943096

Let me know if you have further questions.

Best regards,

Heidi
Google Ads API Team
ref:_00D1U1174p._5004Q2dJiHu: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/lRYzr0RGGVJE00iamVp5N0TQaR002ThzQnyg%40sfdc.net.


RE: Responsive Display Ad Assets - get Headlines, Descriptions

2022-08-11 Thread 'Google Ads API Forum Advisor' via Google Ads API and AdWords API Forum
Hi Oksana,

The field ad_group_ad.ad.responsive_display_ad.descriptions, 
ad_group_ad.ad.responsive_display_ad.call_to_action_text, 
ad_group_ad.ad.responsive_display_ad.long_headline and 
ad_group_ad.ad.responsive_display_ad.headlines etc.. will give you these text 
based items., there's no need to go to another resource. Are you looking for 
performance ratings and statuses on text based assets?

Regards,

Aryeh
Google Ads API Team
ref:_00D1U1174p._5004Q2dJka6: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/RgLuZ0RGGO92006yDNSWE-Tri17EtFkiRiRw%40sfdc.net.


Re: I want to get user list usage status in Google Ads API

2022-08-11 Thread Roy D.
Thank you support team!

When do you think it will be ready. It was working on v7 and it's now not 
working which is problematic for our new application.

I have userList id but I  want to get userList by Id to get the size of the 
userList.

Thank you

On Wednesday, August 10, 2022 at 8:09:37 AM UTC-4 adsapi wrote:

> Hi Mina,
>
> Thank you for the reply. Allow me to assist you here.
>
> As of now, getting the Usage status is not available with Google Ads API, 
> However, I’ve raised a feature request for this to my team. With this, I 
> would suggest keeping an eye on this blog 
>  as we will post any relevant 
> updates when they become supported.
>
> Let us know if you have any further questions.
>
>
> Best regards,
> [image: Google Logo] 
> Anthony Cyril 
> Google Ads API Team 
>   
>
> ref:_00D1U1174p._5004Q2dJBKY: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/df39ace1-6134-464f-9352-d5e381d5851bn%40googlegroups.com.


Re: Responsive Display Ad Assets - get Headlines, Descriptions

2022-08-11 Thread 'Oksana Sulyma' via Google Ads API and AdWords API Forum
Oh, ans also I have question #3:
Is there a way to pull assets info for specific ad_group_ad.ad.id?  

On Thursday, August 11, 2022 at 6:38:14 PM UTC+3 Oksana Sulyma wrote:

> Hi Google Ads API support team!
> My questions are related to Ads of type = responsive_display_ad.
> 1. I pull 
> https://developers.google.com/static/google-ads/api/fields/v11/ad_group_ad#ad_group_ad.ad.responsive_display_ad.marketing_images
>  
> field and get asset ids for marketing_images. Then I pull 
> https://developers.google.com/google-ads/api/fields/v11/asset#asset.image_asset.full_size.url
>  
> and get image previews for asset ids returned by previous query. Is this 
> correct way to get marketing_images url previews? 
> 2. For responsive_display_ad there is a list of headlines and descriptions 
> available in Google Ads Ui:
> [image: Screenshot 2022-08-11 at 18.33.45.png]
> Is there a way to pull this information from API? 
> https://developers.google.com/google-ads/api/fields/v11/asset#asset.type 
> doesn't serve types like headline or description. 
> Thanks in advance for your help!
> Oksana
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/22de2f6b-9ebe-46cd-ae55-8e9a923e45den%40googlegroups.com.


Images Video

2022-08-11 Thread Rodrigo Ampuero
 Hi, I need to extract images from YouTube or Video campaign ads, but I 
don't know what resources I can find. for campaigns From Display I can get 
the id of the images from the resources "FROM ad_group_ad" in the fields 
"ad_group_ad.ad.discovery_multi_asset_ad.marketing_images, 
ad_group_ad.ad.discovery_multi_asset_ad.square_marketing_images", but 
YouTube or Video campaigns I can't find in which fields the ids can be. 
Attachment screens from where they are obtained from the ads platform. 
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/8e003fec-370a-4724-99c3-afea1f298c54n%40googlegroups.com.


Re: High memory usage with SearchStream method in .NET client library

2022-08-11 Thread Google Ads API and AdWords API Forum
Reposting the last inquiry 
(https://groups.google.com/g/adwords-api/c/Fv0XPwoKuyo) from the forum as 
it wasn't routed to our support queue.

Cheers,
Jinky
Google Ads API Team

On Wednesday, August 10, 2022 at 1:02:05 AM UTC+8 rohitl...@optmyzr.com 
wrote:

> When using *SearchStream* method in .NET client library, the delegate is 
> called for every *SearchGoogleAdsStreamResponse* object which has at 
> maximum 10k rows.  It seems that while the delegate is running, the 
> remaining rows are being cached in memory leading to huge memory usage for 
> large reports.
>
>1. Is there any way we can dispose the processed rows to free up 
>memory?
>2. Is there any way we can limit the memory used for caching the 
>report?
>
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/eaac3320-6759-4895-aab2-dd38a6408096n%40googlegroups.com.


RE: REST Interface

2022-08-11 Thread 'Google Ads API Forum Advisor' via Google Ads API and AdWords API Forum
Hi,

Thank you for reaching out to us.

Moving forward, Yes, the Google Ads API can be called either using gRPC or 
REST. Both interfaces expose a resource-oriented design shared with other 
Google Cloud APIs.

Since this is for Google Ads API, You need both OAuth 2.0 application 
credentials and a developer token. You may check this documentation for more 
details as this  describes how to set these values and documents several 
additional API-specific HTTP headers that are sent and received when using the 
REST interface.

Moving forward to timeout and invalid query, you may note that the REST 
interface is indeed not connected to these. If you have problem to timeout then 
this might be connected to the specific request you are making and for invalid 
query, this might be connected on how you struct your query, for this, i would 
suggest to use the Google Ads Query Builder and Query Validator tools for 
constructing queries.

Best regards,

Heidi
Google Ads API Team
ref:_00D1U1174p._5004Q2dJhLd: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/ttZlO0RGGEVF00atfNkf_8RhWXbLcqeKbxUg%40sfdc.net.


RE: Google Ads API does not return search volume but Adwords API does

2022-08-11 Thread 'Google Ads API Forum Advisor' via Google Ads API and AdWords API Forum
Hi David,

Thank you for reaching out to our API support team.

So our team can take a closer look, could you share your complete request and 
response logs and the request-id? 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.

In addition, you may also note that the Google Adwords API TargetingIdeaService 
with RequestType.STATS option should map (see mapping guide) instead to the 
KeywordPlanService.GenerateHistoricalMetrics, and that the 
KeywordPlanIdeaService.GenerateKeywordHistoricalMetrics should also be a 
different feature.

Best regards,

Peter Laurence
Google Ads API Team
ref:_00D1U1174p._5004Q2dJfzR: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/B4wpU0RGGEV300GqaJ2qx9RjOfNg3ZslkT6A%40sfdc.net.


Re: REST Interface

2022-08-11 Thread Google Ads API and AdWords API Forum
Reposting the last inquiry 
(https://groups.google.com/g/adwords-api/c/l6F3J7HI33s) from the forum as 
it wasn't routed to our support queue.

Regards,
Heidi
Google Ads API Team
On Wednesday, August 10, 2022 at 1:04:46 AM UTC+8 rohitl...@optmyzr.com 
wrote:

> Is using *REST* Interface stable enough to use? (ref: 
> https://developers.google.com/google-ads/api/rest/common/search)
>
>1. Do we need to take care of any configuration?  Like timeout, 
>invalid query, refreshing tokens etc?
>
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/e1e72a95-93c9-49ce-8039-83a7433a34c2n%40googlegroups.com.


Re: Error creating responsive search ad due to disallowed character (period)

2022-08-11 Thread Google Ads API and AdWords API Forum
Hi Amy,
 
Thanks for reaching out to the Google Ads API Forum.

As you mentioned that the API is not allowing you to create the ad since 
the advertising policies, and you were able to create the same ad manually 
within the UI successfully, then you may provide the screenshot of complete 
Ads UI where the Ad created successfully on Ads UI, and the same you tried 
to create using API is getting error, along with complete logs (complete 
request 

 
and response 

 
logs with request ID 

 
and request header 
)
 
generated, so that we can check better. 

Please reply to our team to send the details directly to our 
googleadsapi-supp...@google.com alias instead.

Regards,
Yasar
Google Ads API Team
On Tuesday, August 9, 2022 at 11:58:19 PM UTC+8 Amy Richardson wrote:

> Hello, 
>
> We have seen failures to create responsive search ads via the Google Ads 
> API due to using a period in a way which is considered disallowed. 
>
> I understand there are advertising policies related to this, linked here 
>  ("Punctuation 
> or symbols that are not used correctly or for their intended purpose"). In 
> our case, we are attempting to create a responsive search ad for a 
> Volkswagen ID.4 vehicle, which is a new model, and the API is not allowing 
> us to create the ad.
>
> Here is the error we are receiving from the API: 
> Error: The input string value contains disallowed characters. Trigger: .
>
> This error seems to be due to the model name "ID.4", which we feel should 
> be allowed to be used in advertising. We are able to create the same ad 
> manually within the UI successfully. Please let me know whether this issue 
> can be resolved.
>
> Thanks for your assistance,
> Amy
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/6db088d6-759e-4a75-b74b-b774938a296fn%40googlegroups.com.


The following fields may not be used in SELECT clause: 'ad_group_ad.ad.responsive_display_ad.marketing_images.asset', 'ad_group_ad.ad.responsive_display_ad.youtube_videos.asset'

2022-08-11 Thread 'Oksana Sulyma' via Google Ads API and AdWords API Forum
Hi Google Ads API support team!
I have the next issue:

Host: "googleads.googleapis.com", Method: 
"/google.ads.googleads.v11.services.GoogleAdsService/SearchStream", 
CustomerId: hidden, RequestId: "VGS08iw7j0LjMzEYE6owQQ", IsFault: 1, 
FaultMessage: "["The following fields may not be used in SELECT clause: 
'ad_group_ad.ad.responsive_display_ad.marketing_images.asset', 
'ad_group_ad.ad.responsive_display_ad.youtube_videos.asset'."]"  
[2022-08-11T13:04:07.322330+00:00] google-ads.NOTICE: Request
---
Method Name: 
/google.ads.googleads.v11.services.GoogleAdsService/SearchStream
Host: googleads.googleapis.com
Headers: {
"x-goog-api-client": "gl-php\/8.0.12 gccl\/16.0.0 gapic\/16.0.0 
gax\/1.14.0 grpc\/1.42.0 rest\/1.14.0 pb\/3.19.1+c",
"x-goog-request-params": "customer_id=hidden",
"developer-token": "REDACTED",
"login-customer-id": "hidden"
}

"query":"SELECT campaign.id, ad_group.id, segments.ad_network_type, 
ad_group_ad.ad.id, ad_group_ad.ad.type, ad_group_ad.status, 
ad_group_ad.ad.final_app_urls, ad_group_ad.ad.final_mobile_urls, 
ad_group_ad.ad.final_urls, ad_group_ad.ad.display_url, ad_group_ad.labels, 
ad_group_ad.ad.expanded_text_ad.headline_part1, 
ad_group_ad.ad.expanded_text_ad.headline_part2, 
ad_group_ad.ad.expanded_text_ad.headline_part3, 
ad_group_ad.ad.expanded_text_ad.path1, 
ad_group_ad.ad.expanded_text_ad.path2, 
ad_group_ad.ad.expanded_text_ad.description, 
ad_group_ad.ad.expanded_text_ad.description2, ad_group_ad.ad.name, 
ad_group_ad.ad.image_ad.name, ad_group_ad.ad.image_ad.pixel_height, 
ad_group_ad.ad.image_ad.pixel_width, ad_group_ad.ad.image_ad.image_url, 
ad_group_ad.ad.image_ad.preview_image_url, 
ad_group_ad.ad.image_ad.preview_pixel_height, 
ad_group_ad.ad.image_ad.preview_pixel_width, 
ad_group_ad.ad.call_ad.phone_number, ad_group_ad.ad.call_ad.description1, 
ad_group_ad.ad.call_ad.description2, ad_group_ad.ad.call_ad.business_name, 
ad_group_ad.ad.call_ad.headline1, ad_group_ad.ad.call_ad.headline2, 
ad_group_ad.ad.call_ad.call_tracked, 
ad_group_ad.ad.call_ad.disable_call_conversion, 
ad_group_ad.ad.call_ad.phone_number_verification_url, 
ad_group_ad.ad.call_ad.conversion_action, 
ad_group_ad.ad.call_ad.conversion_reporting_state, 
ad_group_ad.ad.call_ad.path1, ad_group_ad.ad.call_ad.path2, 
ad_group_ad.ad.text_ad.headline, ad_group_ad.ad.text_ad.description1, 
ad_group_ad.ad.text_ad.description2, 
ad_group_ad.ad.responsive_display_ad.headlines, 
ad_group_ad.ad.responsive_display_ad.long_headline, 
ad_group_ad.ad.responsive_display_ad.descriptions, 
ad_group_ad.ad.responsive_display_ad.business_name, 
ad_group_ad.ad.responsive_display_ad.logo_images, 
ad_group_ad.ad.responsive_display_ad.square_logo_images, 
ad_group_ad.ad.responsive_display_ad.square_marketing_images, 
ad_group_ad.ad.responsive_display_ad.marketing_images, 
ad_group_ad.ad.responsive_display_ad.marketing_images.asset, 
ad_group_ad.ad.responsive_display_ad.youtube_videos, 
ad_group_ad.ad.responsive_display_ad.youtube_videos.asset, 
ad_group_ad.ad.responsive_display_ad.format_setting, 
ad_group_ad.ad.responsive_display_ad.main_color, 
ad_group_ad.ad.responsive_display_ad.accent_color, 
ad_group_ad.ad.responsive_display_ad.allow_flexible_color, 
ad_group_ad.ad.responsive_display_ad.call_to_action_text, 
ad_group_ad.ad.responsive_display_ad.price_prefix, 
ad_group_ad.ad.responsive_display_ad.promo_text, 
ad_group_ad.ad.responsive_search_ad.headlines, 
ad_group_ad.ad.responsive_search_ad.descriptions, 
ad_group_ad.ad.responsive_search_ad.path1, 
ad_group_ad.ad.responsive_search_ad.path2, 
ad_group_ad.ad.expanded_dynamic_search_ad.description, 
ad_group_ad.ad.expanded_dynamic_search_ad.description2, segments.date, 
metrics.impressions, metrics.clicks, metrics.cost_micros, 
metrics.conversions, metrics.conversions_value, 
metrics.view_through_conversions, metrics.all_conversions, 
metrics.all_conversions_value, metrics.cross_device_conversions, 
metrics.engagements, metrics.interactions, 
metrics.video_quartile_p100_rate, metrics.video_quartile_p25_rate, 
metrics.video_quartile_p50_rate, metrics.video_quartile_p75_rate, 
metrics.video_views, metrics.gmail_forwards, metrics.gmail_saves, 
metrics.gmail_secondary_clicks, metrics.active_view_impressions, 
metrics.active_view_measurable_impressions, 
metrics.active_view_measurable_cost_micros, metrics.average_page_views, 
metrics.average_time_on_site, metrics.percent_new_visitors, 
metrics.bounce_rate FROM ad_group_ad WHERE segments.date>='2022-07-01' AND 
segments.date<='2022-08-10'  ORDER BY segments.date DESC "

Response
---
Headers: {
"request-id": "VGS08iw7j0LjMzEYE6owQQ",
"date": "Thu, 11 Aug 2022 13:04:07 GMT",
"alt-svc": "h3=\":443\"; ma=2592000,h3-29=\":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":{"queryError

Google Ads API does not return search volume but Adwords API does

2022-08-11 Thread David Mrnuštík
Hello Google Ads team,
I requested historical metrics for keyword *feuerschale kinder* with 
location code 2276, language code 1001 by calling Google Ads API 
*KeywordPlanIdeaService.GenerateKeywordHistoricalMetrics* method, but 
*keyword_metrics* in response was *null*.

*Request body:*
{
  "customer_id": "",
  "keywords": [
"feuerschale kinder"
  ],
  "language": "languageConstants/1001",
  "geo_target_constants": [
"geoTargetConstants/2276"
  ],
  "keyword_plan_network": 2,
  "include_adult_keywords": true,
  "historical_metrics_options": {
"year_month_range": {
  "start": {
"year": 2021,
"month": "AUGUST"
  },
  "end": {
"year": 2022,
"month": "JULY"
  }
}
  }
}

*Response:*
{
  "results": [
{
  "close_variants": [],
  "keyword_metrics": null,
  "text": "feuerschale kinder",
  "_text": "text"
}
  ],
  "aggregate_metric_results": null
}

I also requested historical metrics for the same keyword and the same 
location and language by calling deprecated *Google Adwords API 
TargetingIdeaService* with RequestType.STATS option.

*Request selector:*
{
  "searchParameters": [
{
  "xsi:type": "NetworkSearchParameter",
  "networkSetting": {
"cm:targetGoogleSearch": true,
"cm:targetSearchNetwork": false,
"cm:targetContentNetwork": false,
"cm:targetPartnerSearchNetwork": false
  }
},
{
  "xsi:type": "RelatedToQuerySearchParameter",
  "queries": [
"feuerschale kinder"
  ]
},
{
  "xsi:type": "LocationSearchParameter",
  "locations": [
{
  "cm:id": "2276"
}
  ]
},
{
  "xsi:type": "LanguageSearchParameter",
  "languages": [
{
  "cm:id": "1001"
}
  ]
}
  ],
  "ideaType": "KEYWORD",
  "requestType": "STATS",
  "requestedAttributeTypes": [
"KEYWORD_TEXT",
"AVERAGE_CPC",
"TARGETED_MONTHLY_SEARCHES"
  ],
  "paging": {
"startIndex": 0,
"numberResults": 500
  }
}

*Response:*
{
  "totalNumEntries": 1,
  "entries": [
{
  "data": [
{
  "key": "KEYWORD_TEXT",
  "value": {
"attributes": {
  "xsi:type": "StringAttribute"
},
"Attribute.Type": "StringAttribute",
"value": "feuerschale kinder"
  }
},
{
  "key": "TARGETED_MONTHLY_SEARCHES",
  "value": {
"attributes": {
  "xsi:type": "MonthlySearchVolumeAttribute"
},
"Attribute.Type": "MonthlySearchVolumeAttribute",
"value": [
  {
"year": 2022,
"month": 7
  },
  {
"year": 2022,
"month": 6
  },
  {
"year": 2022,
"month": 5
  },
  {
"year": 2022,
"month": 4
  },
  {
"year": 2022,
"month": 3
  },
  {
"year": 2022,
"month": 2
  },
  {
"year": 2022,
"month": 1
  },
  {
"year": 2021,
"month": 12
  },
  {
"year": 2021,
"month": 11
  },
  {
"year": 2021,
"month": 10
  },
  {
"year": 2021,
"month": 9
  },
  {
"year": 2021,
"month": 8
  }
]
  }
},
{
  "key": "AVERAGE_CPC",
  "value": {
"attributes": {
  "xsi:type": "MoneyAttribute"
},
"Attribute.Type": "MoneyAttribute"
  }
}
  ]
}
  ]
}

We use https://github.com/Opteo/google-ads-api library as it has been 
updated with v11 API.
Could you please check what could possibly had happened?

Thank you in advance.

Kind regards,
David Mrnustik

David Mrnuštík
Javascript Developer, rindus Technology 
7 S.L.
C/ Severo Ochoa, 29, 29590 Campanillas (Málaga), Spain
Tel: +34 951 120 035
Geschäftsführer / Managing Director: Dominikus Schweighart, Rolf C. Zipf
CIF B-42757138, ​VAT ID ES42757138

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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

Remove keyword from negative list

2022-08-11 Thread Gionni Lone
Hi,

I'm struggling to find a way to remove keywords to negative lists, is this 
possible to do?

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/938ad879-4a19-4d71-8976-2c095aad2704n%40googlegroups.com.