2 comments.

  1. user3858890

    Discovery campaigns are not currently supported in Google Ads API. For a list of campaign types that are supported, you can refer to this guide.

    To check if a campaign is of type Universal App Campaign, you can use GetCampaigns() to pull campaigns where the advertising_channel_sub_type is "APP_CAMPAIGN" or "APP_CAMPAIGN_FOR_ENGAGEMENT."

  2. Dave Davis

    There's a dedicated ENUM for this on the client.

    channel=GoogleAdsClient.get_type('AdvertisingChannelTypeEnum')

    Then to access it, for example, to output it with the usual row, pass it the value of the advertising_channel_type that comes back in the row. Make sure you ask for it in the query though (in your select clause, make sure you've got campaign.advertising_channel_type) :

    print(channel.AdvertisingChannelType.Name(row.campaign.advertising_channel_type).title())

Add a new comment.