I am using the Python library and I want to retrieve campaigns with '
AdvertisingChannelType' and 'AdvertisingChannelSubType'.

But, it is not returned from google Adwords and 'budget' is returned even 
though I didn't request to get it.

Can you please tell me what the solution is?

# Initialize appropriate service.
campaign_service = adwords_client.GetService('CampaignService', 
version='v201802')

# Construct query and get all campaigns.
query = (adwords.ServiceQueryBuilder()
         .Select('Id', 'Name', 'Status', 'AdvertisingChannelType', 
'AdvertisingChannelSubType')
         .OrderBy('Name')
         .Limit(0, PAGE_SIZE)
         .Build())

for page in query.Pager(campaign_service):
    if 'entries' in page:
        for campaign in page['entries']:
            print(campaign)


Result:
(Campaign){
   id = 12345665
   name = "CampaignName"
   status = "ENABLED"
   budget = ""
   advertisingChannelType = "SEARCH"
 }



-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/3f0436de-9abe-49f4-986b-980ee1578d11%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
  • AdvertisingC... Biniam Asnake
    • Re: Adv... 'Dhanya Sundararaju (AdWords API Team)' via AdWords API Forum

Reply via email to