Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Price is wrong #5

Closed
wardloockx opened this issue Jan 27, 2016 · 1 comment
Closed

Price is wrong #5

wardloockx opened this issue Jan 27, 2016 · 1 comment

Comments

@wardloockx
Copy link
Contributor

When I try to get the total price of a campaign (advertiser), I came across some errors:

  • When you try to get a campaign by campaignId: the price field is some odd number, and not representing the total price of the campaign.
  • I use the advertiser_statistics date method now to fetch the total price. This isn't returning any summary (totals) as stated in the documentation. So I ended up doing

$campaignInfo = $client->statistics_advertiser->date([ 'campaignid' => $this->traffic_source_id, 'date-to' => '2099-01-01', 'date-from' => '1994-01-01', 'limit' => '99999999999999', ]);

and count all days together, but this is pretty dirty :-)

@tfoliveira
Copy link
Contributor

Hi,

While testing point 1 with one of my own campaigns I was able to properly get the price (please be aware the price is given in cents).

As for your second point, I'm not sure I understood which is the problem. If you decide to include totals, the response will include a "resultTotal" key with the total values for your filtering options and discarding the limit (please be aware if you don't fill in the dates, then by default they will become the current month).

You can see our API documentation for that specific route here: https://api.exoclick.com/v1/docs/#!/statistics/Get_advertiser_statistics_by_date

@cradonn cradonn closed this as completed May 13, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants