- Open Source
- APIs
- Advertising
- Blog
- Events
- Podcasts
- Apps
- Native
- Documentation
- Yahoo Native to Yahoo DSP API Migration Guide
- Sign In
- Language:
Frequency Cap¶
You can define the number of times users can be exposed to your campaign in a given time period. Note that this only applies to PROMOTE_BRAND campaigns. For other campaign types, the frequency is managed and optimized by the Native Ad Platform API.
Endpoint¶
Resource URI
https://api.gemini.yahoo.com/v3/rest/frequency
You can set frequency capping by making a POST call passing in the following fields:
Name |
Description |
Type |
Add |
Update |
---|---|---|---|---|
|
The unique identifier |
long |
NA |
Required |
|
The number of times a given user will be exposed to your campaign. |
int |
Required |
Optional |
|
The time interval for which the frequency cap is set. Currently this must be set to DAILY or WEEKLY. |
enum |
Required |
Optional (Read-Only) |
|
The advertiser id. |
long |
Required |
Optional (Read-Only) |
|
Must be set to CAMPAIGN. |
enum |
Required |
Optional (Read-Only) |
|
The ID of the parent campaign. |
long |
Required |
Optional (Read-Only) |
|
Valid values are ACTIVE, PAUSED and DELETED. Will default to ACTIVE if not provided. |
enum |
Optional |
Optional |
For example, to set frequency capping for a campaign:
PUT https://api.gemini.yahoo.com/v3/rest/frequency
Data passed
{
"value": 10,
"type": "DAILY",
"advertiserId": 11610,
"parentType": "CAMPAIGN",
"parentId": 332817035,
"id": 299239189394
}
Example response
{
"errors": null,
"timestamp": "2015-08-22 1:58:45",
"response": {
"type": "DAILY",
"id": 295617989759,
"status": "ACTIVE",
"parentId": 332817035,
"parentType": "CAMPAIGN",
"advertiserId": 11610,
"value": "10"
}
}
To delete frequency capping for a campaign:
PUT https://api.gemini.yahoo.com/v3/rest/frequency
Data passed
{
"id": 295617989759,
"status": "DELETED"
}
Example response
{
"errors": null,
"timestamp": "2015-08-22 2:08:50",
"response": {
"type": "DAILY",
"status": "DELETED",
"id": 295617989759,
"parentId": 332817035,
"parentType": "CAMPAIGN",
"advertiserId": 11610,
"value": "10"
}
}