Thanks it was very helpfull. I've already found the solution. Here is my
example
//gets the total number of users into all of the audiences of our campaign
public function getNumberOfUsersIntoAudiences(AdWordsUser $user) {
// Get the services, which loads the required classes.
$userListService = $user->GetService('AdwordsUserListService',
ADWORDS_VERSION);
$conversionTrackerService =
$user->GetService('ConversionTrackerService', ADWORDS_VERSION);
// Create remarketing user list.
$userList = new BasicUserList();
//Create selector object which will be used during sending the get
request
//to the server
$selector = new Selector();
//selector's fields property should contain a list of fields which we
want to get from the server
$selector->fields = array('Size', 'SizeRange');
//sends the get request
$result = $userListService->get($selector);
return $result;
}
On Wednesday, April 22, 2015 at 5:14:05 PM UTC+4, Harutyun Sardaryan wrote:
>
> Hi. How can I calculate the number of users into my audience??? Is there
> any built in function in google ads api??
>
--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 [email protected]
To unsubscribe from this group, send email to
[email protected]
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 [email protected].
Visit this group at http://groups.google.com/group/adwords-api.
To view this discussion on the web visit
https://groups.google.com/d/msgid/adwords-api/9d27d4c6-94b1-4f98-9d13-7724cc601195%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.