// DoEdit will update an existing Campaign
DoEdit will update an existing Campaign
// DoEdit will update an existing Campaign
func (s *CampaignService) Edit(ctx context.Context, id int64, data *Campaign, clearGeoTargetingOnCountryOrRegionChange bool) (*Campaign, *Response, error) {
	putData := map[string]interface{}{
		"campaign": data,
	}
	if clearGeoTargetingOnCountryOrRegionChange {
		putData["clearGeoTargetingOnCountryOrRegionChange"] = clearGeoTargetingOnCountryOrRegionChange
	}
	u := fmt.Sprintf("campaigns/%d", id)
	req, err := s.client.NewRequest("PUT", u, putData)
	if err != nil {
		return nil, nil, err
	}
	c := new(Campaign)
	resp, err := s.client.Do(ctx, req, c)
	if err != nil {
		return nil, resp, err
	}
	return c, resp, nil
}
func ( s * CampaignService ) Edit ( ctx context . Context , id int64 , data * Campaign , clearGeoTargetingOnCountryOrRegionChange bool ) ( * Campaign , * Response , error ) { putData := map [ string ] interface { } { " " : data , } if clearGeoTargetingOnCountryOrRegionChange { putData [ " " ] = clearGeoTargetingOnCountryOrRegionChange } u := fmt . Sprintf ( " " , id ) req , err := s . client . NewRequest ( " " , u , putData ) if err != nil { return nil , nil , err } c := new ( Campaign ) resp , err := s . client . Do ( ctx , req , c ) if err != nil { return nil , resp , err } return c , resp , nil }
DoEdit will update an existing Campaign
DoEdit will update an existing Campaign