campaigns
Update campaigns
Update multiple ad campaigns based on campaign_ids.
Note:
- The values for lifetime_spend_cap and daily_spend_cap are microcurrency amounts based on the currency field set in the advertiser's profile (e.g. USD).
Microcurrency is used to track very small transactions, based on the currency set in the advertiser's profile.
A microcurrency unit is 10^(-6) of the standard unit of currency selected in the advertiser's profile.
Equivalency equations, using dollars as an example currency:
- $1 = 1,000,000 microdollars
- 1 microdollar = $0.000001
To convert between currency and microcurrency, using dollars as an example currency:
- To convert dollars to microdollars, multiply dollars by 1,000,000
- To convert microdollars to dollars, divide microdollars by 1,000,000
patch/ad_accounts/{ad_account_id}/campaigns
Path parameters
ad_account_idstring required
Unique identifier of an ad account.
Request body
Example request
[
{
"ad_account_id": "549755885175",
"app_id": "429047995",
"bid_options": {
"age_bucket_multipliers": {
"18-24": 0.9,
"25-34": 1.1,
"35-44": 1.2
},
"app_type_multipliers": {
"android_mobile": 1.1,
"android_tablet": 1.1,
"ipad": 1.2,
"iphone": 1.2,
"web": 0.9,
"web_mobile": 0.8
},
"audience_multipliers": {
"123": 1.1,
"456": 1.2
},
"frequency_multipliers": {
"0": 1.5,
"1": 1.3,
"2": 0.8
},
"gender_multipliers": {
"female": 2.1,
"male": 0.8
},
"placement_multipliers": {
"browse": 0.9,
"search": 1.2,
"related_pins": 1.1
}
},
"daily_spend_cap": 1432744744,
"end_time": 1644023526,
"id": "549755885175",
"is_automated_campaign": true,
"is_campaign_budget_optimization": true,
"is_flexible_daily_budgets": true,
"is_ltv_optimized": true,
"is_performance_plus": true,
"is_top_of_search": true,
"lifetime_spend_cap": 1432744744,
"name": "ACME Tools",
"order_line_id": "549755885175",
"start_time": 1580865126,
"status": "ACTIVE",
"tracking_urls": {
"impression": [
"URL1",
"URL2"
],
"click": [
"URL1",
"URL2"
],
"engagement": [
"URL1",
"URL2"
],
"buyable_button": [
"URL1",
"URL2"
],
"audience_verification": [
"URL1",
"URL2"
]
}
}
]Response
The request has succeeded.
Example response
{
"items": [
{
"data": {
"ad_account_id": "549755885175",
"bid_options": {
"age_bucket_multipliers": {
"18-24": 0.9,
"25-34": 1.1,
"35-44": 1.2
},
"app_type_multipliers": {
"android_mobile": 1.1,
"android_tablet": 1.1,
"ipad": 1.2,
"iphone": 1.2,
"web": 0.9,
"web_mobile": 0.8
},
"audience_multipliers": {
"123": 1.1,
"456": 1.2
},
"frequency_multipliers": {
"0": 1.5,
"1": 1.3,
"2": 0.8
},
"gender_multipliers": {
"female": 2.1,
"male": 0.8
},
"placement_multipliers": {
"browse": 0.9,
"search": 1.2,
"related_pins": 1.1
}
},
"created_time": 1432744744,
"daily_spend_cap": 1432744744,
"end_time": 1644023526,
"id": "549755885175",
"is_automated_campaign": true,
"is_campaign_budget_optimization": true,
"is_carting": true,
"is_flexible_daily_budgets": true,
"is_ltv_optimized": true,
"is_performance_plus": true,
"is_top_of_search": true,
"lifetime_spend_cap": 1432744744,
"name": "ACME Tools",
"order_line_id": "549755885175",
"start_time": 1580865126,
"status": "ACTIVE",
"tracking_urls": {
"impression": [
"URL1",
"URL2"
],
"click": [
"URL1",
"URL2"
],
"engagement": [
"URL1",
"URL2"
],
"buyable_button": [
"URL1",
"URL2"
],
"audience_verification": [
"URL1",
"URL2"
]
},
"type": "campaign",
"updated_time": 1432744744
},
"exceptions": [
{
"code": 2,
"message": "Advertiser not found."
}
]
}
]
}