Re: Request got stuck without any response

2022-07-13 Thread Jing CHEN
I'm using the SearchStream method, and it doesn't always happen, it's more 
like I'm experiencing periodic very high latency. Is it due to the busy 
google api service during this time?
[image: Snipaste_2022-07-13_19-35-31.png]
On Wednesday, 13 July 2022 at 15:26:40 UTC+8 adsapi wrote:

> Hi Jing,
>
> Thank you for raising your concern to my team.
>
> So that I can take a closer look at the issue, could you provide the 
> complete request 
> 
>  and response 
> 
>  logs 
> with request ID 
> 
>  and request header 
> 
>  generated 
> on your end? Also, could you explain to us how the issue is encountered?
>
> You can provide it via *Reply privately to author* option. If this option 
> is not available, then send it instead on this email address 
> googleadsa...@google.com.
>
> In addition, I would suggest using *SearchStream* as it improved 
> performance over paging, especially for bigger reports. The reason is, it 
> is eliminating the round-trip network time required to request each 
> individual page of a Search response.
>
> Regards,
> [image: Google Logo] 
> Ernie John 
> Google Ads API Team 
>   
>
> ref:_00D1U1174p._5004Q2cVJ25: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/03c86a1d-401c-451f-a17f-6becc0069cfen%40googlegroups.com.


Re: Request got stuck without any response

2022-07-12 Thread Jing CHEN
Same problem, some customer-id requests have extremely high latency.

On Wednesday, 13 July 2022 at 01:26:05 UTC+8 ashirk...@gmail.com wrote:

> Hi,
> I faced this issue consistently in the v11 version. I downloaded the 
> report of every customer-id. But it randomly got stuck without any response 
> for a long time (2-3) hours approx. Can you please tell me why this happens?

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/7f54eddb-47c4-4f98-a673-5ebff98de40cn%40googlegroups.com.


Request got stuck without any response

2022-07-12 Thread Ashir Khan
Hi,
I faced this issue consistently in the v11 version. I downloaded the report 
of every customer-id. But it randomly got stuck without any response for a 
long time (2-3) hours approx. Can you please tell me why this happens?

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/6539e010-0372-452f-8553-f68449f963c4n%40googlegroups.com.


RE: GoogleAdsServiceClient recommendation request got stuck without any response.

2019-11-11 Thread Google Ads API Forum Advisor Prod
Hi Kera,

Thank you for writing to us. To assist you better, could you please share the 
complete request and response logs along with the client customer against which 
you are making the API request call to get the campaign details? Please use 
Reply privately to author option while sharing the details.

Regards,
Nikisha Patel, Google Ads API Team
ref:_00D1U1174p._5001UMWG5I: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/6Yogi0Q0T8KU009kfPeoUASdS5tSmPyeEMSA%40sfdc.net.


Re: GoogleAdsServiceClient recommendation request got stuck without any response.

2019-11-11 Thread Kera Hartlen
I have a similar issue. I am currently still running the get_campaigns.py 
example in my console. It's been running for over an hour. The data is not 
that high in volume. I can successfully return the data in Google Sheets 
with the Google Ads Add-On. I specified the customer ID in the code (not 
the manager account ID). I am running on a test developer token. The client 
is in my manager account. However, is the reason it is just running without 
completing because I am using a test developer token? I am authenticated 
without any issues. I am using the google-ads python library. My file looks 
like this:(Note: I have blanked out the customer ID as we have NDA 
contracts and GDPR to comply with.) I have pulled from several different 
APIs and this has by far been the most ridiculous headache I have ever 
experienced with one.


#!/usr/bin/env python
# Copyright 2018 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
"""This example illustrates how to get all campaigns.
To add campaigns, run add_campaigns.py.
"""

from __future__ import absolute_import

import argparse
import six
import sys

import google.ads.google_ads.client


_DEFAULT_PAGE_SIZE = 1000
customer_id="xxx-xxx-"


def main(client, customer_id, page_size):
ga_service = client.get_service('GoogleAdsService', version='v2')

query = ('SELECT campaign.id FROM campaign ORDER BY campaign.id')
results = ga_service.search(customer_id, query=query, page_size=page_size)

try:
for row in results:
print('Campaign with ID %d and name "%s" was found.'
  % (row.campaign.id.value))
except google.ads.google_ads.errors.GoogleAdsException as ex:
print('Request with ID "%s" failed with status "%s" and includes the '
  'following errors:' % (ex.request_id, ex.error.code().name))
for error in ex.failure.errors:
print('\tError with message "%s".' % error.message)
if error.location:
for field_path_element in error.location.field_path_elements:
print('\t\tOn field: %s' % field_path_element.field_name)
sys.exit(1)


if __name__ == '__main__':
# GoogleAdsClient will read the google-ads.yaml configuration file in the
# home directory if none is specified.
google_ads_client = 
GoogleAdsClient.load_from_storage(path='E:/Work/AWAPI/venv/google-ads.yaml')

parser = argparse.ArgumentParser(
description='Lists all campaigns for specified customer.')
# The following argument(s) should be provided to run the example.
parser.add_argument('-c', '--customer_id', type=six.text_type,
required=True, help='The Google Ads customer ID.')
args = parser.parse_args()

main(google_ads_client, args.customer_id, _DEFAULT_PAGE_SIZE)


On Tuesday, November 5, 2019 at 5:06:47 AM UTC-5, Suresh Kumar Shenbagam 
wrote:
>
> Hi Team,
>
> I am trying to retrieve recommendations using google ads API as mentioned 
> here - 
> https://developers.google.com/google-ads/api/docs/samples/get-text-ad-recommendations
> The authentication was successful, but there was no response - it got 
> stuck in the searchrequest. I am using test account - but any way it should 
> return atleast empty recommendation.
>
> I can send you the customer id privately, if required. Please let me know.
>
> Suresh
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/604176b7-3e73-4aac-ab8a-fa44f2d355ea%40googlegroups.com.


Re: GoogleAdsServiceClient recommendation request got stuck without any response.

2019-11-05 Thread Suresh Kumar Shenbagam
Hi Nikisha,

Thanks for the response.  I have sent you the customerid as private 
message. And also, I am trying to list all the customer using Google Ads 
API as mentioned in the example here 
- 
https://developers.google.com/google-ads/api/docs/account-management/listing-accounts
 
https://github.com/googleads/google-ads-java/blob/c290a6deb3d0d358d800b2953bd1f4364455c97a/google-ads-examples/src/main/java/com/google/ads/googleads/examples/accountmanagement/ListAccessibleCustomers.java

Authentication was success. But there is no response from this line,
ListAccessibleCustomersResponse response = 
customerService.listAccessibleCustomers( 
ListAccessibleCustomersRequest.newBuilder().build());

Is there any problem with GoogleAdsClient - Can you please check and let me 
know.
Btw, am able to retrieve customers using adwords api. I wanted to use the 
recommendation services, so I chose Google Ads API.


Suresh

On Tuesday, November 5, 2019 at 3:36:47 PM UTC+5:30, Suresh Kumar Shenbagam 
wrote:
>
> Hi Team,
>
> I am trying to retrieve recommendations using google ads API as mentioned 
> here - 
> https://developers.google.com/google-ads/api/docs/samples/get-text-ad-recommendations
> The authentication was successful, but there was no response - it got 
> stuck in the searchrequest. I am using test account - but any way it should 
> return atleast empty recommendation.
>
> I can send you the customer id privately, if required. Please let me know.
>
> Suresh
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/63cb5b20-a800-497d-8fb8-c706edfa32bd%40googlegroups.com.


GoogleAdsServiceClient recommendation request got stuck without any response.

2019-11-05 Thread Suresh Kumar Shenbagam
Hi Team,

I am trying to retrieve recommendations using google ads API as mentioned 
here 
- 
https://developers.google.com/google-ads/api/docs/samples/get-text-ad-recommendations
The authentication was successful, but there was no response - it got stuck 
in the searchrequest. I am using test account - but any way it should 
return atleast empty recommendation.

I can send you the customer id privately, if required. Please let me know.

Suresh

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/05ffe26e-53ef-4d5b-94e0-9d6023af4ff1%40googlegroups.com.