// Updates an ad group Creative Set using an identifier.
Updates an ad group Creative Set using an identifier.
// Updates an ad group Creative Set using an identifier .
func (s *AdGroupCreativeSetService) EditStatus(ctx context.Context, campaignID, adGroupID, adGroupCreativeSetID int64, status Status) (*AdGroupCreativeSet, *Response, error) {
	putData := map[string]Status{
		"status": status,
	}
	u := fmt.Sprintf("campaigns/%d/adgroup/%d/adgroupcreativeset/%d", campaignID, adGroupID, adGroupCreativeSetID)
	req, err := s.client.NewRequest("PUT", u, putData)
	if err != nil {
		return nil, nil, err
	}
	adGroupCreativeSet := AdGroupCreativeSet{}
	resp, err := s.client.Do(ctx, req, &adGroupCreativeSet)
	if err != nil {
		return nil, resp, err
	}
	return &adGroupCreativeSet, resp, nil
}
func ( s * AdGroupCreativeSetService ) EditStatus ( ctx context . Context , campaignID , adGroupID , adGroupCreativeSetID int64 , status Status ) ( * AdGroupCreativeSet , * Response , error ) { putData := map [ string ] Status { " " : status , } u := fmt . Sprintf ( " " , campaignID , adGroupID , adGroupCreativeSetID ) req , err := s . client . NewRequest ( " " , u , putData ) if err != nil { return nil , nil , err } adGroupCreativeSet := AdGroupCreativeSet { } resp , err := s . client . Do ( ctx , req , & adGroupCreativeSet ) if err != nil { return nil , resp , err } return & adGroupCreativeSet , resp , nil }
Updates an ad group Creative Set using an identifier.
Updates an ad group Creative Set using an identifier .