실적 최대화 캠페인에 필요한 구성요소

실적 최대화 캠페인을 처음부터 새로 만들려면 최소한 다음을 만들어야 합니다.

캠페인 및 예산은 모든 종류의 캠페인 유형을 만들 때 유용하며, 애셋 관련 작업은 특히 실적 최대화 캠페인을 만들 때 유용합니다.

이 가이드에서는 변형에 사용할 JavaScript 객체만 제공하므로 변형 전략을 숙지해야 합니다.

예산

예산은 공유할 수 없으며 계정에서 고유한 이름을 사용해야 합니다. CampaignBudgetOperation를 사용합니다.

const budgetOperation = {
  "campaignBudgetOperation": {
    "create": {
      "resourceName": `customers/${customerId}/campaignBudgets/${getNextTempId()}`,
      "name": "Performance Max campaign budget",
      "amountMicros": "50000000",
      "deliveryMethod": "STANDARD",
      "explicitlyShared": false
    }
  }
}
operations.push(budgetOperation);

실행

캠페인은 이전에 만든 예산을 참조해야 하므로 임시 ID로 자체 리소스 이름을 지정하는 것 외에도 이 요청에서 이전에 만든 예산을 고유하게 식별할 수 있도록 캠페인을 만들려면 이전 단계에서 설정한 정확한 리소스 이름이 필요합니다. CampaignOperation를 사용합니다.

const campaignOperation = {
  "campaignOperation": {
    "create": {
      "resourceName": `customers/${customerId}/campaigns/${getNextTempId()}`,
      "name": "Performance Max campaign",
      "status": "PAUSED",
      "advertisingChannelType": "PERFORMANCE_MAX",
      "campaignBudget": budgetOperation.campaignBudgetOperation.create.resourceName,
      "biddingStrategyType": "MAXIMIZE_CONVERSION_VALUE",
      "startDate": "20240314",
      "endDate": "20250313",
      "urlExpansionOptOut": false,
      "maximizeConversionValue": {
        "targetRoas": 3.5
      }
    }
  }
}
operations.push(campaignOperation);

애셋 그룹

이 캠페인의 애셋 그룹에는 캠페인에 대한 참조가 필요하며 나중에 애셋을 연결할 때 참조해야 합니다. AssetGroupOperation를 사용합니다.

const assetGroupOperation = {
  "assetGroupOperation": {
    "create": {
      "resourceName": `customers/${customerId}/assetGroups/${getNextTempId()}`,
      "campaign": campaignOperation.campaignOperation.create.resourceName,
      "name": "Performance Max asset group",
      "finalUrls": [
        "http://www.example.com"
      ],
      "finalMobileUrls": [
        "http://www.example.com"
      ],
      "status": "PAUSED"
    }
  }
}
operations.push(assetGroupOperation);

이제 이전 단계의 애셋 그룹과 애셋을 준비했으므로 실적 최대화 캠페인에서 사용하려는 애셋을 알 수 있도록 두 애셋을 서로 연결해야 합니다. 애셋 그룹을 처음 만들 때와 동일한 요청에서 이 작업을 수행해야 합니다. 이렇게 하려면 AssetGroupAssetOperation를 사용하세요.

올바른 애셋 리소스 이름을 제공하고 fieldType를 연결하는 애셋의 적절한 값으로 수정해야 합니다. 유효한 필드 유형의 전체 목록을 확인하세요.

실적 최대화 캠페인의 최소 요건을 충족하려면 이러한 작업이 여러 번 필요합니다.

operations.push({
  "assetGroupAssetOperation": {
    "create": {
      "assetGroup": assetGroupOperation.assetGroupOperation.create.resourceName,
      // assetResourceName here is a placeholder; you will need to determine
      // the correct resource name to use depending on which asset you want
      // to add to the asset group.
      "asset": assetResourceName,
      "fieldType": "HEADLINE"
    }
  }
});