Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Long initial init time #84

Open
felixmosh opened this issue Sep 26, 2021 · 1 comment
Open

Long initial init time #84

felixmosh opened this issue Sep 26, 2021 · 1 comment

Comments

@felixmosh
Copy link

felixmosh commented Sep 26, 2021

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!

@hsource
Copy link

hsource commented Oct 13, 2022

See #99 for a solution

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants