Re: Batch Jobs stuck on RUNNING state on GoogleAds API

2022-05-19 Thread Skander Mansouri
did the same! 

Status stuck on Pending and we are getting kicked out of the /GetOperation 
with a Task was cancelled error. not sure if someone is facing the same 
issue here?

Le jeudi 19 mai 2022 à 16:28:17 UTC+2, Prototype.co a écrit :

> I've sent an e-mail with some customer and batch job ids.
>
> adsapi a következőt írta (2022. május 18., szerda, 19:46:25 UTC+2):
>
>> Greetings All,
>>
>> Thank you for chiming in on this. It looks like we have multiple reasons 
>> at this time as to why a batch job could be either stuck running or slower 
>> than expected.
>>
>> First, there were general issues with Batch Jobs that were resolved on 
>> May 11th. We had a bit of a backlog, and we burned through that backlog. 
>> So, that did solve the problem for many of you.
>>
>> For other developers on the 'stuck running' state continuing, I've 
>> checked in with the folks looking into this, and it appears there is a 
>> common theme amongst many of the jobs. It appears that at times the batch 
>> job will retry when an error will permanently result in failure. So, the 
>> job runs for much longer trying to retry failures that it should give up on 
>> right away. 
>>
>> So, here's what I need from you folks to figure out what's happening in 
>> your individual cases. If you could reply privately to author on the forum 
>> (or send an email to googleadsapi-supp...@google.com if replying 
>> privately to me does not work) with less than 5 samples of customer IDs and 
>> batch jobs IDs (so I don't get too many at one time) where you see the 
>> constant running or significant slowdown with a note saying whether or not 
>> it's a slowdown or stuck running, that would be a huge help. I believe 
>> based on this sample of descriptions here that there may be slightly 
>> different issues happening, and I want to make sure to address all of them.
>>
>
>>
>> Thanks,
>> [image: Google Logo] 
>> Nadine Wang 
>> Google Ads API Team 
>>   
>>
>> ref:_00D1U1174p._5004Q2aQjmG: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/0bb242da-0cb3-4573-8afb-9a78e7e11a27n%40googlegroups.com.


Re: Batch Jobs stuck on RUNNING state on GoogleAds API

2022-05-18 Thread Skander Mansouri
Is the issue still persisting on your side everyone? 

Le vendredi 13 mai 2022 à 16:26:54 UTC+2, adsapi a écrit :

> Hello,
>
> Thanks for your patience on this. Please allow me to share your experience 
> with our team and I will provide an update shortly.
>
>
> Thanks,
> Matt
> Google Ads API Team
>
> [image: Google Logo] 
> Matt 
> Google Ads API Team 
>   
>
> ref:_00D1U1174p._5004Q2aQjmG: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/a49e9a20-66b3-4d10-a3fa-97db80f88c5en%40googlegroups.com.


Re: Batch Jobs started failing.

2022-05-13 Thread Skander Mansouri
Hi,

As for our case, we receive an internal error when we use the 
addBatchJobOperations
FAILURE REQUEST SUMMARY. Method: 
google.ads.googleads.v9.services.BatchJobService/AddBatchJobOperations
this is the status of the response 
Status: Status{code=INTERNAL, description=Internal error encountered., 
cause=null}.

Can you tell us what's wrong?

Le vendredi 13 mai 2022 à 15:03:33 UTC+2, Silvia Oggiano a écrit :

> Hi adsapi, 
>
> can you confirm that the slowness problem has been solved?
>
> Thanks
> Silvia
> Il giorno mercoledì 11 maggio 2022 alle 20:30:27 UTC+2 adsapi ha scritto:
>
>> Hi All,
>>
>> Thanks for your patience on this. This issue should now be resolved. 
>> Please retry your batch job requests and let us know if the same issue 
>> reoccurs. 
>>
>> Thanks,
>>
>> Matt
>> Google Ads API Team
>>
>> [image: Google Logo] 
>> Matt 
>> Google Ads API Team 
>>   
>>
>> ref:_00D1U1174p._5004Q2aqXPE: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/cbdd9778-6996-425b-9e2b-6140936f1eedn%40googlegroups.com.


Re: Slow

2022-05-11 Thread Skander Mansouri
Everyone is experiecing an issue with this batch job service. and we are 
waiting for Google to confirm this!

Le mercredi 11 mai 2022 à 12:06:23 UTC+2, Kubber a écrit :

> I'm trying to remove CampaignCriterionOperation using BatchJobService.
>
> It used to work quite quick until last Thursday, but now it's very slow it 
> can take 30 minutes before it's done, and the amount of data is the very 
> same. 
> I see the same issue on uploading CampaignCriteria. 
>
> How long should it take to delete let's say 2 criteria?
>  
> I'm using code more less like this: 
>
>
> batch_job_service = client.get_service("BatchJobService")
> batch_job_operation = client.get_type("BatchJobOperation")
>
> batch_job = client.get_type("BatchJob")
> client.copy_from(batch_job_operation.create, batch_job)
> response = batch_job_service.mutate_batch_job(
> customer_id=customer_id, operation=batch_job_operation
> )
> resource_name = response.result.resource_name
>
> operations = []
> for cbm in chunk:
> campaign_criterion_operation = 
> client.get_type("CampaignCriterionOperation")
> campaign_id = cbm.split(',')[0]
> criterion_id = cbm.split(',')[1]
> campaign_criterion_operation.remove = 
> f"customers/{customer_id}/campaignCriteria/{campaign_id}~{criterion_id}"
> mutate_operation = client.get_type("MutateOperation")
> client.copy_from(getattr(mutate_operation, 
> "campaign_criterion_operation"), campaign_criterion_operation)
> operations.append(mutate_operation)
>
> batch_job_service.add_batch_job_operations(
> resource_name=resource_name,
> mutate_operations=operations,
> )
> response = batch_job_service.run_batch_job(resource_name=resource_name)
> 
>
> for i in range(1, 20):
> time.sleep(10*i)
> if response.done():
>...
>
> Cheers,
> Jakub
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/572e493b-66e1-4b96-9169-cc4c3e5eb81en%40googlegroups.com.


Re: Batch Jobs stuck on RUNNING state on GoogleAds API

2022-05-10 Thread Skander Mansouri
is there any updates on this?

Le lundi 9 mai 2022 à 10:59:39 UTC+2, jaume@channable.com a écrit :

> Hi Google,
>
> Expanding a bit more on this issue, we actually have some customers that 
> are "stuck" with 100 running BatchJobs (affecting different campaigns).
> This means that we can't do anything for them anymore unless we use the 
> API directly, which, as mentioned by our google partner, is not a good 
> option with our use cases.
>
> Hope this can be resolved soon.
>
> Jaume
>
>
> On Monday, May 9, 2022 at 8:29:39 AM UTC+2 Ciel Eijssen wrote:
>
>> Hi,
>>
>> Over the weekend the problem has only gotten worse and we now have over 
>> 2000 batch jobs stuck in the RUNNING state since at least yesterday 
>> morning, May 8th.
>>
>> I already supplied you a list of the affected batch job ids and customer 
>> ids from before the weekend, but I can give you an updated list if needed. 
>>
>> Appreciate your time.
>>
>> Best,
>> Ciel
>>
>> On Sunday, May 8, 2022 at 9:04:20 PM UTC+2 Christian wrote:
>>
>>> Hi,
>>>
>>> We are facing the same issue since May 5. Today (May 8), we see batch 
>>> jobs in state RUNNING since May 6:
>>>
>>> SELECT batch_job.id, batch_job.status, 
>>> batch_job.metadata.creation_date_time, 
>>> batch_job.metadata.estimated_completion_ratio FROM batch_job WHERE 
>>> batch_job.status != DONE ORDER BY batch_job.metadata.creation_date_time 
>>> LIMIT 4
>>>
>>> batch_job {
>>>   resource_name: "customers/50.307/batchJobs/9016872863 
>>> <(901)%20687-2863>"
>>>   metadata {
>>> creation_date_time: "2022-05-06 06:23:50"
>>> estimated_completion_ratio: 0.0
>>>   }
>>>   status: RUNNING
>>>   id: 9016872863 <(901)%20687-2863>
>>> }
>>>
>>> batch_job {
>>>   resource_name: "customers/50.307/batchJobs/9016708636 
>>> <(901)%20670-8636>"
>>>   metadata {
>>> creation_date_time: "2022-05-06 06:23:51"
>>> estimated_completion_ratio: 0.0
>>>   }
>>>   status: RUNNING
>>>   id: 9016708636 <(901)%20670-8636>
>>> }
>>>
>>> batch_job {
>>>   resource_name: "customers/50.307/batchJobs/9020761205"
>>>   metadata {
>>> creation_date_time: "2022-05-06 12:33:30"
>>> estimated_completion_ratio: 0.0
>>>   }
>>>   status: RUNNING
>>>   id: 9020761205
>>> }
>>>
>>> batch_job {
>>>   resource_name: "customers/50.307/batchJobs/9030551684"
>>>   metadata {
>>> creation_date_time: "2022-05-07 12:14:41"
>>> estimated_completion_ratio: 0.0
>>>   }
>>>   status: RUNNING
>>>   id: 9030551684
>>> }
>>>
>>> Is the job Id sufficient to investigate this on your side or should I 
>>> send the customer ID in private as well?
>>>
>>> Thanks for your support.
>>>
>>> Best,
>>> Christian
>>> On Friday, May 6, 2022 at 4:29:50 PM UTC+2 jaume@channable.com 
>>> wrote:
>>>
 Hi,

 We've replied with some logs as well.
 Also, we are over 2000 BatchJobs for different customers that are in 
 this state right now...

 We have seen that one of the affected BatchJobs (with 7 CREATE 
 AdGroupAd operations!) finished after 48 hours. 
 So it seems to be that it's just very slowly being processed, but 
 waiting for 48hours doesn't seem like a good approach.

 Hope to hear from you,
 Thanks.

 On Friday, May 6, 2022 at 2:50:35 PM UTC+2 ska...@armis.tech wrote:

> Hi,
>
> I sent the request/response privately, I'm not sure if it was well 
> received?
>
> do you have an update on this issue as it's blocking our business 
> operations!
>
> Le jeudi 5 mai 2022 à 17:28:01 UTC+2, adsapi a écrit :
>
>> Hello Everyone,
>>
>> Thanks for reaching out to the Google Ads API Forum.
>>
>> I can see that you are all having issues with BatchJobs requests. 
>> However, could you please provide us with the complete *request* 
>> 
>>  
>> and *response* 
>> 
>>  
>> logs with the *request-id* 
>> 
>>  
>> generated for the BatchJobs requests where we can see said observed 
>> behavior via the *Reply privately to author* option, so I can report 
>> this to my rest of the team? 
>>
>> For the client library, logging can be enabled by navigating to the 
>> Client libraries > Your client library (ex Java) > Logging 
>> documentation, 
>> which you can access from this link 
>> . 
>>
>> Regards,
>> [image: Google Logo] 
>> Yasar 
>> Google Ads API Team 
>>   
>>
>> ref:_00D1U1174p._5004Q2aQjmG:ref
>>
>

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

Re: Batch Jobs stuck on RUNNING state on GoogleAds API

2022-05-06 Thread Skander Mansouri
Hi,

I sent the request/response privately, I'm not sure if it was well received?

do you have an update on this issue as it's blocking our business 
operations!

Le jeudi 5 mai 2022 à 17:28:01 UTC+2, adsapi a écrit :

> Hello Everyone,
>
> Thanks for reaching out to the Google Ads API Forum.
>
> I can see that you are all having issues with BatchJobs requests. However, 
> could you please provide us with the complete *request* 
> 
>  
> and *response* 
> 
>  
> logs with the *request-id* 
> 
>  
> generated for the BatchJobs requests where we can see said observed 
> behavior via the *Reply privately to author* option, so I can report this 
> to my rest of the team? 
>
> For the client library, logging can be enabled by navigating to the Client 
> libraries > Your client library (ex Java) > Logging documentation, which 
> you can access from this link 
> . 
>
> Regards,
> [image: Google Logo] 
> Yasar 
> Google Ads API Team 
>   
>
> ref:_00D1U1174p._5004Q2aQjmG: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/1470bcf3-9eb6-4952-87d3-cf09bfb7ed3cn%40googlegroups.com.


Re: Batch Jobs stuck on RUNNING state on GoogleAds API

2022-05-05 Thread Skander Mansouri
Hey again,

To add on this issue, currently even with 400 operation, the batch job 
service is having issues.

This is an example of a response I'm currently receiving:
Request --- MethodName: google.longrunning.Operations/GetOperation 
Endpoint: googleads.googleapis.com:443 
Headers: {developer-token=REDACTED, login-customer-id=X, 
x-goog-api-client=gl-java/11.0.14.1 gccl/18.0.0 gapic/18.0.0 gax/2.6.1 
grpc/1.42.1} 
Body: name: "customers/XXX/operations/XXX"
 Response  Headers: 
Metadata(content-type=application/grpc,request-id=,date=Thu, 05 May 
2022 13:56:17 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")
 Body: null 
Failure message: null
Status: Status{code=INTERNAL, description=Internal error encountered., 
cause=null} 


Le jeudi 5 mai 2022 à 15:57:53 UTC+2, ci...@channable.com a écrit :

> Hi Google Team,
>
> We currently have over 1300 batch jobs for multiple client customer ids 
> with this issue. 
>
> They do not leave the RUNNING state so we do not know whether we can 
> resubmit a new batch job, without it leading to duplicate objects in their 
> Google Ads accounts.
> If you can confirm that they will not be processed, that would be great so 
> we can ignore the batch jobs on our end :-)  
>
> Let me know if you would like to have the batch job ids so I can provide 
> these to you.
>
> Thanks in advance.
>
> Best,
> Ciel
>
> On Thursday, May 5, 2022 at 1:06:23 PM UTC+2 Miquel Isern Roca wrote:
>
>> Hello,
>>
>> we have noticed that since yesterday, some of the Batch Jobs we pushed 
>> through the GoogleAds API are not finishing.
>>
>> We are seeing an increased amount of BatchJobs in this status that have 
>> been on the RUNNING status for over 8 hours. And we don't know how to react 
>> and deal with them. Because they don't fail nor finish, we can't fetch the 
>> results and process it, so we don't know if operations have been executed 
>> or not.
>> We can't think of any changes on our side that could affect the 
>> processing of these operations. And this problem seems to have just started 
>> yesterday. Is there any known issue with BatchJob processing on Google's 
>> side?
>>
>> I can provide data examples on a private e-mail if needed.
>>
>> 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/dae5e4b9-4458-4e9b-9558-e0dfab42e400n%40googlegroups.com.


Re: Batch Jobs stuck on RUNNING state on GoogleAds API

2022-05-05 Thread Skander Mansouri
Hello,

We are having the same issue since yesterday but especially for a large 
chunk of operations. 
If we launch with less than 2000 operations in a batch, it works properly.

This is blocking our operations, can you confirm that it is a bug from your 
side?

Thanks,
Skander




Le jeudi 5 mai 2022 à 13:06:23 UTC+2, miquel.i...@channable.com a écrit :

> Hello,
>
> we have noticed that since yesterday, some of the Batch Jobs we pushed 
> through the GoogleAds API are not finishing.
>
> We are seeing an increased amount of BatchJobs in this status that have 
> been on the RUNNING status for over 8 hours. And we don't know how to react 
> and deal with them. Because they don't fail nor finish, we can't fetch the 
> results and process it, so we don't know if operations have been executed 
> or not.
> We can't think of any changes on our side that could affect the processing 
> of these operations. And this problem seems to have just started yesterday. 
> Is there any known issue with BatchJob processing on Google's side?
>
> I can provide data examples on a private e-mail if needed.
>
> 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/5fa9a2d6-d263-4fd3-82eb-30453cd28642n%40googlegroups.com.


Re: (java client v9.0.0) Batch Job, random "task was cancelled" on OperationFutureImpl.get()

2022-05-05 Thread Skander Mansouri
I have a similar issue, do you know what was the reason? and how did you 
solve it?

Le mercredi 30 septembre 2020 à 19:55:45 UTC+2, Google Ads API Forum 
Advisor Prod a écrit :

> Hi,
>
> For privacy, you can respond with "reply privately to the author".
>
>
> Thank you,
>
> [image: Google Logo] 
> Bryan Li 
> Google Ads API Team 
>   
>
> ref:_00D1U1174p._5004Q25Y2NK: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/79ded3ae-bc4f-47ed-9696-c9056f8292bcn%40googlegroups.com.


Gender Report Query

2022-03-07 Thread Skander Mansouri
Hi,

When migrating this query from Adwords API "SELECT Criteria, CampaignId, 
Cost from GENDER_PERFORMANCE_REPORT" I have this query "SELECT 
ad_group_criterion.gender.type, campaign.id, metrics.cost_micros FROM 
gender_view" 

When executing both, I find out that for the Google Ads API, I'm having 
multiple lines for the same campaign. 

Is there a way to change the Google Ads API query in order to have the sum 
of all costs by campaign for a specific gender?

Thanks,
Skander

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/e31ffeb2-e7be-41bc-82c6-40eb12d6n%40googlegroups.com.


Re: Google Ads reporting for device segments doesn't return all values

2022-03-04 Thread Skander Mansouri
the version I was using was v9 and now upgraded it to v10 and it worked. 
I'm no longer receiving the 0 values.

Thanks for the support!

Le vendredi 4 mars 2022 à 08:03:22 UTC+1, adsapi a écrit :

> Hi Skander,
>
> In addition to my earlier response, could you confirm whether you indeed 
> received records even though all metrics are 0? If yes, could you confirm 
> if this was encountered when using the latest version?
>
> Also, could you provide to our team the complete request 
> 
>  
> and response 
> 
>  
> logs, request-id 
> ,
>  
> and login-customer-id 
> 
>  
> used of an actual scenario where this was observed?
>
> Furthermore, you may note that in the latest version (see update 
> ) 
> it states that : 
>
>- Fixed inconsistencies where rows with zero metrics were returned 
>when segments were selected in some reports. All reports will now follow 
>the expected behavior 
>
> 
>  
>of ignoring zero-metric rows in reports that select metrics and segments. 
>
> 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 googleadsa...@google.com alias instead.
>
>
> Best regards,
>
> [image: Google Logo] 
> Peter Laurence 
> Google Ads API Team 
>   
>
> ref:_00D1U1174p._5004Q2Xkh51: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/4a09c228-b071-4467-9cc0-36abc1be9a9an%40googlegroups.com.


Re: Google Ads reporting for device segments doesn't return all values

2022-03-03 Thread Skander Mansouri
Thank you for your response, 

However what seemed weird to me is that for segmenting by devices, there 
are some values with all metrics in 0 for a Device Type. 
for example using my query above for a campaign id 123 the result I'm 
receiving
{"campaignId": 123   
,"deviceType":"DESKTOP","day":"2022-02-24","cost":0,"impressions":0,"clicks":0,"conversions":0.0}
{"campaignId":123 
,"deviceType":"MOBILE","day":"2022-02-24","cost":0,"impressions":1,"clicks":0,"conversions":0.0}
{"campaignId": 123   
,"deviceType":"TABLET","day":"2022-02-24","cost":3,"impressions":5,"clicks":0,"conversions":0.0}

Is it normal behavior that I receive the DESKTOP line? if so, why I'm not 
receiving OTHERS and TV device types with zero values too?

PS: the values are not from real data.
Le jeudi 3 mars 2022 à 01:15:26 UTC+1, adsapi a écrit :

> Hello Skander,
>
> Thanks for reaching out to the Google Ads API support. For us to 
> investigate, we will need a full log of request 
> 
>  
> and response 
> 
>  
> logs with request ID 
> 
>  
> and request header 
> 
>  
> generated on your end of API communications of the report pull.
> Also could you please share a full screen screenshot of the UI where the 
> specific device type shows 0 value?
>
> Please note Zero metrics are always excluded when segmenting a report, 
> provided all selected metrics are zero (see below 
> ).
>  
> Segmenting a report is done by including any segments field in the search 
> query. For example, if you segment a report by segments.date, metrics will 
> be broken down with one row for each date. Any date that has no metrics 
> will not be returned in such a report.
>
> Please send the requested details 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.
>
> Best regards,
> [image: Google Logo] 
> Jakeia Sabrina 
> Google Ads API Team  
>
> ref:_00D1U1174p._5004Q2Xkh51: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/0856928c-48d4-4ee7-9304-0302b05bc871n%40googlegroups.com.


Google Ads reporting for device segments doesn't return all values

2022-03-02 Thread Skander Mansouri
Hi,

When testing the request 

SELECT 
campaign.id
segments.device
metrics.impressions
metrics.clicks
metrics.cost_micros, 
metrics.impressions FROM campaign WHERE campaign.id = x AND segments.date = 
'2022-02-24' 
I was able to retrive the data relative to some device type and the others 
even though it was 0 in the UI but the API doesn't send them.

I was wondering if the API does only return non 0 values or is it a bug?
Thanks!
Skander

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/bf7260a5-d351-4840-8ac0-56424ab8aa4fn%40googlegroups.com.


Batch Job Service Mutate Response

2021-12-09 Thread Skander Mansouri
Hi, 

I'm using the Batch Job Service in order to create multiple Campaigns after 
creating the campaign budget and the bidding strategies.

The batch job runs fine and the campaigns are created in the platform. 

The issue I'm having is that I need the Ids of the campaigns created from 
the response of the ListBatchJobResult. I have set the ResponseContentType 
to Mutable in the request but the response I'm getting is a campaign with a 
resource_name with a negative Id in the 
CampaignResult().getCampaign().getResourceName()

Here's the portion of the code for the request: 

BatchJobServiceClient.ListBatchJobResultsPagedResponse batchJobResults = 
batchClient.listBatchJobResults( ListBatchJobResultsRequest.newBuilder() 
.setResponseContentType(MUTABLE_RESOURCE) 
.setResourceName(batchJobResourceName) .setPageSize(PAGE_SIZE) .build()); 
return batchJobResults.getPage() .getResponse() .getResultsList() .stream() 
.map(BatchJobResult::getMutateOperationResponse) .collect(toList());


Thank you,
Skander

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/ba682035-fd3e-4aa4-ad45-1fa5285d5eb0n%40googlegroups.com.