criteo / criteo-php-marketing-transition-sdk
Official Criteo PHP Marketing Transition SDK
Installs: 6 093
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 11
Forks: 2
Open Issues: 2
Requires
- php: >=7.1
- ext-curl: *
- ext-json: *
- ext-mbstring: *
- guzzlehttp/guzzle: ^6.2
Requires (Dev)
- friendsofphp/php-cs-fixer: ~2.12
- mockery/mockery: ^1.3
- phpunit/phpunit: >=7.4
- squizlabs/php_codesniffer: ~2.6
This package is not auto-updated.
Last update: 2024-12-18 04:52:12 UTC
README
This project is deprecated
We've built a new set of SDKs to help you use our Criteo's API.
You can find the new PHP SDKs repositories here : https://github.com/criteo/criteo-api-marketingsolutions-php-sdk and https://github.com/criteo/criteo-api-retailmedia-php-sdk
Introduction
API Client Libraries can facilitate your use of the Criteo API allowing you to build unique and customized solutions to serve your businesses and clients. These libraries can reduce the amount of code you need to write in order to start accessing Criteo programmatically. They also can help expedite troubleshooting, should you encounter any issues. This Transition SDK will help you migrate from MAPI to Criteo API. We will support it until end of 2021 when we will decommission the /legacy endpoints. After that date we will only support our official versioned Client Libraries available in Q3 2021.
More information: https://developers.criteo.com/marketing-solutions/docs/php-api-client-library
This PHP package is automatically generated by the OpenAPI Generator project:
- API version: 2021-04
- Package version: 1.0.3
- Build package: org.openapitools.codegen.languages.PhpClientCodegen
Requirements
PHP 7.1 and later
Installation & Usage
Composer
To install the bindings via Composer:
either run the following command: composer require criteo/criteo-php-marketing-transition-sdk
or add the following to composer.json
:
{ "repositories": [ { "type": "vcs", "url": "https://github.com/criteo/criteo-php-marketing-transition-sdk.git" } ], "require": { "criteo/criteo-php-marketing-transition-sdk": "*@dev" } }
Then run composer install
Manual Installation
Download the files and include autoload.php
:
require_once('/path/to/CriteoMarketingTransition/vendor/autoload.php');
Tests
To run the unit tests:
composer install ./vendor/bin/phpunit
Getting Started
Please follow the installation procedure and then run the following:
<?php require_once(__DIR__ . '/vendor/autoload.php'); $clientId = 'YOUR_CLIENT_ID'; $clientCredentials = 'YOUR_PASSWORD'; // Automatic token refresh $apiInstance = new Criteo\Marketing\Api\AdvertiserApi(new TokenAutoRefreshClient($clientId, $clientCredentials)); try { $result = $apiInstance->apiPortfolioGet(); print_r($result); } catch (Exception $e) { echo 'Exception when calling AdvertiserApi->apiPortfolioGet: ', $e->getMessage(), PHP_EOL; } ?>
You can find the full example here.
Documentation for API Endpoints
All URIs are relative to https://api.criteo.com
Documentation For Models
- AdSetDeliveryLimitations
- AdSetFrequencyCapping
- AdSetGeoLocation
- AdSetSearchFilter
- AdSetTargeting
- AdSetTargetingRule
- Audience
- AudienceAttributes
- AudienceError
- AudienceNameDescription
- AudienceWarning
- BasicAudienceDefinition
- BidMessage
- CampaignBidChangeRequest
- CampaignBidChangeResponse
- CampaignBidChangeResponseMessageWithDetails
- CampaignBidMessage
- CampaignMessage
- CategoryBidChangeRequest
- CategoryBidMessage
- CategoryMessage
- CategoryUpdateError
- CategoryUpdateInput
- CategoryUpdatesPerCatalog
- CategoryUpdatesPerCatalogError
- CategoryUpdatesPerCatalogErrorMessageWithDetails
- ContactlistAmendment
- ContactlistAmendmentAttributes
- ContactlistAmendmentRequest
- ContactlistOperation
- ContactlistOperationAttributes
- CriteoApiDataOfPortfolioMessage
- CriteoApiError
- CriteoApiWarning
- DeleteAudienceContactListResponse
- DeleteAudienceResponse
- ErrorCodeResponse
- ErrorMessage
- GetAudiencesResponse
- GetPortfolioResponse
- InlineObject
- JwtModel
- ModifyAudienceResponse
- NewAudience
- NewAudienceAttributes
- NewAudienceRequest
- NewAudienceResponse
- NillableAdSetTargetingRule
- NillableDateTime
- NillableDecimal
- OAuth2Error
- PatchAdSet
- PatchAdSetBidding
- PatchAdSetBudget
- PatchAdSetScheduling
- PortfolioMessage
- ProblemDetails
- ReadAdSet
- ReadAdSetBidding
- ReadAdSetBudget
- ReadAdSetSchedule
- ReadModelAdSetId
- ReadModelReadAdSet
- ReplaceAudience
- ReplaceAudienceRequest
- ReplaceAudienceResponse
- RequestAdSetSearch
- RequestsAdSetId
- RequestsPatchAdSet
- ResponseAdSetId
- ResponseReadAdSet
- ResponsesAdSetId
- ResponsesReadAdSet
- StatisticsReportQueryMessage
- TransactionsReportQueryDataMessage
- TransactionsReportQueryEntityMessage
- TransactionsReportQueryMessage
- WriteModelAdSetId
- WriteModelPatchAdSet
Documentation For Authorization
In order to ease usage of this client library, you might want to use the TokenAutoRefreshClient as explained in the example.
Authorization
- Type: OAuth
- Flow: application
- Authorization URL:
- Scopes: N/A
Author
Disclaimer
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.