Get Service Operation Count using v201705 Latest api

21 views
Skip to first unread message

vj

unread,
Jun 23, 2017, 5:53:43 AM6/23/17
to AdWords API Forum
Hi,

I was using $managedCustomerService->GetLastOperations(); this method to get count of operation used while request api call.

But I am not able to find in latest adwords api v20175 how to get lastOperations count?

Could you please help me to get count?

I am using following code in my old library, But I want using new Library (Release 27.1.0)

$managedCustomerService = $user->GetService('ManagedCustomerService');
$selector = new Selector();
$selector->fields = array('DateTimeZone','Name','CustomerId','CanManageClients','CurrencyCode');
$graph = $managedCustomerService->get($selector);
$operations_count = $managedCustomerService->GetLastOperations();
       
echo "OPERATIONS Used => " . $operations_count;

Thanks & regards,
VJ.

Shwetha Vastrad (AdWords API Team)

unread,
Jun 23, 2017, 2:55:57 PM6/23/17
to AdWords API Forum
Hi VJ, 

I'm afraid there isn't a getLastOperations method in ManagedCustomerService. If you are looking to get the number of operations performed in a request, you need to get the value in the operations header in the response. You could consider posting on the library's issue tracker to check how to get this information in the client library.

Regards,
Shwetha, AdWords API Team.
Reply all
Reply to author
Forward
0 new messages