Re: A GoogleAds API Call is taking long time time execute when creating a custom audience using MutateUserListsResponse in Java

2022-05-13 Thread 'Danilo Mozeli' via Google Ads API and AdWords API Forum
The problem that I'm facing looks similar to the one below:
https://groups.google.com/g/adwords-api/c/L8Wl2pwnoj0/m/Cfyf2OAHEwAJ

The difference is that in my case the long execution time is happening in 
the add user list command below:

  // Adds the user list.
  MutateUserListsResponse response =
  userListServiceClient.mutateUserLists
  (
  Long.toString(customerId), ImmutableList.of(operation));
  // Prints the response.


Thanks,

Danilo

On Friday, May 13, 2022 at 8:31:32 AM UTC-4 Danilo Mozeli wrote:

> Hi,
>
> Could this long time to execute a simple command be related to the 
> accounts hierarchy levels We have in our Google Ads environment? There are 
> several account hierarchies and hundreds of accounts, which are managed by 
> our account manager that We are using to execute the API calls. 
>
> Any help is greatly appreciate. 
>
> Best,
> Danilo 
>
> On Wednesday, May 11, 2022 at 11:29:39 AM UTC-4 Danilo Mozeli wrote:
>
>> Hi Yasar,
>>
>> Thanks for the response. I've enabled the logging in java using 
>> log4j-slf4j-impl. 
>> When I execute the java class I'm no longer getting the warnings saying 
>> that the logging libraries were not setup. However, it is not showing any 
>> log in console of a file. 
>>
>> Is there any sample or detailed documentation that I can use to setup the 
>> log correctly when using the client libraries? 
>>
>> This is an example of my call: 
>> java 
>> com.google.ads.googleads.examples.remarketing.AddCustomerMatchUserList 
>> -Dapi.googleads.maxLogMessageLength=-1 
>> -Dlog4j.configurationFile="C:\ELC\Social\Google_Ads_New_18\command\log4j2.xml"
>>  
>>
>>
>>
>> log4j2.xml - file below:
>>
>> 
>> 
>> org.apache.logging.log4j
>> log4j-slf4j-impl
>> 2.17.2
>> test
>> 
>> 
>>
>> Thanks,
>>
>> Danilo
>>
>>
>>
>> On Wednesday, May 11, 2022 at 3:13:05 AM UTC-4 adsapi wrote:
>>
>>> Hi Danilo,
>>>
>>> Thanks for reaching out to the Google Ads API Forum.
>>>
>>> For us to investigate further on the observed behavior, could you 
>>> provide us with the complete *request* 
>>> 
>>>  
>>> and *response* 
>>> 
>>>  
>>> logs with the *request-id* 
>>> 
>>>  
>>> generated for the uploads via *Reply privately to author *option?
>>>
>>> For the client library, logging can be enabled by navigating to the 
>>> Client libraries > Your client library (select Java) > Logging 
>>> documentation, which you can access from this *link* 
>>> . 
>>>
>>> Regards,
>>> [image: Google Logo] 
>>> Yasar 
>>> Google Ads API Team 
>>>   
>>>
>>> ref:_00D1U1174p._5004Q2arAUA:ref
>>>
>>
-- 
THIS E-MAIL IS INTENDED ONLY FOR THE ADDRESSEE(S) AND MAY CONTAIN
CONFIDENTIAL INFORMATION.   IF YOU ARE NOT THE INTENDED
 RECIPIENT, YOU ARE 
HEREBY NOTIFIED THAT ANY USE OF THIS
 INFORMATION OR DISSEMINATION, 
DISTRIBUTION OR COPYING OF THIS
 E-MAIL IS STRICTLY PROHIBITED.  IF YOU 
HAVE RECEIVED THIS
 E-MAIL IN ERROR, PLEASE NOTIFY THE SENDER IMMEDIATELY 
BY RETURN
 E-MAIL AND DELETE THE ORIGINAL MESSAGE.
THANK YOU.

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

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Google Ads API and AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/9c3ab588-e94c-44fe-9a27-a8c9bc83df07n%40googlegroups.com.


Re: A GoogleAds API Call is taking long time time execute when creating a custom audience using MutateUserListsResponse in Java

2022-05-13 Thread 'Danilo Mozeli' via Google Ads API and AdWords API Forum
 

Hi,

Could this long time to execute a simple command be related to the accounts 
hierarchy levels We have in our Google Ads environment? There are several 
account hierarchies and hundreds of accounts, which are managed by our 
account manager that We are using to execute the API calls. 

Any help is greatly appreciate. 

Best,
Danilo 

On Wednesday, May 11, 2022 at 11:29:39 AM UTC-4 Danilo Mozeli wrote:

> Hi Yasar,
>
> Thanks for the response. I've enabled the logging in java using 
> log4j-slf4j-impl. 
> When I execute the java class I'm no longer getting the warnings saying 
> that the logging libraries were not setup. However, it is not showing any 
> log in console of a file. 
>
> Is there any sample or detailed documentation that I can use to setup the 
> log correctly when using the client libraries? 
>
> This is an example of my call: 
> java 
> com.google.ads.googleads.examples.remarketing.AddCustomerMatchUserList 
> -Dapi.googleads.maxLogMessageLength=-1 
> -Dlog4j.configurationFile="C:\ELC\Social\Google_Ads_New_18\command\log4j2.xml"
>  
>
>
>
> log4j2.xml - file below:
>
> 
> 
> org.apache.logging.log4j
> log4j-slf4j-impl
> 2.17.2
> test
> 
> 
>
> Thanks,
>
> Danilo
>
>
>
> On Wednesday, May 11, 2022 at 3:13:05 AM UTC-4 adsapi wrote:
>
>> Hi Danilo,
>>
>> Thanks for reaching out to the Google Ads API Forum.
>>
>> For us to investigate further on the observed behavior, could you provide 
>> us with the complete *request* 
>> 
>>  
>> and *response* 
>> 
>>  
>> logs with the *request-id* 
>> 
>>  
>> generated for the uploads via *Reply privately to author *option?
>>
>> For the client library, logging can be enabled by navigating to the 
>> Client libraries > Your client library (select Java) > Logging 
>> documentation, which you can access from this *link* 
>> . 
>>
>> Regards,
>> [image: Google Logo] 
>> Yasar 
>> Google Ads API Team 
>>   
>>
>> ref:_00D1U1174p._5004Q2arAUA:ref
>>
>
-- 
THIS E-MAIL IS INTENDED ONLY FOR THE ADDRESSEE(S) AND MAY CONTAIN
CONFIDENTIAL INFORMATION.   IF YOU ARE NOT THE INTENDED
 RECIPIENT, YOU ARE 
HEREBY NOTIFIED THAT ANY USE OF THIS
 INFORMATION OR DISSEMINATION, 
DISTRIBUTION OR COPYING OF THIS
 E-MAIL IS STRICTLY PROHIBITED.  IF YOU 
HAVE RECEIVED THIS
 E-MAIL IN ERROR, PLEASE NOTIFY THE SENDER IMMEDIATELY 
BY RETURN
 E-MAIL AND DELETE THE ORIGINAL MESSAGE.
THANK YOU.

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

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Google Ads API and AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/0eeb3b3e-0bdf-42b9-8463-7f3684effc89n%40googlegroups.com.


Re: A GoogleAds API Call is taking long time time execute when creating a custom audience using MutateUserListsResponse in Java

2022-05-11 Thread 'Danilo Mozeli' via Google Ads API and AdWords API Forum
Hi Yasar,

Thanks for the response. I've enabled the logging in java using 
log4j-slf4j-impl. 
When I execute the java class I'm no longer getting the warnings saying 
that the logging libraries were not setup. However, it is not showing any 
log in console of a file. 

Is there any sample or detailed documentation that I can use to setup the 
log correctly when using the client libraries? 

This is an example of my call: 
java com.google.ads.googleads.examples.remarketing.AddCustomerMatchUserList 
-Dapi.googleads.maxLogMessageLength=-1 
-Dlog4j.configurationFile="C:\ELC\Social\Google_Ads_New_18\command\log4j2.xml" 



log4j2.xml - file below:



org.apache.logging.log4j
log4j-slf4j-impl
2.17.2
test



Thanks,

Danilo



On Wednesday, May 11, 2022 at 3:13:05 AM UTC-4 adsapi wrote:

> Hi Danilo,
>
> Thanks for reaching out to the Google Ads API Forum.
>
> For us to investigate further on the observed behavior, could you provide 
> us with the complete *request* 
> 
>  
> and *response* 
> 
>  
> logs with the *request-id* 
> 
>  
> generated for the uploads via *Reply privately to author *option?
>
> For the client library, logging can be enabled by navigating to the Client 
> libraries > Your client library (select Java) > Logging documentation, 
> which you can access from this *link* 
> . 
>
> Regards,
> [image: Google Logo] 
> Yasar 
> Google Ads API Team 
>   
>
> ref:_00D1U1174p._5004Q2arAUA:ref
>

-- 
THIS E-MAIL IS INTENDED ONLY FOR THE ADDRESSEE(S) AND MAY CONTAIN
CONFIDENTIAL INFORMATION.   IF YOU ARE NOT THE INTENDED
 RECIPIENT, YOU ARE 
HEREBY NOTIFIED THAT ANY USE OF THIS
 INFORMATION OR DISSEMINATION, 
DISTRIBUTION OR COPYING OF THIS
 E-MAIL IS STRICTLY PROHIBITED.  IF YOU 
HAVE RECEIVED THIS
 E-MAIL IN ERROR, PLEASE NOTIFY THE SENDER IMMEDIATELY 
BY RETURN
 E-MAIL AND DELETE THE ORIGINAL MESSAGE.
THANK YOU.

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

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Google Ads API and AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/2c557f63-c604-4a85-ada5-48d8b5e9c626n%40googlegroups.com.


A GoogleAds API Call is taking long time time execute when creating a custom audience using MutateUserListsResponse in Java

2022-05-09 Thread 'Danilo Mozeli' via Google Ads API and AdWords API Forum
Hi,

I'm trying to create an audience based on our company CRM data (email 
addresses and mobile phones). The system takes forever to execute this 
command in Java:

Everytime I try to run the method below, it takes ~60 minutes to complete .

*// Adds the user list.  MutateUserListsResponse response =  
userListServiceClient.mutateUserLists( 
 Long.toString(customerId), ImmutableList.of(operation));  * 

*Line 198*

Note: the attached file contains the entire java class file that I'm using.

API Version: Google Ads API v18 (Java)

Thanks,

Danilo



-- 
THIS E-MAIL IS INTENDED ONLY FOR THE ADDRESSEE(S) AND MAY CONTAIN
CONFIDENTIAL INFORMATION.   IF YOU ARE NOT THE INTENDED
 RECIPIENT, YOU ARE 
HEREBY NOTIFIED THAT ANY USE OF THIS
 INFORMATION OR DISSEMINATION, 
DISTRIBUTION OR COPYING OF THIS
 E-MAIL IS STRICTLY PROHIBITED.  IF YOU 
HAVE RECEIVED THIS
 E-MAIL IN ERROR, PLEASE NOTIFY THE SENDER IMMEDIATELY 
BY RETURN
 E-MAIL AND DELETE THE ORIGINAL MESSAGE.
THANK YOU.

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

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Google Ads API and AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/85ab8e7f-f403-4786-b472-c383b928ea1fn%40googlegroups.com.
package com.google.ads.googleads.examples.remarketing;

// Copyright 2020 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.


import static com.google.ads.googleads.examples.remarketing.CodeSampleHelper.getPrintableDateTime;

import com.beust.jcommander.Parameter;
import com.google.ads.googleads.lib.GoogleAdsClient;
import com.google.ads.googleads.v10.common.CrmBasedUserListInfo;
import com.google.ads.googleads.v10.common.CustomerMatchUserListMetadata;
import com.google.ads.googleads.v10.common.OfflineUserAddressInfo;
import com.google.ads.googleads.v10.common.UserData;
import com.google.ads.googleads.v10.common.UserIdentifier;
import com.google.ads.googleads.v10.enums.CustomerMatchUploadKeyTypeEnum.CustomerMatchUploadKeyType;
import com.google.ads.googleads.v10.enums.OfflineUserDataJobStatusEnum.OfflineUserDataJobStatus;
import com.google.ads.googleads.v10.enums.OfflineUserDataJobTypeEnum.OfflineUserDataJobType;
import com.google.ads.googleads.v10.errors.GoogleAdsError;
import com.google.ads.googleads.v10.errors.GoogleAdsException;
import com.google.ads.googleads.v10.errors.GoogleAdsFailure;
import com.google.ads.googleads.v10.resources.OfflineUserDataJob;
import com.google.ads.googleads.v10.resources.UserList;
import com.google.ads.googleads.v10.services.AddOfflineUserDataJobOperationsRequest;
import com.google.ads.googleads.v10.services.AddOfflineUserDataJobOperationsResponse;
import com.google.ads.googleads.v10.services.CreateOfflineUserDataJobResponse;
import com.google.ads.googleads.v10.services.GoogleAdsRow;
import com.google.ads.googleads.v10.services.GoogleAdsServiceClient;
import com.google.ads.googleads.v10.services.MutateUserListsResponse;
import com.google.ads.googleads.v10.services.OfflineUserDataJobOperation;
import com.google.ads.googleads.v10.services.OfflineUserDataJobServiceClient;
import com.google.ads.googleads.v10.services.SearchGoogleAdsStreamRequest;
import com.google.ads.googleads.v10.services.SearchGoogleAdsStreamResponse;
import com.google.ads.googleads.v10.services.UserListOperation;
import com.google.ads.googleads.v10.services.UserListServiceClient;
import com.google.ads.googleads.v10.utils.ErrorUtils;
import com.google.api.gax.rpc.ServerStream;
import com.google.common.collect.ImmutableList;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.UnsupportedEncodingException;
import java.security.MessageDigest;
import java.security.NoSuchAlgorithmException;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;

/**
 *