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