디맨드젠 캠페인 광고 항목은 YouTube, 디스커버, Gmail, Google 디스플레이 네트워크 등 Google의 가장 효과적인 표시 경로에 여러 형식의 광고 그룹과 광고를 게재합니다. 디맨드젠 캠페인 광고 항목은 다른 유형의 광고 항목과 마찬가지로
LineItem 리소스를 사용하여 관리되며 설정된
예산, 입찰 전략, 타겟팅을 기반으로 운영됩니다. demandGenSettings 필드에는 Demand
Gen 캠페인 광고 항목에만 적용되는 설정도 있습니다.
디맨드젠 캠페인 광고 항목에는 광고 그룹이라는 하위 리소스가 있습니다. 광고 그룹은 개별 광고 항목에서 또 다른 수준의 제어를 제공합니다.
구성 선택
디맨드젠 캠페인 광고 항목을 만들기 전에 관련 설정을 검토하고 결정하세요.
디맨드젠 캠페인 광고 항목의 경우:
lineItemType은LINE_ITEM_TYPE_DEMAND_GEN으로 설정해야 합니다.bidStrategy는BiddingStrategy객체의demandGenBid필드를 사용하여 설정해야 합니다.budget은 광고 항목 수준에서 고정 금액으로 설정해야 하며 상위 게재 신청서에서 상속할 수 없습니다.demandGenSettings는 디맨드젠 캠페인 광고 항목에만 적용되는 설정을 지정하는 데 사용됩니다.geoLanguageTargetingEnabled필드는DemandGenSettings객체의 위치 및 언어 타겟팅이 광고 항목 수준에서 설정되는지 아니면 개별 광고 그룹에 설정되는지를 제어합니다. 이 필드는 광고 항목을 만든 후에는 업데이트할 수 없습니다. 광고 항목 수준에서 이 타겟팅을 구성하려면 필드를true로 설정하세요.creativeIds는 설정해서는 안 됩니다. 애셋은 직접 할당 되고 AdGroupAd 리소스에서 구성됩니다.
다음 필드는 디맨드젠 캠페인 광고 항목에 필요하며 다른 유형의 광고 항목에서와 동일하게 작동합니다.
LineItem 리소스에는 설정할 수 있는 선택적 필드도 많이 있습니다. 자세한 내용은 참조 문서를 확인하세요.
광고 항목 만들기
다음 설정을 사용하여 디맨드젠 캠페인 광고 항목을 만드는 방법은 다음과 같습니다.
- 상속된 기간 및 예산 100달러
- 총 미디어 비용의 0.1% 인 파트너 수익 모델
- 전환당 평균 비용 10달러를 향해 최적화하는 입찰 전략
광고 항목의 광고 그룹에 위치 및 언어 타겟팅을 직접 할당하는 환경설정
Python
# Provide the ID of the parent advertiser. advertiser_id = advertiser-id # Provide the ID of the parent insertion order. insertion_order_id = insertion-order-id # Provide the display name of the line item. display_name = display-video # Provide the Floodlight activity ID to use for conversion tracking. floodlight_activity_id = floodlight-activity-id # Provide whether the line item will serve EU political ads. contains_eu_political_ads = contains-eu-political-ads # Create a line item object with example values. line_item_obj = { "insertionOrderId": insertion_order_id, "displayName": display_name, "lineItemType": "LINE_ITEM_TYPE_DEMAND_GEN", "entityStatus": "ENTITY_STATUS_DRAFT", "flight": {"flightDateType": "LINE_ITEM_FLIGHT_DATE_TYPE_INHERITED"}, "budget": { "budgetAllocationType": "LINE_ITEM_BUDGET_ALLOCATION_TYPE_FIXED", "maxAmount": 100000000 }, "pacing": { "pacingPeriod": "PACING_PERIOD_FLIGHT", "pacingType": "PACING_TYPE_EVEN", "dailyMaxMicros": 10000, }, "partnerRevenueModel": { "markupType": ( "PARTNER_REVENUE_MODEL_MARKUP_TYPE_TOTAL_MEDIA_COST_MARKUP" ), "markupAmount": 100, }, "bidStrategy": { "demandGenBid": { "type": "DEMAND_GEN_BIDDING_STRATEGY_TYPE_TARGET_CPA", "value": "10000000" } }, "conversionCounting": { "postViewCountPercentageMillis": "100000", "floodlightActivityConfigs": [ { "floodlightActivityId": floodlight_activity_id, "postClickLookbackWindowDays": 90, "postViewLookbackWindowDays": 90 } ] }, "containsEuPoliticalAds": contains_eu_political_ads, "demandGenSettings": { "geoLanguageTargetingEnabled": False } } # Build and execute request. response = ( service.advertisers() .lineItems() .create(advertiserId=advertiser_id, body=line_item_obj) .execute() ) # Display the new line item. print(f"Demand Gen line Item {response['name']} was created.")