src/service/viewer-cid-api.js
/**
   * Checks if the page has opted in CID API for the given scope.
   * Returns the API key that should be used, or null if page hasn't opted in.
   *
   * @param {string} scope
   * @return {string|undefined}
   */
Checks if the page has opted in CID API for the given scope.
Returns the API key that should be used, or null if page hasn't opted in.

@param {string} scope
@return {string|undefined}
Checks if the page has opted in CID API for the given scope . Returns the API key that should be used or null if page hasn ' t opted in . @param { string } scope @return { string|undefined }
isScopeOptedIn(scope) {
    if (!this.apiKeyMap_) {
      this.apiKeyMap_ = this.getOptedInScopes_();
    }
    return this.apiKeyMap_[scope];
  }
isScopeOptedIn ( scope ) { if ( ! this . apiKeyMap_ ) { this . apiKeyMap_ = this . getOptedInScopes_ ( ) ; } return this . apiKeyMap_ [ scope ] ; }
Checks if the page has opted in CID API for the given scope.
Checks if the page has opted in CID API for the given scope .