Skip to content

Long initial init time #84

Description

@felixmosh

For the first usage of something from the lib, it takes ~10sec to load the proto.js file.
Simple report query like

await client.report({
    entity: 'campaign',
    attributes: [
      'campaign.id',
      'campaign.name',
      'campaign.labels',
      'campaign.advertising_channel_type',
      'campaign.advertising_channel_sub_type',
      'campaign.start_date',
      'campaign.end_date',
      'campaign.campaign_budget',
      'campaign.bidding_strategy',
      'campaign.bidding_strategy_type',
      'campaign.manual_cpc.enhanced_cpc_enabled',
      'campaign.network_settings.target_content_network',
      'campaign.network_settings.target_google_search',
      'campaign.network_settings.target_partner_search_network',
      'campaign.network_settings.target_search_network',
      'campaign.targeting_setting.target_restrictions',
    ],
    constraints: [{ key: 'campaign.id', op: 'IN', val: [].concat(campaignIds) }],
  })

image

Probably related to the fact that proto.js file is huge!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions