RESOURCE_EXHAUSTED - Number of operations for basic access - OAUTH Extenral

2023-05-12 Thread Nils
Hi there,

with the increase in connected Google Ads accounts we have been running 
into API limits.

According to the docs, we should apply for Standard Access, however, the 
application form is for the Developer Token approach and not for the OAUTH 
Web App External flow.
We also do not have a Google Ads account our selves which is required as 
well for the application form.

How should we proceed?

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/652e9ad2-26b9-48cd-83b6-13e3675a9dd9n%40googlegroups.com.


Re: how to avoid empty result when dimension is not set on data

2023-05-12 Thread Pablo Fernandez
Thank you

As stated in the documentation you provided me, 

*When adding some segments, the metrics in the summary row may decrease*
*When segments.keyword.info.match_type is added to a query with FROM 
ad_group_ad, that segment is telling the query to only get the rows of data 
that have keywords, and remove any row that is not associated with a 
keyword. In this case, the metrics would be lower because it would exclude 
any non-keyword metrics.*

so, when some data of an ad has no city involved (because belongs to a 
different Region type or simply there is no opening but the country 
itself), the summation for costs would be less than the cost reported for 
the hole country.
 
does exist ANY way to obtain those rows with null values for city 
dimension? I can only think on iteration over the distinct 
segments.geo_target_XXX 
dimensions.
Also, where do exist the 'Criteria ID' dimension, stated in geotarget 
constants as unique identifier for the target type (i.e. Department  
Oruro Department,Bolivia has Criteria ID 9069872, with parent 2068, Bolivia 
Country)? I could only find Parent ID as 
geographic_view.country_criterion_id.



On Wednesday, May 10, 2023 at 3:26:20 PM UTC-3 Google Ads API Forum Advisor 
wrote:

> Hello,
>
> Thanks for reaching out to the Google Ads API Team.
>
> I understand that with the query you have provided, you are not getting 
> any results when you try to add *segments.geo_target_county *into your 
> query*. *Kindly note that Google Ads API mirrors the Google Ads UI. I 
> would suggest trying to send requests by adding these segments separately. 
> With that, you will be able to get the data. However, kindly refer to the 
> provided *segmentation guide* as this will explain how segmentation will 
> affect the data that you are pulling.
>
>- *segmentation guide *- 
>*https://developers.google.com/google-ads/api/docs/reporting/segmentation* 
>
>  
>
> If the issue persists, can you please provide us with an uncropped 
> screenshot of the Google Ads UI that shows the data you are trying to pull 
> and the complete *request* and *response* logs with *request* *ID* generated 
> on your end so our team can investigate further and provide recommendations?
>
>- *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*
>  
>
> 
>  
>
> Regards,
> [image: Google Logo] Google Ads API Team 
>
> ref:_00D1U1174p._5004Q2lCMxp: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/5e5c0713-111d-4222-a620-ce550e8dd893n%40googlegroups.com.


Re: failed to create call ads due to customer_consent_for_call_recording_required

2023-05-12 Thread 'Google Ads API Forum Advisor' via Google Ads API and AdWords API Forum
Hi Souvik,

Thanks for getting back to us.

Note that the Customer consent for call recording Terms of Service is required 
to use CallAsset. Unfortunately, there is no API feature that can allow users 
to automatically accept terms. You may note that you should be able to set a 
Call reporting setting for a customer using customerService. Only mutable in an 
update operation. Following are the fields can be updated but no field related 
to the CUSTOMER_CONSENT_FOR_CALL_RECORDING:

call_reporting_enabled
call_conversion_reporting_enabled
call_conversion_action


With regards to creating Call Ads, you may need to set CallAdInfo which 
contains details pertaining to Call Ad. If you encounter any API error after 
following the above product support guide, you may privately provide us the 
full logs in the format of the request and response logs along with request-id 
as seen in their respective links so that we can provide appropriate 
recommendations on your API request.

Regards,

Google Ads API Team
ref:_00D1U1174p._5004Q2lHCLs: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/PVw380RUK1VC009N_ZYV-IQQ6N0yYenePASQ%40sfdc.net.


Re: internal error while submitting batch job operations. but change history showing same changes multiple times.

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

Regards,
Google Ads API Team

On Friday, May 12, 2023 at 5:54:38 PM UTC+8 sam...@optmyzr.com wrote:

> Hey team,
>
> Just checking out quickly,
> I sent request and response logs in private message. 
> Let me know  If we have any update on this.
>
> Regards,
> Samarth
>
> On Wednesday, May 3, 2023 at 1:00:39 AM UTC+5:30 Google Ads API Forum 
> Advisor wrote:
>
>> Hi,
>>
>> Thanks for getting back with us.
>>
>> Please note that our team support scope specialize on *Google Ads API* 
>> technical 
>> implementation related concerns only. 
>>
>> With regards to your concern, can you confirm if you are using the *Google 
>> Ads API* directly to implement the following requests? If so, please 
>> note that in *Google Ads API* perspective, we need the complete logs to 
>> be able to see if there’s an error thrown on your side and further 
>> investigate. With that being said, can you provide the complete *request*
>>  and *response* logs with *request* *ID* generated as shown in the 
>> respective links with this error? 
>>
>> However, if this is not Google Ads API related concern, then can you 
>> provide more context about your issue / concern so that we can provide 
>> guidance accurately or route you to the correct support team regarding your 
>> concern?
>>
>> 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 *googleadsa...@google.com* alias instead.
>>
>> Links included in this email:
>>
>>- *Google ads API *- 
>>*https://developers.google.com/google-ads/api/docs/start?hl=en* 
>> 
>>- *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*
>>  
>>
>> 
>>  
>>
>>
>> Regards,
>> [image: Google Logo] Google Ads API Team 
>>
>> ref:_00D1U1174p._5004Q2koYD4: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/117e5434-0f56-4218-93a1-0f3bc249ec7en%40googlegroups.com.


Re: How to set a CPV Bid Strategy at Ad Group level for video campaigns

2023-05-12 Thread julian selser
yes, we are using *Google Ads Api* but this still seems not possible, can 
you confirm?

On Friday, May 12, 2023 at 3:06:54 AM UTC-3 Google Ads API Forum Advisor 
wrote:

> Hi,
>
> Thank you for reaching out to Google Ads API Forum.
>
> Please note that as per this blog post (
> *https://ads-developers.googleblog.com/2022/05/adwords-api-has-officially-sunset.html*
>  
> ),
>  
> Adwords API has officially sunset. Can you confirm if you still use the 
> AdWords API? If yes, you will need to upgrade to the *Google Ads API *(
> *https://developers.google.com/google-ads/api/docs/start* 
> ) as AdWords API 
> is no longer available. 
>
> Let us know if you have further questions related to Google Ads API.
>
> Regards,
> [image: Google Logo] Google Ads API Team 
>
> ref:_00D1U1174p._5001UEHQix: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/9cfdcbcc-ad53-451b-a853-84475763a399n%40googlegroups.com.


KeywordPlanKeywordForecast will be removed. What is the alternative?

2023-05-12 Thread dimitris pfx
Hello,

We are using the KeywordPlanKeywordForecast in our applications, but 
according to the announcement 

 the 
KeywordPlanKeywordForecast will be removed. What is the alternative for 
this?

Thanks in advance

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/3a5f6f39-0344-40b8-b37a-cf86ded7d72fn%40googlegroups.com.


KeywordPlanKeywordForecast to being removed. What is the alternative?

2023-05-12 Thread dimitris pfx
Hello,

We are using the KeywordPlanKeywordForecast in our applications, but 
according to the announcement 

 the 
KeywordPlanKeywordForecast will be removed. What is the alternative for 
this?

Thanks,
George

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/80b59421-0d2a-4993-82af-d8a70f8aad5dn%40googlegroups.com.


Re: error for removing keywords from negative keywords shared set

2023-05-12 Thread Qihuai Duan
Hello,

Issue solved, it lacked of one line of argument in the add_argument

Thx 

Le vendredi 12 mai 2023 à 15:41:58 UTC+2, Google Ads API Forum Advisor a 
écrit :

> Hello,
>
> Thanks for reaching out to the Google Ads API Team.
>
> I understand that you are experiencing an INVALID_ARGUMENT error while 
> using the Search method on your python client library. Can you please 
> confirm if this operation is referring to the python client library 
> *find_and_remove_criteria_from_shared_set.py* file?
>
>- *find_and_remove_criteria_from_shared_set.py* - 
>
> *https://github.com/googleads/google-ads-python/blob/main/examples/advanced_operations/find_and_remove_criteria_from_shared_set.py*
>  
>
> 
>  
>
> Additionally, can you please provide us with the complete *request* and 
> *response* logs with *request* *ID* generated on your end so our team can 
> investigate further and provide recommendations?
>
>- *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*
>  
>
> 
>  
>
> 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] Google Ads API Team 
>
> ref:_00D1U1174p._5004Q2lHEzt: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/d9c1928d-5ee2-48e5-b5e6-7000b5c3f97bn%40googlegroups.com.


RE: error for removing keywords from negative keywords shared set

2023-05-12 Thread 'Google Ads API Forum Advisor' via Google Ads API and AdWords API Forum
Hello,

Thanks for reaching out to the Google Ads API Team.

I understand that you are experiencing an INVALID_ARGUMENT error while using 
the Search method on your python client library. Can you please confirm if this 
operation is referring to the python client library 
find_and_remove_criteria_from_shared_set.py file?

find_and_remove_criteria_from_shared_set.py - 
https://github.com/googleads/google-ads-python/blob/main/examples/advanced_operations/find_and_remove_criteria_from_shared_set.py

Additionally, can you please provide us with the complete request and response 
logs with request ID generated on your end so our team can investigate further 
and provide recommendations?

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

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 
googleadsapi-supp...@google.com.

Regards,

Google Ads API Team
ref:_00D1U1174p._5004Q2lHEzt: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/fLVn00RUJSPD00PRNaPuQWRf-TxPMwLVBH4Q%40sfdc.net.


Upload offline click conversion to google ad api

2023-05-12 Thread Mukesh Rawat
Hey i am trying to upload oflline click conversion to google ads through 
google ad rest api but when i am tring to send data it ask to send GCLID as 
well , so is there any way i can upload this data through rest api without 
passing GCLID 

Note: i don`t want to disable auto-tagging

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/10cd5bd3-8180-497a-9ca8-39434ea9749bn%40googlegroups.com.


Upload offline conversion through google ad api

2023-05-12 Thread Mukesh Rawat
Hey i am trying to upload oflline click conversion to google ads through 
google ad rest api but when i am tring to send data it ask to send GCLID as 
well , so is there any way i can upload this data through rest api without 
passing GCLID 

Note: i don`t want to disable auto-tagging

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/f039fd89-fcb1-493d-828b-f5b1437da698n%40googlegroups.com.


Re: Missing keywords in click_view report

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

Regards,
Google Ads API Team

On Friday, May 12, 2023 at 4:51:03 PM UTC+8 AntonS wrote:

> Hello,
>
> We are receiving empty keywords in click_view report, which is not 
> expected. We noticed that happens on a specific occurrence, when landing 
> page is not equal to the homepage and match_type = broad.
>
> Looking for.a guidance to understand the cause.
>
> Regards,
> Anton
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/cea351b1-7796-4776-a5b4-a953a318fdd7n%40googlegroups.com.


Re: discrepancies in historical monthly search volumes between api and web keyword planner

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

Regards,
Google Ads API Team

On Thursday, May 11, 2023 at 10:01:55 PM UTC+8 wil...@wturrell.co.uk wrote:

> The other thread refers to forecast data and I'm looking at Historical 
> metrics.
>
> https://developers.google.com/google-ads/api/reference/rpc/v13/KeywordPlanService?hl=en#generatehistoricalmetrics
>
> Can you confirm that TrafficEstimatorService is the old name for the 
> Keyword Planner and this situation applies to historical searches as well? 
> (it seems odd that the API and the web UI would use a different data 
> source.)
>
> I did look at the XHR requests when paging through results in 
> https://ads.google.com/aw/keywordplanner/plan/keywords/historical?... but 
> it didn't help much.
>
> (Thanks)
>
>
> On Thursday, May 11, 2023 at 11:31:29 AM UTC+1 Google Ads API Forum 
> Advisor wrote:
>
>> Hi Dan,
>>
>> Thank you for sharing the solution to on this thread. This will greatly 
>> help the community.
>>
>> @Will, 
>>
>> You may check the thread (
>> https://groups.google.com/g/adwords-api/c/LASHwRCl1xQ/m/PegUXzurEAAJ) 
>> provided by Dan and let us know if you have further question.
>>
>> Regards,
>> [image: Google Logo] Google Ads API Team 
>>
>> ref:_00D1U1174p._5004Q2lGnUr: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/d29c303f-2227-4350-9f16-6e29b2c16e91n%40googlegroups.com.


Re: smart campaign ad_optimized_business_profile_setting throws field_has_subfields

2023-05-12 Thread 'Google Ads API Forum Advisor' via Google Ads API and AdWords API Forum
Hi Oktay,

Thank you for getting back to us.

For us to further investigate this issue, could you provide the complete 
request and response logs with request ID and request header generated on your 
end? 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 
googleadsapi-supp...@google.com. If you haven't enabled the logging yet, 
logging can be enabled by following the guide in this link 
https://developers.google.com/google-ads/api/docs/client-libs/ruby/logging.

Reference links:

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
request header - 
https://developers.google.com/google-ads/api/docs/concepts/call-structure#request_headers


Kind regards,

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


Re: failed to create call ads due to customer_consent_for_call_recording_required

2023-05-12 Thread Souvik Basu
HI, 

Thanks for your reply, but is there anyway we can do this via the API, 

Or

Is there any way we can still create the Call Ads, even if that call 
recording is not enabled?

Regards
Souvik

On Friday, May 12, 2023 at 10:57:44 AM UTC+1 Google Ads API Forum Advisor 
wrote:

> Hi Souvik,
>
> Thank you for reaching out to the Google Ads API support team. I hope that 
> you are doing well today.
>
> You may find the instructions on how to enable the call recording in your 
> account (via this link 
> https://support.google.com/google-ads/answer/9882108).
>
> I hope this helps.
>
> Kind regards, 
> [image: Google Logo] Google Ads API Team 
>
> ref:_00D1U1174p._5004Q2lHCLs: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/38fb9025-e736-4656-af21-cbe25c3c996bn%40googlegroups.com.


Error for removing keywords from negative keywords shared set

2023-05-12 Thread Qihuai Duan
Hello 

I've got an error while I tried with the following command lines :
 
python remove_negative_kw_list_shared_set.py -c 27*24 -n 
"API_Negative_keyword_list_ 27*24  " -k test3

It returned me an error as below:
Request made: ClientCustomerId:  27*24  , Host: 
googleads.googleapis.com, Method: 
/google.ads.googleads.v13.services.GoogleAdsService/Search, RequestId: 
1JhvDHTQAhL
sF6ehrmg7UQ, IsFault: True, FaultMessage: Error in shared_set.id IN (''): 
invalid number .
Request with ID "1JhvDHTQAhLsF6ehrmg7UQ" failed with status 
"INVALID_ARGUMENT" and includes the following errors:
Error with message "Error in shared_set.id IN (''): invalid number 
.".

Here is my script, what's the problem pls ?

import argparse
import sys

from google.ads.googleads.client import GoogleAdsClient
from google.ads.googleads.errors import GoogleAdsException

_DEFAULT_PAGE_SIZE = 1

def main(client, customer_id, shared_set_names, keywords):
ga_service = client.get_service("GoogleAdsService")
shared_criterion_service = client.get_service("SharedCriterionService")

# First, retrieve all shared sets associated with the campaign.
shared_sets_query = (f"SELECT\n"
f"shared_set.id,\n"
f"shared_set.name\n"
f"FROM shared_set\n"
f"WHERE shared_set.name = '{shared_set_names}'")

try:
shared_set_search_request = client.get_type("SearchGoogleAdsRequest")
shared_set_search_request.customer_id = customer_id
shared_set_search_request.query = shared_sets_query
shared_set_search_request.page_size = _DEFAULT_PAGE_SIZE

shared_set_response = ga_service.search(
request=shared_set_search_request
)

shared_set_ids = []
for row in shared_set_response:
shared_set = row.shared_set
shared_set_ids.append(str(shared_set.id))
print(
f'Campaign shared set ID "{shared_set.id}" and name '
f'"{shared_set.name}" was found.'
)
except GoogleAdsException as ex:
handle_googleads_exception(ex)

ids = "','".join(shared_set_ids)
kws = "','".join(keywords)

shared_criteria_query = (f"SELECT\n"
f"shared_criterion.type,\n"
f"shared_criterion.keyword.text,\n"
f"shared_criterion.keyword.match_type,\n"
f"shared_set.id\n"
f"FROM shared_criterion\n"
f"WHERE shared_set.id IN ('{ids}')\n"
f"AND shared_criterion.keyword.text IN ('{kws}')\n")

try:
shared_criteria_search_request = client.get_type(
"SearchGoogleAdsRequest"
)
shared_criteria_search_request.customer_id = customer_id
shared_criteria_search_request.query = shared_criteria_query
shared_criteria_search_request.page_size = _DEFAULT_PAGE_SIZE

shared_criteria_response = ga_service.search(
request=shared_criteria_search_request
)
except GoogleAdsException as ex:
handle_googleads_exception(ex)

criterion_type_enum = client.enums.CriterionTypeEnum
criterion_ids = []
for row in shared_criteria_response:
shared_criterion = row.shared_criterion
shared_criterion_resource_name = shared_criterion.resource_name

if shared_criterion.type_ == criterion_type_enum.KEYWORD:
keyword = shared_criterion.keyword
print(
"Shared criterion with resource name "
f'"{shared_criterion_resource_name}" for negative keyword '
f'with text "{keyword.text}" and match type '
f'"{keyword.match_type.name}" was found.'
)

criterion_ids.append(shared_criterion_resource_name)

# Finally, remove the criteria.
operations = []
for criteria_id in criterion_ids:
shared_criterion_operation = client.get_type("SharedCriterionOperation")
shared_criterion_operation.remove = criteria_id
operations.append(shared_criterion_operation)

try:
response = shared_criterion_service.mutate_shared_criteria(
customer_id=customer_id, operations=operations
)

for result in response.results:
print(f'Removed shared criterion "{result.resource_name}".')
except GoogleAdsException as ex:
handle_googleads_exception(ex)


def handle_googleads_exception(exception):
print(
f'Request with ID "{exception.request_id}" failed with status '
f'"{exception.error.code().name}" and includes the following errors:'
)
for error in exception.failure.errors:
print(f'\tError with message "{error.message}".')
if error.location:
for field_path_element in error.location.field_path_elements:
print(f"\t\tOn field: {field_path_element.field_name}")
sys.exit(1)

class StringWithSpace(argparse.Action):
def __call__(self, parser, namespace, values, option_string=None):
setattr(namespace, self.dest, ' '.join(values))

if __name__ == "__main__":
# GoogleAdsClient will read the google-ads.yaml configuration file in the
# home directory if none is specified.
AUTH_PATH = "lib/google-ads.yaml"
googleads_client = GoogleAdsClient.load_from_storage(AUTH_PATH, version=
"v13")

parser = argparse.ArgumentParser(
description=(
"Finds shared sets, then finds and removes shared set "
"criteria under them."
)
)
# The following argument(s) should be provided to run the example.
parser.add_argument(
"-c",
"--customer_id",
type=str,
required=True,
help="The Google Ads customer ID.",
)
parser.add_argument(
"-n",
"--shared_set_name",
action=StringWithSpace,
type=str,
required=True,
help="The negative keyword 

Re: smart campaign ad_optimized_business_profile_setting throws field_has_subfields

2023-05-12 Thread Oktay Donmez
I tried with adding subfields to field mask manually but still getting same 
error.

Request ID: 7vWv2ujN4BNJB0GVLIE7AA

Mutate request:

client.operation.mutate do |m|
m.smart_campaign_setting_operation =
client.operation.update_resource.smart_campaign_setting(client.path.
smart_campaign_setting(customer_id, SMART_CAMPAIGN_TEMPORARY_ID)) do |scs| 
scs.phone_number = client.resource.phone_number do |p|
p.country_code = COUNTRY_CODE
p.phone_number = PHONE_NUMBER
end
scs.advertising_language_code = LANGUAGE_CODE
scs.business_profile_location = business_profile_location
scs.ad_optimized_business_profile_setting = client.resource.
ad_optimized_business_profile_setting
end
m.smart_campaign_setting_operation.update_mask.paths << "
ad_optimized_business_profile_setting.include_lead_form"
end

Update mask:

 

11 Mayıs 2023 Perşembe tarihinde saat 19:59:56 UTC+3 itibarıyla Google Ads 
API Forum Advisor şunları yazdı:

> Hi Oktay,
>
> Thank you for reaching out to us.
>
> With regard to the error you've encountered, the "FIELD_HAS_SUBFIELDS" 
> means that the field mask updated a field with subfields. Fields with 
> subfields may be cleared, but not updated. To fix this, the field mask 
> should select all the subfields of the invalid field. Upon further 
> checking, I've seen this documentation for Field Masks (
> https://developers.google.com/google-ads/api/docs/client-libs/ruby/field-masks),
>  
> which has explained and has an example of how to avoid this error (
> https://developers.google.com/google-ads/api/docs/client-libs/ruby/field-masks#message_fields_with_defined_subfields).
>  
> Kindly check it and try it on your end.
>
> Regards,
> [image: Google Logo] Google Ads API Team 
>
> ref:_00D1U1174p._5004Q2lGto8: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/7c273207-8a46-41e3-b135-c4db8f1a2929n%40googlegroups.com.