// Creates a Creative Set assignment to an ad group.
Creates a Creative Set assignment to an ad group.
// Creates a Creative Set assignment to an ad group .
func (s *AdGroupCreativeSetService) Assign(ctx context.Context, campaignID, adGroupID, adGroupCreativeSetID int64) (*AdGroupCreativeSet, *Response, error) {
	putData := map[string]int64{
		"creativeSetId": adGroupCreativeSetID,
	}
	u := fmt.Sprintf("campaigns/%d/adgroups/%d/adgroupcreativesets", campaignID, adGroupID)
	req, err := s.client.NewRequest("POST", u, putData)
	if err != nil {
		return nil, nil, err
	}
	c := new(AdGroupCreativeSet)
	resp, err := s.client.Do(ctx, req, c)
	if err != nil {
		return nil, resp, err
	}
	return c, resp, nil
}
func ( s * AdGroupCreativeSetService ) Assign ( ctx context . Context , campaignID , adGroupID , adGroupCreativeSetID int64 ) ( * AdGroupCreativeSet , * Response , error ) { putData := map [ string ] int64 { " " : adGroupCreativeSetID , } u := fmt . Sprintf ( " " , campaignID , adGroupID ) req , err := s . client . NewRequest ( " " , u , putData ) if err != nil { return nil , nil , err } c := new ( AdGroupCreativeSet ) resp , err := s . client . Do ( ctx , req , c ) if err != nil { return nil , resp , err } return c , resp , nil }
Creates a Creative Set assignment to an ad group.
Creates a Creative Set assignment to an ad group .