improved

Jan 5th, 2023

For the CreateCampaign API, we always create an AdGroup along with the Campaign. However, we didn't include the created AdGroup in the response. From this change, you can now check the created AdGroup in the response with the field named ad_groups.

Sample response:

{
    "campaign": {
        "id": "otZan7dHIBxSCqvp",
        "ad_account_id": "AD_ACCOUNT_ID",
        "product_id": "PRODUCT_ID",
        "title": "Test",
        "enabling_state": "DISABLED",
        "type": "APP_USER_ACQUISITION",
        "device_os": "IOS",
        "state": "SUBMITTED",
        "countries": [
            "USA"
        ],
        "currency": "USD",
        "schedule": {
            "start": "2023-01-02T00:00:00Z"
        },
        "budget_schedule": {
            "weekly_flexible_schedule": {
                "weekly_budget": {
                    "currency": "USD",
                    "amount_micros": "840000000"
                }
            }
        },
        "tracking_company": "TRACK",
        "tracking_link_id": "A3aMlhiiESWNFSdV",
        "goal": {
            "type": "OPTIMIZE_CPI_FOR_APP_UA",
            "optimize_app_installs": {
                "mode": "BUDGET_CENTRIC",
                "rate": 1
            }
        },
        "skadn_input": {
            "targeting_state": "TARGET_NON_SKADN_ONLY"
        },
        "ad_tracking_allowance": "DO_NOT_CARE",
        "created_at": "2023-01-05T02:14:39.924037Z",
        "updated_at": "2023-01-05T02:14:39.924037Z"
    },
    "ad_groups": [
        {
            "id": "qoGzU2Y1v7PuTAaH",
            "title": "adgroup_default_ios",
            "campaign_id": "otZan7dHIBxSCqvp",
            "product_id": "PRODUCT_ID",
            "ad_account_id": "AD_ACCOUNT_ID",
            "enabling_state": "ENABLED",
            "audience": {},
            "capper": {
                "imp_interval": {
                    "amount": "1",
                    "unit": "HOUR"
                }
            },
            "pricing_model_id": "cloud_v1",
            "created_at": "2023-01-05T02:14:39.213146471Z",
            "updated_at": "2023-01-05T02:14:39.213146565Z"
        }
    ]
}