// Fetches negative keywords in ad groups.
Fetches negative keywords in ad groups.
// Fetches negative keywords in ad groups .
func (s *AdGroupNegativeKeywordService) Find(ctx context.Context, campaignID int64, selector *Selector) ([]*NegativeKeyword, *Response, error) {
	if campaignID == 0 {
		return nil, nil, fmt.Errorf("campaignID can not be 0")
	}
	req, err := s.client.NewRequest("POST", fmt.Sprintf("campaigns/%d/adgroups/negativekeywords/find", campaignID), selector)
	if err != nil {
		return nil, nil, err
	}
	keywords := []*NegativeKeyword{}
	resp, err := s.client.Do(ctx, req, &keywords)
	if err != nil {
		return nil, resp, err
	}
	return keywords, resp, nil
}
func ( s * AdGroupNegativeKeywordService ) Find ( ctx context . Context , campaignID int64 , selector * Selector ) ( [ ] * NegativeKeyword , * Response , error ) { if campaignID == 0 { return nil , nil , fmt . Errorf ( " " ) } req , err := s . client . NewRequest ( " " , fmt . Sprintf ( " " , campaignID ) , selector ) if err != nil { return nil , nil , err } keywords := [ ] * NegativeKeyword { } resp , err := s . client . Do ( ctx , req , & keywords ) if err != nil { return nil , resp , err } return keywords , resp , nil }
Fetches negative keywords in ad groups.
Fetches negative keywords in ad groups .