Re: Batch job completion messages

2022-12-16 Thread Rodney Oliver
Hello,

I am getting the status from the batch job result.  However it seems to blank.  
My implementation was taken directly from the 
AddCompleteCampaignsUsingBatchJob.php example

See snippet below.

// Gets all the results from running batch job and print their information.
$batchJobResults = 
$this->googleAdsBatchServiceClient->listBatchJobResults(
$batchJobResourceName,
['pageSize' => self::PAGE_SIZE]
);
foreach ($batchJobResults->iterateAllElements() as $batchJobResult) {
/** @var BatchJobResult $batchJobResult */
printf(
"\t [%s] Batch job #%d has a status '%s' and response of type 
'%s'.%s",
date('Y-m-d H:i:s'), $batchJobResult->getOperationIndex(),
$batchJobResult->getStatus()
? $batchJobResult->getStatus()->getMessage() : 'N/A',
$batchJobResult->getMutateOperationResponse()
? 
$batchJobResult->getMutateOperationResponse()->getResponse()
: 'N/A',
PHP_EOL
);
}




> On Dec 15, 2022, at 9:55 AM, Google Ads API Forum Advisor 
>  wrote:
> 
> Hi,
> 
> As per this guide 
> ,
>  and based on the message "Batch job #0 has a status 'N/A' and response of 
> type 'campaign_criterion_result'." you received, you do not appear to be 
> acquiring the contents of the status 
> 
>  field.
> 
> That said, could you also share how you are listing the results and is it 
> similar to this PHP implementation 
> ?
> 
> Best regards,
> 
>   
> Peter Laurence
> Google Ads API Team
>  
> 
> 
> ref:_00D1U1174p._5004Q2giLdB: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/D6E4ACB2-6C1F-42BC-8744-8C0AA2A8672A%40gmail.com.


Re: Batch job completion messages

2022-12-15 Thread 'Google Ads API Forum Advisor' via Google Ads API and AdWords API Forum
Hi,

As per this guide, and based on the message "Batch job #0 has a status 'N/A' 
and response of type 'campaign_criterion_result'." you received, you do not 
appear to be acquiring the contents of the status field.

That said, could you also share how you are listing the results and is it 
similar to this PHP implementation?

Best regards,

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


Re: Batch job completion messages

2022-12-15 Thread roliver
Hi Heidi,

I am using the PHP client library.  I have enabled logging in the 
google_ads_php.ini and set the logLevel to DEBUG.  However, no logs are 
being generated  According to the docs in php sdk that is how logging the 
request, response etc should be handled.  Is there some other setting I 
should be updating?  

On Sunday, December 4, 2022 at 8:19:02 PM UTC-5 adsapi wrote:

> Hi Roliver,
>
> Thank you for reaching out to us.
>
> For our team to further investigate and validate if the request is done 
> correctly, could you please provide us with the complete API logs (request 
> 
>  and response 
> 
>  with request-id 
> )
>  
> generated on your end? Note that this can be requested or provided to the 
> developer handling the Google Ads API transactions when logging of the API 
> requests has been enabled. You may check here 
> 
>  
> and click your client library for the specific guideline to enable it.
>
> For REST interface requests, you can enable logging via the curl command 
> by using the -i flag. This will cause the tool to include the HTTP response 
> headers in the output.
>
> 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] 
> Heidi 
> Google Ads API Team 
>   
>
> ref:_00D1U1174p._5004Q2giLdB: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/a2b1d76c-6b60-4a03-b92f-80b9a31c550an%40googlegroups.com.


RE: Batch job completion messages

2022-12-04 Thread 'Google Ads API Forum Advisor' via Google Ads API and AdWords API Forum
Hi Roliver,

Thank you for reaching out to us.

For our team to further investigate and validate if the request is done 
correctly, could you please provide us with the complete API logs (request and 
response with request-id) generated on your end? Note that this can be 
requested or provided to the developer handling the Google Ads API transactions 
when logging of the API requests has been enabled. You may check here and click 
your client library for the specific guideline to enable it.

For REST interface requests, you can enable logging via the curl command by 
using the -i flag. This will cause the tool to include the HTTP response 
headers in the output.

You may then send the requested information via the Reply privately to author 
option. If this option is not available, you may send the details directly to 
our googleadsapi-supp...@google.com alias instead.

Best regards,

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


Batch job completion messages

2022-12-03 Thread roliver
Hello,

I am successfully submitting mutate operations to the batch service api for 
Geo location targeting. I run batch, and poll the batch until it is 
completed then list the results of each job in the batch.  below are the 
responses I am getting.  My questions are:


   - Why is status always 'N/A'?  is that failure, successful completion or 
   something else?


Results from the jobs in the batch

 Batch job #0 has a status 'N/A' and response of type 
'campaign_criterion_result'.
 Batch job #1 has a status 'N/A' and response of type 
'campaign_criterion_result'.
 Batch job #2 has a status 'N/A' and response of type 
'campaign_criterion_result'.
 Batch job #3 has a status 'N/A' and response of type 
'campaign_criterion_result'.
 Batch job #4 has a status 'N/A' and response of type 
'campaign_criterion_result'.
 Batch job #5 has a status 'N/A' and response of type 
'campaign_criterion_result'.
 Batch job #6 has a status 'N/A' and response of type 
'campaign_criterion_result'.
 Batch job #7 has a status 'N/A' and response of type 
'campaign_criterion_result'.
 Batch job #8 has a status 'N/A' and response of type 
'campaign_criterion_result'.
 Batch job #9 has a status 'N/A' and response of type 
'campaign_criterion_result'.
 Batch job #10 has a status 'N/A' and response of type 
'campaign_criterion_result'.


Thanks for your help

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/fe28bf34-17ae-4e73-8775-44b8d2b11dd0n%40googlegroups.com.