// UpdateBulk will update an existing Targeting on a Adgroup
UpdateBulk will update an existing Targeting on a Adgroup
// UpdateBulk will update an existing Targeting on a Adgroup
func (s *AdGroupTargetingKeywordService) UpdateBulk(ctx context.Context, campaignID, adGroupID int64, data []*TargetingKeyword) ([]*TargetingKeyword, *Response, error) {
	if campaignID == 0 {
		return nil, nil, fmt.Errorf("campaignID can not be 0")
	}
	if adGroupID == 0 {
		return nil, nil, fmt.Errorf("adGroupID can not be 0")
	}
	u := fmt.Sprintf("campaigns/%d/adgroups/%d/targetingkeywords/bulk", campaignID, adGroupID)
	req, err := s.client.NewRequest("PUT", u, data)
	if err != nil {
		return nil, nil, err
	}
	targetingkeywords := []*TargetingKeyword{}
	resp, err := s.client.Do(ctx, req, &targetingkeywords)
	if err != nil {
		return nil, resp, err
	}
	return targetingkeywords, resp, nil
}
func ( s * AdGroupTargetingKeywordService ) UpdateBulk ( ctx context . Context , campaignID , adGroupID int64 , data [ ] * TargetingKeyword ) ( [ ] * TargetingKeyword , * Response , error ) { if campaignID == 0 { return nil , nil , fmt . Errorf ( " " ) } if adGroupID == 0 { return nil , nil , fmt . Errorf ( " " ) } u := fmt . Sprintf ( " " , campaignID , adGroupID ) req , err := s . client . NewRequest ( " " , u , data ) if err != nil { return nil , nil , err } targetingkeywords := [ ] * TargetingKeyword { } resp , err := s . client . Do ( ctx , req , & targetingkeywords ) if err != nil { return nil , resp , err } return targetingkeywords , resp , nil }
UpdateBulk will update an existing Targeting on a Adgroup
UpdateBulk will update an existing Targeting on a Adgroup