Hi Mirror,
You can retrieve the number of units for the previous request using the
$service->GetLastUnits(); method in the
AdWordsSoapClient<https://code.google.com/p/google-api-adwords-php/source/browse/trunk/src/Google/Api/Ads/AdWords/Lib/AdWordsSoapClient.php#180>class.
For example:
// Setup code here...
*$campaignService* = $user->GetService('CampaignService', ADWORDS_VERSION);
// ... Construct Request ...
$page = *$campaignService->get($selector)*;
$lastUnits = *$campaignService->GetLastUnits()*;
echo sprintf("The last units used: %d", $lastUnits);
For More information on rates, please see the rate
sheet<https://developers.google.com/adwords/api/docs/ratesheet>
.
Regards,
- Paul, AdWords API Team.
On Thursday, 29 November 2012 13:18:05 UTC, Mirror wrote:
>
> Hello!
>
> If I use php library - GetGampaignStats, UpdateAdGroup, etc... Can I send
> some fields ($selector->fields ... ) or something else, to see how much
> UNITS I spent on this request service and this operations? For example, if
> I Get stats for campaign or update price for several Adgroups.
>
> Maybe I can see it in the returned array or something else?
>
--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://adwordsapi.blogspot.com
http://groups.google.com/group/adwords-api
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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