// UpdateBulk will create multiple Negative Keywords for a campaign
UpdateBulk will create multiple Negative Keywords for a campaign
// UpdateBulk will create multiple Negative Keywords for a campaign
func (s *CampaignNegativeKeywordService) UpdateBulk(ctx context.Context, campaignID int64, data []*NegativeKeyword) ([]*NegativeKeyword, *Response, error) {
	if campaignID == 0 {
		return nil, nil, fmt.Errorf("campaignID can not be 0")
	}
	u := fmt.Sprintf("campaigns/%d/negativekeywords/bulk", campaignID)
	req, err := s.client.NewRequest("PUT", u, data)
	if err != nil {
		return nil, nil, err
	}
	negativekeywords := []*NegativeKeyword{}
	resp, err := s.client.Do(ctx, req, &negativekeywords)
	if err != nil {
		return nil, resp, err
	}
	return negativekeywords, resp, nil
}
func ( s * CampaignNegativeKeywordService ) UpdateBulk ( ctx context . Context , campaignID int64 , data [ ] * NegativeKeyword ) ( [ ] * NegativeKeyword , * Response , error ) { if campaignID == 0 { return nil , nil , fmt . Errorf ( " " ) } u := fmt . Sprintf ( " " , campaignID ) req , err := s . client . NewRequest ( " " , u , data ) if err != nil { return nil , nil , err } negativekeywords := [ ] * NegativeKeyword { } resp , err := s . client . Do ( ctx , req , & negativekeywords ) if err != nil { return nil , resp , err } return negativekeywords , resp , nil }
UpdateBulk will create multiple Negative Keywords for a campaign
UpdateBulk will create multiple Negative Keywords for a campaign