All URIs are relative to https://ads-search.yahooapis.jp/api/v1
Method | HTTP request | Description |
---|---|---|
adGroupLabelServiceAddPost | POST /AdGroupLabelService/add | |
adGroupLabelServiceRemovePost | POST /AdGroupLabelService/remove |
\Yahoo\Model\AdGroupLabelServiceMutateResponse adGroupLabelServiceAddPost($adGroupLabelServiceOperation)
ラベルと広告グループの紐付けを登録します。
Add informations of related ad group and label.
<?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\AdGroupLabelServiceApi(
// 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
);
$adGroupLabelServiceOperation = new \Yahoo\Model\AdGroupLabelServiceOperation(); // \Yahoo\Model\AdGroupLabelServiceOperation |
try {
$result = $apiInstance->adGroupLabelServiceAddPost($adGroupLabelServiceOperation);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling AdGroupLabelServiceApi->adGroupLabelServiceAddPost: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
adGroupLabelServiceOperation | \Yahoo\Model\AdGroupLabelServiceOperation | [optional] |
\Yahoo\Model\AdGroupLabelServiceMutateResponse
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\Yahoo\Model\AdGroupLabelServiceMutateResponse adGroupLabelServiceRemovePost($adGroupLabelServiceOperation)
ラベルと広告グループの紐付けを削除します。
Remove informations of related ad group and label.
<?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\AdGroupLabelServiceApi(
// 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
);
$adGroupLabelServiceOperation = new \Yahoo\Model\AdGroupLabelServiceOperation(); // \Yahoo\Model\AdGroupLabelServiceOperation |
try {
$result = $apiInstance->adGroupLabelServiceRemovePost($adGroupLabelServiceOperation);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling AdGroupLabelServiceApi->adGroupLabelServiceRemovePost: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
adGroupLabelServiceOperation | \Yahoo\Model\AdGroupLabelServiceOperation | [optional] |
\Yahoo\Model\AdGroupLabelServiceMutateResponse
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]