curl --request POST \
--url http://localhost:8000/api/v1/google-ads/migrations/apply \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"donor_campaign": "<string>",
"recipient_campaign": "<string>",
"donor_cost_per_conv": 123,
"recipient_cost_per_conv": 123,
"cost_per_conv_difference_percent": 123,
"z_score": 123,
"recommended_migration_amount": 123,
"donor_metrics": {
"conversions": 123,
"current_budget": 123,
"impression_share": 123,
"abs_top_page_rate": 123,
"visibility_score": 123
},
"recipient_metrics": {
"conversions": 123,
"current_budget": 123,
"impression_share": 123,
"abs_top_page_rate": 123,
"visibility_score": 123
}
}
'{
"success": true,
"donor_campaign": {
"name": "<string>",
"old_budget": 123,
"new_budget": 123
},
"recipient_campaign": {
"name": "<string>",
"old_budget": 123,
"new_budget": 123
},
"migration_amount": 123,
"message": "<string>"
}Apply a recommended budget migration between campaigns.
Args: customer_id: The Google Ads customer ID migration: Migration details including donor and recipient campaigns oauth2_token: OAuth2 token for authentication current_user: Authenticated user
Returns: MigrationResultSchema: Results of the migration operation
curl --request POST \
--url http://localhost:8000/api/v1/google-ads/migrations/apply \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"donor_campaign": "<string>",
"recipient_campaign": "<string>",
"donor_cost_per_conv": 123,
"recipient_cost_per_conv": 123,
"cost_per_conv_difference_percent": 123,
"z_score": 123,
"recommended_migration_amount": 123,
"donor_metrics": {
"conversions": 123,
"current_budget": 123,
"impression_share": 123,
"abs_top_page_rate": 123,
"visibility_score": 123
},
"recipient_metrics": {
"conversions": 123,
"current_budget": 123,
"impression_share": 123,
"abs_top_page_rate": 123,
"visibility_score": 123
}
}
'{
"success": true,
"donor_campaign": {
"name": "<string>",
"old_budget": 123,
"new_budget": 123
},
"recipient_campaign": {
"name": "<string>",
"old_budget": 123,
"new_budget": 123
},
"migration_amount": 123,
"message": "<string>"
}The access token received from the authorization server in the OAuth 2.0 flow.
The schema for a migration.
The schema for migration metrics.
Show child attributes
The schema for migration metrics.
Show child attributes