// Delete will remove an existing AdGroup on a Campaign
Delete will remove an existing AdGroup on a Campaign
// Delete will remove an existing AdGroup on a Campaign
func (s *AdGroupService) Delete(ctx context.Context, campaignID int64, id int64) (*Response, error) {
	if campaignID == 0 {
		return nil, fmt.Errorf("campaignID can not be 0")
	}
	if id == 0 {
		return nil, fmt.Errorf("id can not be 0")
	}
	u := fmt.Sprintf("campaigns/%d/adgroups/%d", campaignID, id)
	req, err := s.client.NewRequest("DELETE", u, nil)
	if err != nil {
		return nil, err
	}
	return s.client.Do(ctx, req, nil)
}
func ( s * AdGroupService ) Delete ( ctx context . Context , campaignID int64 , id int64 ) ( * Response , error ) { if campaignID == 0 { return nil , fmt . Errorf ( " " ) } if id == 0 { return nil , fmt . Errorf ( " " ) } u := fmt . Sprintf ( " " , campaignID , id ) req , err := s . client . NewRequest ( " " , u , nil ) if err != nil { return nil , err } return s . client . Do ( ctx , req , nil ) }
Delete will remove an existing AdGroup on a Campaign
Delete will remove an existing AdGroup on a Campaign