Skip to content

Latest commit

 

History

History
132 lines (82 loc) · 4.65 KB

AdGroupCriterionLabelServiceApi.md

File metadata and controls

132 lines (82 loc) · 4.65 KB

Yahoo\AdGroupCriterionLabelServiceApi

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

Method HTTP request Description
adGroupCriterionLabelServiceAddPost POST /AdGroupCriterionLabelService/add
adGroupCriterionLabelServiceRemovePost POST /AdGroupCriterionLabelService/remove

adGroupCriterionLabelServiceAddPost

\Yahoo\Model\AdGroupCriterionLabelServiceMutateResponse adGroupCriterionLabelServiceAddPost($adGroupCriterionLabelServiceOperation)

ラベルと広告グループのクライテリアの紐付けを登録します。
Add informations of related conditions (criteria) of ad group 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\AdGroupCriterionLabelServiceApi(
    // 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
);
$adGroupCriterionLabelServiceOperation = new \Yahoo\Model\AdGroupCriterionLabelServiceOperation(); // \Yahoo\Model\AdGroupCriterionLabelServiceOperation | 

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

Parameters

Name Type Description Notes
adGroupCriterionLabelServiceOperation \Yahoo\Model\AdGroupCriterionLabelServiceOperation [optional]

Return type

\Yahoo\Model\AdGroupCriterionLabelServiceMutateResponse

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]

adGroupCriterionLabelServiceRemovePost

\Yahoo\Model\AdGroupCriterionLabelServiceMutateResponse adGroupCriterionLabelServiceRemovePost($adGroupCriterionLabelServiceOperation)

ラベルと広告グループのクライテリアの紐付けを削除します。
Remove informations of related conditions (criteria) of ad group 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\AdGroupCriterionLabelServiceApi(
    // 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
);
$adGroupCriterionLabelServiceOperation = new \Yahoo\Model\AdGroupCriterionLabelServiceOperation(); // \Yahoo\Model\AdGroupCriterionLabelServiceOperation | 

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

Parameters

Name Type Description Notes
adGroupCriterionLabelServiceOperation \Yahoo\Model\AdGroupCriterionLabelServiceOperation [optional]

Return type

\Yahoo\Model\AdGroupCriterionLabelServiceMutateResponse

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]