Skip to content

Commit e1dc96b

Browse files
authored
Merge pull request BingAds#86 from BingAds/product-ad-sample
optional merchant promotions
2 parents cb0509e + 08b70e3 commit e1dc96b

File tree

4 files changed

+20
-32
lines changed

4 files changed

+20
-32
lines changed

examples/BingAdsPythonConsoleExamples/BingAdsPythonConsoleExamples/v11/bulk_shopping_campaigns.py

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -103,19 +103,16 @@ def main(authorization_data):
103103
bulk_ad_group.ad_group=ad_group
104104

105105

106-
#Create a product ad. You must add at least one ProductAd to the corresponding ad group.
107-
#A ProductAd is not used directly for delivered ad copy. Instead, the delivery engine generates
108-
#product ads from the product details that it finds in your Bing Merchant Center store's product catalog.
109-
#The primary purpose of the ProductAd object is to provide promotional text that the delivery engine
110-
#adds to the product ads that it generates. For example, if the promotional text is set to
111-
#'Free shipping on $99 purchases', the delivery engine will set the product ad's description to
112-
#'Free shipping on $99 purchases.'
106+
#Create a product ad. You must add at least one product ad to the ad group.
107+
#The product ad identifier can be used for reporting analytics.
108+
#Use Merchant Promotions if you want tags to appear at the bottom of your product ad
109+
#as "special offer" links, helping to increase customer engagement. For details
110+
#on Merchant Promotions see https://help.bingads.microsoft.com/#apex/3/en/56805/0.
113111

114112
bulk_product_ad=BulkProductAd()
115113
bulk_product_ad.ad_group_id=AD_GROUP_ID_KEY
116114
ads=campaign_service.factory.create('ArrayOfAd')
117115
product_ad=set_elements_to_none(campaign_service.factory.create('ProductAd'))
118-
product_ad.PromotionalText='Free shipping on $99 purchases.'
119116
product_ad.Type='Product'
120117
bulk_product_ad.ad=product_ad
121118

examples/BingAdsPythonConsoleExamples/BingAdsPythonConsoleExamples/v11/shopping_campaigns.py

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -427,17 +427,14 @@ def main(authorization_data):
427427
output_product_partitions(ad_group_criterions)
428428

429429

430-
#Create a product ad. You must add at least one ProductAd to the corresponding ad group.
431-
#A ProductAd is not used directly for delivered ad copy. Instead, the delivery engine generates
432-
#product ads from the product details that it finds in your Bing Merchant Center store's product catalog.
433-
#The primary purpose of the ProductAd object is to provide promotional text that the delivery engine
434-
#adds to the product ads that it generates. For example, if the promotional text is set to
435-
#'Free shipping on $99 purchases', the delivery engine will set the product ad's description to
436-
#'Free shipping on $99 purchases.'
430+
#Create a product ad. You must add at least one product ad to the ad group.
431+
#The product ad identifier can be used for reporting analytics.
432+
#Use Merchant Promotions if you want tags to appear at the bottom of your product ad
433+
#as "special offer" links, helping to increase customer engagement. For details
434+
#on Merchant Promotions see https://help.bingads.microsoft.com/#apex/3/en/56805/0.
437435

438436
ads=campaign_service.factory.create('ArrayOfAd')
439437
product_ad=set_elements_to_none(campaign_service.factory.create('ProductAd'))
440-
product_ad.PromotionalText='Free shipping on $99 purchases.'
441438
product_ad.Type='Product'
442439
product_ad.Status=None
443440
product_ad.EditorialStatus=None

examples/BingAdsPythonConsoleExamples/BingAdsPythonConsoleExamples/v12/bulk_shopping_campaigns.py

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -102,19 +102,16 @@ def main(authorization_data):
102102
bulk_ad_group.ad_group=ad_group
103103

104104

105-
#Create a product ad. You must add at least one ProductAd to the corresponding ad group.
106-
#A ProductAd is not used directly for delivered ad copy. Instead, the delivery engine generates
107-
#product ads from the product details that it finds in your Bing Merchant Center store's product catalog.
108-
#The primary purpose of the ProductAd object is to provide promotional text that the delivery engine
109-
#adds to the product ads that it generates. For example, if the promotional text is set to
110-
#'Free shipping on $99 purchases', the delivery engine will set the product ad's description to
111-
#'Free shipping on $99 purchases.'
105+
#Create a product ad. You must add at least one product ad to the ad group.
106+
#The product ad identifier can be used for reporting analytics.
107+
#Use Merchant Promotions if you want tags to appear at the bottom of your product ad
108+
#as "special offer" links, helping to increase customer engagement. For details
109+
#on Merchant Promotions see https://help.bingads.microsoft.com/#apex/3/en/56805/0.
112110

113111
bulk_product_ad=BulkProductAd()
114112
bulk_product_ad.ad_group_id=AD_GROUP_ID_KEY
115113
ads=campaign_service.factory.create('ArrayOfAd')
116114
product_ad=set_elements_to_none(campaign_service.factory.create('ProductAd'))
117-
product_ad.PromotionalText='Free shipping on $99 purchases.'
118115
product_ad.Type='Product'
119116
bulk_product_ad.ad=product_ad
120117

examples/BingAdsPythonConsoleExamples/BingAdsPythonConsoleExamples/v12/shopping_campaigns.py

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -438,17 +438,14 @@ def main(authorization_data):
438438
output_product_partitions(ad_group_criterions)
439439

440440

441-
#Create a product ad. You must add at least one ProductAd to the corresponding ad group.
442-
#A ProductAd is not used directly for delivered ad copy. Instead, the delivery engine generates
443-
#product ads from the product details that it finds in your Bing Merchant Center store's product catalog.
444-
#The primary purpose of the ProductAd object is to provide promotional text that the delivery engine
445-
#adds to the product ads that it generates. For example, if the promotional text is set to
446-
#'Free shipping on $99 purchases', the delivery engine will set the product ad's description to
447-
#'Free shipping on $99 purchases.'
441+
#Create a product ad. You must add at least one product ad to the ad group.
442+
#The product ad identifier can be used for reporting analytics.
443+
#Use Merchant Promotions if you want tags to appear at the bottom of your product ad
444+
#as "special offer" links, helping to increase customer engagement. For details
445+
#on Merchant Promotions see https://help.bingads.microsoft.com/#apex/3/en/56805/0.
448446

449447
ads=campaign_service.factory.create('ArrayOfAd')
450448
product_ad=set_elements_to_none(campaign_service.factory.create('ProductAd'))
451-
product_ad.PromotionalText='Free shipping on $99 purchases.'
452449
product_ad.Type='Product'
453450
product_ad.Status=None
454451
product_ad.EditorialStatus=None

0 commit comments

Comments
 (0)