Skip to content

Latest commit

 

History

History
132 lines (82 loc) · 4.22 KB

CampaignLabelServiceApi.md

File metadata and controls

132 lines (82 loc) · 4.22 KB

Yahoo\CampaignLabelServiceApi

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

Method HTTP request Description
campaignLabelServiceAddPost POST /CampaignLabelService/add
campaignLabelServiceRemovePost POST /CampaignLabelService/remove

campaignLabelServiceAddPost

\Yahoo\Model\CampaignLabelServiceMutateResponse campaignLabelServiceAddPost($campaignLabelServiceOperation)

ラベルとキャンペーンの紐付けを登録します。
Add informations of related campaign and label.

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\CampaignLabelServiceApi(
    // 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
);
$campaignLabelServiceOperation = new \Yahoo\Model\CampaignLabelServiceOperation(); // \Yahoo\Model\CampaignLabelServiceOperation | 

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

Parameters

Name Type Description Notes
campaignLabelServiceOperation \Yahoo\Model\CampaignLabelServiceOperation [optional]

Return type

\Yahoo\Model\CampaignLabelServiceMutateResponse

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]

campaignLabelServiceRemovePost

\Yahoo\Model\CampaignLabelServiceMutateResponse campaignLabelServiceRemovePost($campaignLabelServiceOperation)

ラベルとキャンペーンの紐付けを削除します。
Remove informations of related campaign and label.

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\CampaignLabelServiceApi(
    // 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
);
$campaignLabelServiceOperation = new \Yahoo\Model\CampaignLabelServiceOperation(); // \Yahoo\Model\CampaignLabelServiceOperation | 

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

Parameters

Name Type Description Notes
campaignLabelServiceOperation \Yahoo\Model\CampaignLabelServiceOperation [optional]

Return type

\Yahoo\Model\CampaignLabelServiceMutateResponse

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]