Skip to content

Commit 2712f6d

Browse files
authored
Merge pull request #46 from BingAds/updateaccount
do not update account by default
2 parents 2141b03 + f612c92 commit 2712f6d

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

examples/BingAdsPythonConsoleExamples/BingAdsPythonConsoleExamples/v9/SearchUserAccounts.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -324,15 +324,15 @@ def output_account(account):
324324
output_status_message("; ".join(str(flag) for flag in feature_pilot_flags['int']) + "\n")
325325

326326
# Optionally you can update each account with a tracking template.
327-
account_FCM = customer_service.factory.create('ns0:ArrayOfKeyValuePairOfstringstring')
328-
tracking_url_template=customer_service.factory.create('ns0:KeyValuePairOfstringstring')
329-
tracking_url_template.key="TrackingUrlTemplate"
330-
tracking_url_template.value="http://tracker.example.com/?season={_season}&promocode={_promocode}&u={lpurl}"
331-
account_FCM.KeyValuePairOfstringstring.append(tracking_url_template)
332-
333-
account.ForwardCompatibilityMap = account_FCM
334-
customer_service.UpdateAccount(account)
335-
output_status_message("Updated the account with a TrackingUrlTemplate: {0}\n".format(tracking_url_template.value))
327+
#account_FCM = customer_service.factory.create('ns0:ArrayOfKeyValuePairOfstringstring')
328+
#tracking_url_template=customer_service.factory.create('ns0:KeyValuePairOfstringstring')
329+
#tracking_url_template.key="TrackingUrlTemplate"
330+
#tracking_url_template.value="http://tracker.example.com/?season={_season}&promocode={_promocode}&u={lpurl}"
331+
#account_FCM.KeyValuePairOfstringstring.append(tracking_url_template)
332+
333+
#account.ForwardCompatibilityMap = account_FCM
334+
#customer_service.UpdateAccount(account)
335+
#output_status_message("Updated the account with a TrackingUrlTemplate: {0}\n".format(tracking_url_template.value))
336336

337337
output_status_message("Program execution completed")
338338
except WebFault as ex:

0 commit comments

Comments
 (0)