( a4a, baseUrl, startTime, parameters, opt_experimentIds )
| 362 | * @return {!Promise<string>} |
| 363 | */ |
| 364 | export function googleAdUrl( |
| 365 | a4a, |
| 366 | baseUrl, |
| 367 | startTime, |
| 368 | parameters, |
| 369 | opt_experimentIds |
| 370 | ) { |
| 371 | // TODO: Maybe add checks in case these promises fail. |
| 372 | const blockLevelParameters = googleBlockParameters(a4a, opt_experimentIds); |
| 373 | return googlePageParameters(a4a, startTime).then((pageLevelParameters) => { |
| 374 | Object.assign(parameters, blockLevelParameters, pageLevelParameters); |
| 375 | return truncAndTimeUrl(baseUrl, parameters, startTime); |
| 376 | }); |
| 377 | } |
| 378 | |
| 379 | /** |
| 380 | * @param {string} baseUrl |
no test coverage detected