Get existing update campaign.

        :param str campaign_id: Campaign ID to retrieve (Required)
        :return: Update campaign object matching provided ID
        :rtype: Campaign
183800
def get_campaign(self, campaign_id):
        
        api = self._get_api(update_service.DefaultApi)
        return Campaign(api.update_campaign_retrieve(campaign_id))
1326811
def update_project(id, **kwargs):
    
    content = update_project_raw(id, **kwargs)
    if content:
        return utils.format_json(content)
1003399
def get(self, campaign_id, nick=None):
        ''''''
        request = TOPRequest('xxxxx.xxxxx.campaign.area.get')
        request['campaign_id'] = campaign_id
        if nick!=None: request['nick'] = nick
        self.create(self.execute(request), fields=['success','result','success','result_code','result_message'], models={'result':CampaignArea})
        return self.result
26906
public function updateCampaign($CampaignId, Campaign $campaign) {
        $response = $this->mailjet->put(Resources::$Campaign, ['id' => $CampaignId, 'body' => $campaign->format()]);
        if (!$response->success()) {
            $this->throwError("CampaignManager:updateCampaign() failed", $response);
        }

        return $response->getData();
    }
631054
private static List<CampaignFeed> getCampaignFeeds(AdWordsServicesInterface adWordsServices,
      AdWordsSession session, Feed feed, int placeholderType) throws RemoteException {
    // Get the CampaignFeedService.
    CampaignFeedServiceInterface campaignFeedService =
        adWordsServices.get(session, CampaignFeedServiceInterface.class);

    String query = String.format(
        "SELECT CampaignId, MatchingFunction, PlaceholderTypes WHERE Status = 'ENABLED' "
        + "AND FeedId = %d AND PlaceholderTypes CONTAINS_ANY [%d]", feed.getId(), placeholderType);

    List<CampaignFeed> campaignFeeds = new ArrayList<>();
    int offset = 0;
    CampaignFeedPage campaignFeedPage;

    do {
      String pageQuery = String.format(query + " LIMIT %d, %d", offset, PAGE_SIZE);
      campaignFeedPage = campaignFeedService.query(pageQuery);
      if (campaignFeedPage.getEntries() != null) {
        campaignFeeds.addAll(Arrays.asList(campaignFeedPage.getEntries()));
      }
      offset += PAGE_SIZE;
    } while (offset < campaignFeedPage.getTotalNumEntries());

    return campaignFeeds;
  }
513576
def get(self, page_size, page_no=1, campaign_id=None, adgroup_ids=None, nick=None):
        ''''''
        request = TOPRequest('xxxxx.xxxxx.adgroups.get')
        request['page_size'] = page_size
        request['page_no'] = page_no
        if campaign_id!=None: request['campaign_id'] = campaign_id
        if adgroup_ids!=None: request['adgroup_ids'] = adgroup_ids
        if nick!=None: request['nick'] = nick
        self.create(self.execute(request), models = {'result':ADGroup})
        return self.result
408895
def get_campaign_name_list(self):
        
        campaigns = self.find('campaigns', {})
        campaign_names = []
        for campaign in campaigns:
            if 'name' in campaign:
                campaign_names.append(campaign['name'])
        return campaign_names
1355470
def update(self, id, **kwargs):
        

        response = self.ghost.execute_put('%s/%s/' % (self._type_name, id), json={
            self._type_name: [
                kwargs
            ]
        })

        return self._model_type(response.get(self._type_name)[0])
203121
def update(self, typ, id, **kwargs):
        
        return self._load(self._request(typ, id=id, method='PUT', data=kwargs))
1156467
def getRequest(self, id_):
        
        for request in self.requests:
            if request.id == id_:
                return request

        raise LookupError("Request %r not found" % (id_,))
954522
def twitter_hashtag_stream(campaign_id, id, options={})
      response = connection.get do |req|
        req.url "campaigns/#{campaign_id}/twitter_hashtag_streams/#{id}", options
      end
      return_error_or_body(response)
    end
238735
def campaign(self, name, owner=None, **kwargs):
        
        return Campaign(self.tcex, name, owner=owner, **kwargs)
737026
def update(self, campaign_id, budget, nick=None):
        ''''''
        request = TOPRequest('xxxxx.xxxxx.campaign.budget.update')
        request['campaign_id'] = campaign_id
        request['budget'] = budget
        if nick!=None: request['nick'] = nick
        self.create(self.execute(request), fields=['success','result','success','result_code','result_message'], models={'result':CampaignBudget})
        return self.result
358091
def update(self, campaign_id, title, is_smooth, online_status, nick=None):
        ''''''
        request = TOPRequest('xxxxx.xxxxx.campaign.update')
        request['campaign_id'] = campaign_id
        request['title'] = title
        request['is_smooth'] = is_smooth
        request['online_status'] = online_status
        if nick!=None: request['nick'] = nick
        self.create(self.execute(request), fields=['success','result','success','result_code','result_message'], models={'result':Campaign})
        return self.result
1359271
def project_update_sponsorship(object_id, input_params={}, always_retry=True, **kwargs):
    
    return DXHTTPRequest('/%s/updateSponsorship' % object_id, input_params, always_retry=always_retry, **kwargs)
642173
def get_updates(self, id, project=None, top=None, skip=None):
        
        route_values = {}
        if project is not None:
            route_values['project'] = self._serialize.url('project', project, 'str')
        if id is not None:
            route_values['id'] = self._serialize.url('id', id, 'int')
        query_parameters = {}
        if top is not None:
            query_parameters['$top'] = self._serialize.query('top', top, 'int')
        if skip is not None:
            query_parameters['$skip'] = self._serialize.query('skip', skip, 'int')
        response = self._send(http_method='GET',
                              location_id='6570bf97-d02c-4a91-8d93-3abe9895b1a9',
                              version='5.1-preview.3',
                              route_values=route_values,
                              query_parameters=query_parameters)
        return self._deserialize('[WorkItemUpdate]', self._unwrap_collection(response))
725794
def update(self, resource, id_or_uri):
        
        return self._client.update(resource=resource, uri=id_or_uri)