Module Expr Str ImportFrom alias Assign NameStore Num FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str keyword Str Assign NameStore Num Assign NameStore Dict Str Str Str ListLoad Str Str Str Str Str Str Str ListLoad Dict Str Str Str Str Str ListLoad Str Str Str Str Dict Str Str Call NameLoad NameLoad Call NameLoad NameLoad Assign NameStore NameLoad While NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad If CompareIn Str NameLoad body For NameStore SubscriptLoad NameLoad Index Str body Assign NameStore Str If CompareEq SubscriptLoad NameLoad Index Str Str body Assign NameStore Str Assign NameStore SubscriptLoad NameLoad Index Str Assign NameStore IfExp CompareIn Str NameLoad SubscriptLoad NameLoad Index Str IfExp CompareIn Str NameLoad SubscriptLoad NameLoad Index Str IfExp CompareIn Str NameLoad SubscriptLoad NameLoad Index Str IfExp CompareIn Str NameLoad SubscriptLoad NameLoad Index Str NameLoad Print BinOpMod Str TupleLoad NameLoad SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str NameLoad orelse Print Str AugAssignAdd NameStore NameLoad Assign SubscriptStore SubscriptLoad NameLoad Index Str Index Str Call NameLoad NameLoad Assign NameStore CompareLt NameLoad Call NameLoad SubscriptLoad NameLoad Index Str decorator_list If CompareEq NameLoad Str body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call NameLoad NameLoad
N/A N/A This example illustrates how to retrieve all the campaign targets.

To set campaign targets, run add_campaign_targeting_criteria.py.

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 N/A PAGE_SIZE 500 main N/A N/A client N/A N/A N/A campaign_criterion_service N/A N/A client GetService CampaignCriterionService version v201509 N/A offset 0 N/A selector N/A fields predicates paging N/A CampaignId Id CriteriaType PlatformName LanguageName LocationName KeywordText N/A N/A field operator values CriteriaType IN N/A KEYWORD LANGUAGE LOCATION PLATFORM N/A startIndex numberResults N/A str offset N/A str PAGE_SIZE N/A more_pages True N/A more_pages N/A N/A page N/A N/A campaign_criterion_service get selector N/A N/A entries page N/A N/A campaign_criterion N/A page N/A entries N/A N/A negative N/A N/A N/A campaign_criterion N/A CampaignCriterion.Type NegativeCampaignCriterion N/A N/A negative Negative  N/A criterion N/A campaign_criterion N/A criterion N/A criteria N/A N/A text criterion N/A criterion N/A text N/A N/A platformName criterion N/A criterion N/A platformName N/A N/A name criterion N/A criterion N/A name N/A N/A locationName criterion N/A criterion N/A locationName None N/A N/A %sCampaign Criterion found for Campaign ID %s with type %s and criteria "%s". N/A negative N/A campaign_criterion N/A campaignId N/A criterion N/A type criteria N/A N/A No campaign targets were found. N/A offset PAGE_SIZE N/A N/A N/A selector N/A paging N/A startIndex N/A str offset N/A more_pages N/A offset N/A int N/A page N/A totalNumEntries 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