Skip to content

Latest commit

 

History

History
194 lines (121 loc) · 6.6 KB

CampaignSharedSetServiceApi.md

File metadata and controls

194 lines (121 loc) · 6.6 KB

Yahoo\CampaignSharedSetServiceApi

All URIs are relative to https://ads-search.yahooapis.jp/api/v1

Method HTTP request Description
campaignSharedSetServiceAddPost POST /CampaignSharedSetService/add
campaignSharedSetServiceGetPost POST /CampaignSharedSetService/get
campaignSharedSetServiceRemovePost POST /CampaignSharedSetService/remove

campaignSharedSetServiceAddPost

\Yahoo\Model\CampaignSharedSetServiceMutateResponse campaignSharedSetServiceAddPost($campaignSharedSetServiceOperation)

キャンペーンに対象外キーワードリストの関連付け設定を行います。
Setup negative keyword list for campaign.

Example

<?php
require_once(__DIR__ . '/vendor/autoload.php');


// Configure OAuth2 access token for authorization: oAuth
$config = Yahoo\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');


$apiInstance = new Yahoo\Api\CampaignSharedSetServiceApi(
    // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
    // This is optional, `GuzzleHttp\Client` will be used as default.
    new GuzzleHttp\Client(),
    $config
);
$campaignSharedSetServiceOperation = new \Yahoo\Model\CampaignSharedSetServiceOperation(); // \Yahoo\Model\CampaignSharedSetServiceOperation | 

try {
    $result = $apiInstance->campaignSharedSetServiceAddPost($campaignSharedSetServiceOperation);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling CampaignSharedSetServiceApi->campaignSharedSetServiceAddPost: ', $e->getMessage(), PHP_EOL;
}
?>

Parameters

Name Type Description Notes
campaignSharedSetServiceOperation \Yahoo\Model\CampaignSharedSetServiceOperation [optional]

Return type

\Yahoo\Model\CampaignSharedSetServiceMutateResponse

Authorization

oAuth

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

campaignSharedSetServiceGetPost

\Yahoo\Model\CampaignSharedSetServiceGetResponse campaignSharedSetServiceGetPost($campaignSharedSetServiceSelector)

キャンペーンと対象外キーワードリストの関連付け情報を取得します。
Returns the setup information between campaign and negative keyword list.

Example

<?php
require_once(__DIR__ . '/vendor/autoload.php');


// Configure OAuth2 access token for authorization: oAuth
$config = Yahoo\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');


$apiInstance = new Yahoo\Api\CampaignSharedSetServiceApi(
    // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
    // This is optional, `GuzzleHttp\Client` will be used as default.
    new GuzzleHttp\Client(),
    $config
);
$campaignSharedSetServiceSelector = new \Yahoo\Model\CampaignSharedSetServiceSelector(); // \Yahoo\Model\CampaignSharedSetServiceSelector | 

try {
    $result = $apiInstance->campaignSharedSetServiceGetPost($campaignSharedSetServiceSelector);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling CampaignSharedSetServiceApi->campaignSharedSetServiceGetPost: ', $e->getMessage(), PHP_EOL;
}
?>

Parameters

Name Type Description Notes
campaignSharedSetServiceSelector \Yahoo\Model\CampaignSharedSetServiceSelector [optional]

Return type

\Yahoo\Model\CampaignSharedSetServiceGetResponse

Authorization

oAuth

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

campaignSharedSetServiceRemovePost

\Yahoo\Model\CampaignSharedSetServiceMutateResponse campaignSharedSetServiceRemovePost($campaignSharedSetServiceOperation)

キャンペーンと対象外キーワードリストの関連付け設定を削除します。
Remove the setup settings between campaign and negative keyword list.

Example

<?php
require_once(__DIR__ . '/vendor/autoload.php');


// Configure OAuth2 access token for authorization: oAuth
$config = Yahoo\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');


$apiInstance = new Yahoo\Api\CampaignSharedSetServiceApi(
    // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
    // This is optional, `GuzzleHttp\Client` will be used as default.
    new GuzzleHttp\Client(),
    $config
);
$campaignSharedSetServiceOperation = new \Yahoo\Model\CampaignSharedSetServiceOperation(); // \Yahoo\Model\CampaignSharedSetServiceOperation | 

try {
    $result = $apiInstance->campaignSharedSetServiceRemovePost($campaignSharedSetServiceOperation);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling CampaignSharedSetServiceApi->campaignSharedSetServiceRemovePost: ', $e->getMessage(), PHP_EOL;
}
?>

Parameters

Name Type Description Notes
campaignSharedSetServiceOperation \Yahoo\Model\CampaignSharedSetServiceOperation [optional]

Return type

\Yahoo\Model\CampaignSharedSetServiceMutateResponse

Authorization

oAuth

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]