// Campaigns to get reports from all campaigns with filter
Campaigns to get reports from all campaigns with filter
// Campaigns to get reports from all campaigns with filter
func (s *ReportService) Campaigns(ctx context.Context, filter *ReportFilter) (*CampaignReport, *Response, error) {
	u := fmt.Sprintf("reports/campaigns")
	req, err := s.client.NewRequest("POST", u, filter)
	if err != nil {
		return nil, nil, err
	}
	report := new(CampaignReport)
	resp, err := s.client.Do(ctx, req, &report)
	if err != nil {
		return nil, resp, err
	}
	return report, resp, nil
}
func ( s * ReportService ) Campaigns ( ctx context . Context , filter * ReportFilter ) ( * CampaignReport , * Response , error ) { u := fmt . Sprintf ( " " ) req , err := s . client . NewRequest ( " " , u , filter ) if err != nil { return nil , nil , err } report := new ( CampaignReport ) resp , err := s . client . Do ( ctx , req , & report ) if err != nil { return nil , resp , err } return report , resp , nil }
Campaigns to get reports from all campaigns with filter
Campaigns to get reports from all campaigns with filter