Module Expr Str ImportFrom alias ImportFrom alias Assign NameStore Str Assign NameStore Str FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str keyword Str Assign NameStore Dict Str Str ListLoad Str Str ListLoad Dict Str Str Str Str Str ListLoad NameLoad Dict Str Str Str Str Str ListLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore IfExp SubscriptLoad NameLoad Index Str SubscriptLoad SubscriptLoad NameLoad Index Str Index Num NameLoad If UnaryOpNot NameLoad body Raise Call AttributeLoad NameLoad attr Str Assign NameStore Dict Str Str SubscriptLoad SubscriptLoad NameLoad Index Str Index Str SubscriptLoad SubscriptLoad NameLoad Index Str Index Str Assign NameStore SubscriptLoad Call AttributeLoad NameLoad attr ListLoad NameLoad Index Num If NameLoad body Print BinOpMod Str TupleLoad SubscriptLoad NameLoad Index Str SubscriptLoad SubscriptLoad NameLoad Index Str Index Num orelse Raise Call AttributeLoad NameLoad attr Str decorator_list If CompareEq NameLoad Str body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call NameLoad NameLoad NameLoad NameLoad
N/A N/A This example upgrades an ad to use upgraded URLs.

The LoadFromStorage method is pulling credentials and properties from a
"googleads.yaml" file. By default, it looks for this file in your home
directory. For more information, see the "Caching authentication information"
section of our README.

 googleads adwords googleads errors N/A ADGROUP_ID INSERT_ADGROUP_ID_HERE N/A AD_ID INSERT_AD_ID_HERE main N/A N/A client adgroup_id ad_id N/A N/A N/A adgroup_ad_service N/A N/A client GetService AdGroupAdService version v201603 N/A selector N/A fields predicates N/A Id Url N/A N/A field operator values AdGroupId EQUALS N/A adgroup_id N/A field operator values Id EQUALS N/A ad_id N/A page N/A N/A adgroup_ad_service get selector N/A adgroup_ad N/A N/A page N/A entries N/A N/A page N/A entries N/A 0 None N/A N/A adgroup_ad N/A N/A N/A N/A errors GoogleAdsError Ad not found. N/A ad_url_upgrade N/A adId finalUrl N/A N/A adgroup_ad N/A ad N/A id N/A N/A adgroup_ad N/A ad N/A url N/A adgroup_ad N/A N/A N/A adgroup_ad_service upgradeUrl N/A ad_url_upgrade N/A 0 N/A adgroup_ad N/A N/A N/A AdGroupAd with ID %s and destination URL '%s' was upgraded. N/A N/A adgroup_ad N/A id N/A N/A adgroup_ad N/A finalUrls N/A 0 N/A N/A N/A N/A errors GoogleAdsError Failed to create AdGroupAd. N/A N/A N/A __name__ __main__ N/A N/A adwords_client N/A N/A N/A adwords AdWordsClient LoadFromStorage N/A N/A main adwords_client ADGROUP_ID AD_ID