मांग बढ़ाने में मदद करने वाला लाइन आइटम बनाना

मांग बढ़ाने में मदद करने वाले कैंपेन के लाइन आइटम से, Google के सबसे असरदार प्लैटफ़ॉर्म पर अलग-अलग फ़ॉर्मैट में विज्ञापन ग्रुप और विज्ञापन दिखाए जाते हैं. इन प्लैटफ़ॉर्म में YouTube, डिस्कवर, Gmail, और Google Display Network शामिल हैं. मांग बढ़ाने में मदद करने वाले कैंपेन के लाइन आइटम, अन्य तरह के लाइन आइटम की तरह ही LineItem संसाधनों का इस्तेमाल करके मैनेज किए जाते हैं. साथ ही, ये सेट किए गए बजट, बिडिंग की रणनीति, और टारगेटिंग के आधार पर काम करते हैं. demandGenSettings फ़ील्ड में, मांग बढ़ाने में मदद करने वाले कैंपेन के लाइन आइटम से जुड़ी सेटिंग भी उपलब्ध हैं.

मांग बढ़ाने में मदद करने वाले कैंपेन के लाइन आइटम में, विज्ञापन ग्रुप नाम के चाइल्ड रिसॉर्स होते हैं. विज्ञापन ग्रुप की मदद से, अलग-अलग लाइन आइटम को कंट्रोल किया जा सकता है.

कॉन्फ़िगरेशन चुनें

मांग बढ़ाने में मदद करने वाला लाइन आइटम बनाने से पहले, काम की सेटिंग की समीक्षा करें और उन्हें चुनें.

मांग बढ़ाने में मदद करने वाले कैंपेन के लाइन आइटम के लिए:

  • lineItemType को LINE_ITEM_TYPE_DEMAND_GEN पर सेट किया जाना चाहिए.
  • bidStrategy को BiddingStrategy ऑब्जेक्ट के demandGenBid फ़ील्ड का इस्तेमाल करके सेट किया जाना चाहिए.
  • budget को लाइन आइटम लेवल पर तय की गई रकम पर सेट किया जाना चाहिए. साथ ही, इसे पैरंट इंसर्शन ऑर्डर से इनहेरिट नहीं किया जा सकता.
  • demandGenSettings का इस्तेमाल, मांग बढ़ाने में मदद करने वाले कैंपेन के लाइन आइटम के लिए खास कॉन्फ़िगरेशन सेट करने के लिए किया जाता है. DemandGenSettings ऑब्जेक्ट का geoLanguageTargetingEnabled फ़ील्ड यह कंट्रोल करता है कि जगह और भाषा के हिसाब से टारगेटिंग, लाइन आइटम लेवल पर सेट की गई है या अलग-अलग विज्ञापन ग्रुप के लिए. लाइन आइटम बनाने के बाद, इस फ़ील्ड को अपडेट नहीं किया जा सकता. अगर आपको लाइन आइटम लेवल पर टारगेटिंग कॉन्फ़िगर करनी है, तो फ़ील्ड को true पर सेट करें.
  • creativeIds को सेट नहीं किया जाना चाहिए. ऐसेट सीधे तौर पर AdGroupAd रिसॉर्स में असाइन और कॉन्फ़िगर की जाती हैं.

मांग बढ़ाने में मदद करने वाले कैंपेन के लाइन आइटम के लिए, इन फ़ील्ड में जानकारी डालना ज़रूरी है. ये फ़ील्ड, अन्य तरह के लाइन आइटम की तरह ही काम करते हैं:

LineItem संसाधन में कई ऐसे फ़ील्ड भी होते हैं जिन्हें सेट करना ज़रूरी नहीं होता. ज़्यादा जानकारी के लिए, रेफ़रंस दस्तावेज़ पढ़ें.

लाइन आइटम बनाना

यहां मांग बढ़ाने में मदद करने वाले कैंपेन के लिए लाइन आइटम बनाने का तरीका बताया गया है. इसमें ये सेटिंग इस्तेमाल की गई हैं:

  • विरासत में मिली फ़्लाइट और 10,000 रुपये का बजट.
  • पार्टनर की आय का मॉडल, कुल मीडिया लागत का 0.1% है.
  • बिडिंग की ऐसी रणनीति जो हर कन्वर्ज़न के लिए 10 डॉलर की औसत लागत को ऑप्टिमाइज़ करती है.
  • लाइन आइटम के तहत विज्ञापन ग्रुप को सीधे तौर पर जगह और भाषा के हिसाब से टारगेटिंग असाइन करने की प्राथमिकता.

Java

// Provide the ID of the parent advertiser.
long advertiserId = advertiser-id

// Provide the ID of the parent insertion order.
long insertionOrderId = insertion-order-id

// Provide the display name of the line item.
String displayName = display-name

// Provide the Floodlight activity ID to use for conversion tracking.
long floodlightActivityId = floodlight-activity-id;

// Provide whether the line item will serve EU political ads.
String containsEuPoliticalAds = contains-eu-political-ads

// Create the line item structure.
LineItem lineItem =
    new LineItem()
        .setInsertionOrderId(insertionOrderId)
        .setDisplayName(displayName)
        .setLineItemType("LINE_ITEM_TYPE_DEMAND_GEN")
        .setEntityStatus("ENTITY_STATUS_DRAFT")
        .setContainsEuPoliticalAds(containsEuPoliticalAds);

// Create and set the line item flight.
LineItemFlight lineItemFlight =
    new LineItemFlight()
        .setFlightDateType("LINE_ITEM_FLIGHT_DATE_TYPE_INHERITED");
lineItem.setFlight(lineItemFlight);

// Create and set the line item budget.
LineItemBudget lineItemBudget =
    new LineItemBudget()
        .setBudgetAllocationType("LINE_ITEM_BUDGET_ALLOCATION_TYPE_FIXED")
        .setMaxAmount(100000000L);
lineItem.setBudget(lineItemBudget);

// Create and set the pacing setting.
Pacing pacing =
    new Pacing()
        .setPacingPeriod("PACING_PERIOD_FLIGHT")
        .setPacingType("PACING_TYPE_EVEN")
        .setDailyMaxMicros(10_000L);
lineItem.setPacing(pacing);

// Create and set the partner revenue model.
PartnerRevenueModel partnerRevenueModel =
    new PartnerRevenueModel()
        .setMarkupType(
            "PARTNER_REVENUE_MODEL_MARKUP_TYPE_TOTAL_MEDIA_COST_MARKUP")
        .setMarkupAmount(100L);
lineItem.setPartnerRevenueModel(partnerRevenueModel);

// Create and set the bidding strategy.
BiddingStrategy biddingStrategy =
    new BiddingStrategy()
        .setDemandGenBid(
            new DemandGenBiddingStrategy()
                .setType("DEMAND_GEN_BIDDING_STRATEGY_TYPE_TARGET_CPA")
                .setValue(10000000L));
lineItem.setBidStrategy(biddingStrategy);

// Create the conversion counting configuration.
ConversionCountingConfig conversionCountingConfig =
    new ConversionCountingConfig()
        .setPostViewCountPercentageMillis(100000L);

// Create and set the configuration for the floodlight activity used in
// conversion tracking.
TrackingFloodlightActivityConfig trackingFloodlightActivityConfig =
    new TrackingFloodlightActivityConfig()
        .setFloodlightActivityId(floodlightActivityId)
        .setPostClickLookbackWindowDays(90)
        .setPostViewLookbackWindowDays(90);
conversionCountingConfig.setFloodlightActivityConfigs(
    ImmutableList.of(trackingFloodlightActivityConfig));

// Set the conversion counting configuration.
lineItem.setConversionCounting(conversionCountingConfig);

// Create and set Demand Gen settings.
DemandGenSettings demandGenSettings =
    new DemandGenSettings().setGeoLanguageTargetingEnabled(false);
lineItem.setDemandGenSettings(demandGenSettings);

// Configure the create request.
LineItems.Create request =
    service.advertisers().lineItems().create(advertiserId, lineItem);

// Create the line item.
LineItem response = request.execute();

// Display the new line item.
System.out.printf(
    "Demand Gen line item %s was created.", response.getName());

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.
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.")

PHP

// Provide the ID of the parent advertiser.
$advertiserId = advertiser-id;

// Provide the ID of the parent insertion order.
$insertionOrderId = insertion-order-id;

// Provide the display name of the line item.
$displayName = display-name;

// Provide the Floodlight activity ID to use for conversion tracking.
$floodlightActivityId = floodlight-activity-id;

// Provide whether the line item will serve EU political ads.
$containsEuPoliticalAds = contains-eu-political-ads;

// Create the Demand Gen line item structure.
$lineItem = new Google_Service_DisplayVideo_LineItem();
$lineItem->setInsertionOrderId($insertionOrderId);
$lineItem->setDisplayName($displayName);
$lineItem->setLineItemType('LINE_ITEM_TYPE_DEMAND_GEN');
$lineItem->setEntityStatus('ENTITY_STATUS_DRAFT');
$lineItem->setContainsEuPoliticalAds($containsEuPoliticalAds);

// Create and set the line item flight.
$flight = new Google_Service_DisplayVideo_LineItemFlight();
$flight->setFlightDateType('LINE_ITEM_FLIGHT_DATE_TYPE_INHERITED');
$lineItem->setFlight($flight);

// Create and set the line item budget.
$budget = new Google_Service_DisplayVideo_LineItemBudget();
$budget->setBudgetAllocationType(
    'LINE_ITEM_BUDGET_ALLOCATION_TYPE_FIXED'
);
$budget->setMaxAmount(100000000);
$lineItem->setBudget($budget);

// Create and set the pacing setting.
$pacing = new Google_Service_DisplayVideo_Pacing();
$pacing->setPacingPeriod('PACING_PERIOD_FLIGHT');
$pacing->setPacingType('PACING_TYPE_EVEN');
$pacing->setDailyMaxMicros(10000);
$lineItem->setPacing($pacing);

// Create and set the partner revenue model.
$partnerRevenueModel =
    new Google_Service_DisplayVideo_PartnerRevenueModel();
$partnerRevenueModel->setMarkupType(
    'PARTNER_REVENUE_MODEL_MARKUP_TYPE_TOTAL_MEDIA_COST_MARKUP'
);
$partnerRevenueModel->setMarkupAmount(100);
$lineItem->setPartnerRevenueModel($partnerRevenueModel);

// Create and set the bidding strategy.
$demandGenBidStrategy =
    new Google_Service_DisplayVideo_DemandGenBiddingStrategy();
$demandGenBidStrategy->setType(
    'DEMAND_GEN_BIDDING_STRATEGY_TYPE_TARGET_CPA'
);
$demandGenBidStrategy->setValue(10000000);
$biddingStrategy = new Google_Service_DisplayVideo_BiddingStrategy();
$biddingStrategy->setDemandGenBid($demandGenBidStrategy);
$lineItem->setBidStrategy($biddingStrategy);

// Create and set the conversion counting config.
$conversionCountingConfig =
    new Google_Service_DisplayVideo_ConversionCountingConfig();
$conversionCountingConfig->setPostViewCountPercentageMillis(100000);
$trackingFloodlightActivityConfig =
    new Google_Service_DisplayVideo_TrackingFloodlightActivityConfig();
$trackingFloodlightActivityConfig->setFloodlightActivityId(
    $floodlightActivityId
);
$trackingFloodlightActivityConfig->setPostClickLookbackWindowDays(90);
$trackingFloodlightActivityConfig->setPostViewLookbackWindowDays(90);
$conversionCountingConfig->setFloodlightActivityConfigs(
    array($trackingFloodlightActivityConfig)
);
$lineItem->setConversionCounting($conversionCountingConfig);

// Create and set the Demand Gen settings.
$demandGenSettings =
    new Google_Service_DisplayVideo_DemandGenSettings();
$demandGenSettings->setGeoLanguageTargetingEnabled(false);
$lineItem->setDemandGenSettings($demandGenSettings);

// Call the API, creating the line item under the advertiser and
// insertion order given.
try {
    $result = $this->service->advertisers_lineItems->create(
        $advertiserId,
        $lineItem
    );
} catch (\Exception $e) {
    $this->renderError($e);
    return;
}

// Display the new line item.
printf('<p>Demand Gen line item %s was created.</p>', $result['name']);