Re: Polling a batch job via PHP library needs unnecessary upload URL?

2016-12-02 Thread 'Shwetha Vastrad (AdWords API Team)' via AdWords API Forum
Hi,

You can download the BatchJob results without using the uploadUrl by using 
the code below:

  // Get the service, which loads the required classes.
  $batchJobService = $user->GetService('BatchJobService', ADWORDS_VERSION);

  // Create selector.
  $selector = new Selector();
  $selector->fields = array('Id', 'DownloadUrl', 'ProcessingErrors', 
'ProgressStats', 'Status');

  // Create predicates.
  $selector->predicates[] = new Predicate('Id', 'EQUALS', 
array($batchJobId));
  
  // Create paging controls.
  $selector->paging = new Paging(0, 
AdWordsConstants::RECOMMENDED_PAGE_SIZE);

  // Make the get request.
  $page = $batchJobService->get($selector);

  // Process results

Regards,
Shwetha, Adwords API Team.

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords 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 Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/9f099b46-ac6c-4e77-878a-65e751fe8459%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Polling a batch job via PHP library needs unnecessary upload URL?

2016-12-01 Thread JC Lee
I have filed an issue on github.

In the mean time though, correct me if I am wrong, it looks like to 
download the batch job results in PHP I will have to have the upload URL.

On Friday, 2 December 2016 00:42:20 UTC+8, Shwetha Vastrad (AdWords API 
Team) wrote:
>
> Hi,
>
> Yes, UploadUrl is not needed when polling the status of a BatchJob using 
> BatchJobService 
> GET request 
> .
>  
> BatchJobUtils in the PHP client library is a collection of utility methods 
> to upload batch operations and download the results, whereas BatchJobHelper 
> is a utility in Java client library for similar use. The way these 
> utilities are programmed in different client libraries will depend on the 
> structure of the language. I would suggest that you post your question in 
> the PHP client library repository 
>  so that this 
> issue can be addressed there. 
>
> Regards,
> Shwetha, AdWords API Team.
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords 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 Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/df16ecbe-09c3-4add-b070-fb33028a8416%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Polling a batch job via PHP library needs unnecessary upload URL?

2016-12-01 Thread 'Shwetha Vastrad (AdWords API Team)' via AdWords API Forum
Hi,

Yes, UploadUrl is not needed when polling the status of a BatchJob using 
BatchJobService 
GET request 
.
 
BatchJobUtils in the PHP client library is a collection of utility methods 
to upload batch operations and download the results, whereas BatchJobHelper 
is a utility in Java client library for similar use. The way these 
utilities are programmed in different client libraries will depend on the 
structure of the language. I would suggest that you post your question in 
the PHP client library repository 
 so that this issue 
can be addressed there. 

Regards,
Shwetha, AdWords API Team.

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords 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 Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/3dca2c8c-9cf5-4a5b-9bff-d9e33e2fbf2c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.