// Fetches keywords in ad groups.
Fetches keywords in ad groups.
// Fetches keywords in ad groups .
func (s *AdGroupTargetingKeywordService) Find(ctx context.Context, campaignID int64, selector *Selector) ([]*TargetingKeyword, *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/targetingkeywords/find", campaignID), selector)
	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 ) Find ( ctx context . Context , campaignID int64 , selector * Selector ) ( [ ] * TargetingKeyword , * 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 } targetingkeywords := [ ] * TargetingKeyword { } resp , err := s . client . Do ( ctx , req , & targetingkeywords ) if err != nil { return nil , resp , err } return targetingkeywords , resp , nil }
Fetches keywords in ad groups.
Fetches keywords in ad groups .